/* Oasis Business Suite v2. IT Oasis brand: red, orange, yellow on quiet inks. Every colour is a token. */
:root {
  --red: #E3242B; --red-deep: #8E1B24; --orange: #F47A20; --yellow: #FDB913;
  --grad: linear-gradient(100deg, #E3242B 0%, #F47A20 55%, #FDB913 100%);
  --grad-btn: linear-gradient(135deg, #DA2228 0%, #D82027 35%, #C0500A 100%);
  --grad-soft: linear-gradient(135deg, rgba(227,36,43,.08), rgba(244,122,32,.07) 50%, rgba(253,185,19,.08));
  --bg: #F5F5F7; --bg-tint: #FBFBFC; --surface: #FFFFFF; --surface2: #F7F7F9; --surface3: #EFEFF3;
  --line: rgba(17,17,26,.075); --line2: rgba(17,17,26,.13); --line-strong: rgba(17,17,26,.2);
  --ink: #0E0E11; --ink2: #4B4B56; --ink3: #6B6B78;
  --good: #087A52; --good-bg: #E5F6EE; --warn: #A15C00; --warn-bg: #FFF2DB; --bad: #C81E26; --bad-bg: #FDE9EA; --info: #2E5BD8; --info-bg: #E8EEFF; --violet: #7444D6; --violet-bg: #F0EAFF;
  --accent-t: #C81D24;
  --c4: #2A2A30; --c5: #8B8B97; --c6: #C9C9D2;
  --bar-mute: #E6E6EB;
  --heat-s: 92%; --heat-l0: 96%; --heat-dl: -44%;
  --sh-1: 0 1px 2px rgba(16,16,28,.04), 0 1px 1px rgba(16,16,28,.02);
  --sh-2: 0 1px 2px rgba(16,16,28,.04), 0 6px 20px -8px rgba(16,16,28,.10), 0 2px 6px -2px rgba(16,16,28,.04);
  --sh-3: 0 2px 6px rgba(16,16,28,.05), 0 24px 60px -16px rgba(16,16,28,.22);
  --sh-pop: 0 10px 40px -10px rgba(16,16,28,.28), 0 2px 8px rgba(16,16,28,.06);
  --glow: 0 8px 24px -8px rgba(227,36,43,.55);
  --ring: 0 0 0 3px rgba(244,122,32,.28);
  --r: 20px; --r-md: 14px; --r-sm: 10px; --r-xs: 8px;
  --side: 264px; --rail: 76px; --top: 64px;
  --font: 'Inter', 'Inter Fallback', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Bricolage Grotesque', 'Inter', 'Inter Fallback', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
  --dx: 1;
}
[data-theme="dark"] {
  --bg: #0A0A0B; --bg-tint: #0D0D0F; --surface: #121214; --surface2: #18181B; --surface3: #212125;
  --line: rgba(255,255,255,.065); --line2: rgba(255,255,255,.11); --line-strong: rgba(255,255,255,.2);
  --ink: #F4F4F6; --ink2: #B4B4BE; --ink3: #8D8D99;
  --good: #34D399; --good-bg: rgba(52,211,153,.12); --warn: #FDB913; --warn-bg: rgba(253,185,19,.12); --bad: #FF6B70; --bad-bg: rgba(255,107,112,.13); --info: #86A6FF; --info-bg: rgba(134,166,255,.13); --violet: #B79BFF; --violet-bg: rgba(183,155,255,.13);
  --accent-t: #FF7A50;
  --c4: #E9E9EE; --c5: #8B8B97; --c6: #3C3C44;
  --bar-mute: #26262B;
  --heat-s: 88%; --heat-l0: 13%; --heat-dl: 42%;
  --grad-soft: linear-gradient(135deg, rgba(227,36,43,.16), rgba(244,122,32,.10) 50%, rgba(253,185,19,.08));
  --sh-1: 0 1px 0 rgba(255,255,255,.035) inset, 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.6);
  --sh-3: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -20px rgba(0,0,0,.8);
  --sh-pop: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 60px -10px rgba(0,0,0,.85);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.5; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.02em; margin: 0; line-height: 1.15; font-weight: 700; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; } h2 { font-size: 20px; } h3 { font-size: 16.5px; } h4 { font-size: 15px; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(244,122,32,.25); }
.icon { flex: none; display: block; }
.tnum, .num, .stat-v, .kpi-v, .big-num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); } .small-t { font-size: 12.5px; } .strong { font-weight: 650; }
.good-t { color: var(--good); } .bad-t { color: var(--bad); }
.nowrap { white-space: nowrap; } .ellip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; } .grow2 { flex: 2 1 auto; }
.row { display: flex; align-items: center; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.row.gap { gap: 12px; } .row.gap-s, .gap-s { gap: 8px; } .row.wrap, .wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } .stack-s { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); } .stack-lg { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.center-all { display: grid; place-items: center; text-align: center; }
.h-sm { font-size: 15px; }
.link { color: var(--accent-t); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.print-only { display: none; }
.m-only { display: none !important; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--surface); color: var(--ink3); font: 600 10.5px/1 var(--font); }
.grad-t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); box-shadow: var(--glow); animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.86); opacity: .7; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: var(--sh-1); transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--surface2); border-color: var(--line-strong); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; }
.btn.primary { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(227,36,43,.6); }
.btn.primary:hover:not(:disabled) { background: var(--grad-btn); filter: brightness(1.06) saturate(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -8px rgba(227,36,43,.7); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink2); }
.btn.ghost:hover:not(:disabled) { background: var(--surface3); color: var(--ink); }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn.danger-soft { background: var(--bad-bg); color: var(--bad); border-color: transparent; box-shadow: none; }
.btn.danger-soft:hover:not(:disabled) { background: var(--bad-bg); filter: brightness(.97); }
.btn.ai-soft { background: var(--grad-soft); border-color: rgba(244,122,32,.25); color: var(--accent-t); box-shadow: none; }
.btn.small { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn.big { height: 48px; font-size: 15px; border-radius: 14px; }
.btn.xl { height: 56px; font-size: 16px; border-radius: 16px; font-weight: 700; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ink2); transition: background .15s, color .15s; position: relative; }
.icon-btn:hover, .icon-btn.on { background: var(--surface3); color: var(--ink); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.bordered { border: 1px solid var(--line2); background: var(--surface); width: 42px; height: 42px; }
.icon-btn.on-dark { color: #fff; } .icon-btn.on-dark:hover { background: rgba(255,255,255,.15); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink2); font-size: 13px; font-weight: 550; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: rgba(244,122,32,.45); color: var(--ink); background: var(--grad-soft); }
.chip .icon { color: var(--orange); }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.chip-btn.warn { background: var(--warn-bg); color: var(--warn); }
.chip-btn.warn:hover { box-shadow: 0 0 0 1px var(--warn) inset; }

/* ---------- form ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.field .hint { font-size: 12px; color: var(--ink3); }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
input:disabled, select:disabled { background: var(--surface2); color: var(--ink2); }
input::placeholder, textarea::placeholder { color: var(--ink3); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B8B97' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.big-in { height: 56px !important; font: 700 24px var(--head) !important; letter-spacing: -.02em; }
.sel-sm { width: auto !important; height: 38px !important; font-size: 13.5px !important; }
.searchbox { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding-block: 0 0; padding-inline: 12px 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); flex: 1 1 260px; max-width: 380px; transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--orange); box-shadow: var(--ring); }
.searchbox .icon { color: var(--ink3); }
.searchbox input { border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 100% !important; background: transparent !important; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface3); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: all .15s; }
.seg button small { font-size: 11px; color: var(--ink3); font-weight: 600; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.tabs-row { margin: 4px 0 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); }
.tabs::-webkit-scrollbar { display: none; }
.tabs::after { content: ''; flex: 0 0 18px; }
@media (min-width: 1100px) { .tabs { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; } .tabs::after { display: none; } }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font-weight: 600; color: var(--ink3); white-space: nowrap; transition: color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; inset-inline-start: 10px; inset-inline-end: 10px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--grad); }
.tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: var(--surface3); color: var(--ink2); }
.tabs button.on .tab-n { background: var(--grad-soft); color: var(--accent-t); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface3); border: 1px solid var(--line2); transition: background .2s; flex: none; }
.switch i { position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch.on { background: var(--grad-btn); border-color: transparent; }
.switch.on i { transform: translateX(calc(18px * var(--dx))); }
.switch:disabled { opacity: .55; }

/* ---------- pills, deltas, tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface3); color: var(--ink2); }
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); } .pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.brand { background: var(--grad-soft); color: var(--accent-t); box-shadow: 0 0 0 1px rgba(244,122,32,.2) inset; }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding-block: 0 0; padding-inline: 5px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { background: var(--good-bg); color: var(--good); } .delta.down { background: var(--bad-bg); color: var(--bad); } .delta.flat { background: var(--surface3); color: var(--ink2); }
.tag { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 7px; background: var(--surface3); font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: capitalize; }
.code { display: inline-block; min-width: 42px; font-family: var(--mono); font-size: 11.5px; color: var(--ink3); margin-inline-end: 8px; }
code.cmd { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface3); color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.check.ok { background: var(--good-bg); color: var(--good); } .check.no { background: var(--bad-bg); color: var(--bad); }
.check.big { padding: 8px 14px; font-size: 13.5px; }

/* ---------- avatar ---------- */
.avatar { --h: 20; flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; letter-spacing: .02em; background: hsl(var(--h) 80% 93%); color: hsl(var(--h) 55% 32%); box-shadow: 0 0 0 1px hsl(var(--h) 50% 50% / .12) inset; }
[data-theme="dark"] .avatar { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 85% 80%); }
.avatar.ghost { background: var(--surface3); color: var(--ink3); box-shadow: none; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: start; }
.who b { font-weight: 600; }
.em-dot { --h: 20; flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: hsl(var(--h) 90% 95%); box-shadow: 0 0 0 1px hsl(var(--h) 60% 50% / .14) inset; }
.em-dot.lg { width: 44px; height: 44px; font-size: 23px; border-radius: 14px; }
[data-theme="dark"] .em-dot { background: hsl(var(--h) 40% 15%); }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding-block: 12px 12px; padding-inline: 12px 16px; border-radius: 14px; background: #141416; color: #fff; box-shadow: var(--sh-pop); font-weight: 550; animation: toastIn .35s var(--ease) both; border: 1px solid rgba(255,255,255,.08); }
[data-theme="dark"] .toast { background: #26262B; }
.toast-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(52,211,153,.18); color: #34D399; flex: none; }
.toast.bad .toast-ic { background: rgba(255,107,112,.2); color: #FF6B70; }
.toast.info .toast-ic { background: rgba(134,166,255,.2); color: #86A6FF; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,14,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease both; overflow-y: auto; }
[data-theme="dark"] .overlay { background: rgba(0,0,0,.62); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-3); animation: pop .28s var(--ease) both; overflow: hidden; }
.modal.wide { width: min(820px, 100%); } .modal.small { width: min(420px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-block: 20px 4px; padding-inline: 24px 20px; }
.modal-head h3 { font-size: 19px; padding-top: 6px; }
.modal-head p { margin-top: 4px; }
.modal-body { padding: 16px 24px 24px; overflow-y: auto; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); }
.overlay.side { place-items: stretch end; padding: 10px; }
.modal.drawer { width: min(480px, 100%); max-height: none; height: 100%; border-radius: 22px; animation: slideL .34s var(--ease) both; }
@keyframes slideL { from { transform: translateX(calc(40px * var(--dx))); opacity: 0; } }
.confirm { display: flex; gap: 14px; align-items: flex-start; }
.confirm-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.confirm-ic.bad { background: var(--bad-bg); color: var(--bad); }
.scrim { display: none; }

/* ---------- banners, errors ---------- */
.banners { display: grid; gap: 8px; padding: 0 32px; }
.banners:empty { display: none; }
.banners .banner:first-child { margin-top: 14px; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 550; background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 20%, transparent); }
.banner span { flex: 1 1 200px; }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 20%, transparent); }
.banner.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.banner .btn { color: var(--ink); }
.errorbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--bad-bg); color: var(--bad); font-weight: 550; font-size: 13.5px; }
.errorbox span { flex: 1 1 200px; }

