/* Aura Field Force CRM — navy as the working color, calm orange as the accent.
   The Aura ring keeps its own spectrum and appears only as the brand mark. */
:root {
  --brand: #16294F;          /* navy: buttons, selected states, charts */
  --brand-soft: rgba(22,41,79,.08);
  --brand-line: rgba(22,41,79,.28);
  --brand-ink: #16294F;
  --accent: #E8935C;         /* calm orange: highlights, targets, badges */
  --accent-soft: rgba(232,147,92,.14);
  --accent-ink: #B5612A;
  --side: #13244A; --side2: #1B3060; --side-ink: rgba(255,255,255,.74); --side-line: rgba(255,255,255,.1);
  --bg: #F4F6FA; --surface: #FFFFFF; --surface2: #EEF1F6; --line: #E0E5EE; --line2: #ECEFF4;
  --ink: #101A2E; --ink2: #4A5568; --ink3: #8792A6;
  --ok: #0E7A55; --ok-bg: #E7F5EF; --warn: #A15C07; --warn-bg: #FDF3E3; --bad: #B42318; --bad-bg: #FDECEA; --info: #2F5BB7; --info-bg: #EAF0FB;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(16,26,46,.04), 0 4px 16px rgba(16,26,46,.05);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-wm: "Montserrat", "IBM Plex Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #4467B8; --brand-soft: rgba(110,145,225,.16); --brand-line: rgba(140,170,235,.38); --brand-ink: #A9C0F0;
  --accent: #F0A374; --accent-soft: rgba(240,163,116,.16); --accent-ink: #F4B48C;
  --side: #0C1630; --side2: #15244A; --side-ink: rgba(255,255,255,.7); --side-line: rgba(255,255,255,.08);
  --bg: #0B1120; --surface: #121A2C; --surface2: #18223A; --line: #243050; --line2: #1C2740; --ink: #EEF2F8; --ink2: #B6C0D2; --ink3: #7C88A0;
  --ok: #4CC793; --ok-bg: rgba(76,199,147,.12); --warn: #F2B35B; --warn-bg: rgba(242,179,91,.12); --bad: #F97066; --bad-bg: rgba(249,112,102,.12); --info: #8FB0F5; --info-bg: rgba(143,176,245,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark; } }
:root[data-theme="dark"] {
  --brand: #4467B8; --brand-soft: rgba(110,145,225,.16); --brand-line: rgba(140,170,235,.38); --brand-ink: #A9C0F0;
  --accent: #F0A374; --accent-soft: rgba(240,163,116,.16); --accent-ink: #F4B48C;
  --side: #0C1630; --side2: #15244A; --side-ink: rgba(255,255,255,.7); --side-line: rgba(255,255,255,.08);
  --bg: #0B1120; --surface: #121A2C; --surface2: #18223A; --line: #243050; --line2: #1C2740; --ink: #EEF2F8; --ink2: #B6C0D2; --ink3: #7C88A0;
  --ok: #4CC793; --ok-bg: rgba(76,199,147,.12); --warn: #F2B35B; --warn-bg: rgba(242,179,91,.12); --bad: #F97066; --bad-bg: rgba(249,112,102,.12); --info: #8FB0F5; --info-bg: rgba(143,176,245,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-family: var(--font-ar); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
h3.sub { margin: 18px 0 8px; color: var(--ink2); }
h2.sec { margin: 0 0 10px; }
p { margin: 6px 0; }
small { color: var(--ink3); font-size: 12.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
.muted { color: var(--ink2); } .small { font-size: 13px; } .grow { flex: 1; min-width: 0; }
.ltr { direction: ltr; unicode-bidi: plaintext; }
[dir="rtl"] .dirflip { transform: scaleX(-1); }
.okt { color: var(--ok); font-weight: 600; } .badt { color: var(--bad); font-weight: 600; }
.pad { padding: 14px 18px; } .center { display: grid; place-items: center; min-height: 40vh; gap: 10px; text-align: center; }
.center.pad { min-height: 0; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; } .row.gap { gap: 12px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 2px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: var(--surface); color: var(--brand-ink); border-color: var(--brand-line); box-shadow: none; }
.btn.sec:hover:not(:disabled) { background: var(--brand-soft); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink2); box-shadow: none; }
.btn.danger { background: var(--bad); } .danger-t { color: var(--bad) !important; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn.full { width: 100%; } .btn.light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }
.ghost { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--ink2); border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.ghost:hover { background: var(--surface2); color: var(--ink); } .ghost.icon { width: 36px; padding: 0; justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand-ink); font-weight: 600; cursor: pointer; padding: 4px 0; font-size: 13.5px; }
.link.back { margin-bottom: 8px; color: var(--ink2); }
.seg { display: inline-flex; background: var(--surface2); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 8px; cursor: pointer; color: var(--ink2); font-weight: 550; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.seg.sm button { padding: 5px 10px; font-size: 13px; }

/* forms */
.form { display: grid; gap: 14px; } .form.two { grid-template-columns: 1fr 1fr; } .form.three { grid-template-columns: repeat(3, 1fr); }
.span2 { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; } .fld > span { font-size: 13px; font-weight: 600; color: var(--ink2); }
input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=color] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 4px; }
input.code { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.chk input { width: 16px; height: 16px; accent-color: var(--brand); }
.search { position: relative; display: flex; align-items: center; flex: 1; min-width: 200px; }
.search .ic { position: absolute; inset-inline-start: 12px; color: var(--ink3); }
.search input { padding-inline-start: 38px !important; }
.drop { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px; cursor: pointer; color: var(--ink2); margin: 12px 0; }
.drop:hover { border-color: var(--brand); color: var(--brand-ink); } .drop input { display: none; }

/* layout */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-inline-end: 1px solid var(--line); padding: 18px 12px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand b { display: block; font-size: 14.5px; line-height: 1.2; } .side-brand small { display: block; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; flex: 1; }
.nav { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink2); font-weight: 550; text-align: start; }
.nav:hover { background: var(--surface2); color: var(--ink); }
.nav.on { background: var(--brand-soft); color: var(--brand-ink); }
.count { margin-inline-start: auto; font-style: normal; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.who { display: flex; align-items: center; gap: 10px; padding: 0 6px; } .who b { display: block; font-size: 13.5px; } .who small { display: block; }
.main { min-width: 0; }
.mtop { display: none; }
.content { max-width: 1360px; margin: 0 auto; padding: 28px 32px 60px; }
.bnav { display: none; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.phead p { margin-top: 4px; }
.mono { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; }
.mono.sm { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; } .mono.lg { width: 56px; height: 56px; font-size: 20px; border-radius: 15px; }
.logo { height: 38px; max-width: 120px; object-fit: contain; border-radius: 8px; } .logo.sm { height: 30px; } .logo.lg { height: 56px; max-width: 180px; }
.av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 13px; flex: none; }
.av.sm { width: 32px; height: 32px; font-size: 12px; } .av.xs { width: 26px; height: 26px; font-size: 10.5px; } .av.lg { width: 46px; height: 46px; font-size: 16px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ch.pad { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2.wide { grid-template-columns: 1.6fr 1fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.grid2 > section.card, .grid3 > section.card { margin-bottom: 0; }
.grid2, .grid3 { margin-bottom: 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 14px; }
.filters select { width: auto; min-width: 140px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis.sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kl { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.kv { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kv small { font-size: 16px; color: var(--ink3); font-weight: 600; }
.kpis.sm .kv { font-size: 20px; }
.kpi::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.kpi.ok::before { background: var(--ok); } .kpi.warn::before { background: var(--warn); } .kpi.bad::before { background: var(--bad); }
.meter { position: relative; display: block; height: 6px; background: var(--surface2); border-radius: 99px; overflow: visible; margin-top: 4px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s; }
.kpi.ok .meter i, .meter.ok i { background: var(--ok); } .kpi.warn .meter i, .meter.warn i { background: var(--warn); } .kpi.bad .meter i, .meter.bad i { background: var(--bad); }
.meter em { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); opacity: .55; border-radius: 2px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--ink2); white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); }
.pill { display: inline-block; min-width: 42px; text-align: center; padding: 2px 8px; border-radius: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.cls { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; font-weight: 800; flex: none; vertical-align: middle; }
.cls-A { background: var(--brand); color: #fff; } .cls-B { background: var(--brand-soft); color: var(--brand-ink); } .cls-C { background: var(--surface2); color: var(--ink2); }
.freq { font-weight: 700; font-variant-numeric: tabular-nums; } .freq.ok { color: var(--ok); } .freq.warn { color: var(--warn); } .freq.bad { color: var(--bad); }
.note { padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: 13.5px; } .note.warn { background: var(--warn-bg); color: var(--warn); } .note.bad { background: var(--bad-bg); color: var(--bad); } .note.ok { background: var(--ok-bg); color: var(--ok); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 550; color: var(--ink2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; } .chip.sm { padding: 3px 9px; font-size: 12.5px; cursor: default; } button.chip.sm { cursor: pointer; }
.chip .ic { width: 15px; height: 15px; }

/* lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line2); width: 100%; background: none; border-inline: 0; border-top: 0; text-align: start; }
.li:last-child { border-bottom: 0; } .li.top { align-items: flex-start; }
button.li { cursor: pointer; border-radius: 8px; } button.li:hover { background: var(--surface2); }
.li b { display: block; font-weight: 600; } .li small { display: block; } .li small .ic { width: 12px; height: 12px; vertical-align: -1px; margin-inline: 4px 2px; }
.li.done { opacity: .72; }
.li.alert .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; } .li.alert.bad .dot { background: var(--bad); } .li.alert.warn .dot { background: var(--warn); } .li.alert.info .dot { background: var(--info); }
.empty { display: grid; place-items: center; gap: 6px; padding: 28px 10px; color: var(--ink3); text-align: center; }
.empty .ic { width: 28px; height: 28px; } .empty p { max-width: 360px; }
.ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); }

/* table */
.tblwrap { overflow-x: auto; } .tblwrap.short { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: start; font-size: 12px; font-weight: 650; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl td b { font-weight: 600; } .tbl td small { display: block; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface2); }
.tbl tr.bad td { background: var(--bad-bg); } .tbl tr.warn td { background: var(--warn-bg); }
[dir="rtl"] .tbl th { letter-spacing: 0; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--brand-ink); } .chart .bar.low { fill: color-mix(in srgb, var(--brand) 45%, var(--surface2)); } .chart .bar.fut { fill: var(--surface2); }
.chart text { font-size: 11px; fill: var(--ink3); font-family: inherit; }
.chart .tline { stroke: var(--ink2); stroke-dasharray: 4 4; stroke-width: 1.2; } .chart .tlabel { fill: var(--ink2); font-weight: 600; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: minmax(80px, 38%) 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.ht { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .ht i { display: block; height: 100%; background: var(--brand-ink); border-radius: 99px; }
.hb b { text-align: end; font-variant-numeric: tabular-nums; }
.classbars { display: flex; flex-direction: column; gap: 14px; }
.cb { display: flex; align-items: center; gap: 12px; } .cb b { width: 44px; text-align: end; font-variant-numeric: tabular-nums; } .cb small { display: block; margin-top: 6px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; min-width: 60px; } .spark i { flex: 1; min-width: 6px; background: var(--brand); border-radius: 3px 3px 0 0; opacity: .85; }
.scorecell { display: flex; align-items: center; gap: 8px; min-width: 110px; } .scorecell .meter { flex: 1; margin: 0; }

/* today / plan */
.planbar { padding: 14px 16px; }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.week.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-height: 46vh; overflow: auto; margin-top: 12px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-height: 140px; }
.day.now { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.day header { padding: 11px 12px 9px; border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.dlist { display: flex; flex-direction: column; padding: 6px; gap: 4px; flex: 1; }
.pi { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: var(--surface2); font-size: 13px; }
.pi b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pi small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi.done { background: var(--ok-bg); }
.pi .x { border: 0; background: none; color: var(--ink3); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; } .pi .x:hover { color: var(--bad); background: var(--bad-bg); }
.pi .x .ic { width: 15px; height: 15px; }
.add { margin: 6px; border: 1.5px dashed var(--line); background: none; border-radius: 9px; padding: 8px; cursor: pointer; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px; }
.add:hover { border-color: var(--brand); color: var(--brand-ink); }
.picklist { max-height: 52vh; overflow: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.pk { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; }
.pk.on { border-color: var(--brand); background: var(--brand-soft); } .pk input { width: 17px; height: 17px; accent-color: var(--brand); }
.pk b { display: block; font-weight: 600; font-size: 13.5px; } .pk small { display: block; }

/* visits */
.feed { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.dhead { font-size: 13px; color: var(--ink3); margin: 10px 2px 0; font-weight: 600; }
.vc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.vh { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; } .vh b { display: block; font-weight: 600; } .vh small { display: block; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.vb { margin: 8px 0 4px; font-size: 14px; } .vb p { margin: 6px 0; }
.det { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-ink); } .vb .small .ic { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.thread { border-top: 1px solid var(--line2); margin-top: 8px; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.cm { display: flex; gap: 9px; font-size: 13.5px; } .cm p { margin: 2px 0 0; } .cm b { font-weight: 600; }
.cform { display: flex; gap: 8px; margin-top: 8px; } .cform input { flex: 1; min-height: 38px !important; }
.gpsrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface2); border-radius: 10px; margin: 6px 0 4px; }
.vsec { margin: 16px 0; } .vsec h3 { margin-bottom: 8px; color: var(--ink2); }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.smp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; } .smp span { font-size: 13.5px; font-weight: 600; } .smp small { display: block; font-weight: 400; }
.stepper { display: inline-flex; align-items: center; gap: 4px; } .stepper button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 17px; } .stepper button:disabled { opacity: .35; cursor: default; } .stepper b { min-width: 22px; text-align: center; }

/* coaching */
.coach .score { font-size: 20px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: var(--surface2); } .coach .score.ok { background: var(--ok-bg); color: var(--ok); } .coach .score.warn { background: var(--warn-bg); color: var(--warn); } .coach .score.bad { background: var(--bad-bg); color: var(--bad); }
.comp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin: 4px 0 10px; } .comp small { display: block; }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 14px; height: 6px; border-radius: 3px; background: var(--surface2); } .dots i.on { background: var(--brand); }
.rating { display: flex; flex-direction: column; gap: 10px; } .rt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); flex-wrap: wrap; } .rt span { font-weight: 600; font-size: 14px; } .rt small { display: block; font-weight: 400; }

/* team */
.tree { display: flex; flex-direction: column; }
.tn { position: relative; } .tn .tn { margin-inline-start: 22px; padding-inline-start: 12px; border-inline-start: 1.5px solid var(--line); }
.tr { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; } .tr:hover { background: var(--surface2); } .tr.off { opacity: .5; }
.tr b { display: block; font-weight: 600; font-size: 14px; } .tr small { display: block; }
.code { display: inline-block; margin-top: 4px; font: 600 13px ui-monospace, Menlo, monospace; letter-spacing: .08em; background: var(--surface2); padding: 2px 8px; border-radius: 6px; direction: ltr; }
.codebox { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; margin: 12px 0; flex-wrap: wrap; }
.codebox code { font: 700 20px ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--brand-ink); direction: ltr; word-break: break-all; }
.codebox code.ltr { font-size: 13.5px; letter-spacing: 0; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; } .facts small { display: block; } .facts b { font-weight: 600; font-size: 14px; }
.logoedit img { height: 56px; max-width: 160px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.steps { padding-inline-start: 20px; margin: 4px 0 10px; color: var(--ink2); font-size: 14px; } .steps li { margin: 4px 0; }

/* library */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.mat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); } .mat.off { opacity: .5; }
.cover { width: 100%; aspect-ratio: 16/10; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); font-weight: 700; letter-spacing: .02em; }
.cover .ic { width: 30px; height: 30px; } .cover:hover { filter: brightness(1.08); }
.mb { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; } .mb b { font-weight: 600; }

/* presentation */
.present { position: fixed; inset: 0; z-index: 60; background: #0A0C10; color: #fff; display: flex; flex-direction: column; }
.ptop { display: flex; align-items: center; gap: 12px; padding: 12px 16px; } .ptime { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; opacity: .8; }
.pstage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 56px; touch-action: pan-y; user-select: none; }
.pstage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); pointer-events: none; }
.pnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pnav:disabled { opacity: .25; } .pnav.prev { left: 8px; } .pnav.next { right: 8px; }
.pdots { display: flex; justify-content: center; gap: 6px; padding: 14px; } .pdots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; } .pdots button.on { background: #fff; width: 22px; border-radius: 4px; }

/* overlays */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(10,14,20,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; overflow: auto; } .ov.anim { animation: fade .15s; }
.modal { width: min(620px, 100%); background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: calc(100vh - 40px); overflow: auto; } .modal.anim { animation: pop .18s; }
.modal.wide { width: min(920px, 100%); } .modal.sm { width: min(420px, 100%); }
.mh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .mh h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead { font-size: 15.5px; margin: 0 0 6px; }
.sheet { position: absolute; inset-inline: 0; bottom: 0; background: var(--surface); border-radius: 18px 18px 0 0; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; animation: up .2s; }
.sheet hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 8px 0; }
.toast { position: fixed; z-index: 80; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 550; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: min(520px, calc(100vw - 32px)); animation: fade .2s; }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast.bad { background: var(--bad); color: #fff; } .toast.warn { background: var(--warn); color: #fff; } .toast.info { background: var(--info); color: #fff; }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spin.sm { width: 16px; height: 16px; border-color: rgba(255,255,255,.35); border-top-color: #fff; } .spin.xs { width: 12px; height: 12px; border-width: 2px; } .spin.light { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } } @keyframes up { from { opacity: 0; transform: translate(var(--tx, -50%), 12px); } }
.sheet { --tx: 0; }

/* auth */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-side { background: radial-gradient(1200px 600px at 10% 0%, color-mix(in srgb, var(--brand) 92%, #fff), var(--brand) 40%, color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand { display: flex; align-items: center; gap: 16px; } .auth-brand h1 { font-size: 30px; color: #fff; } .auth-brand p { color: rgba(255,255,255,.8); margin-top: 6px; max-width: 420px; }
.auth-brand .mono { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 460px; } .auth-points li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: rgba(255,255,255,.92); } .auth-points .ic { width: 22px; height: 22px; opacity: .9; }
.auth-main { padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.auth-tools { position: absolute; top: 18px; inset-inline-end: 18px; display: flex; gap: 4px; }
.auth-card { width: min(440px, 100%); padding: 28px; } .auth-card h2 { font-size: 22px; } .auth-card .seg { width: 100%; margin-bottom: 18px; } .auth-card .seg button { flex: 1; justify-content: center; }
.personas { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 12px; }
.persona { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: start; transition: border-color .12s, background .12s; }
.persona:hover { border-color: var(--brand); background: var(--brand-soft); } .persona > span:nth-child(2) { flex: 1; } .persona b { display: block; } .persona small { display: block; }

/* responsive */
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid2.wide { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .content { padding: 18px 16px 100px; }
  .bnav { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink3); padding: 6px 2px; cursor: pointer; position: relative; border-radius: 10px; min-width: 0; }
  .bnav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .bnav button.on { color: var(--brand-ink); } .bnav .ic { width: 22px; height: 22px; } .bnav .count { position: absolute; top: 0; inset-inline-end: 18%; margin: 0; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .auth { grid-template-columns: 1fr; } .auth-side { padding: 28px 22px; gap: 20px; } .auth-points { display: none; } .auth-main { padding: 18px 16px 40px; justify-content: flex-start; } .auth-tools { position: static; align-self: flex-end; margin-bottom: 12px; }
  .ov { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .modal.sm { margin: auto 16px 16px; border-radius: 18px; }
  .form.two, .form.three { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 1fr 1fr; }
  .filters select { flex: 1; min-width: 130px; }
  .phead > .row { width: 100%; } .phead .seg { max-width: 100%; }
  .kv { font-size: 24px; } .kpis { grid-template-columns: repeat(2, 1fr); }
  .tbl th, .tbl td { padding: 10px 12px; }
  .pstage { padding: 0 8px; } .pnav { display: none; }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; } .grid4 > .card { margin-bottom: 0; }
.card > h2, .card > .ch + h2 { margin-bottom: 14px; }
.tbl td:first-child { min-width: 170px; } .tbl td:first-child b { white-space: nowrap; }
.list.scroll { max-height: 300px; overflow: auto; }
.scopesel { width: auto !important; min-width: 200px; max-width: 280px; }

/* ---------- Aura brand layer ---------- */
.aura { --s: 38px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; isolation: isolate; }
.aura::before { content: ""; position: absolute; inset: -38%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #FCE680, #D4F577, #8FF0AE, #6FE4F2, #8AB4FF, #B79AFF, #E792E6, #FF9A9A, #FFB477, #FCE680);
  filter: blur(calc(var(--s) * .22)); opacity: .9;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.aura i { position: absolute; inset: 14%; border-radius: 50%; border: calc(var(--s) * .075) solid #fff;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 45%, rgba(255,255,255,0) 72%); box-shadow: 0 0 calc(var(--s) * .12) rgba(255,255,255,.35); }
.aura.sm { --s: 30px; } .aura.xl { --s: 84px; }
.wm { display: flex; flex-direction: column; line-height: 1.1; }
.wm b { font-family: var(--font-wm); font-weight: 500; letter-spacing: .32em; font-size: 17px; }
.wm small { font-size: 11.5px; letter-spacing: .04em; color: inherit; opacity: .72; margin-top: 3px; }
[dir="rtl"] .wm, [dir="rtl"] .mt { direction: ltr; text-align: left; }

/* navy sidebar */
.side { background: var(--side); border-inline-end: 0; color: #fff; }
.side-brand { color: #fff; padding: 6px 10px 16px; gap: 14px; }
.side-co { display: flex; align-items: center; gap: 10px; margin: 0 6px 12px; padding: 10px 12px; border-radius: 12px; background: var(--side2); }
.side-co img { height: 28px; max-width: 64px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.side-co small { display: block; color: var(--side-ink); font-size: 11px; }
.side-co b { display: block; font-size: 13.5px; color: #fff; }
.side .nav { color: var(--side-ink); position: relative; }
.side .nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.side .nav.on { background: rgba(255,255,255,.09); color: #fff; }
.side .nav.on::before { content: ""; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.side-foot { border-top-color: var(--side-line); }
.side .who b { color: #fff; } .side .who small { color: var(--side-ink); }
.side .who .av { background: var(--accent); color: #fff; }
.side .ghost { color: var(--side-ink); } .side .ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.count { background: var(--accent); color: #fff; }
.mtop { background: var(--side); color: #fff; border-bottom: 0; }
.mtop .ghost { color: var(--side-ink); } .mtop .ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.mt { display: flex; flex-direction: column; line-height: 1.1; } .mt b { font-family: var(--font-wm); font-weight: 500; letter-spacing: .3em; font-size: 14px; } .mt small { font-size: 11px; opacity: .7; }
.bnav button.on { color: var(--brand-ink); } .bnav button.on .ic { color: var(--accent); }

/* accent touches */
.eyebrow { color: var(--accent-ink); }
.chart .tline { stroke: var(--accent); } .chart .tlabel { fill: var(--accent-ink); }
.chart .bar.low { fill: color-mix(in srgb, var(--brand) 45%, var(--surface)); }
.meter em { background: var(--accent); opacity: 1; }
.day.now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip.on { background: var(--brand); border-color: var(--brand); }
.pdots button.on { background: var(--accent); }
.persona:hover { border-color: var(--accent); background: var(--accent-soft); }
.cover { background: radial-gradient(120% 120% at 20% 0%, #24407A, #13244A 60%); position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; inset-inline-end: -18%; top: -25%; border-radius: 50%; border: 3px solid rgba(232,147,92,.55); }
.cover .ic { color: var(--accent); }
.av { background: var(--brand-soft); color: var(--brand-ink); }
.codebox { background: var(--accent-soft); } .codebox code { color: var(--accent-ink); }

/* sign-in */
.auth-side { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 0% 0%, #22407C 0%, #16294F 48%, #0F1D3A 100%); justify-content: flex-start; gap: 36px; }
.auth-glow { position: absolute; width: 520px; aspect-ratio: 1; inset-inline-end: -180px; bottom: -200px; border-radius: 50%;
  background: conic-gradient(from 0deg, #FCE680, #D4F577, #8FF0AE, #6FE4F2, #8AB4FF, #B79AFF, #E792E6, #FF9A9A, #FFB477, #FCE680);
  filter: blur(90px); opacity: .28; pointer-events: none; }
.auth-brand { position: relative; gap: 22px; color: #fff; }
.auth-brand .wm b { font-size: 30px; } .auth-brand .wm small { font-size: 14px; }
.auth-copy { position: relative; max-width: 460px; color: #fff; }
.auth-copy .for { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.auth-copy h1 { color: #fff; font-size: 28px; margin: 6px 0 4px; }
.auth-copy p { color: rgba(255,255,255,.78); font-size: 16px; }
.auth-points { position: relative; margin-top: auto; }
.auth-points .ic { color: var(--accent); }
[dir="rtl"] .auth-copy .for { letter-spacing: 0; }
@media (max-width: 900px) { .auth-side { gap: 18px; } .auth-brand .wm b { font-size: 24px; } .aura.xl { --s: 60px; } .auth-copy p { font-size: 14.5px; } }

/* Aura PNG marks (transparent, work on navy and on light) */
.aura-img { width: 46px; height: 46px; flex: none; object-fit: contain; margin: -4px; }
.aura-img.sm { width: 36px; height: 36px; }
.side-co img.def { background: transparent; padding: 0; height: 34px; width: 34px; margin: -3px; }
.logoedit img.def { border: 0; background: transparent; padding: 0; height: 64px; width: 64px; }
.auth-brand { flex-direction: column; align-items: center; gap: 0; width: 150px; }
.auth-logo { width: 150px; height: auto; display: block; }
.auth-name { font-family: var(--font-wm); font-weight: 500; font-size: 13px; letter-spacing: .62em; margin-inline-start: .62em; margin-top: 8px; color: var(--accent); direction: ltr; }
.auth-copy .lede { font-family: var(--font); font-size: 20px; font-weight: 500; color: #fff; letter-spacing: -.005em; text-align: left; }
.auth-points { direction: ltr; font-family: var(--font); }
.auth-points li { font-size: 15px; letter-spacing: .01em; }
@media (max-width: 900px) { .auth-brand { width: 104px; } .auth-logo { width: 104px; } .auth-name { font-size: 11px; } .auth-copy .lede { font-size: 17px; } }
