/* Arab Trades Workspace */
:root {
	--ink: #0a1430; --ink2: #101d45; --blue: #2458ff; --blue-d: #1a44d6; --sky: #41a6df; --coral: #f2643a; --gold: #f4b545;
	--bg: #f4f6fb; --card: #fff; --line: #e3e8f2; --line2: #d3dae9; --text: #17203b; --body: #3b4565; --muted: #5d6784;
	--ok: #15803d; --ok-bg: #e8f6ee; --err: #c2410c; --err-bg: #fdece6; --warn: #a16207; --warn-bg: #fdf4dc;
	--r: 16px; --rs: 11px; --sh: 0 1px 2px rgba(10, 20, 48, .05), 0 8px 26px -14px rgba(10, 20, 48, .2); --sh2: 0 2px 6px rgba(10, 20, 48, .06), 0 24px 50px -22px rgba(10, 20, 48, .38);
	--f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --e: cubic-bezier(.2, .8, .2, 1);
	--side: 260px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); color: var(--body); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
h1, h2, h3, h4 { color: var(--text); margin: 0; letter-spacing: -.015em; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ic { flex: 0 0 auto; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.link { color: var(--blue); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.link--s { font-size: 13px; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(36, 88, 255, .45); outline-offset: 2px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: transform .15s var(--e), background-color .2s, border-color .2s, box-shadow .2s, color .2s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(36, 88, 255, .9); }
.btn--primary:hover { background: var(--blue-d); }
.btn--line { background: #fff; border-color: var(--line2); color: var(--text); }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn--danger { background: #dc2626; color: #fff; }
.btn--ghost-danger { background: transparent; color: #b91c1c; border-color: transparent; }
.btn--ghost-danger:hover { background: #fef2f2; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn--block { width: 100%; }
.l-short { display: none; }
@media (max-width: 600px) { .l-short { display: inline; } .l-long { display: none; } }
.btn:disabled { opacity: .55; cursor: default; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn--line.is-busy::after { border-color: rgba(36, 88, 255, .25); border-top-color: var(--blue); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 9px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 13px; }
.iconbtn:hover { background: #eef2fb; color: var(--blue); }
.spin { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(36, 88, 255, .18); border-top-color: var(--blue); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { display: grid; place-items: center; min-height: 60vh; }

/* ---------- pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--mute { background: #eef1f7; color: #4b5572; }
.pill--err { background: var(--err-bg); color: var(--err); }
.pill--new { background: #e9efff; color: var(--blue-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .18s var(--e); }
.chip:hover { border-color: var(--blue); }
.chip--on { background: var(--blue); border-color: var(--blue); color: #fff; animation: pop .28s var(--e); }
.chip--on button { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; padding: 0; margin-right: -6px; }
.chip--select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.chip--select.chip--on { background-color: var(--blue); }
.chip--day { min-width: 54px; justify-content: center; }
.chips--sugg { margin-top: 8px; }
.chips--sugg .chip { min-height: 32px; font-size: 13px; border-style: dashed; }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.chipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }

/* ---------- avatars ---------- */
.av { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; font-weight: 800; font-size: 17px; overflow: hidden; }
.av--s { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.av--logo { background: #fff; border: 1px solid var(--line); color: var(--blue); }
.av--logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

/* ---------- notes / toasts ---------- */
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 10px 0 0; }
.note .ic { margin-top: 1px; }
.note--info { background: #eef3ff; color: #1e3a8a; }
.note--warn { background: var(--warn-bg); color: var(--warn); }
.restore { align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.restore span { flex: 1 1 220px; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(520px, calc(100% - 28px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-weight: 600; font-size: 14.5px; animation: tin .35s var(--e); }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: all .35s; }
.toast__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(22, 163, 74, .25); color: #4ade80; flex: 0 0 auto; }
.toast--err .toast__ic { background: rgba(239, 68, 68, .22); color: #fca5a5; }
.toast--warn .toast__ic { background: rgba(245, 158, 11, .22); color: #fcd34d; }
.toast__msg { flex: 1; }
.toast__act { border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; padding: 7px 12px; cursor: pointer; }
@keyframes tin { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* =====================================================================
   SIGN IN
   ===================================================================== */
.app--auth { min-height: 100vh; }
.auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); min-height: 100vh; }
.auth__media { position: relative; background: var(--ink) center/cover no-repeat; overflow: hidden; }
.auth__media::before { content: ""; position: absolute; inset: -4%; background: inherit; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, -1%); } }
.auth__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 48, .15), rgba(10, 20, 48, .85)), radial-gradient(60% 50% at 20% 100%, rgba(36, 88, 255, .35), transparent); }
.auth__quote { position: absolute; left: clamp(28px, 5vw, 64px); right: clamp(28px, 5vw, 64px); bottom: clamp(28px, 6vw, 72px); color: rgba(255, 255, 255, .82); animation: rise .9s var(--e) .2s both; }
.auth__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 700; font-size: 13px; backdrop-filter: blur(8px); }
.auth__quote h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 18px 0 10px; max-width: 560px; }
.auth__quote p { font-size: 17px; margin: 0; }
.auth__form { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 6vw, 72px); background: #fff; max-width: 560px; width: 100%; margin: 0 auto; animation: rise .7s var(--e) both; }
.auth__logo { height: 46px; width: auto; align-self: flex-start; margin-bottom: 18px; }
.auth__form h1 { font-size: 32px; letter-spacing: -.03em; }
.auth__form > p.muted { margin: -6px 0 8px; }
.auth__err { padding: 11px 14px; border-radius: 12px; background: var(--err-bg); color: var(--err); font-weight: 600; font-size: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.pw { position: relative; display: block; }
.pw__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; cursor: pointer; }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; min-width: 0; }
.field > span:first-child { font-weight: 700; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field > span small { font-weight: 500; }
.field input, .field textarea, .field select, .search input, .filters select {
	width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; color: var(--text); font-size: 15.5px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; line-height: 1.55; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus, .search:focus-within, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 88, 255, .12); }
.field--big input { min-height: 56px; font-size: 17px; font-weight: 600; }
.field.is-bad input, .field.is-bad .chips, .field.is-bad .search { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); border-radius: 12px; }
.field.is-bad > span:first-child { color: #b91c1c; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.two--tight { max-width: 420px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* =====================================================================
   SHELL
   ===================================================================== */
.app:not(.app--auth) { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: var(--ink); color: rgba(255, 255, 255, .75); overflow-y: auto; }
.side__brand { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 6px; color: #fff; font-weight: 800; }
.side__brand img { height: 38px; width: auto; filter: brightness(1.15); }
.side__brand small { color: var(--gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; padding-left: 2px; }
.side__add { min-height: 48px; box-shadow: 0 14px 30px -14px rgba(36, 88, 255, 1); }
.side__nav { display: flex; flex-direction: column; gap: 4px; }
.side__nav a, .side__foot > a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(255, 255, 255, .72); font-weight: 600; transition: background-color .2s, color .2s; }
.side__nav a:hover, .side__foot > a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__nav a.is-on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--coral); }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 6px; }
.me__n { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me__n b { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__n small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.me .iconbtn { color: rgba(255, 255, 255, .6); }
.me .iconbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main { padding: 30px clamp(18px, 3.4vw, 46px) 120px; min-width: 0; outline: 0; animation: fadein .35s var(--e); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.tabs { display: none; }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.page-h h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.page-h p.muted { margin: 4px 0 0; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.back:hover { color: var(--blue); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.card__h h3 { font-size: 17px; }

/* ---------- home ---------- */
.hero-h { padding: 26px 28px; border-radius: 22px; background: radial-gradient(70% 120% at 100% 0%, rgba(36, 88, 255, .5), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(242, 100, 58, .25), transparent 60%), var(--ink); color: rgba(255, 255, 255, .78); align-items: center; box-shadow: var(--sh2); }
.hero-h h1 { color: #fff; }
.hero-h .kicker { color: var(--gold); }
.hero-h .muted { color: rgba(255, 255, 255, .7); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.tile { position: relative; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); display: flex; flex-direction: column; gap: 2px; overflow: hidden; animation: rise .6s var(--e) both; }
.tile:nth-child(2) { animation-delay: .06s; } .tile:nth-child(3) { animation-delay: .12s; } .tile:nth-child(4) { animation-delay: .18s; }
.tile > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px; color: #fff; }
.tile--a > span { background: linear-gradient(135deg, var(--blue), var(--sky)); }
.tile--b > span { background: linear-gradient(135deg, var(--coral), var(--gold)); }
.tile--c > span { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.tile--d > span { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.tile b { font-size: 30px; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile small { color: var(--muted); font-weight: 600; }
.attn { padding: 16px 20px; margin: 0 0 18px; border-color: #f6dfb0; background: linear-gradient(0deg, #fffdf6, #fffaf0); }
.attn h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--warn); margin-bottom: 8px; }
.attn__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.attn__i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #f1e3c4; color: var(--body); }
.attn__i b { font-size: 22px; color: var(--text); }
.attn__i span { flex: 1; font-size: 13.5px; }
.attn__i:hover { border-color: var(--gold); }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.mini { display: flex; flex-direction: column; padding: 6px 10px 12px; }
.mini__i { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--body); }
.mini__i:hover { background: #f4f6fc; }
.mini__img { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 10px; background: #eef1f8; color: #8a94b3; overflow: hidden; font-weight: 800; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__img--logo { background: #fff; border: 1px solid var(--line); color: var(--blue); }
.mini__img--logo img { object-fit: contain; padding: 4px; }
.mini__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini__t b { color: var(--text); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board { padding: 8px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.board__r { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(60px, 120px) auto; align-items: center; gap: 12px; }
.board__n { display: flex; flex-direction: column; min-width: 0; }
.board__n b { color: var(--text); font-size: 14px; }
.board__n small { color: var(--muted); font-size: 12px; }
.board__bar { height: 8px; border-radius: 99px; background: #eef1f8; overflow: hidden; }
.board__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--sky)); animation: grow 1s var(--e) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.board__v { color: var(--text); font-size: 16px; min-width: 28px; text-align: right; }
.empty { padding: 26px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 14px; }
.empty--big { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; grid-column: 1 / -1; }
.empty--big > .ic { color: #a3add0; }
.skel { height: 64px; border-radius: 12px; margin: 6px 10px; background: linear-gradient(90deg, #eef1f8 0%, #f8f9fd 50%, #eef1f8 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- listings ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin: 0 0 14px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 0; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; padding: 0 0 0 12px; color: var(--muted); }
.search input { border: 0 !important; box-shadow: none !important; min-height: 44px; padding-left: 8px; }
.search--in { margin-top: 10px; }
.filters select { flex: 0 1 190px; min-height: 46px; width: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #eef1f8; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(10, 20, 48, .12); }
.count { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: transform .25s var(--e), box-shadow .25s var(--e), opacity .3s; animation: rise .45s var(--e) both; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.gcard.is-hidden .gcard__img img { filter: grayscale(.6); opacity: .7; }
.gcard.is-gone { opacity: 0; transform: scale(.96); }
.gcard.skel { height: 300px; margin: 0; }
.gcard__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #f2f4f9; overflow: hidden; }
.gcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; transition: transform .6s var(--e); }
.gcard:hover .gcard__img img { transform: scale(1.04); }
.gcard__img .pill { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.gcard__noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #98a2c1; font-weight: 700; font-size: 12px; }
.gcard__b { display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 10px; flex: 1; }
.gcard__t { color: var(--text); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard__s, .gcard__m { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
.gcard__s { font-weight: 700; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard__m { flex-wrap: wrap; }
.gcard__m i { font-style: normal; opacity: .5; }
.gcard__f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f0f2f8; }
.gcard__f small { color: #6b7493; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard__a { display: flex; gap: 2px; }
.gcard__a .iconbtn span { display: none; }
.gcard__a [data-act=restore] span { display: inline; }
.more { display: flex; justify-content: center; padding: 24px 0; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu h3 { font-size: 17px; margin: 0 0 8px; padding-right: 20px; }
.menu > button:not(.btn) { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px; border: 0; background: #f6f8fc; text-align: left; cursor: pointer; color: var(--text); }
.menu > button:not(.btn):hover { background: #eef2fb; }
.menu > button span { display: flex; flex-direction: column; }
.menu > button small { color: var(--muted); }
.menu > button.is-danger { color: #b91c1c; }
.menu .btn { margin-top: 6px; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 20, 48, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(16px) scale(.98); transition: all .3s var(--e); }
.sheet--wide { width: min(640px, 100%); }
.is-open .sheet-bg { opacity: 1; }
.is-open .sheet { opacity: 1; transform: none; }
.sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.sheet__h h3 { font-size: 19px; }
.confirm { text-align: center; }
.confirm__ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #eef3ff; color: var(--blue); margin-bottom: 12px; }
.confirm__ic.is-danger { background: #fef2f2; color: #dc2626; }
.confirm h3 { font-size: 20px; margin-bottom: 6px; }
.confirm p { margin: 0 0 14px; color: var(--muted); }
.confirm .row-end { justify-content: center; }

/* ---------- editor ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.ed__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sec { padding: 22px 24px 8px; animation: rise .5s var(--e) both; }
.sec:nth-child(2) { animation-delay: .05s; } .sec:nth-child(3) { animation-delay: .1s; } .sec:nth-child(4) { animation-delay: .15s; }
.sec__h { display: flex; gap: 14px; margin: 0 0 18px; }
.sec__h h2 { font-size: 19px; }
.sec__h p { margin: 2px 0 0; font-size: 14px; }
.sec__n { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #eef3ff; color: var(--blue); font-weight: 800; }
.combo { position: relative; }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 10px); max-height: 340px; overflow: auto; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh2); animation: rise .2s var(--e); }
.combo__list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; }
.combo__list button:hover { background: #f2f5fd; }
.combo__list button span:last-child { display: flex; flex-direction: column; min-width: 0; }
.combo__list b { color: var(--text); font-size: 14.5px; }
.combo__list small { color: var(--muted); }
.sup-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; margin: -6px 0 16px; font-size: 13.5px; }
.catlist { display: flex; flex-direction: column; margin-top: 8px; max-height: 300px; overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
.catlist:empty { display: none; }
.catlist button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 0; border-bottom: 1px solid #f0f2f8; background: #fff; text-align: left; cursor: pointer; color: var(--muted); font-size: 14px; }
.catlist button:last-child { border-bottom: 0; }
.catlist button b { color: var(--text); font-weight: 700; }
.catlist button small { color: #6b7493; font-weight: 700; }
.catlist button:hover { background: #f3f6fd; }
.catlist p { margin: 0; padding: 12px; }
#catsel { min-height: 38px; align-items: center; }
.tagbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 52px; padding: 7px 8px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; cursor: text; }
.tagbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 88, 255, .12); }
.tagbox .chip { min-height: 32px; font-size: 13.5px; padding: 0 12px; }
.tagbox input { flex: 1 1 140px; min-width: 120px; border: 0; outline: 0; min-height: 34px; font-size: 15px; background: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 4px; border-radius: 14px; transition: background-color .2s, box-shadow .2s; }
.photos.is-drop { background: #eef3ff; box-shadow: 0 0 0 2px var(--blue) inset; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f2f4f9; border: 1px solid var(--line); animation: pop .3s var(--e); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-busy img { filter: blur(1px) brightness(.85); }
.ph__main { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; }
.ph__a { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.ph:hover .ph__a, .ph:focus-within .ph__a { opacity: 1; }
.ph__a button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .95); color: var(--text); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.ph__a button:hover { color: var(--blue); }
.ph__a button[data-ph=del]:hover { color: #dc2626; }
.ph__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.ph__bar i { display: block; height: 100%; background: var(--blue); transition: width .2s; }
.ph--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line2); background: #fafbfe; color: var(--blue); cursor: pointer; font-weight: 700; font-size: 14px; transition: border-color .2s, background-color .2s; }
.ph--add small { color: var(--muted); font-weight: 500; font-size: 12px; }
.ph--add:hover { border-color: var(--blue); background: #f2f6ff; }
.logo-up { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-up__img { width: 72px; height: 72px; border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.logo-up__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-up__img.is-busy { opacity: .5; }
.hours { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.hours summary { display: flex; align-items: center; gap: 8px; padding: 13px 0; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
.hours summary::-webkit-details-marker { display: none; }
.hours[open] summary { border-bottom: 1px solid #f0f2f8; margin-bottom: 12px; }
.hours .check { margin-bottom: 12px; }
.hours__b { transition: opacity .2s; }
.hours__b.is-off { opacity: .45; }
.hours__b .chips { margin-bottom: 12px; }
.ed__side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.preview { padding: 18px; }
.pv { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: var(--sh); }
.pv__img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f2f4f9; color: #a3add0; }
.pv__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; animation: fadein .3s; }
.pv__b { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.pv__cat { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: rgba(36, 88, 255, .08); color: var(--blue); font-size: 12px; font-weight: 700; }
.pv__t { color: var(--text); font-size: 16px; line-height: 1.3; word-break: break-word; }
.pv__s, .pv__l { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; word-break: break-word; }
.todo { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.todo li { display: flex; align-items: center; gap: 9px; padding: 7px 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.todo li .ic { color: #b2bad3; }
.todo li small { margin-left: auto; font-size: 11.5px; color: #8a6c1a; font-weight: 700; }
.todo li.is-done { color: var(--text); }
.todo li.is-done .ic { color: #fff; background: #16a34a; border-radius: 50%; padding: 2px; animation: pop .3s; }
.savebar { grid-column: 1 / -1; position: sticky; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(10, 20, 48, .35); }
.savebar__sp { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #cbd2e3; transition: background-color .2s; flex: 0 0 auto; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--e); }
.switch input:checked + i { background: #16a34a; }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid rgba(36, 88, 255, .45); outline-offset: 2px; }

/* ---------- suppliers / team rows ---------- */
.slist { display: flex; flex-direction: column; gap: 10px; }
.srow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; animation: rise .4s var(--e) both; }
.srow.is-off { opacity: .6; }
.srow__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.srow__t b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__n { display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; }
.srow__n b { color: var(--text); font-size: 18px; }
.srow__n small { color: var(--muted); font-size: 12px; }
.srow__a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sform .note { margin: 0 0 14px; }

/* ---------- celebration ---------- */
.cele { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(10, 20, 48, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.cele.is-on { opacity: 1; }
.cele__card { width: min(440px, 100%); padding: 30px 26px 24px; border-radius: 26px; background: #fff; text-align: center; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); transform: scale(.92) translateY(10px); transition: transform .45s var(--e); }
.cele.is-on .cele__card { transform: none; }
.cele__burst { position: relative; width: 84px; height: 84px; margin: 0 auto 14px; }
.cele__tick { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 14px 30px -10px rgba(22, 163, 74, .8); animation: pop .5s var(--e) .1s both; }
.cele__burst i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 3px; background: var(--c); opacity: 0; animation: burst 1s var(--e) .15s forwards; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1); } }
.cele h3 { font-size: 24px; letter-spacing: -.02em; }
.cele p { margin: 6px 0 0; color: var(--muted); word-break: break-word; }
.cele__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.cele { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.cele__card { max-width: 100%; min-width: 0; }
.cele__btns .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; height: auto; }
.cele--mini { background: transparent; backdrop-filter: none; pointer-events: none; align-items: start; padding-top: 80px; }
.cele--mini .cele__card { width: min(360px, 100%); padding: 20px; pointer-events: auto; }
.cele--mini .cele__burst { width: 60px; height: 60px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
	.ed { grid-template-columns: minmax(0, 1fr); }
	.ed__side { position: static; order: -1; display: none; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth__media { min-height: 260px; }
	.auth__quote h2 { font-size: 26px; }
	.auth__quote p { display: none; }
	.app:not(.app--auth) { grid-template-columns: minmax(0, 1fr); }
	.side { display: none; }
	.main { padding: 18px 16px 150px; }
	.tabs { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 20, 48, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
	.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; color: rgba(255, 255, 255, .62); font-size: 11.5px; font-weight: 700; }
	.tabs a.is-on { color: #fff; }
	.tabs a.is-on .ic { color: var(--gold); }
	.tabs__add { order: 2; flex: 0 0 auto !important; width: 58px; height: 58px; margin-top: -26px; display: grid !important; place-items: center; border-radius: 18px !important; background: linear-gradient(135deg, var(--blue), #4f7bff); color: #fff !important; box-shadow: 0 14px 28px -10px rgba(36, 88, 255, .9), 0 0 0 5px var(--bg); }
	.tabs a:nth-child(n+3):not(.tabs__add) { order: 3; }
	.savebar { bottom: calc(78px + env(safe-area-inset-bottom)); }
	.toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
	.page-h .btn:not(.btn--lg) { display: none; }
	.ed-h .btn { display: inline-flex; }
	.ph__a { opacity: 1; }
}
@media (max-width: 600px) {
	.hero-h { padding: 20px; }
	.hero-h .btn { width: 100%; }
	.tiles { gap: 10px; }
	.tile { padding: 14px; }
	.tile b { font-size: 24px; }
	.sec { padding: 18px 16px 4px; }
	.sec__h { gap: 10px; }
	.two { grid-template-columns: minmax(0, 1fr); }
	.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
	.filters .search, .filters .seg { grid-column: 1 / -1; }
	.filters select { width: 100%; min-height: 40px; padding: 8px 26px 8px 10px; font-size: 13px; border-radius: 10px; }
	.seg { flex: 1 1 100%; } .seg button { flex: 1; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gcard__b { padding: 10px 10px 6px; }
	.gcard__t { font-size: 14px; }
	.gcard__f small { display: none; }
	.gcard__f { justify-content: flex-end; }
	.photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.savebar { padding: 8px; gap: 8px; flex-wrap: nowrap; border-radius: 16px; }
	.savebar .switch { gap: 6px; flex: 0 0 auto; }
	.savebar .switch span { font-size: 12px; line-height: 1.15; max-width: 54px; }
	.savebar__sp { display: none; }
	.savebar .btn { min-height: 46px; padding: 0 12px; font-size: 14px; }
	.savebar .btn--lg { flex: 1 1 auto; }
	.savebar [data-save=again] { flex: 0 0 auto; }
	.savebar .btn--ghost-danger { padding: 0 10px; }
	.srow { flex-wrap: wrap; }
	.srow__a { width: 100%; justify-content: stretch; }
	.srow__a .btn { flex: 1; }
	.sheet-wrap { align-items: flex-end; padding: 0; }
	.sheet { width: 100% !important; border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); }
	.board__r { grid-template-columns: auto minmax(0, 1fr) auto; }
	.board__bar { display: none; }
}
@media (hover: none) { .gcard:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* =====================================================================
   MANAGE — statistics · team · categories
   ===================================================================== */
.seg--tabs { display: flex; width: max-content; max-width: 100%; margin: 0 0 18px; overflow-x: auto; }
.seg--tabs a { padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.seg--tabs a.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(10, 20, 48, .12); }
.statbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.tiles--stats .tile small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.delta--up { background: var(--ok-bg); color: var(--ok); }
.delta--down { background: var(--err-bg); color: var(--err); }
.card.pad, .pad { padding: 18px 20px; }
.card.pad h3 { font-size: 16px; margin: 0 0 12px; }
.card__h0 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card__h0 h3 { margin: 0 !important; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.lg--v { background: #c9d6ff; }
.lg--c { background: var(--coral); height: 3px; border-radius: 2px; }
.ch { display: block; width: 100%; height: 190px; }
.ch__v { fill: #c9d6ff; transition: fill .2s; }
.ch__v:hover { fill: var(--blue); }
.ch__c { fill: none; stroke: var(--coral); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ch__t { font-size: 11px; fill: var(--muted); font-family: var(--f); }
.split4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.split4 b { display: block; font-size: 20px; color: var(--text); }
.split4 small { color: var(--muted); font-weight: 600; font-size: 12px; }
.cols { margin-bottom: 18px; }
.cols--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.cols--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.attn__row--col { grid-template-columns: minmax(0, 1fr); }
.lrows { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; color: var(--body); }
.lrow + .lrow { border-top: 1px solid #f0f2f8; }
.lrow:hover { background: #f5f7fd; }
.lrow__img { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: #f0f2f8; overflow: hidden; color: #9aa4c4; }
.lrow__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lrow__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lrow__t b { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow__t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow__k { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 0 0 auto; max-width: 45%; }
.lrow__k b { color: var(--text); font-size: 17px; }
.lrow__k small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbars__r { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.hbars__n { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__b { height: 8px; border-radius: 99px; background: #eef1f8; overflow: hidden; }
.hbars__b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--sky)); animation: grow .8s var(--e) both; transform-origin: left; }
.hbars__r b { color: var(--text); min-width: 30px; text-align: right; }
.center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.row-between p { margin: 0; flex: 1 1 280px; }
.rolepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rolepick label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line2); cursor: pointer; }
.rolepick label:has(input:checked) { border-color: var(--blue); background: #f2f6ff; }
.rolepick input { margin-top: 3px; accent-color: var(--blue); }
.rolepick span { display: flex; flex-direction: column; }
.rolepick b { color: var(--text); }
.rolepick small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.clist { padding: 4px 0; }
.crow { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px calc(16px + var(--d, 0) * 22px); border-bottom: 1px solid #f0f2f8; }
.crow:last-child { border-bottom: 0; }
.crow__n { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.crow__n b { color: var(--text); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow__n small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.crow__tw { width: 10px; height: 10px; border-left: 2px solid var(--line2); border-bottom: 2px solid var(--line2); border-radius: 0 0 0 4px; margin-top: -6px; flex: 0 0 auto; }
.crow__k { display: flex; flex-direction: column; align-items: flex-end; color: var(--text); font-weight: 800; min-width: 60px; }
.crow__k small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.crow__a { display: flex; gap: 6px; }
.catlist__new { display: flex !important; align-items: center; gap: 8px; color: var(--blue) !important; font-weight: 700; background: #f2f6ff !important; }
@media (max-width: 1100px) { .cols--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 860px) { .cols--2, .cols--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
	.split4 { grid-template-columns: 1fr 1fr; }
	.rolepick { grid-template-columns: minmax(0, 1fr); }
	.crow { flex-wrap: wrap; padding-left: calc(12px + var(--d, 0) * 14px); }
	.crow__a { width: 100%; justify-content: flex-end; }
	.seg--tabs { width: 100%; }
	.seg--tabs a { flex: 1; text-align: center; padding: 9px 8px; }
}

/* countries tab */
.lthumb { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 40px; border-radius: 8px; overflow: hidden; background: #eef1f8; color: #9aa4c4; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; }
.logo-up__img--wide { width: 180px; height: 100px; }
.logo-up__img--wide img { object-fit: cover; padding: 0; }
/* the section being edited sits above the next card, so dropdowns (supplier list) are never hidden behind it */
.sec { position: relative; }
.sec:focus-within { z-index: 15; }
.combo__list { z-index: 40; }

/* my account */
.me__btn { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 4px; margin: -4px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; }
.me__btn:hover { background: rgba(255, 255, 255, .07); }
.topbar { display: none; }
.av--l { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.acct__h { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.acct__h > div { flex: 1; min-width: 0; }
.acct__h h3 { font-size: 19px; }
.acct__h p { margin: 2px 0 0; font-size: 13.5px; }
.acct__links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.acct .hours[open] summary { margin-bottom: 12px; }
@media (max-width: 900px) {
	.topbar { position: sticky; top: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px); padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(10, 20, 48, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
	.topbar__brand { display: flex; flex-direction: column; gap: 2px; }
	.topbar__brand img { height: 26px; width: auto; filter: brightness(1.15); }
	.topbar__brand small { color: var(--gold); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
	.topbar__me { border: 0; background: none; padding: 2px; border-radius: 12px; cursor: pointer; }
	.topbar__me .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
	.main { padding-top: 16px; }
}

/* phone save bar: three controls must fit 320–375px */
@media (max-width: 600px) {
	.savebar { gap: 6px; }
	.savebar .switch { flex: 0 0 auto; gap: 5px; }
	.savebar .switch span { max-width: 46px; font-size: 11px; }
	.savebar .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 13.5px; white-space: normal; line-height: 1.15; text-align: center; }
	.savebar .btn--lg { flex: 1.25 1 0; }
	.savebar .btn--ghost-danger { flex: 0 0 auto; }
}
.gcard__noimg small { font-size: 12px; }

/* ===== import · bulk · messages · activity ===== */
.page-h__a { display: flex; gap: 10px; flex-wrap: wrap; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px; border: 2px dashed var(--line2); border-radius: 16px; background: #fafbfe; color: var(--blue); cursor: pointer; text-align: center; transition: border-color .2s, background-color .2s; }
.drop b { font-size: 16px; }
.drop span { color: var(--muted); font-size: 13.5px; }
.drop:hover, .drop.is-drop { border-color: var(--blue); background: #f2f6ff; }
.itable { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; }
.itable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.itable th { position: sticky; top: 0; background: #f4f6fb; text-align: left; padding: 9px 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.itable td { padding: 8px 10px; border-top: 1px solid #f0f2f8; color: var(--text); vertical-align: top; }
.itable tr.is-bad td { background: #fff7f5; }
.t-err { color: var(--err); font-weight: 600; }
.t-ok { color: var(--ok); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.pbar { height: 10px; border-radius: 99px; background: #eef1f8; overflow: hidden; margin: 14px 0 6px; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .3s; }
.ilist { margin: 10px 0; padding-left: 18px; font-size: 13.5px; color: var(--body); max-height: 220px; overflow: auto; }
.gcard { position: relative; }
.gcard__sel { position: absolute; z-index: 3; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(10, 20, 48, .15); cursor: pointer; }
.gcard__sel input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.gcard.is-sel { box-shadow: 0 0 0 2.5px var(--blue), var(--sh2); }
.bulkbar { position: fixed; z-index: 65; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); padding: 8px 10px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .6); animation: tin .3s var(--e); }
.bulkbar b { padding: 0 10px; font-size: 14px; }
.bulkbar button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; padding: 9px 11px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.bulkbar button:hover { background: rgba(255, 255, 255, .18); }
.bulkbar button.is-danger { color: #fca5a5; }
.bulkbar__x { background: transparent !important; }
.nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--coral); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.nbadge[hidden] { display: none; }
.tabs a { position: relative; }
.tabs .nbadge { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
.leads { display: flex; flex-direction: column; gap: 12px; }
.lead { padding: 16px 18px; }
.lead.is-new { border-color: #c7d6ff; box-shadow: 0 0 0 1px #c7d6ff, var(--sh); }
.lead__h { display: flex; align-items: center; gap: 12px; }
.lead__h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lead__h b { color: var(--text); }
.lead__h small { color: var(--muted); font-size: 12.5px; }
.lead__m { margin: 12px 0; white-space: pre-wrap; color: var(--body); font-size: 15px; line-height: 1.6; word-break: break-word; }
.lead__c { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.lead__c .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lead__n { margin: 0 0 10px; }
.lead__n textarea { min-height: 56px; }
.lead__a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lead__a .iconbtn { margin-left: auto; }
.logl { padding: 4px 0; }
.logr { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #f0f2f8; }
.logr:last-child { border-bottom: 0; }
.logr__ic { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #eef3ff; color: var(--blue); }
.logr__t { flex: 1; min-width: 0; font-size: 14px; color: var(--body); line-height: 1.45; word-break: break-word; }
.logr__t b { color: var(--text); }
.logr__t em { font-style: normal; font-weight: 700; color: var(--text); }
.logr__t small { color: var(--muted); }
.logr__w { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 900px) { .bulkbar { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (max-width: 600px) {
	.bulkbar span { display: none; }
	.bulkbar button { padding: 10px; }
	.page-h__a { width: 100%; }
	.page-h__a .btn { flex: 1; }
	.logr { flex-wrap: wrap; }
	.logr__w { width: 100%; padding-left: 44px; }
}
.bulkbar { left: 0; right: 0; margin: 0 auto; width: max-content; transform: none; }

/* ===== Language switch + Arabic (RTL) interface ===== */
.langsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: #eef1f8; border: 1px solid var(--line); }
.langsw button { border: 0; background: none; padding: 6px 14px; border-radius: 99px; font: 700 13px/1.2 var(--f); color: var(--muted); cursor: pointer; }
.langsw button[lang=ar] { font-family: "IBM Plex Sans Arabic", var(--f); }
.langsw button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(10, 20, 48, .12); }
.auth__form > .langsw { align-self: flex-end; margin-bottom: 4px; }
.acct .acct__lang { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.acct__lang > span { font-weight: 700; color: var(--text); }
[dir=rtl] { --f: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
[dir=rtl] body { line-height: 1.6; }
[dir=rtl] .kicker, [dir=rtl] .side__brand small, [dir=rtl] .topbar__brand small, [dir=rtl] .itable th, [dir=rtl] .auth__kicker { letter-spacing: 0; text-transform: none; }
[dir=rtl] .ic--dir { transform: scaleX(-1); }
[dir=rtl] .chip--on button { margin-right: 0; margin-left: -6px; }
[dir=rtl] .chip--select { padding-right: 14px; padding-left: 30px; background-position: 11px 16px, 16px 16px; }
[dir=rtl] .pw__eye { right: auto; left: 6px; }
[dir=rtl] .side__brand small { padding-left: 0; padding-right: 2px; }
[dir=rtl] .side__nav a.is-on { box-shadow: inset -3px 0 0 var(--coral); }
[dir=rtl] .board__bar i, [dir=rtl] .hbars__b i { transform-origin: right; background: linear-gradient(270deg, var(--blue), var(--sky)); }
[dir=rtl] .board__v, [dir=rtl] .hbars__r b, [dir=rtl] .lrow__k { text-align: left; }
[dir=rtl] .search input { padding-left: 0; padding-right: 8px; }
[dir=rtl] .gcard__img .pill { left: auto; right: 10px; }
[dir=rtl] .gcard__sel { right: auto; left: 8px; }
[dir=rtl] .menu h3 { padding-right: 0; padding-left: 20px; }
[dir=rtl] .menu > button:not(.btn), [dir=rtl] .combo__list button, [dir=rtl] .catlist button, [dir=rtl] .me__btn, [dir=rtl] .itable th { text-align: right; }
[dir=rtl] .ph__main { left: auto; right: 6px; }
[dir=rtl] .ph__a { right: auto; left: 6px; }
[dir=rtl] .todo li small, [dir=rtl] .nbadge, [dir=rtl] .lead__a .iconbtn { margin-left: 0; margin-right: auto; }
[dir=rtl] .switch i::after { left: auto; right: 3px; }
[dir=rtl] .switch input:checked + i::after { transform: translateX(-20px); }
[dir=rtl] .lg { margin-left: 0; margin-right: 8px; }
[dir=rtl] .crow__tw { border-left: 0; border-right: 2px solid var(--line2); border-radius: 0 0 4px 0; }
[dir=rtl] .tabs .nbadge { right: auto; left: calc(50% - 22px); }
[dir=rtl] .ilist { padding-left: 0; padding-right: 18px; }
[dir=rtl] input[type=email], [dir=rtl] input[type=url], [dir=rtl] input[type=tel], [dir=rtl] input[inputmode=email], [dir=rtl] input[inputmode=tel], [dir=rtl] input[inputmode=url] { direction: ltr; text-align: right; }
@media (max-width: 600px) {
	[dir=rtl] .crow { padding-left: 12px; padding-right: calc(12px + var(--d, 0) * 14px); }
	[dir=rtl] .logr__w { padding-left: 0; padding-right: 44px; }
}
[dir=rtl] .field input:not([type=checkbox]):not([type=radio]), [dir=rtl] .field textarea, [dir=rtl] .search input { unicode-bidi: plaintext; text-align: start; }
[dir=rtl] #livel { white-space: nowrap; }

.side__lang { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: rgba(255, 255, 255, .72); font: 600 15px/1.5 var(--f); text-align: start; cursor: pointer; transition: background-color .2s, color .2s; }
.side__lang:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__lang[lang=ar], .topbar__lang[lang=ar] { font-family: "IBM Plex Sans Arabic", var(--f); }
.topbar__lang { display: none; }
@media (max-width: 900px) {
	.topbar__lang { display: inline-grid; place-items: center; min-width: 38px; height: 38px; margin-inline-start: auto; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: 700 14px/1 var(--f); cursor: pointer; }
}