/* ---------- empty, skeleton ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 20px; }
.empty h4 { font-size: 16px; margin-top: 10px; }
.empty p { color: var(--ink2); max-width: 360px; font-size: 13.5px; }
.empty-act { margin-top: 12px; }
.empty-art { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.ea-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-strong); }
.ea-ring.r2 { inset: 12px; border: 0; background: var(--grad-soft); }
.empty-ic { position: relative; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--orange); box-shadow: var(--sh-2), 0 0 0 1px var(--line); transform: rotate(-6deg); }
.skel { background: linear-gradient(90deg, var(--surface3) 0%, var(--surface2) 40%, var(--surface3) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel-list { padding: 6px 0; }
.skel-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.skel-row:last-child { border-bottom: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); background: var(--bg); }
.login-art { position: relative; overflow: hidden; background: #0B0B0C; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; isolation: isolate; }
.la-glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; }
.la-glow.g1 { width: 620px; height: 620px; inset-inline-start: -160px; bottom: -260px; background: radial-gradient(circle, rgba(227,36,43,.75), rgba(227,36,43,0) 70%); animation: drift 14s ease-in-out infinite alternate; }
.la-glow.g2 { width: 520px; height: 520px; inset-inline-end: -140px; top: -160px; background: radial-gradient(circle, rgba(253,185,19,.5), rgba(244,122,32,.25) 45%, rgba(244,122,32,0) 72%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.08); } }
.la-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 40% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 40% 50%, #000 20%, transparent 75%); }
.la-top { display: flex; align-items: center; gap: 12px; font: 700 16px var(--head); letter-spacing: -.01em; }
.la-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.la-mark img { width: 28px; height: 28px; }
.la-copy h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.la-copy h2 .grad-t { font-size: .86em; white-space: nowrap; } /* keeps "With Oasis AI Business Analyst." on one line */
.la-copy p { margin-top: 18px; max-width: 460px; color: rgba(255,255,255,.66); font-size: 16px; }
.la-cards { position: relative; min-height: 210px; max-width: 560px; }
.la-cards { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-content: start; }
/* 19 Nov 2026: in a narrow sign-in panel (1024 px screens) the floating cards overlapped; there they sit in a tidy grid instead */
@container (max-width: 520px) {
  .la-cards .la-card { position: relative; inset: auto; width: auto; animation: none; }
  .la-cards .la-card.c1 { grid-column: 1; grid-row: 1; } .la-cards .la-card.c3 { grid-column: 2; grid-row: 1; }
  .la-cards .la-card.c2 { display: none; } /* the third card does not fit a 1024 px screen's panel without covering the footer */
  .la-cards .la-up { display: block; margin-inline-start: 0; margin-top: 4px; }
}
.la-card { position: absolute; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); animation: floaty 6s ease-in-out infinite; }
.la-card small { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; display: block; }
.la-card b { font: 800 26px var(--head); letter-spacing: -.02em; }
.la-card.c1 { inset-inline-start: 0; top: 0; width: 230px; }
.la-card.c1 svg { width: 100%; height: 34px; margin-top: 6px; }
.la-up { margin-inline-start: 8px; font-size: 12px; font-weight: 700; color: #34D399; }
.la-card.c2 { inset-inline-start: 160px; top: 116px; width: 330px; display: flex; gap: 12px; align-items: flex-start; animation-delay: -2s; }
.la-card.c2 p { font-size: 13.5px; color: rgba(255,255,255,.86); margin-top: 2px; }
.la-orb { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 15px; }
.la-card.c3 { inset-inline-end: 0; top: 20px; width: 128px; text-align: center; animation-delay: -4s; }
.la-ring { width: 72px; height: 72px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#E3242B 0, #F47A20 30%, #FDB913 67%, rgba(255,255,255,.1) 67%); }
.la-ring b { width: 58px; height: 58px; border-radius: 50%; background: #1a1a1d; display: grid; place-items: center; font-size: 20px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.la-foot { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,.62); font-size: 13px; font-weight: 550; }
.la-foot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); margin-inline-end: 8px; vertical-align: 1px; }
.login-side { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(420px, 100%); display: grid; gap: 14px; }
.login-card.center { justify-items: center; text-align: center; padding: 32px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); }
.login-card h1 { font-size: 32px; margin-top: 18px; }
.login-card > .muted { margin-bottom: 8px; }
.logo { display: inline-block; } .logo img { height: 76px; width: auto; display: block; }
@media (max-width: 480px) { .logo img { height: 64px; } }
.logo-d { display: none !important; } [data-theme="dark"] .logo-l { display: none !important; } [data-theme="dark"] .logo-d { display: block !important; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 12.5px; font-weight: 600; margin: 8px 0 2px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.demo-row { display: grid; gap: 8px; }
.demo-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); text-align: start; transition: all .18s; box-shadow: var(--sh-1); }
.demo-btn:hover:not(:disabled) { border-color: rgba(244,122,32,.5); transform: translateY(-1px); box-shadow: var(--sh-2); }
.demo-btn > .icon { color: var(--ink3); }
.demo-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-t); flex: none; }
.demo-t { flex: 1; display: grid; } .demo-t small { color: var(--ink3); font-size: 12.5px; }
.login-legal { text-align: center; margin-top: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .3s var(--ease); }
.shell.rail { grid-template-columns: var(--rail) minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-tint); border-inline-end: 1px solid var(--line); padding: 14px 12px; z-index: 30; overflow: hidden; }
[data-theme="dark"] .side { background: #0C0C0E; }
.side-top { display: flex; align-items: center; gap: 6px; padding: 2px 2px 14px; }
.biz { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.biz-mark { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #0E0E11; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
[data-theme="dark"] .biz-mark { background: #1E1E22; }
.biz-mark img { width: 28px; height: 28px; }
.biz-t { min-width: 0; display: grid; }
.biz-t b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.biz-t small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.plan-badge { display: inline-flex; height: 17px; align-items: center; padding: 0 6px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rail-btn { width: 32px; height: 32px; flex: none; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; display: grid; align-content: start; gap: 14px; padding: 4px 0; scrollbar-width: none; }
.nav-g { display: grid; gap: 2px; }
.nav-h { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); padding: 0 12px 6px; white-space: nowrap; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: 11px; color: var(--ink2); text-decoration: none; font-weight: 550; font-size: 14px; transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { background: var(--surface3); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); font-weight: 650; }
.nav a.on::before { content: ''; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 4px; border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 4px; border-end-end-radius: 4px; background: linear-gradient(180deg, #E3242B, #F47A20, #FDB913); box-shadow: 0 0 12px rgba(244,122,32,.6); }
.nav-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.nav a.on .nav-ic { color: var(--accent-t); background: var(--grad-soft); }
.nav-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-k { margin-inline-start: auto; font-size: 11px; color: var(--ink3); border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; line-height: 17px; }
.side-foot { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.side-ai { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; text-align: start; background: var(--grad-soft); border: 1px solid rgba(244,122,32,.2); transition: transform .15s, box-shadow .15s; overflow: hidden; }
.side-ai:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(244,122,32,.5); }
.side-ai .nav-t { display: grid; } .side-ai b { font-size: 13px; } .side-ai small { font-size: 11.5px; color: var(--ink3); }
.usercard-wrap { position: relative; }
.usercard { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; text-align: start; transition: background .15s; }
.usercard:hover { background: var(--surface3); }
.uc-t { flex: 1; min-width: 0; display: grid; }
.uc-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-t small { font-size: 12px; color: var(--ink3); text-transform: capitalize; }
.uc-chev { color: var(--ink3); }
.shell.rail .nav-h, .shell.rail .nav-t, .shell.rail .biz-t, .shell.rail .uc-t, .shell.rail .uc-chev, .shell.rail .nav-k { display: none; }
.shell.rail .side-top { flex-direction: column; gap: 8px; }
.shell.rail .biz { padding: 6px; justify-content: center; border: 0; background: transparent; box-shadow: none; }
.shell.rail .nav a { justify-content: center; padding: 0; }
.shell.rail .nav-g { padding-top: 6px; border-top: 1px solid var(--line); }
.shell.rail .nav-g:first-child { border-top: 0; padding-top: 0; }
.shell.rail .side-ai { justify-content: center; padding: 8px; }
.shell.rail .usercard { justify-content: center; }
.dropdown { position: absolute; z-index: 50; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--sh-pop); animation: pop .18s var(--ease) both; }
.dropdown.up { bottom: calc(100% + 8px); inset-inline-start: 0; inset-inline-end: 0; }
/* the collapsed side rail clips its overflow: the account menu opens beside the rail, fixed to the window (left in English, right in Arabic) */
.shell.rail .dropdown.up { position: fixed; bottom: 12px; inset-inline-start: calc(var(--rail) + 8px); inset-inline-end: auto; width: 230px; }
.dd-row { width: 100%; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 550; text-decoration: none; color: var(--ink); }
.dd-row:hover { background: var(--surface3); }
.dd-row.bad { color: var(--bad); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 25; height: var(--top); display: flex; align-items: center; gap: 14px; padding-block: 0 0; padding-inline: 32px 24px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.m-brand { display: none; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; white-space: nowrap; flex: 0 1 auto; overflow: hidden; }
.crumb b, .crumb .faint { overflow: hidden; text-overflow: ellipsis; }
.crumb .icon { flex: none; }
.crumb .icon { color: var(--ink3); }
.crumb b { font-weight: 650; }
.cmdk { margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 40px; width: min(460px, 40vw); padding-block: 0 0; padding-inline: 14px 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink3); font-size: 13.5px; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.cmdk:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.cmdk span:first-of-type { flex: 1; text-align: start; }
.cmdk-k { display: flex; gap: 3px; }
.tb-r { display: flex; align-items: center; gap: 6px; flex: none; }
.ai-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-block: 0 0; padding-inline: 12px 8px; margin-inline-start: 4px; border-radius: 12px; background: #0E0E11; color: #fff; font-weight: 650; font-size: 13.5px; position: relative; isolation: isolate; box-shadow: 0 6px 18px -8px rgba(227,36,43,.7); transition: transform .15s; }
.ai-btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
[data-theme="dark"] .ai-btn { background: #19191C; }
.ai-btn .icon { color: var(--yellow); }
.ai-btn .kbd { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.75); }
.ai-btn:hover { transform: translateY(-1px); }
.bell { position: relative; }
.badge { position: absolute; top: 3px; inset-inline-end: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.dropdown.notif { inset-inline-end: -60px; top: calc(100% + 10px); width: 380px; padding: 0; overflow: hidden; }
.dd-h { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.dd-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.notif-row { width: 100%; display: flex; gap: 12px; padding: 10px; border-radius: 12px; text-align: start; }
.notif-row:hover { background: var(--surface2); }
.n-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); }
.notif-row.bad .n-ic { background: var(--bad-bg); color: var(--bad); } .notif-row.good .n-ic { background: var(--good-bg); color: var(--good); }
.n-t { display: grid; gap: 2px; } .n-t b { font-size: 13.5px; } .n-t small { color: var(--ink2); font-size: 12.5px; line-height: 1.4; }
.dd-foot { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--accent-t); }
.dd-foot:hover { background: var(--surface2); }
.page { width: 100%; max-width: 1520px; margin: 0 auto; padding: 28px 32px 64px; animation: pageIn .42s var(--ease) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.bottom { display: none; }

/* ---------- page header, stats ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ph-ic { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--accent-t); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); position: relative; }
.ph-ic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-soft); }
.page-head p { margin-top: 3px; font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { position: relative; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; animation: rise-stat .4s var(--ease) both; }
.stat:nth-child(2) { animation-delay: .04s; } .stat:nth-child(3) { animation-delay: .08s; } .stat:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* Stat cards slide in but are never hidden: with opacity from 0 and a delay they left blank gaps on first paint, mainly on slow or backgrounded pages. */
@keyframes rise-stat { from { opacity: .55; transform: translateY(8px); } }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-l { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.stat-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface3); color: var(--ink2); }
.stat-v { margin-top: 8px; font: 750 25px/1.1 var(--head); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-v.lg { font-size: 21px; } .stat-v.xl { font-size: 17px; }
.stat-s { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink3); min-height: 20px; }
.stat.warn .stat-ic { background: var(--warn-bg); color: var(--warn); } .stat.bad .stat-ic { background: var(--bad-bg); color: var(--bad); } .stat.good .stat-ic { background: var(--good-bg); color: var(--good); }
.stat.warn::after, .stat.bad::after, .stat.good::after { content: ''; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; width: 3px; border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 3px; border-end-end-radius: 3px; background: var(--warn); }
.stat.bad::after { background: var(--bad); } .stat.good::after { background: var(--good); }

/* ---------- cards and grid ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 20px; min-width: 0; }
.card.flat { box-shadow: none; background: var(--surface2); }
.card.pad0 { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h.pad { padding: 20px 20px 0; }
.card-sub { color: var(--ink3); font-size: 12.5px; margin-top: 3px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 2px 14px; }
.sec-h h2 { font-size: 19px; }
.bento, .grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; grid-auto-flow: row dense; }
.cell { min-width: 0; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }

/* ---------- tables and lists ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface2); text-align: start; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface2); }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.tbl .num, .tbl th.num { text-align: end; }
.tbl tr.tot td { font-weight: 750; background: var(--surface2); border-top: 1px solid var(--line2); }
.card > .tbl-wrap .tbl th:first-child, .card > .tbl-wrap .tbl td:first-child { padding-inline-start: 20px; }
.card > .tbl-wrap .tbl th:last-child, .card > .tbl-wrap .tbl td:last-child { padding-inline-end: 20px; }
.tbl-note { padding: 12px 20px; color: var(--ink3); font-size: 12.5px; border-top: 1px solid var(--line); }
.list .li { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: start; }
.list .li:last-child { border-bottom: 0; }
.list .li:hover { background: var(--surface2); }
.main-col { flex: 1; min-width: 0; display: grid; } .main-col small { color: var(--ink3); font-size: 12.5px; }
.pay-m { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13.5px; }
.pay-m .icon { color: var(--ink3); }
.bar { height: 6px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); animation: growX .9s var(--ease) both; transform-origin: left;  }
@keyframes growX { from { transform: scaleX(0); } }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart-empty { display: grid; place-items: center; color: var(--ink3); font-size: 13px; border: 1px dashed var(--line2); border-radius: 14px; }
.c-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.c-axis { fill: var(--ink3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.c-line.dash { stroke: var(--ink3); stroke-width: 1.6; stroke-dasharray: .006 .008; animation: fade 1s .6s both; }
.c-line.muted { stroke: var(--ink3); stroke-width: 1.8; }
.draw { stroke-dasharray: 1; stroke-dashoffset: var(--to, 0); animation: draw 1.2s var(--ease) both; }
.draw.slow { animation-duration: 1.6s; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.c-area { animation: fade 1s .2s both; }
.c-cross line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.c-dot { fill: var(--surface); stroke: var(--red); stroke-width: 3; }
.c-dot2 { fill: var(--surface); stroke: var(--ink3); stroke-width: 2; }
.ctip { position: absolute; z-index: 5; transform: translate(-50%, -100%); margin-top: -8px; padding: 10px 12px; min-width: 150px; border-radius: 12px; background: #111114; color: #fff; box-shadow: var(--sh-pop); pointer-events: none; font-size: 12.5px; border: 1px solid rgba(255,255,255,.08); }
[data-theme="dark"] .ctip { background: #26262B; }
.ctip-h { color: rgba(255,255,255,.6); font-weight: 600; margin-bottom: 4px; font-size: 11.5px; }
.ctip-r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ctip-r span { flex: 1; color: rgba(255,255,255,.75); }
.ctip-r b { font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 3px; background: var(--grad); flex: none; }
.sw.s2, .sw.dash { background: repeating-linear-gradient(90deg, var(--ink3) 0 4px, transparent 4px 7px); }
.ctip .sw.s2 { background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 4px, transparent 4px 7px); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.c-bar.grow { transform-box: fill-box; transform-origin: bottom; animation: growY .8s var(--ease) both; transition: opacity .15s; }
@keyframes growY { from { transform: scaleY(0); } }
.spark { width: 100%; } .spark svg { display: block; overflow: visible; }
.donut { position: relative; flex: none; }
.donut svg { display: block; }
.c-track { stroke: var(--surface3); }
.c-seg { animation: seg 1s var(--ease) both; transition: stroke-width .2s; cursor: pointer; }
@keyframes seg { from { stroke-dasharray: 0 2000; } }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-c b { font: 800 22px/1.1 var(--head); letter-spacing: -.03em; }
.donut-c > span { font-size: 11.5px; color: var(--ink3); font-weight: 600; max-width: 110px; }
.gauge { position: relative; margin: 0 auto; }
.gauge svg { display: block; }
.c-tick { stroke: var(--line2); stroke-width: 1.5; stroke-linecap: round; }
.gauge-c { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 34%; display: grid; justify-items: center; }
.gauge-c b { font: 800 54px/1 var(--head); letter-spacing: -.05em; }
.gauge-c > span { margin-top: 4px; font-size: 12px; color: var(--ink3); font-weight: 600; }
.ring { position: relative; flex: none; }
.ring svg { display: block; }
.c-forecast { stroke: rgba(244,122,32,.22); }
[data-theme="dark"] .c-forecast { stroke: rgba(244,122,32,.3); }
.c-marker { fill: var(--surface); stroke: var(--orange); stroke-width: 3; }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c b { font: 800 34px/1 var(--head); letter-spacing: -.04em; }
.ring-c > span { font-size: 11.5px; color: var(--ink3); font-weight: 600; margin-top: 4px; }
.heat-grid { display: grid; gap: 4px; align-items: center; }
.heat-x { font-size: 10.5px; color: var(--ink3); text-align: center; font-variant-numeric: tabular-nums; }
.heat-y { font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.heat-c { --k: 0; aspect-ratio: 1.25; min-height: 18px; border-radius: 6px; background: hsl(calc(46 - var(--k) * 44) var(--heat-s) calc(var(--heat-l0) + var(--k) * var(--heat-dl))); box-shadow: 0 0 0 1px var(--line) inset; transition: transform .12s, box-shadow .12s; animation: fade .5s both; }
.heat-c:hover, .heat-c.on, .heat-c:focus-visible { transform: scale(1.18); box-shadow: 0 0 0 2px var(--ink), 0 4px 10px rgba(0,0,0,.2); z-index: 1; position: relative; outline: none; }
.heat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.heat-tip { font-size: 12.5px; color: var(--ink2); font-weight: 550; min-height: 19px; }
.heat-scale { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink3); }
.heat-scale i { width: 110px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, hsl(46 var(--heat-s) var(--heat-l0)), hsl(36 var(--heat-s) calc(var(--heat-l0) + var(--heat-dl) * .5)), hsl(2 var(--heat-s) calc(var(--heat-l0) + var(--heat-dl)))); box-shadow: 0 0 0 1px var(--line) inset; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); isolation: isolate; }
.hero-mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-mesh i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-mesh .m1 { width: 420px; height: 420px; inset-inline-end: 8%; top: -240px; background: rgba(244,122,32,.45); }
.hero-mesh .m2 { width: 360px; height: 360px; inset-inline-end: -120px; bottom: -220px; background: rgba(227,36,43,.35); }
.hero-mesh .m3 { width: 300px; height: 300px; inset-inline-start: 30%; bottom: -260px; background: rgba(253,185,19,.4); }
[data-theme="dark"] .hero { background: radial-gradient(120% 140% at 100% 0%, #1B1112 0%, #121214 55%); }
[data-theme="dark"] .hero-mesh i { opacity: .38; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink2); padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.eyebrow.light { color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.hero h1 { font-size: clamp(28px, 3vw, 40px); margin-top: 14px; letter-spacing: -.04em; }
.hero-sub { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.qa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.qa-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); font-weight: 650; font-size: 13.5px; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.qa-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.qa-btn .icon { color: var(--ink3); }
.qa-btn.first { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.qa-btn.first .icon { color: #fff; }
.qa-btn.ai .icon { color: var(--orange); }
.brief { position: relative; padding: 20px 22px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh-2); isolation: isolate; }
.brief::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, rgba(227,36,43,.65), rgba(244,122,32,.4) 40%, rgba(253,185,19,.55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; pointer-events: none; }
[data-theme="dark"] .brief { background: rgba(22,22,25,.78); }
.brief-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.brief-h b { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brief-t { font-size: 12px; color: var(--ink3); }
.brief-p { font-size: 15.5px; line-height: 1.6; color: var(--ink); font-weight: 450; min-height: 75px; }
.brief-ask { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--accent-t); }
.brief-ask:hover { gap: 9px; }
.caret { display: inline-block; width: 7px; height: 1.05em; margin-inline-start: 2px; vertical-align: -2px; border-radius: 2px; background: var(--orange); animation: blink .9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cp-orb { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 6px 16px -6px rgba(227,36,43,.7), 0 1px 0 rgba(255,255,255,.3) inset; }
.cp-orb.sm { width: 26px; height: 26px; border-radius: 8px; }
.cp-orb.big { width: 56px; height: 56px; border-radius: 18px; }
.cp-orb.huge { width: 72px; height: 72px; border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(227,36,43,.7); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { position: relative; padding: 18px 18px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; animation: rise .55s var(--ease) both; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.kpi.lead { background: #0E0E11; color: #fff; border-color: transparent; }
.kpi.lead::before { content: ''; position: absolute; width: 260px; height: 260px; inset-inline-end: -110px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,32,.5), transparent 70%); }
[data-theme="dark"] .kpi.lead { background: linear-gradient(160deg, #2A1313, #161618 60%); box-shadow: 0 0 0 1px rgba(227,36,43,.25) inset, var(--sh-2); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.kpi-l { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.kpi.lead .kpi-l { color: rgba(255,255,255,.7); }
.kpi-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface3); color: var(--ink2); }
.kpi.lead .kpi-ic { background: rgba(255,255,255,.1); color: var(--yellow); }
.kpi-v { position: relative; margin-top: 10px; font: 800 27px/1.1 var(--head); letter-spacing: -.035em; white-space: nowrap; }
.kpi-s { position: relative; margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink3); min-height: 22px; flex-wrap: wrap; }
.kpi.lead .kpi-s { color: rgba(255,255,255,.6); }
.kpi-spark { margin: 10px -4px 0; margin-top: auto; padding-top: 10px; }
.kpi-foot { margin-top: auto; padding-top: 14px; }
.trend-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); }
.trend-nums > div { display: grid; gap: 2px; min-width: 0; }
.trend-nums small { font-size: 11.5px; color: var(--ink3); font-weight: 600; }
.trend-nums b { font: 750 17px var(--head); letter-spacing: -.02em; white-space: nowrap; }
.health-g { display: grid; place-items: center; margin: -4px 0 6px; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.part { display: grid; gap: 5px; min-width: 0; }
.part-h { display: flex; justify-content: space-between; font-size: 13px; }
.part-h small { color: var(--ink3); }
.part small.faint { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-in { display: flex; align-items: center; gap: 24px; }
.goal-t { display: grid; gap: 12px; flex: 1; min-width: 0; }
.gl { display: grid; } .gl small { font-size: 12px; color: var(--ink3); font-weight: 600; display: flex; align-items: center; gap: 6px; } .gl b { font: 750 19px var(--head); letter-spacing: -.02em; }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--orange); background: var(--surface); }
.goal-words { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); font-size: 14px; color: var(--ink); }
.time-bar { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.tb-track { flex: 1; height: 4px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.tb-track i { display: block; height: 100%; background: var(--ink3); border-radius: inherit; animation: growX 1s var(--ease) both; transform-origin: left;  }
.mix { display: flex; align-items: center; gap: 22px; }
.mix-l { flex: 1; display: grid; gap: 10px; min-width: 0; }
.mix-r { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.mix-r i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mix-r span { flex: 1; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan { display: grid; gap: 16px; }
.chan-r { display: flex; gap: 12px; align-items: flex-start; }
.chan-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface3); color: var(--ink2); }
.chan-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 6px; }
.chan-h b { font-weight: 600; }
.chan .bar { height: 8px; }
.chan-r small { display: block; margin-top: 5px; font-size: 11.5px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(10,138,92,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.feed-l { display: grid; gap: 2px; margin: -6px -8px -8px; }
.feed-r { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; text-decoration: none; animation: rise .5s var(--ease) both; }
.feed-r:hover { background: var(--surface2); }
.feed-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }
.feed-ic.cash { background: var(--good-bg); color: var(--good); } .feed-ic.credit { background: var(--warn-bg); color: var(--warn); }
.feed-t { flex: 1; min-width: 0; display: grid; }
.feed-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-t small { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-v { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.att { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; animation: rise .5s var(--ease) both; transition: transform .2s, box-shadow .2s; }
.att:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.att::before { content: ''; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0; height: 3px; background: var(--warn); }
.att.bad::before { background: linear-gradient(90deg, var(--red), var(--orange)); } .att.good::before { background: var(--good); }
.att-top { display: flex; align-items: center; gap: 10px; }
.att-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); }
.att.bad .att-ic, .att-ic.bad { background: var(--bad-bg); color: var(--bad); } .att.good .att-ic { background: var(--good-bg); color: var(--good); }
.att-ic.brand { background: var(--grad-soft); color: var(--accent-t); }
.att-w { font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.att.bad .att-w { color: var(--bad); } .att.good .att-w { color: var(--good); }
.att-title { font: 700 15.5px/1.3 var(--head); letter-spacing: -.015em; }
.att-text { font-size: 13.5px; color: var(--ink2); flex: 1; }
.att-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.upsell { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.upsell > div { flex: 1 1 260px; }

/* ---------- copilot ---------- */
.copilot-wrap { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; background: rgba(10,10,14,.18); animation: fade .2s both; }
[data-theme="dark"] .copilot-wrap { background: rgba(0,0,0,.4); }
.copilot { width: min(460px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--surface); border-inline-start: 1px solid var(--line2); box-shadow: -30px 0 80px -20px rgba(0,0,0,.35); animation: slideL .36s var(--ease) both; position: relative; isolation: isolate; }
.copilot::before { content: ''; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0; height: 240px; background: radial-gradient(80% 100% at 80% 0%, rgba(244,122,32,.14), transparent 70%); z-index: -1; pointer-events: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 16px 14px; padding-inline: 20px 16px; border-bottom: 1px solid var(--line); }
.cp-id { display: flex; align-items: center; gap: 12px; }
.cp-id b { font: 700 15.5px var(--head); display: block; }
.cp-id small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink3); }
.cp-body { flex: 1; overflow-y: auto; padding: 18px 18px 8px; scroll-behavior: smooth; }
.cp-hello { text-align: center; padding: 40px 12px 20px; display: grid; justify-items: center; gap: 8px; }
.cp-hello h3 { font-size: 21px; margin-top: 10px; }
.cp-hello p { max-width: 320px; font-size: 13.5px; }
.cp-hello-art { position: relative; }
.cp-hello-art::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,32,.25), transparent 70%); animation: breathe 3s ease-in-out infinite; }
.cp-foot { padding: 10px 16px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.cp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cp-chips .chip { flex: none; }
.cp-hint { display: flex; gap: 14px; justify-content: center; font-size: 11.5px; color: var(--ink3); flex-wrap: wrap; }
.cp-hint span { display: inline-flex; align-items: center; gap: 5px; }
.composer { display: flex; align-items: center; gap: 8px; padding-block: 6px 6px; padding-inline: 12px 6px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surface); box-shadow: var(--sh-2); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--orange); box-shadow: var(--ring), var(--sh-2); }
.comp-ic { color: var(--orange); display: grid; }
.composer input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 4px !important; height: 40px !important; font-size: 15px !important; }
.send-btn { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; transition: transform .15s, opacity .15s; }
.send-btn:disabled { background: var(--surface3); color: var(--ink3); }
.send-btn:not(:disabled):hover { transform: scale(1.05); }
.thread { display: grid; gap: 18px; }
.turn { display: grid; gap: 10px; animation: rise .35s var(--ease) both; }
.bubble-q { justify-self: end; max-width: 85%; padding: 10px 14px; border-start-start-radius: 18px; border-start-end-radius: 18px; border-end-end-radius: 6px; border-end-start-radius: 18px; background: #0E0E11; color: #fff; font-weight: 550; font-size: 14px; scroll-margin-top: 90px; }
[data-theme="dark"] .bubble-q { background: #2A2A30; }
.answer { padding: 16px; border-start-start-radius: 6px; border-start-end-radius: 18px; border-end-end-radius: 18px; border-end-start-radius: 18px; background: var(--surface2); border: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.answer.thinking { display: flex; align-items: center; gap: 10px; width: fit-content; }
.a-head { display: flex; align-items: center; gap: 8px; }
.a-ic { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-t); }
.a-ic.spin .icon { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-title { font: 700 14.5px var(--head); letter-spacing: -.01em; flex: 1; }
.a-per { font-size: 11.5px; color: var(--ink3); font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface3); }
.a-valrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-value { font: 800 30px/1.1 var(--head); letter-spacing: -.035em; }
.answer.compact .a-value { font-size: 26px; }
.a-text { font-size: 14px; line-height: 1.6; color: var(--ink); }
.a-more { display: grid; gap: 10px; }
.a-more.in > * { animation: rise .45s var(--ease) both; }
.a-chart { padding: 10px 6px 2px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.a-tbl { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.a-tbl .tbl { font-size: 13px; } .a-tbl .tbl th, .a-tbl .tbl td { padding: 8px 12px; }
.a-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }
.src-chip { padding: 2px 8px; border-radius: 6px; background: var(--surface3); color: var(--ink2); font-size: 11.5px; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: bounce 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.typing.sm i { width: 5px; height: 5px; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- ask page ---------- */
.ask-page { max-width: 880px; margin: 0 auto; padding-bottom: 150px; }
.ask-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 40px 0 10px; }
.ask-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; letter-spacing: -.04em; }
.ask-hero > p { max-width: 520px; font-size: 15px; }
.ask-topics { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 26px; text-align: start; }
.topic { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); text-align: start; transition: transform .2s, box-shadow .2s, border-color .2s; }
.topic:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: rgba(244,122,32,.35); }
.topic-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-t); }
.topic b { font-size: 14px; } .topic span:last-child { font-size: 13px; color: var(--ink3); }
.ask-thread { padding-top: 6px; }
.ask-dock { position: fixed; z-index: 20; inset-inline-start: var(--side); inset-inline-end: 0; bottom: 0; padding: 20px 32px 22px; background: linear-gradient(to top, var(--bg) 60%, transparent); pointer-events: none; }
.shell.rail .ask-dock { inset-inline-start: var(--rail); }
.ask-dock-in { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; pointer-events: auto; }

/* ---------- palette ---------- */
.pal-overlay { z-index: 80; place-items: start center; padding-top: 12vh; }
.palette { width: min(640px, 100%); border-radius: 22px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--sh-pop), 0 0 0 6px color-mix(in srgb, var(--surface) 30%, transparent); overflow: hidden; animation: pop .22s var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--line); }
.pal-in .icon { color: var(--ink3); }
.pal-in input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; height: 100% !important; font-size: 16.5px !important; }
.pal-list { max-height: min(420px, 55vh); overflow-y: auto; padding: 6px 8px 8px; }
.pal-sec + .pal-sec { margin-top: 4px; }
.pal-h { padding: 10px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.pal-row { width: 100%; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 10px; border-radius: 12px; text-align: start; }
.pal-row.sel { background: var(--surface3); }
.pal-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); flex: none; }
.pal-row.sel .pal-ic { color: var(--accent-t); background: var(--grad-soft); border-color: rgba(244,122,32,.25); }
.pal-row.ai .pal-ic { background: var(--grad); color: #fff; border-color: transparent; }
.pal-t { flex: 1; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row small { color: var(--ink3); font-size: 12.5px; white-space: nowrap; }
.pal-go { color: var(--ink3); }
.pal-none { padding: 24px; text-align: center; color: var(--ink3); font-size: 13.5px; }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface2); font-size: 12px; color: var(--ink3); }
.pal-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- till ---------- */
.till-page { margin: -8px 0 0; }
.till-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.till-strip .ts-close { height: 100%; border-radius: 16px; justify-content: center; }
.zrep .r small { font-size: 11px; }
.ts { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.ts-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface3); color: var(--ink2); }
.ts small { display: block; font-size: 11.5px; color: var(--ink3); font-weight: 600; }
.ts b { font: 750 18px var(--head); letter-spacing: -.02em; white-space: nowrap; }
.till { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.till-left { min-width: 0; }
.till-tools { display: flex; gap: 10px; margin-bottom: 12px; }
.till-tools .searchbox { max-width: none; height: 48px; border-radius: 14px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.cat { --h: 20; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line2); font-weight: 650; font-size: 13.5px; color: var(--ink2); transition: all .15s; }
.cat i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 80% 52%); }
.cat small { font-size: 11px; color: var(--ink3); font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--surface3); }
.cat:hover { color: var(--ink); border-color: var(--line-strong); }
.cat.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cat.on small { background: rgba(255,255,255,.18); color: inherit; }
[data-theme="dark"] .cat.on small { background: rgba(0,0,0,.15); }
.cats.tight .cat { height: 32px; padding: 0 12px; font-size: 12.5px; }
.fav-row { margin-bottom: 14px; }
.fav-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-bottom: 8px; }
.fav-h .icon { color: var(--yellow); fill: var(--yellow); }
.fav-h .faint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.favs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.favs .tile.fav { flex: 0 0 186px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.tile { --h: 20; position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 18px 12px 14px; min-height: 168px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); text-align: center; transition: transform .12s, box-shadow .18s, border-color .18s; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; }
.tile::before { content: ''; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0; height: 3px; background: hsl(var(--h) 80% 55%); opacity: .85; }
.tile:hover { box-shadow: var(--sh-3); border-color: hsl(var(--h) 70% 55% / .35); transform: translateY(-2px); }
.tile:active { transform: scale(.97); }
.tile.in { border-color: hsl(var(--h) 70% 52% / .55); box-shadow: 0 0 0 1px hsl(var(--h) 70% 52% / .45) inset, var(--sh-2); }
.tile.pulse { animation: tilePulse .45s var(--ease); }
.tile.pulse .t-em { animation: emPop .45s var(--ease); }
@keyframes tilePulse { 30% { transform: scale(.95); } 70% { transform: scale(1.03); } }
@keyframes emPop { 40% { transform: scale(1.18) rotate(-6deg); } }
.t-em { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 33px; background: radial-gradient(circle at 35% 30%, hsl(var(--h) 100% 97%), hsl(var(--h) 85% 91%)); box-shadow: 0 0 0 1px hsl(var(--h) 60% 50% / .12) inset, 0 6px 14px -8px hsl(var(--h) 70% 40% / .5); }
[data-theme="dark"] .t-em { background: radial-gradient(circle at 35% 30%, hsl(var(--h) 45% 24%), hsl(var(--h) 40% 14%)); }
.t-nm { font-weight: 650; font-size: 13.5px; line-height: 1.3; min-height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-pr { font: 750 15px var(--head); letter-spacing: -.01em; color: var(--ink); }
.t-qty { position: absolute; top: 10px; inset-inline-end: 10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--glow); animation: pop .3s var(--ease); }
.t-star { position: absolute; top: 8px; inset-inline-start: 8px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--ink3); opacity: 0; transition: opacity .15s, color .15s; }
.tile:hover .t-star, .t-star.on { opacity: 1; }
.t-star:hover { background: var(--surface3); color: var(--warn); }
.t-star.on { color: var(--yellow); } .t-star.on .icon { fill: var(--yellow); }
.tile.fav { min-height: 0; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: start; padding: 10px 12px; gap: 2px 10px; border-radius: 16px; }
.tile.fav .t-em { grid-row: span 2; width: 42px; height: 42px; font-size: 22px; }
.tile.fav .t-nm { min-height: 0; -webkit-line-clamp: 1; font-size: 13px; }
.tile.fav .t-pr { font-size: 13px; color: var(--ink2); }
.tile.fav .t-qty { top: 6px; inset-inline-end: 6px; min-width: 22px; height: 22px; font-size: 11px; }
.skel-tile { box-shadow: none; }
.till-cart { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding-block: 18px 12px; padding-inline: 20px 18px; }
.cart-head h3 { font-size: 18px; }
.cart-close { display: none !important; }
.cart-cust { display: flex; gap: 8px; padding: 0 18px 12px; }
.cust-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cust-pick.grow { flex: 1; }
.cust-sel { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.cust-sel > b, .cust-sel > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cust-sel .avatar { flex: none; width: 24px; height: 24px; }
.cust-sel:hover { background: var(--surface2); }
.cust-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); }
.cust-list [role=listbox] { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.cust-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.cust-row:hover, .cust-row.on { background: var(--surface3); }
.cust-note { padding: 8px 10px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 10px; min-height: 120px; border-top: 1px solid var(--line); }
.cart-lines .empty { padding: 28px 10px; }
.cline { --h: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 14px; cursor: pointer; animation: rise .3s var(--ease) both; transition: background .15s; }
.cline:hover { background: var(--surface2); }
.cline.sel { background: var(--grad-soft); box-shadow: 0 0 0 1px rgba(244,122,32,.3) inset; }
.cl-em { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: hsl(var(--h) 90% 94%); }
[data-theme="dark"] .cl-em { background: hsl(var(--h) 40% 16%); }
.cl-t { display: grid; min-width: 0; } .cl-t b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cl-t small { font-size: 11.5px; }
.cl-v { font-weight: 750; font-size: 14px; min-width: 76px; text-align: end; }
.qty-ctl { display: inline-flex; align-items: center; height: 32px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); overflow: hidden; }
.qty-ctl button { width: 30px; height: 100%; display: grid; place-items: center; color: var(--ink2); }
.qty-ctl button:hover { background: var(--surface3); color: var(--ink); }
.qty-ctl span { min-width: 26px; text-align: center; font-weight: 750; font-size: 13.5px; }
.qty-ctl.sm { height: 30px; }
.keypad { padding: 10px 14px 12px; border-top: 1px solid var(--line); background: var(--surface2); animation: rise .25s var(--ease) both; }
.kp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); margin-bottom: 8px; }
.kp-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kp { height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font: 700 17px var(--head); display: grid; place-items: center; box-shadow: var(--sh-1); transition: transform .08s, background .12s; }
.kp:hover { background: var(--surface3); } .kp:active { transform: scale(.95); }
.kp.warn { color: var(--bad); font-size: 14px; }
.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: grid; gap: 2px; }
.sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 14px; }
.sumrow.grand { padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line2); font: 800 26px var(--head); letter-spacing: -.03em; }
.sumrow.grand span:first-child { font-size: 15px; font-family: var(--font); font-weight: 650; letter-spacing: 0; color: var(--ink2); }
.charge { justify-content: space-between; padding-block: 0 0; padding-inline: 20px 14px; }
.charge b { font: 800 20px var(--head); letter-spacing: -.02em; margin-inline-start: auto; }
.charge .kbd { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.cart-bar { display: none; }
.pay-total { text-align: center; padding: 6px 0 18px; }
.pay-total small { font-size: 12.5px; color: var(--ink3); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.pay-total b { display: block; font: 800 44px/1.1 var(--head); letter-spacing: -.045em; margin-top: 4px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pm { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--surface); font-weight: 650; font-size: 14px; transition: all .15s; }
.pm-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface3); color: var(--ink2); transition: all .15s; }
.pm:hover { border-color: var(--line-strong); }
.pm.on { border-color: var(--orange); background: var(--grad-soft); box-shadow: 0 0 0 3px rgba(244,122,32,.14); }
.pm.on .pm-ic { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
.tender { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tq { height: 48px; border-radius: 13px; border: 1px solid var(--line2); background: var(--surface); font: 700 15px var(--head); box-shadow: var(--sh-1); transition: all .12s; }
.tq:hover { border-color: var(--line-strong); } .tq:active { transform: scale(.97); }
.tq.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.change-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 650; }
.change-row b { font: 800 24px var(--head); letter-spacing: -.02em; }
.change-row.short { background: var(--warn-bg); color: var(--warn); }
.card-wait { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 10px 0 6px; }
.cw-art { position: relative; width: 120px; height: 84px; display: grid; place-items: center; }
.cw-card { width: 74px; height: 50px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1a1a1d, #3a3a42); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); animation: floaty 2.4s ease-in-out infinite; }
.cw-wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(244,122,32,.4); animation: wave 1.8s ease-out infinite; }
@keyframes wave { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.pay-go { margin-top: 18px; }
.success { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 4px 0 10px; }
.success-mark { width: 84px; height: 84px; margin: 0 auto 6px; }
.success-mark svg { width: 100%; height: 100%; }
.sm-c { fill: var(--good-bg); stroke: var(--good); stroke-width: 2.5; stroke-dasharray: 190; stroke-dashoffset: 190; animation: dash .6s var(--ease) forwards; }
.sm-p { fill: none; stroke: var(--good); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: dash .4s .45s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success-amt { font: 800 38px/1.1 var(--head); letter-spacing: -.04em; }
.change-due { margin-top: 10px; padding: 12px 22px; border-radius: 16px; background: var(--grad-soft); display: grid; }
.change-due small { font-size: 12px; color: var(--ink2); font-weight: 650; }
.change-due b { font: 800 28px var(--head); letter-spacing: -.03em; color: var(--accent-t); }
.rc-wrap { margin-top: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); }
.rc-wrap summary { padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink2); }
.rc-wrap .receipt { margin: 0 12px 12px; }
.receipt { font-family: var(--mono); font-size: 12.5px; padding: 16px; border-radius: 10px; background: #fff; color: #111; box-shadow: var(--sh-1); }
.receipt h4 { text-align: center; font-family: var(--mono); font-size: 14px; }
.receipt .c { text-align: center; color: #555; } .receipt .r { display: flex; justify-content: space-between; gap: 10px; }
.receipt .r.big { font-size: 14px; }
.receipt hr { border: 0; border-top: 1px dashed #bbb; margin: 8px 0; }

/* ---------- drawers and details ---------- */
.drawer-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); }
.big-num { font: 800 30px/1.15 var(--head); letter-spacing: -.035em; margin: 2px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink3); } .kv dd { margin: 0; font-weight: 550; text-transform: none; }
.kv a { color: var(--accent-t); }
.lines { padding: 4px 0; }
.line-r { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.line-r:last-child { border-bottom: 0; }
.line-r .grow { display: grid; } .line-r b { font-weight: 600; font-size: 13.5px; }
.lbl-s { font-size: 12px; font-weight: 650; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.timeline { display: grid; gap: 0; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
.tl { position: relative; display: grid; gap: 2px; padding-block: 0 16px; padding-inline: 18px 0; font-size: 13.5px; }
.tl i { position: absolute; inset-inline-start: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--orange); }
.tl small { color: var(--ink3); font-size: 12px; }
.note-box { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface2); font-size: 13.5px; color: var(--ink2); }
.note-box b { font: 800 20px var(--head); color: var(--ink); }

/* ---------- stock ---------- */
.cover { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.cover .bar { flex: 1; height: 8px; }
.cover .bar i { background: var(--good); }
.cover.warn .bar i { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.cover.bad .bar i { background: linear-gradient(90deg, var(--red), var(--orange)); }
.cover small { font-size: 12px; font-weight: 650; min-width: 64px; color: var(--ink2); }
.cover.bad small { color: var(--bad); } .cover.warn small { color: var(--warn); }
.reorder { background: linear-gradient(135deg, color-mix(in srgb, var(--bad-bg) 70%, var(--surface)), var(--surface) 60%); }
.re-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.re-chip { --h: 20; display: flex; align-items: center; gap: 10px; padding-block: 8px 8px; padding-inline: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--sh-1); }
.re-em { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: hsl(var(--h) 90% 94%); }
[data-theme="dark"] .re-em { background: hsl(var(--h) 40% 16%); }
.re-chip b { font-size: 13.5px; display: block; white-space: nowrap; } .re-chip small { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.rcv { display: grid; gap: 8px; }
.rcv-h, .rcv-r { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, .9fr) minmax(0, 1fr) 100px 38px; gap: 8px; align-items: center; }
.rcv-h { font-size: 11.5px; font-weight: 650; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; padding: 0 2px; }
.rcv .num { text-align: end; font-size: 13.5px; }

/* ---------- crm ---------- */
.stage-tabs { display: none; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { --c: var(--info); border-radius: 20px; background: var(--surface2); border: 1px solid var(--line); padding: 12px; min-height: 300px; transition: background .15s, box-shadow .15s; }
.col.violet { --c: var(--violet); } .col.warn { --c: var(--orange); } .col.good { --c: var(--good); } .col.mute { --c: var(--ink3); }
.col.over { background: var(--grad-soft); box-shadow: 0 0 0 2px var(--orange) inset; }
.col-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 8px; }
.col-t { display: flex; align-items: center; gap: 8px; } .col-t b { font-size: 14px; }
.col-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.col-n { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--ink2); border: 1px solid var(--line); }
.col-sum { font: 750 13.5px var(--head); color: var(--ink2); }
.col-bar { height: 3px; border-radius: 3px; background: var(--line); margin: 0 4px 12px; overflow: hidden; }
.col-bar i { display: block; height: 100%; background: var(--c); border-radius: inherit; animation: growX .9s var(--ease) both; transform-origin: left;  }
.col-body { display: grid; gap: 10px; }
.col-empty { padding: 20px 10px; text-align: center; font-size: 12.5px; color: var(--ink3); border: 1.5px dashed var(--line2); border-radius: 14px; }
.lead { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); text-align: start; cursor: grab; transition: transform .15s, box-shadow .15s; }
.lead:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.lead:active { cursor: grabbing; }
.lead-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lead-h .grow { display: grid; } .lead-h b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lead-h small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-m { display: flex; justify-content: space-between; align-items: center; }
.lead-v { font: 750 16px var(--head); letter-spacing: -.02em; }
.lead-f { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink3); min-width: 0; }
.lead-f .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { --sc: var(--ink3); display: inline-flex; align-items: center; gap: 5px; height: 26px; padding-block: 0 0; padding-inline: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); }
.score.hot { --sc: var(--red); } .score.warm { --sc: var(--orange); } .score.mild { --sc: #C99000; } .score.cold { --sc: var(--info); }
[data-theme="dark"] .score.mild { --sc: var(--yellow); }
.sc-t { fill: none; stroke: color-mix(in srgb, var(--sc) 22%, transparent); stroke-width: 3; }
.sc-v { fill: none; stroke: var(--sc); stroke-width: 3; stroke-linecap: round; }
.stage-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sp { --c: var(--info); height: 34px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--surface); font-weight: 650; font-size: 13px; color: var(--ink2); }
.sp.violet { --c: var(--violet); } .sp.warn { --c: var(--orange); } .sp.good { --c: var(--good); } .sp.mute { --c: var(--ink3); }
.sp:hover:not(:disabled) { border-color: var(--c); color: var(--c); }
.sp.on { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: var(--c); color: var(--c); opacity: 1; }
.spent { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.spent .bar { width: 80px; flex: none; }

/* ---------- accounts ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr); }
.st-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); padding: 14px 0 6px; }
.st-sec:first-child { padding-top: 0; }
.st-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-l { flex: 1; min-width: 0; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bar { width: 70px; flex: none; height: 5px; border-radius: 5px; background: var(--surface3); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; animation: growX .9s var(--ease) both; transform-origin: left;  }
.st-v { min-width: 120px; text-align: end; font-weight: 600; }
.st-row.total { border-bottom: 0; font-weight: 750; }
.st-row.total .st-l { color: var(--ink); }
.st-net { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface2); font-weight: 700; }
.st-net b { font: 800 22px var(--head); letter-spacing: -.02em; }
.bs { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.bs .donut-c b { font-size: 13px; } .bs .donut-c span { font-size: 10.5px; }
.vat-due { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: #0E0E11; color: #fff; font-weight: 650; }
[data-theme="dark"] .vat-due { background: linear-gradient(135deg, #2A1313, #1C1C20); box-shadow: 0 0 0 1px rgba(244,122,32,.25) inset; }
.vat-due b { font: 800 22px var(--head); letter-spacing: -.02em; }
.vat .banner { margin: 0; }
.tamper { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; overflow: hidden; }
.tamper::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,32,.14), transparent 70%); pointer-events: none; }
.tamper.ok::after { background: radial-gradient(circle, color-mix(in srgb, var(--good) 22%, transparent), transparent 70%); }
.tamper > .grow { flex: 1 1 300px; }
.tamper p { margin-top: 4px; font-size: 13.5px; max-width: 620px; }
.tp-ic { width: 54px; height: 54px; flex: none; border-radius: 17px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.tamper.ok .tp-ic { background: linear-gradient(135deg, #0A8A5C, #34D399); box-shadow: 0 8px 24px -8px rgba(10,138,92,.6); }
.tamper.no .tp-ic { background: var(--bad); }
.tp-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.journal .je { border-bottom: 1px solid var(--line); }
.journal .je:last-child { border-bottom: 0; }
.je-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 20px; text-align: start; transition: background .12s; flex-wrap: wrap; }
.je-h:hover { background: var(--surface2); }
.je-h.static:hover { background: none; }
.je-n { min-width: 48px; color: var(--ink3); font-size: 12.5px; display: grid; }
.je-t { flex: 1 1 220px; min-width: 0; display: grid; } .je-t b { font-weight: 600; font-size: 14px; } .je-t small { font-size: 12px; }
.je-v { font-weight: 750; min-width: 110px; text-align: end; }
.je-chev { color: var(--ink3); transition: transform .2s; }
.je.open .je-chev { transform: rotate(180deg); }
.je-b { padding: 0 20px 16px; display: grid; gap: 10px; animation: rise .25s var(--ease) both; }
.je-b .tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.je-b .tbl th, .je-b .tbl td { padding: 9px 14px; }

/* ---------- people ---------- */
.doc { display: grid; gap: 4px; justify-items: start; font-size: 13.5px; }
.leave-t { display: inline-flex; align-items: center; gap: 4px; text-transform: capitalize; }
.run-pay { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.run-pay > .att-ic { align-self: center; width: 44px; height: 44px; border-radius: 14px; }
.run-pay > .grow { flex: 1 1 240px; align-self: center; }
.run-pay .field { width: 200px; }

/* ---------- store ---------- */
.shop-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 30px; border-radius: 26px; background: radial-gradient(90% 120% at 0% 100%, rgba(244,122,32,.12), transparent 60%), var(--surface2); border: 1px solid var(--line); }
.phone { position: relative; width: 360px; height: 680px; border-radius: 46px; background: var(--surface); border: 10px solid #111114; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; display: flex; flex-direction: column; }
[data-theme="dark"] .phone { border-color: #2A2A30; }
.phone-notch { position: absolute; z-index: 5; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #111114; }
.shop-head { padding: 46px 18px 18px; background: linear-gradient(135deg, #E3242B, #F47A20); color: #fff; }
.shop-head h3 { color: #fff; font-size: 17px; }
.sh-brand { display: flex; align-items: center; gap: 12px; }
.sh-brand small { opacity: .85; font-size: 12px; }
.sh-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); font: 800 18px var(--head); }
.shop-body { flex: 1; overflow-y: auto; padding: 14px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-card { --h: 20; display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); text-align: center; }
.shop-card b { font-size: 12.5px; line-height: 1.3; min-height: 32px; }
.sc-em { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: hsl(var(--h) 90% 93%); }
[data-theme="dark"] .sc-em { background: hsl(var(--h) 40% 17%); }
.sc-pr { font: 750 13.5px var(--head); color: var(--accent-t); }
.shop-cart-bar { margin: 0 12px 12px; display: flex; align-items: center; gap: 10px; height: 52px; padding-block: 0 0; padding-inline: 8px 16px; border-radius: 16px; background: #111114; color: #fff; font-weight: 650; }
.shop-cart-bar b { margin-inline-start: auto; }
.cb-n { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-btn); font-weight: 800; }
.shop-sheet { position: absolute; inset: 0; z-index: 4; background: var(--surface); display: flex; flex-direction: column; animation: slideUp .3s var(--ease) both; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
.shop-side { max-width: 420px; }
.shop-side h3 { font-size: 24px; letter-spacing: -.03em; }
.shop-side > p { margin-top: 8px; font-size: 15px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 550; }
.ticks .icon { color: var(--good); }
.online-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.online-c { --h: 20; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.online-c .grow { display: grid; } .online-c b { font-size: 14px; } .online-c small { font-size: 12.5px; }
.online-c.on { border-color: rgba(244,122,32,.35); box-shadow: 0 0 0 1px rgba(244,122,32,.15) inset, var(--sh-2); }

/* ---------- settings ---------- */
.plan-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 30px; border-radius: 24px; background: #0E0E11; color: #fff; isolation: isolate; }
[data-theme="dark"] .plan-hero { background: #151517; box-shadow: 0 0 0 1px var(--line2) inset; }
.ph-mesh { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(244,122,32,.55), transparent 60%), radial-gradient(50% 120% at 70% 100%, rgba(227,36,43,.45), transparent 60%); }
.plan-hero h2 { font-size: 26px; margin-top: 12px; letter-spacing: -.03em; }
.plan-hero p { margin-top: 6px; color: rgba(255,255,255,.72); max-width: 480px; }
.plan-hero > .grow { flex: 1 1 300px; }
.plan-total { display: grid; justify-items: end; text-align: end; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.plan-total small { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.plan-total b { font: 800 40px/1.1 var(--head); letter-spacing: -.04em; }
.plan-total span { font-size: 12.5px; color: rgba(255,255,255,.7); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.app-c { --h: 20; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.app-c:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.app-c.on { border-color: hsl(var(--h) 70% 55% / .35); }
.app-c.on::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(180deg, hsl(var(--h) 90% 60% / .1), transparent); pointer-events: none; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.app-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 85% 58%), hsl(calc(var(--h) - 18) 80% 45%)); box-shadow: 0 10px 20px -10px hsl(var(--h) 80% 40% / .8), 0 1px 0 rgba(255,255,255,.3) inset; }
.app-c:not(.on) .app-ic { filter: grayscale(.85); opacity: .7; }
.app-n { font: 700 17px var(--head); letter-spacing: -.02em; margin-top: 8px; }
.app-d { font-size: 13.5px; color: var(--ink2); }
.app-f { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.app-f span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--surface3); color: var(--ink2); }
.app-p { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.app-p b { font: 800 20px var(--head); letter-spacing: -.02em; }
.app-p small { color: var(--ink3); font-size: 12px; flex: 1; }

/* ---------- mobile sheet ---------- */
.sheet-o { place-items: end center; padding: 0; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: var(--sh-3); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: slideUp .32s var(--ease) both; }
.sheet-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 4px auto 0; }
.sheet-user { display: flex; align-items: center; gap: 12px; }
.sheet-user > div { display: grid; } .sheet-user small { text-transform: capitalize; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sheet-app { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 18px; background: var(--surface2); border: 1px solid var(--line); text-decoration: none; text-align: center; }
.sheet-app { min-width: 0; } .sheet-app b { font-size: 13px; overflow-wrap: anywhere; } .sheet-app small { font-size: 11px; color: var(--ink3); }
.sheet-app.on { border-color: var(--orange); background: var(--grad-soft); }
.sa-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); color: var(--accent-t); box-shadow: var(--sh-1); }

/* ---------- responsive ---------- */
/* a close-matching local face while the web fonts load, so text does not jump when they arrive */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@media (max-width: 1280px) {
  .till { grid-template-columns: minmax(0, 1fr) 360px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-l, .hero-in > * { min-width: 0; }
}
@media (max-width: 1180px) {
  .s8, .s7 { grid-column: span 12; } .s4, .s5 { grid-column: span 6; }
  .grid-12 > .s7, .grid-12 > .s5 { grid-column: span 12; }
  .stat-v { font-size: 21px; }
  .kpi-v { font-size: 23px; }
  .cmdk { width: auto; flex: 1; max-width: 360px; }
  .cmdk span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shop-stage { grid-template-columns: 1fr; justify-items: center; }
  .shop-side { text-align: center; } .ticks { justify-items: center; }
}
@media (max-width: 1024px) {
  .shell, .shell.rail { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .shell .nav-h, .shell .nav-t, .shell .biz-t, .shell .uc-t, .shell .uc-chev, .shell .nav-k { display: none; }
  .shell .side-top { flex-direction: column; gap: 8px; } .shell .rail-btn { display: none; }
  .shell .biz { padding: 6px; border: 0; background: transparent; box-shadow: none; justify-content: center; }
  .shell .nav a { justify-content: center; padding: 0; } .shell .side-ai { justify-content: center; padding: 8px; } .shell .usercard { justify-content: center; }
  .shell .dropdown.up { position: fixed; bottom: 12px; inset-inline-start: calc(var(--rail) + 8px); inset-inline-end: auto; width: 230px; }
  .ask-dock, .shell.rail .ask-dock { inset-inline-start: var(--rail); }
  .till { grid-template-columns: minmax(0, 1fr) 340px; }
  .crumb .faint, .crumb > .icon { display: none; }
}
@media (max-width: 860px) {
  html, body { font-size: 14px; }
  .shell, .shell.rail { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { padding-block: 0 0; padding-inline: 16px 12px; gap: 10px; height: 58px; }
  .m-brand { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #0E0E11; flex: none; }
  [data-theme="dark"] .m-brand { background: #1E1E22; }
  .m-brand img { width: 27px; height: 27px; }
  .crumb { flex: 1; font-size: 16px; } .crumb b { font: 700 17px var(--head); letter-spacing: -.02em; }
  .cmdk, .hide-m, .ai-btn .kbd { display: none !important; }
  .m-only { display: inline-grid !important; }
  .ai-btn { padding: 0 12px; height: 36px; }
  .ai-btn span { display: none; }
  .page { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .banners { padding: 0 16px; }
  .bottom { position: fixed; z-index: 40; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); }
  .bottom a, .bottom > button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 650; color: var(--ink3); text-decoration: none; position: relative; }
  .bottom a.on, .bottom > button.on { color: var(--ink); }
  .bottom a.on::before { content: ''; position: absolute; top: -6px; width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .bottom a.on .icon { color: var(--accent-t); }
  .b-ai { color: var(--ink) !important; }
  .b-orb { width: 50px; height: 50px; margin-top: -22px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: var(--grad-btn); box-shadow: 0 10px 24px -8px rgba(227,36,43,.7), 0 0 0 4px var(--bg); }
  .page-head { margin-bottom: 16px; align-items: flex-start; }
  .ph-ic { display: none; }
  h1 { font-size: 24px; }
  .page-actions { width: 100%; } .page-actions .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; border-radius: 16px; }
  .stat-v { font-size: 20px; } .stat-v.lg { font-size: 17px; } .stat-v.xl { font-size: 14px; } .stat-ic { display: none; }
  .bento, .grid-12 { gap: 14px; }
  .s4, .s5, .s7, .s8, .s12 { grid-column: span 12 !important; }
  .hero { padding: 22px 18px; border-radius: 22px; }
  .hero h1 { margin-top: 12px; }
  .qa { flex-wrap: nowrap; overflow-x: auto; margin: 18px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
  .qa-btn { flex: none; }
  .brief-p { font-size: 14.5px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; border-radius: 18px; }
  .kpi.lead { grid-column: span 2; }
  .kpi-v { font-size: 22px; } .kpi-ic { display: none; }
  .trend-nums { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; border-radius: 18px; }
  .card-h.pad { padding: 16px 16px 0; }
  .goal-in { flex-direction: column; align-items: stretch; } .goal-in .ring { margin: 0 auto; }
  .goal-t { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; } .gl small { justify-content: center; } .gl b { font-size: 15px; }
  .mix { flex-direction: column; } .mix-l { width: 100%; }
  .parts { grid-template-columns: 1fr; }
  .heat-grid { gap: 3px; } .heat-c { border-radius: 4px; min-height: 14px; aspect-ratio: auto; height: 16px; } .heat-x { font-size: 9px; } .heat-y { font-size: 10.5px; }
  .toolbar .searchbox { max-width: none; flex-basis: 100%; }
  .cover { min-width: 0; flex: 1; max-width: 200px; }
  .spent .bar { display: none; }
  .ellip { max-width: 60vw; }
  .board { grid-template-columns: 1fr; overflow: visible; }
  .stage-tabs { display: flex; }
  .col { display: none; min-height: 0; } .col.cur { display: block; }
  .ask-dock, .shell.rail .ask-dock { inset-inline-start: 0; padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); }
  .ask-page { padding-bottom: 170px; }
  .copilot { width: 100%; border-inline-start: 0; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.small, .modal.wide { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; animation: slideUp .3s var(--ease) both; }
  .overlay.side { padding: 0; place-items: end stretch; }
  .modal.drawer { height: auto; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .pal-overlay { place-items: start stretch; padding: 10px; }
  .palette { border-radius: 20px; }
  .dropdown.notif { position: fixed; inset-inline-start: 10px; inset-inline-end: 10px; top: 64px; width: auto; }
  .rcv-h { display: none; }
  .rcv-r { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: 14px; background: var(--surface2); }
  .rcv-r select { grid-column: span 2; } .rcv-r .num { text-align: start; }
  .tender { grid-template-columns: repeat(2, 1fr); }
  .shop-stage { padding: 14px; } .phone { width: 100%; max-width: 360px; height: 620px; }
  .plan-hero { padding: 22px; } .plan-total { justify-items: start; text-align: start; width: 100%; }
  .sec-h h2 { font-size: 17px; }
  /* till on phones: items full width, cart as a bottom sheet */
  .till-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ts { padding: 10px; } .ts-ic { display: none; } .ts b { font-size: 15px; }
  .till { grid-template-columns: minmax(0, 1fr); }
  .items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .tile { min-height: 150px; padding: 14px 10px 12px; } .t-em { width: 56px; height: 56px; font-size: 29px; }
  .t-star { opacity: 1; }
  .favs .tile.fav { flex-basis: 160px; }
  .till-cart { position: fixed; z-index: 55; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; top: auto; max-height: 88vh; border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .32s var(--ease); }
  .till-cart.open { transform: none; }
  .cart-close { display: inline-grid !important; }
  .cart-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.4); animation: fade .2s both; }
  .cart-bar { position: fixed; z-index: 41; inset-inline-start: 12px; inset-inline-end: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; height: 58px; padding-block: 0 0; padding-inline: 10px 18px; border-radius: 18px; background: #0E0E11; color: #fff; font-weight: 650; box-shadow: 0 16px 40px -12px rgba(0,0,0,.55); animation: slideUp .3s var(--ease) both; }
  [data-theme="dark"] .cart-bar { background: #26262B; }
  .cart-bar b { margin-inline-start: auto; font: 800 18px var(--head); }
  .cb-n.bump { animation: bump .4s var(--ease); }
  @keyframes bump { 40% { transform: scale(1.3); } }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 0; padding: 28px 22px 26px; gap: 18px; }
  .la-cards, .la-foot { display: none; }
  .la-copy h2 { font-size: 30px; }
  .la-copy p { font-size: 14px; margin-top: 10px; }
  .login-side { padding: 28px 18px 40px; align-items: start; }
  .login-card h1 { font-size: 26px; margin-top: 8px; }
  .login-logo { display: none; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-v { font-size: 18px; }
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile .t-nm { font-size: 12.5px; }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: var(--to, 0) !important; }
}
/* Receipts, kitchen tickets and Z reports print the same way as the Oasis POS app: just before printing, public/js/app.js copies the slip
   (the div.print-only on screen) into #print-root, a box straight under <body>, and marks the body "printing". The app is hidden, the slip
   is 72 mm wide on the "slip" page with a 2 to 3 mm margin, so it fills an 80 mm roll and the browser has no room for its date, title and
   address lines, with the default print settings. Paper length is left to the printer, so a long bill is one strip. */
#print-root { display: none; }
@page slip { margin: 2mm 3mm; }
@media print {
  body * { visibility: hidden !important; }
  .print-only, .print-only * { visibility: visible !important; }
  .print-only { display: block !important; position: fixed; inset-inline-start: 0; top: 0; width: 80mm; }
  .print-only .receipt { box-shadow: none; }
  body.printing { margin: 0; padding: 0; background: #fff; }
  body.printing > :not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; page: slip; width: 72mm; color: #000; background: #fff; }
  body.printing #print-root, body.printing #print-root * { visibility: visible !important; }
  body.printing #print-root .print-only { position: static; width: auto; }
  body.printing #print-root .receipt { padding: 0; border-radius: 0; background: #fff; color: #000; box-shadow: none; }
  body.printing #print-root .receipt .c { color: #222; }
  body.printing #print-root .receipt hr { border-top-color: #555; }
}


/* ---------- language switch ---------- */
.lang-sw { direction: ltr; display: inline-flex; align-items: center; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface3); border: 1px solid var(--line); flex: none; }
.lang-sw button { min-width: 38px; height: 28px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink2); transition: background .15s, color .15s; line-height: 1; }
.lang-sw button[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--font); font-size: 13.5px; }
.lang-sw button:hover { color: var(--ink); }
.lang-sw button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.login-lang { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.dd-row.lang-row { cursor: default; gap: 10px; }
.dd-row.lang-row .lang-sw { margin-inline-start: auto; }
.sheet .lang-sw { align-self: center; }

/* ---------- Arabic and right-to-left ---------- */
:lang(ar) { --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --head: 'Bricolage Grotesque', 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
:lang(ar) body, :lang(ar) button, :lang(ar) input, :lang(ar) select, :lang(ar) textarea { font-family: var(--font); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-family: 'IBM Plex Sans Arabic', var(--head); letter-spacing: 0; }
/* Arabic letters join, so letter spacing and capitals would break the words */
:lang(ar) *, :lang(ar) *::before, :lang(ar) *::after { letter-spacing: normal !important; text-transform: none !important; }
:lang(ar) .tbl th, :lang(ar) .nav-h, :lang(ar) .st-sec, :lang(ar) .pal-h { font-size: 12.5px; }
:lang(ar) body { line-height: 1.6; }
/* amounts and digits keep Western numerals in the display face and read left to right */
.ltr-num, [dir=rtl] .tnum, [dir=rtl] .num, [dir=rtl] .kbd { unicode-bidi: isolate; }
.ltr-num { direction: ltr; display: inline-block; }
[dir=rtl] .tnum, [dir=rtl] .num { font-family: var(--head), var(--font); }
[dir=rtl] .flip-rtl { transform: scaleX(-1); }
[dir=rtl] { --dx: -1; }
[dir=rtl] select { background-position: left 12px center; }
[dir=rtl] .bar i, [dir=rtl] .tb-track i, [dir=rtl] .col-bar i, [dir=rtl] .st-bar i { transform-origin: right; }
[dir=rtl] .copilot { box-shadow: 30px 0 80px -20px rgba(0,0,0,.35); }
[dir=rtl] .caret { margin-inline-start: 2px; }
[dir=rtl] .je.open .je-chev { transform: rotate(-180deg); }
[dir=rtl] input[type=email], [dir=rtl] input[type=tel], [dir=rtl] input[type=url], [dir=rtl] input[type=number] { text-align: end; }
[dir=rtl] input[type=email]::placeholder { text-align: end; }
[dir=rtl] .answer, [dir=rtl] .bubble-q { text-align: start; }
[dir=rtl] .la-up { unicode-bidi: isolate; }
[dir=rtl] .code { unicode-bidi: isolate; }
[dir=rtl] .toast { padding: 12px 12px 12px 16px; }
@media (min-width: 861px) {
  [dir=rtl] .dropdown.notif { inset-inline-end: auto; inset-inline-start: -60px; }
}
[dir=rtl] .cmdk-k, [dir=rtl] .pal-foot .kbd, [dir=rtl] .ai-btn .kbd { direction: ltr; }
[dir=rtl] .keypad { direction: ltr; }

/* Right-to-left: truncated names (often Latin) keep their start visible; text direction follows the content. */
[dir=rtl] :is(.ellip, .biz-t b, .uc-t b, .feed-t b, .feed-t small, .cl-t b, .lead-h b, .lead-h small, .dx-n b, .fx-bank-t b, .fx-line-t b, .mix-r span, .pal-t, .st-l, .kp-h span) { unicode-bidi: plaintext; text-align: start; }


/* ---------- phones and tablets: installed app, offline, touch ---------- */
.banners { position: sticky; top: 58px; z-index: 30; }
.scan-row { display: flex; gap: 8px; align-items: stretch; } .scan-row > :first-child { flex: 1; min-width: 0; }
.scan-o { background: #000; padding: 0; place-items: stretch; z-index: 80; }
.scan-box { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 100dvh; background: #000; color: #fff; overflow: hidden; }
.scan-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: relative; width: min(78vw, 360px); height: min(46vw, 220px); border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
.scan-hint, .scan-err { position: absolute; inset-inline: 20px; bottom: calc(110px + env(safe-area-inset-bottom)); text-align: center; font-weight: 600; text-shadow: 0 1px 6px #000; }
.scan-err { bottom: 50%; background: rgba(0,0,0,.7); padding: 16px; border-radius: 14px; }
.scan-x { position: absolute; bottom: calc(36px + env(safe-area-inset-bottom)); inset-inline-start: 50%; transform: translateX(-50%); min-width: 140px; height: 48px; }
[dir=rtl] .scan-x { transform: translateX(50%); }
.b-ic { position: relative; display: grid; }
.b-badge { position: absolute; top: -4px; inset-inline-end: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 10px/17px var(--font); font-style: normal; text-align: center; }
.bottom .b-bell.on { color: var(--ink); }
input[type=date], input[type=time], input[type=datetime-local], input[type=month] { min-height: 40px; }

@media (max-width: 860px) {
  .bottom { grid-template-columns: repeat(5, 1fr); align-items: center; }
  .bottom a, .bottom > button { min-height: 52px; align-content: center; }
  .banners { top: 58px; padding: 0 16px; }
  /* the phone's home screen has no room for the keyboard hint */
  .page { overflow-x: clip; }
}
@media (max-width: 860px), (pointer: coarse) {
  .btn, .btn.small { min-height: 44px; }
  .btn.small { padding-inline: 14px; }
  .icon-btn, .icon-btn.bordered { width: 44px; height: 44px; }
  .icon-btn.sm { width: 36px; height: 36px; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { min-height: 44px; font-size: 16px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  .tabs button, .cat, .pm, .tq, .kp, .ln-chip, .tile, .ln-seg button, .seg button, .qa-btn, .chip { min-height: 44px; }
  .pal-row, .dd-row, .notif-row, .nav a { min-height: 44px; }
  .qty-ctl button { width: 40px; height: 40px; }
  .link { padding-block: 10px; }
}
@media (max-width: 640px) {
  /* tables become stacked cards: one card per row, the column name before each value */
  .tbl-wrap:has(.tbl.cards) { overflow-x: visible; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl.cards tbody tr:last-child { border-bottom: 0; }
  .tbl.cards td { border: 0; padding: 4px 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: end; }
  .tbl.cards td::before { content: attr(data-l); color: var(--ink3); font-size: 12px; font-weight: 600; text-align: start; flex: none; }
  .tbl.cards td:first-child { padding-bottom: 8px !important; font-weight: 650; }
  .tbl.cards td:first-child::before, .tbl.cards td.nolabel::before, .tbl.cards td:not([data-l])::before { display: none; }
  .tbl.cards td.nolabel { justify-content: flex-end; }
  /* a left-to-right value (address, code) in an Arabic card keeps its label on the start side like the other rows (19 Nov 2026) */
  [dir="rtl"] .tbl.cards td[dir="ltr"] { flex-direction: row-reverse; }
  .tbl.cards td:empty { display: none; }
  .tbl.cards .who { text-align: start; }
  .tbl.cards tr.tot td { background: transparent; }
  /* modals fill the screen */
  .overlay:not(.scan-o):not(.pal-overlay):not(.sheet-o) { place-items: stretch; }
  .overlay:not(.scan-o):not(.pal-overlay):not(.sheet-o) .modal, .overlay:not(.scan-o):not(.pal-overlay):not(.sheet-o) .modal.small, .overlay:not(.scan-o):not(.pal-overlay):not(.sheet-o) .modal.wide, .overlay.side .modal.drawer { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .modal-head { padding-top: calc(14px + env(safe-area-inset-top)); position: sticky; top: 0; background: var(--surface); z-index: 2; }
  .modal-body { flex: 1; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  /* forms in one column */
  .row.wrap > .field, form .row.gap > .field, form .row.gap-s > .field { flex: 1 1 100%; }
  form .grid2, form .grid3, form .g2, form .g3, .form-grid, .two-col { grid-template-columns: minmax(0, 1fr) !important; }
  .page-head { flex-wrap: wrap; }
  .toolbar { flex-wrap: wrap; } .toolbar > * { flex: 1 1 100%; }
  .toolbar .btn { flex: 1 1 auto; }
}
/* Wide tables that do not become cards (more than 8 columns, merged cells, grids): the table scrolls sideways inside its own box
   and the first column stays in view. Cards tables are left alone. Used on phones and small tablets. */
@media (max-width: 860px) {
  .tbl-wrap:not(:has(.tbl.cards)) { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; max-width: 100%; }
  .tbl-wrap .tbl:not(.cards), .tbl-wrap > table:not(.cards) { width: max-content; min-width: 100%; }
  .tbl-wrap .tbl:not(.cards) :is(th, td):first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  [dir=rtl] .tbl-wrap .tbl:not(.cards) :is(th, td):first-child { box-shadow: -1px 0 0 var(--line); }
  .tbl-wrap .tbl:not(.cards) th:first-child { z-index: 2; background: var(--surface2); }
  .tbl-wrap .tbl:not(.cards) tr.tot td:first-child { background: var(--surface2); }
  .tbl-wrap .tbl:not(.cards) td { max-width: 300px; }
  /* a table that sits outside a .tbl-wrap scrolls by itself */
  :not(.tbl-wrap) > table.tbl:not(.cards), :not(.tbl-wrap) > table.ed-tbl, :not(.tbl-wrap) > table.tx-tbl { display: block; max-width: 100%; overflow-x: auto; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  /* tablets: the cart and calendars use the width, the page keeps a comfortable gutter */
  .page { padding-inline: 20px; }
}
@media (max-width: 860px) {
  .topbar .m-only { display: none !important; } /* Search lives in the bottom bar */
  .topbar .br-switch select { max-width: 104px; }
  .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.pt-m { padding-top: 16px; }

/* sign-in: forgot password and sign-up links, and the reset done message */
.login-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.okbox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 550; font-size: 13.5px; }

/* ---------- inline validation (M12) ---------- */
.field .req { color: var(--bad); font-style: normal; font-weight: 700; }
.field .ferr { font-size: 12px; font-weight: 550; color: var(--bad); }
.ferr { display: block; font-size: 12px; font-weight: 550; color: var(--bad); }
.ferr.pad { padding: 8px 14px; }
.field.has-err input:not([type=checkbox]):not([type=radio]), .field.has-err select, .field.has-err textarea, [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-bg); }
/* A command is running: primary buttons ignore clicks until it finishes (double-submit guard, M13). */
.cmd-busy .btn.primary { pointer-events: none; opacity: .72; cursor: progress; }

/* QA pass 6: a longer Arabic page title (Affiliates) next to the branch picker must not be cut at 390 px */
@media (max-width: 420px) { .topbar { gap: 6px; } .crumb b { font-size: 15px; letter-spacing: 0; } .topbar .br-switch select { max-width: 84px; } .topbar .tb-r { gap: 4px; } }

/* Collapsed side menu (the icon rail, on 861 to 1024 px or when the user collapsed it) opens over the page while the mouse is on it or
   keyboard focus (Tab) is inside it, and closes when the mouse leaves. The page does not move: the grid column stays rail wide. Mouse only. */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .shell.rail .side, .shell .side { transition: width .18s var(--ease), box-shadow .18s; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) { width: var(--side); box-shadow: var(--sh-pop); transition-delay: .12s; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) :is(.nav-h, .nav-t, .nav-k, .uc-chev) { display: block; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) :is(.biz-t, .uc-t, .side-ai .nav-t) { display: grid; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) .side-top { flex-direction: row; gap: 6px; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) .biz { padding: 8px; justify-content: flex-start; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
  .shell.rail .side:is(:hover, :has(:focus-visible)) .nav a { justify-content: flex-start; padding: 0 10px; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) .side-ai { justify-content: flex-start; padding: 10px; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) .usercard { justify-content: flex-start; }
  .shell.rail .side:is(:hover, :has(:focus-visible)) .dropdown.up { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; inset-inline-end: 0; width: auto; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 861px) and (max-width: 1024px) {
  .shell .side:is(:hover, :has(:focus-visible)) { width: var(--side); box-shadow: var(--sh-pop); transition-delay: .12s; }
  .shell .side:is(:hover, :has(:focus-visible)) :is(.nav-h, .nav-t, .nav-k, .uc-chev) { display: block; }
  .shell .side:is(:hover, :has(:focus-visible)) :is(.biz-t, .uc-t, .side-ai .nav-t) { display: grid; }
  .shell .side:is(:hover, :has(:focus-visible)) .side-top { flex-direction: row; gap: 6px; }
  .shell .side:is(:hover, :has(:focus-visible)) .biz { padding: 8px; justify-content: flex-start; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
  .shell .side:is(:hover, :has(:focus-visible)) .nav a { justify-content: flex-start; padding: 0 10px; }
  .shell .side:is(:hover, :has(:focus-visible)) .side-ai { justify-content: flex-start; padding: 10px; }
  .shell .side:is(:hover, :has(:focus-visible)) .usercard { justify-content: flex-start; }
  .shell .side:is(:hover, :has(:focus-visible)) .dropdown.up { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; inset-inline-end: 0; width: auto; }
}
