/* The approved mockup's stylesheet, VERBATIM
 * (docs/mockups/admin-command-center-phase1.html, second <style> block).
 * Do not restyle here: change the mockup, get it approved, copy it again.
 * Only the font is loaded from the site instead of being embedded, and every
 * selector carries :not(.legacy *) so it stays off the previous panel's pages
 * (they keep their own look, legacy.css, until each is rebuilt). */
@font-face{font-family:"Estedad";src:url(/fonts/EstedadVar.woff2) format("woff2-variations");font-weight:100 900;font-display:swap}

/* Layout: app shell — fixed side rail (right, RTL) + top bar with global search; each screen is a dense working surface. Dark only, like the rest of Raven. */
:root {
  --bg:#060A13; --bg-2:#0A1120; --surface:#0D1526; --surface-2:#111B31; --surface-3:#16223C;
  --line:rgb(255 255 255 / .07); --line-2:rgb(255 255 255 / .13);
  --ink:#F2F4F8; --muted:#A9B3C7; --dim:#8B96AF;
  --gold:#F2C14E; --gold-2:#D9A42C; --gold-ink:#1A1204;
  --ok:#3DD68C; --bad:#FF6B7A; --warn:#F2994A; --info:#5B9BFF; --violet:#9B7BFF; --teal:#2BC7B4;
  --font:"Estedad",Tahoma,system-ui,sans-serif;
  --r-xs:8px; --r-sm:12px; --r-md:16px; --r-lg:22px;
  --shadow:0 24px 48px -28px rgb(0 0 0 / .75);
  color-scheme:dark;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
html, body {height:100%}
body {background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.8;direction:rtl}
button:not(.legacy *), input:not(.legacy *), select:not(.legacy *), textarea:not(.legacy *) {font:inherit;color:inherit}
.ic:not(.legacy *) {width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.num:not(.legacy *) {font-variant-numeric:proportional-nums;direction:ltr;unicode-bidi:isolate;display:inline-block}
/* Equal-width digits only where numbers stack in a column: Estedad's tabular «1» leaves a gap («2 4», «4 12») in running text (2026-10-13). */
td .num:not(.legacy *), th .num:not(.legacy *) {font-variant-numeric:tabular-nums}

/* banner */
.mockbar:not(.legacy *) {background:linear-gradient(90deg,rgb(242 193 78 / .16),rgb(242 193 78 / .05));border-bottom:1px solid rgb(242 193 78 / .25);color:var(--gold);font-size:12.5px;padding-block:7px;padding-inline:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.mockbar b:not(.legacy *) {font-weight:700}

/* shell */
.shell:not(.legacy *) {display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100%;transition:grid-template-columns .22s ease}
.shell.mini:not(.legacy *) {grid-template-columns:76px minmax(0,1fr)}

.main:not(.legacy *) {min-width:0;display:flex;flex-direction:column}
.top:not(.legacy *) {position:sticky;top:0;z-index:5;background:rgb(6 10 19 / .88);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding-block:12px;padding-inline:24px}
.searchbtn:not(.legacy *) {flex:1;max-width:560px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-sm);padding:9px 14px;color:var(--dim);cursor:pointer;text-align:right}
.searchbtn:hover:not(.legacy *) {border-color:rgb(242 193 78 / .4)}
.kbd:not(.legacy *) {margin-inline-start:auto;font-size:11px;border:1px solid var(--line-2);border-radius:6px;padding:0 6px;color:var(--dim);direction:ltr}
.top .sp:not(.legacy *) {flex:1}
.pill:not(.legacy *) {font-size:12px;border-radius:999px;padding:4px 10px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.screen:not(.legacy *) {padding:24px;display:none;flex-direction:column;gap:18px;max-width:1320px;width:100%}
.screen.on:not(.legacy *) {display:flex}
.h1row:not(.legacy *) {display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
h1:not(.legacy *) {font-size:22px;font-weight:800;margin:0;line-height:1.5}
.sub:not(.legacy *) {color:var(--dim);font-size:13px;margin:0}
.h1row .act:not(.legacy *) {margin-inline-start:auto;display:flex;gap:8px;flex-wrap:wrap}
/* Buttons (owner 10-13: the old one sat on the card's own colour and did not read as a button).
   Three levels: .pri gold fill · .btn raised fill + clear border · .ghost outline only. */
.btn:not(.legacy *) {display:inline-flex;align-items:center;gap:8px;border-radius:var(--r-sm);padding:8px 14px;border:1px solid rgb(255 255 255 / .22);background:#1C2A48;color:var(--ink);cursor:pointer;font-weight:650;font-size:13px;box-shadow:inset 0 1px 0 rgb(255 255 255 / .06),0 1px 2px rgb(0 0 0 / .35);transition:background .15s,border-color .15s}
.btn:hover:not(.legacy *) {background:#243559;border-color:rgb(255 255 255 / .34)}
.btn:active:not(.legacy *) {transform:translateY(1px)}
.btn.pri:not(.legacy *) {background:var(--gold);color:var(--gold-ink);border-color:transparent;box-shadow:0 10px 24px -12px rgb(242 193 78 / .7)}
.btn.sm:not(.legacy *) {padding:5px 10px;font-size:12px}

.card:not(.legacy *) {background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:18px;min-width:0;position:relative}
.ch:not(.legacy *) {display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ch h2:not(.legacy *) {font-size:15px;margin:0;font-weight:700}
.ch .r:not(.legacy *) {margin-inline-start:auto;display:flex;gap:8px;align-items:center}
.grid:not(.legacy *) {display:grid;gap:16px}
.g4:not(.legacy *) {grid-template-columns:repeat(4,minmax(0,1fr))}
.g3:not(.legacy *) {grid-template-columns:repeat(3,minmax(0,1fr))}
.g2:not(.legacy *) {grid-template-columns:repeat(2,minmax(0,1fr))}
.split:not(.legacy *) {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}

/* KPI */
.kpi:not(.legacy *) {display:flex;flex-direction:column;gap:2px}
.kpi .l:not(.legacy *) {color:var(--muted);font-size:12.5px;display:flex;align-items:center;gap:8px}
.kpi .l .ic:not(.legacy *) {width:16px;height:16px;color:var(--gold)}
.kpi .v:not(.legacy *) {font-size:26px;font-weight:800;line-height:1.4}
.kpi .d:not(.legacy *) {font-size:12px;color:var(--dim)}
.up:not(.legacy *) {color:var(--ok)} .down:not(.legacy *) {color:var(--bad)}
.hero:not(.legacy *) {background:radial-gradient(120% 140% at 100% 0%,rgb(242 193 78 / .14),transparent 55%),linear-gradient(160deg,var(--surface-2),var(--surface));border-color:rgb(242 193 78 / .18)}
.hero .v:not(.legacy *) {font-size:34px}

/* chips */
.chip:not(.legacy *) {display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;border-radius:999px;padding:2px 9px;white-space:nowrap;border:1px solid transparent}
.c-ok:not(.legacy *) {background:rgb(61 214 140 / .12);color:var(--ok)}
.c-bad:not(.legacy *) {background:rgb(255 107 122 / .12);color:var(--bad)}
.c-warn:not(.legacy *) {background:rgb(242 153 74 / .13);color:var(--warn)}
.c-info:not(.legacy *) {background:rgb(91 155 255 / .13);color:var(--info)}
.c-vio:not(.legacy *) {background:rgb(155 123 255 / .14);color:var(--violet)}
.c-gold:not(.legacy *) {background:rgb(242 193 78 / .13);color:var(--gold)}
.c-mute:not(.legacy *) {background:var(--surface-3);color:var(--muted)}
.c-teal:not(.legacy *) {background:rgb(43 199 180 / .13);color:var(--teal)}

/* attention list */
.att:not(.legacy *) {display:flex;flex-direction:column;gap:8px}
.ai:not(.legacy *) {display:grid;grid-template-columns:4px minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--surface-2);border-radius:var(--r-sm);padding:10px 14px 10px 10px}
.ai .s:not(.legacy *) {align-self:stretch;border-radius:4px}
.s-bad:not(.legacy *) {background:var(--bad)} .s-warn:not(.legacy *) {background:var(--warn)} .s-info:not(.legacy *) {background:var(--info)}
.ai b:not(.legacy *) {font-weight:700}
.ai p:not(.legacy *) {margin:0;color:var(--dim);font-size:12.5px}
.ai .who:not(.legacy *) {font-size:11.5px;color:var(--muted)}

/* tables */
.tw:not(.legacy *) {overflow-x:auto;border-radius:var(--r-sm);border:1px solid var(--line)}
table:not(.legacy *) {border-collapse:collapse;width:100%;font-size:13px}
th:not(.legacy *), td:not(.legacy *) {padding:9px 12px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}
th:not(.legacy *) {color:var(--dim);font-weight:600;font-size:12px;background:var(--bg-2)}
tbody tr:hover td:not(.legacy *) {background:rgb(255 255 255 / .02)}
tr.flag td:not(.legacy *) {background:rgb(242 153 74 / .06)}
tr.flag td:first-child:not(.legacy *) {box-shadow:inset -3px 0 0 var(--warn)}
td.n:not(.legacy *), th.n:not(.legacy *) {text-align:left;font-variant-numeric:tabular-nums}
td.n:not(.legacy *) {direction:ltr;unicode-bidi:isolate}
.link:not(.legacy *) {color:var(--ink);text-decoration:none;border-bottom:1px dashed var(--line-2);cursor:pointer}
.filters:not(.legacy *) {display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.seg:not(.legacy *) {display:inline-flex;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:3px}
.seg button:not(.legacy *) {border:0;background:none;padding:4px 12px;border-radius:9px;cursor:pointer;color:var(--muted);font-size:12.5px}
.seg button.on:not(.legacy *) {background:var(--surface-3);color:var(--ink)}
.field:not(.legacy *) {display:flex;align-items:center;gap:8px;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:6px 12px;color:var(--dim);font-size:12.5px}

/* help popover */
.helpbtn:not(.legacy *) {display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--dim);background:none;border:1px solid var(--line);border-radius:999px;padding:3px 10px;cursor:pointer}
.helpbtn:hover:not(.legacy *), .helpbtn[aria-expanded="true"]:not(.legacy *) {color:var(--gold);border-color:rgb(242 193 78 / .4)}
.pop:not(.legacy *) {position:absolute;z-index:20;inset-inline-end:14px;top:48px;width:min(340px,calc(100% - 28px));background:var(--surface-3);border:1px solid var(--line-2);border-radius:var(--r-sm);padding:14px 16px;box-shadow:var(--shadow);font-size:13px;color:var(--muted)}
.pop b:not(.legacy *) {color:var(--ink)}

/* customer */
.idcard:not(.legacy *) {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center}
.bigav:not(.legacy *) {width:64px;height:64px;border-radius:20px;background:linear-gradient(150deg,var(--surface-3),var(--surface-2));display:grid;place-items:center;font-size:24px;font-weight:800;color:var(--gold);border:1px solid var(--line-2)}
.idcard h2:not(.legacy *) {font-size:20px;margin:0}
.meta:not(.legacy *) {display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:12.5px}
.meta span:not(.legacy *) {display:inline-flex;gap:6px;align-items:center}
.status:not(.legacy *) {background:var(--surface-2);border-radius:var(--r-sm);padding:12px 16px;min-width:220px}
.status .t:not(.legacy *) {font-weight:800;color:var(--ok);font-size:15px}
.alert:not(.legacy *) {display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;border-radius:var(--r-sm);padding:12px 14px;background:rgb(242 153 74 / .09);border:1px solid rgb(242 153 74 / .25);color:var(--ink);font-size:13px}
.alert .ic:not(.legacy *) {color:var(--warn);margin-top:3px}
.alert p:not(.legacy *) {margin:0;color:var(--muted)}
.tabs:not(.legacy *) {display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}
.tab:not(.legacy *) {border:0;background:none;padding:10px 14px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.tab.on:not(.legacy *) {color:var(--ink);border-bottom-color:var(--gold)}
.tl:not(.legacy *) {list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tl li:not(.legacy *) {display:grid;grid-template-columns:110px 26px minmax(0,1fr);gap:10px;padding-block:8px;position:relative}
.tl .when:not(.legacy *) {color:var(--dim);font-size:12px;text-align:left;padding-top:2px}
.tl .mk:not(.legacy *) {width:26px;height:26px;border-radius:9px;display:grid;place-items:center;background:var(--surface-2);position:relative;z-index:1}
.tl .mk .ic:not(.legacy *) {width:14px;height:14px}
.tl li:not(.legacy *)::before {content:"";position:absolute;right:calc(110px + 10px + 12px);top:34px;bottom:-8px;width:2px;background:var(--line)}
.tl li:last-child:not(.legacy *)::before {display:none}
.tl .what b:not(.legacy *) {font-weight:700}
.tl .what p:not(.legacy *) {margin:0;color:var(--dim);font-size:12.5px}
.kv:not(.legacy *) {display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;font-size:13px}
.kv dt:not(.legacy *) {color:var(--dim)} .kv dd:not(.legacy *) {margin:0}
.lockbox:not(.legacy *) {display:flex;gap:12px;align-items:center;background:var(--bg-2);border:1px dashed var(--line-2);border-radius:var(--r-sm);padding:12px 14px;color:var(--muted);font-size:12.5px}


.idcard2:not(.legacy *) {display:flex;flex-direction:column;gap:16px;padding:20px 22px}
.idtop:not(.legacy *) {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center}
.idname h2:not(.legacy *) {font-size:26px;font-weight:800;margin:0;line-height:1.4}
.idtags:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.contacts:not(.legacy *) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ct:not(.legacy *) {background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:12px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.ctl:not(.legacy *) {width:100%;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dim)}
.ctl .ic:not(.legacy *) {width:14px;height:14px}
.ctv:not(.legacy *) {font-size:19px;font-weight:700;color:var(--ink);letter-spacing:.01em;overflow-wrap:anywhere}
.ct .cp:not(.legacy *) {margin-inline-start:auto}
.idfoot:not(.legacy *) {display:flex;gap:6px 18px;flex-wrap:wrap;font-size:12.5px;color:var(--dim);border-top:1px solid var(--line);padding-top:12px}
@media (max-width:980px){.contacts:not(.legacy *) {grid-template-columns:minmax(0,1fr)}.idtop:not(.legacy *) {grid-template-columns:auto minmax(0,1fr)}.idtop .status:not(.legacy *) {grid-column:1/-1}}
.rthumb:not(.legacy *) {display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:3px 10px;border-radius:8px;background:var(--surface-3);border:1px solid var(--line-2);color:var(--ink);cursor:pointer}
.bprev:not(.legacy *) {height:54px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;color:#fff;border:1px solid var(--line-2);padding:0 10px;text-align:center;aspect-ratio:6/1;width:100%;max-width:100%}
.bprev.sm:not(.legacy *) {height:30px;font-size:11px}
.bprev.xs:not(.legacy *) {display:block;width:120px;height:20px;padding:0}
.chain:not(.legacy *) {display:flex;gap:4px;margin-top:10px;font-size:11px}
.chain span:not(.legacy *) {flex:1;text-align:center;padding:4px 2px;border-radius:6px;background:var(--surface-2);color:var(--dim)}
.chain span.on:not(.legacy *) {background:var(--gold);color:var(--gold-ink);font-weight:800}
.chain span.done:not(.legacy *) {text-decoration:line-through;opacity:.6}
.checks:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.banlist:not(.legacy *) {display:flex;flex-direction:column;gap:10px}
.bitem:not(.legacy *) {display:grid;grid-template-columns:220px minmax(0,1fr) auto;gap:14px;align-items:center;background:var(--surface-2);border-radius:var(--r-sm);padding:12px}
.bitem.warn:not(.legacy *) {box-shadow:inset -3px 0 0 var(--warn)}
.bitem .bprev:not(.legacy *) {height:auto}
.binfo b:not(.legacy *) {font-weight:700}
.binfo p:not(.legacy *) {margin:0;color:var(--dim);font-size:12.5px}
.bact:not(.legacy *) {display:flex;flex-direction:column;gap:8px;align-items:flex-end}
@media (max-width:980px){.bitem:not(.legacy *) {grid-template-columns:minmax(0,1fr)}.bact:not(.legacy *) {align-items:flex-start}}
.bgroup:not(.legacy *) {font-size:12.5px;color:var(--muted);font-weight:700;margin:6px 0 -2px}
.bitem2:not(.legacy *) {background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);padding:14px;display:flex;flex-direction:column;gap:12px}
.bitem2.warn:not(.legacy *) {border-color:rgb(242 153 74 / .45)}
.bhead:not(.legacy *) {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pf:not(.legacy *) {display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:13px;padding:4px 12px;border-radius:999px}
.pf .ic:not(.legacy *) {width:15px;height:15px}
.pf-app:not(.legacy *) {background:rgb(155 123 255 / .16);color:var(--violet)}
.pf-web:not(.legacy *) {background:rgb(43 199 180 / .15);color:var(--teal)}
.where:not(.legacy *) {color:var(--ink);font-size:13px}
.bbody:not(.legacy *) {display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}
.bbody .bprev:not(.legacy *) {height:auto}
.btitle:not(.legacy *) {display:block;font-size:15px;font-weight:800;margin-bottom:6px}
.facts:not(.legacy *) {display:flex;flex-wrap:wrap;gap:8px}
.facts .f:not(.legacy *) {display:flex;flex-direction:column;background:var(--bg-2);border-radius:8px;padding:5px 10px;min-width:0}
.facts .f span:not(.legacy *) {font-size:11px;color:var(--dim)}
.facts .f b:not(.legacy *) {font-size:13px;font-weight:700;overflow-wrap:anywhere}
.bbtns:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px}
@media (max-width:980px){.bbody:not(.legacy *) {grid-template-columns:minmax(0,1fr)}}
.bprev:not(.legacy *) {cursor:zoom-in;transition:transform .15s ease,box-shadow .15s ease;position:relative}
.bprev:hover:not(.legacy *) {transform:translateY(-1px);box-shadow:0 0 0 2px rgb(242 193 78 / .5)}
.bprev:not(.legacy *)::after {content:"بزرگ‌نمایی";position:absolute;inset-inline-start:6px;bottom:4px;font-size:10px;font-weight:600;background:rgb(0 0 0 / .45);color:#fff;border-radius:6px;padding:0 6px;opacity:0;transition:opacity .15s}
.bprev:hover:not(.legacy *)::after {opacity:1}
.bprev.xs:not(.legacy *)::after {display:none}
.lb:not(.legacy *) {width:min(880px,100%);background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}
.lbh:not(.legacy *) {display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.lbh #lbClose:not(.legacy *) {margin-inline-start:auto}
.lbstage:not(.legacy *) {padding:24px;background:var(--bg-2);display:flex;justify-content:center}
.lbplain:not(.legacy *), .lbapp:not(.legacy *), .lbweb:not(.legacy *) {width:100%;display:flex;justify-content:center}
.lbban:not(.legacy *) {width:100%;aspect-ratio:6/1;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:clamp(14px,2.4vw,24px);border:1px solid var(--line-2);text-align:center;padding:0 12px}
.lbban.sm2:not(.legacy *) {font-size:12px;border-radius:8px}
.mphone:not(.legacy *) {width:280px;max-width:100%;background:#0B1220;border:1px solid var(--line-2);border-radius:28px;padding:16px 12px;display:flex;flex-direction:column;gap:8px}
.mweb:not(.legacy *) {width:100%;max-width:720px;background:#0B1220;border:1px solid var(--line-2);border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.mbar:not(.legacy *) {display:flex;gap:5px}.mbar i:not(.legacy *) {width:9px;height:9px;border-radius:50%;background:var(--surface-3)}
.mrow:not(.legacy *) {height:30px;border-radius:8px;background:var(--surface)}
.mrow.short:not(.legacy *) {width:60%}
.lbmeta:not(.legacy *) {display:flex;gap:18px;flex-wrap:wrap;padding:12px 18px;font-size:12.5px;color:var(--dim);border-top:1px solid var(--line)}
.lbmeta b:not(.legacy *) {color:var(--ink);font-weight:600}
.composer2:not(.legacy *) {border-top:1px solid var(--line);padding:12px 14px 14px;display:flex;flex-direction:column;gap:0}
.cmtabs:not(.legacy *) {display:flex;gap:4px}
.cmt:not(.legacy *) {display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;border-bottom:0;background:none;color:var(--dim);padding:7px 14px;border-radius:10px 10px 0 0;cursor:pointer;font-size:13px;font-weight:600}
.cmt .ic:not(.legacy *) {width:15px;height:15px}
.cmt.on:not(.legacy *) {background:var(--bg-2);border-color:var(--line-2);color:var(--ink)}
.composer2[data-mode="note"] .cmt.on:not(.legacy *) {background:rgb(155 123 255 / .10);border-color:rgb(155 123 255 / .4);color:var(--violet)}
.cmbox:not(.legacy *) {background:var(--bg-2);border:1px solid var(--line-2);border-radius:0 12px 12px 12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.composer2[data-mode="note"] .cmbox:not(.legacy *) {background:rgb(155 123 255 / .07);border-color:rgb(155 123 255 / .4);border-style:dashed}
.cmhint:not(.legacy *) {font-size:12px;color:var(--dim)}
.composer2[data-mode="note"] .cmhint:not(.legacy *) {color:var(--violet)}
.cmbox textarea:not(.legacy *) {background:transparent;border:0;outline:none;resize:vertical;min-height:84px;width:100%;line-height:1.9}
.cmbar:not(.legacy *) {display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px}
.cmtools:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap}
.btn.ghost:not(.legacy *) {background:transparent;border-color:rgb(255 255 255 / .2);color:#D3DAE8;box-shadow:none}
.btn.ghost:hover:not(.legacy *) {background:rgb(255 255 255 / .06);border-color:rgb(255 255 255 / .32);color:var(--ink)}
.cmsend:not(.legacy *) {margin-inline-start:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.after:not(.legacy *) {font-size:12px;color:var(--dim)}
.sel:not(.legacy *) {background:var(--surface);border:1px solid var(--line-2);border-radius:10px;padding:6px 10px;font-size:12.5px}
.clock:not(.legacy *) {display:flex;align-items:baseline;gap:10px;color:var(--muted);font-size:13px;white-space:nowrap}
.clock b:not(.legacy *) {font-size:17px;font-weight:800;color:var(--ink)}
.afterhint:not(.legacy *) {font-size:12px;color:var(--muted);background:var(--surface);border-radius:8px;padding:6px 10px}

/* ── sidebar ── */
.rail:not(.legacy *) {background:linear-gradient(180deg,#0B1324,#080E1B);border-inline-start:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:hidden;z-index:30}
.rtop:not(.legacy *) {display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:12px 14px 6px}
.brand:not(.legacy *) {display:flex;align-items:center;gap:10px;font-weight:800;font-size:16px;min-width:0;flex:1}
.brand i:not(.legacy *) {width:34px;height:34px;flex:none;border-radius:11px;background:radial-gradient(circle at 30% 30%,#FFE08A,var(--gold) 45%,var(--gold-2));box-shadow:0 10px 24px -10px rgb(242 193 78 / .7)}
.brand small:not(.legacy *) {display:block;font-size:11px;color:var(--dim);font-weight:500;line-height:1.3}
.bt:not(.legacy *) {white-space:nowrap;overflow:hidden}
.rbtn:not(.legacy *) {width:34px;height:34px;flex:none;border-radius:10px;border:1px solid var(--line);background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.rbtn:hover:not(.legacy *) {background:var(--surface);color:var(--ink)}
.rclose:not(.legacy *) {display:none}
.nlist:not(.legacy *) {flex:1;overflow-y:auto;overflow-x:hidden;padding:6px 10px;display:flex;flex-direction:column;gap:2px}
.ng:not(.legacy *) {position:relative}
.ni:not(.legacy *) {display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;background:none;border-radius:12px;color:var(--muted);cursor:pointer;text-align:right;font-size:13.5px;font-weight:600}
.ni:hover:not(.legacy *) {background:rgb(255 255 255 / .04);color:var(--ink)}
.ni:focus-visible:not(.legacy *), .si:focus-visible:not(.legacy *) {outline:2px solid var(--gold);outline-offset:1px}
.nic:not(.legacy *) {width:32px;height:32px;flex:none;border-radius:10px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent)}
.nic .ic:not(.legacy *) {width:17px;height:17px}
.nl:not(.legacy *) {flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;line-height:1.4}
.nl small:not(.legacy *) {font-size:10.5px;color:var(--dim);font-weight:500}
.ni.on:not(.legacy *) {background:var(--surface-2);color:var(--ink);box-shadow:inset -3px 0 0 var(--c)}
.ni.on .nic:not(.legacy *) {background:var(--c);color:#0A0F1C}
.ni.off:not(.legacy *) {opacity:.55}
.chev:not(.legacy *) {width:15px;height:15px;color:var(--dim);transition:transform .2s}
.ng.open .chev:not(.legacy *) {transform:rotate(180deg)}
.bdg:not(.legacy *) {font-size:10.5px;font-weight:800;min-width:19px;height:19px;padding:0 6px;border-radius:10px;display:inline-grid;place-items:center;flex:none}
.bdg.bad:not(.legacy *) {background:rgb(255 107 122 / .18);color:var(--bad)}
.bdg.warn:not(.legacy *) {background:rgb(242 153 74 / .18);color:var(--warn)}
.sub:not(.legacy *) {display:none;flex-direction:column;gap:1px;padding:2px 0 6px;margin-inline-start:24px;border-inline-start:1px solid var(--line-2);padding-inline-start:10px}
.ng.open .sub:not(.legacy *) {display:flex}
.subh:not(.legacy *) {display:none}
.si:not(.legacy *) {display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--dim);font-size:12.5px;padding:6px 10px;border-radius:9px;cursor:pointer;text-align:right}
.si:hover:not(.legacy *) {color:var(--ink);background:rgb(255 255 255 / .04)}
.si.on:not(.legacy *) {color:var(--ink);background:var(--surface)}
.si.off:not(.legacy *) {opacity:.55}
.si .bdg:not(.legacy *) {margin-inline-start:auto}
.rfoot:not(.legacy *) {border-top:1px solid var(--line);padding:8px 10px 12px;display:flex;flex-direction:column;gap:6px}
.ni.demo:not(.legacy *) {border:1px dashed var(--line-2)}
.me:not(.legacy *) {display:flex;gap:10px;align-items:center;padding:6px 8px;font-size:12.5px;min-width:0}
.me .av:not(.legacy *) {width:32px;height:32px;flex:none;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font-weight:700;color:var(--gold)}
.me small:not(.legacy *) {display:block;color:var(--dim)}
.mt:not(.legacy *) {white-space:nowrap;overflow:hidden}
/* collapsed: icons only, submenus fly out */
.shell.mini:not(.peek) .bt:not(.legacy *), .shell.mini:not(.peek) .nl:not(.legacy *), .shell.mini:not(.peek) .chev:not(.legacy *), .shell.mini:not(.peek) .mt:not(.legacy *), .shell.mini:not(.peek) .ni>.bdg:not(.legacy *), .shell.mini:not(.peek) .sub:not(.legacy *) {display:none!important}
.hamb:not(.legacy *) {display:none;width:38px;height:38px;border-radius:11px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);place-items:center;cursor:pointer;flex:none}
.scrim:not(.legacy *) {position:fixed;inset:0;background:rgb(3 6 12 / .6);backdrop-filter:blur(2px);z-index:29}
@media (max-width:820px){
  .hamb:not(.legacy *) {display:grid}
  .rail:not(.legacy *) {position:fixed;top:0;bottom:0;right:0;width:min(300px,86vw);height:100%;transform:translateX(105%);transition:transform .25s ease;box-shadow:var(--shadow)}
  .shell.drawer .rail:not(.legacy *) {transform:none}
  .rclose:not(.legacy *) {display:grid}#collapse:not(.legacy *) {display:none}
}
@media (prefers-reduced-motion:reduce){.rail:not(.legacy *), .shell:not(.legacy *), .chev:not(.legacy *) {transition:none}}
.shell.mini:not(.peek) .rtop:not(.legacy *) {flex-direction:column;padding:14px 8px 8px}
.shell.mini:not(.peek) .ni:not(.legacy *) {justify-content:center;padding:6px}
.shell.mini:not(.peek) .ng[data-rail-count]:not(.legacy *)::after {content:attr(data-rail-count);position:absolute;top:2px;left:8px;font-size:9.5px;font-weight:800;min-width:16px;height:16px;border-radius:8px;display:grid;place-items:center;background:var(--bad);color:#fff}
.main:not(.legacy *) {grid-column:2}
.rail:not(.legacy *) {min-height:0}
.nlist:not(.legacy *) {min-height:0}

.rgrip:not(.legacy *) {position:absolute;top:0;bottom:0;inset-inline-end:0;width:7px;cursor:col-resize;z-index:5}
.rgrip:hover:not(.legacy *), .rgrip.drag:not(.legacy *) {background:linear-gradient(90deg,transparent 2px,rgb(242 193 78 / .6) 2px,rgb(242 193 78 / .6) 4px,transparent 4px)}
.shell.mini .rgrip:not(.legacy *) {display:none}
body.resizing {cursor:col-resize;user-select:none}
body.resizing .shell {transition:none}
.mewrap:not(.legacy *) {position:relative}
.me:not(.legacy *) {display:flex;gap:10px;align-items:center;width:100%;padding:8px;border:0;border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer;text-align:right;font-size:13px;font-weight:700}
.me:hover:not(.legacy *) {background:var(--surface-2)}
.me .chev:not(.legacy *) {transform:rotate(180deg)}
.me[aria-expanded="true"] .chev:not(.legacy *) {transform:none}
.shell.mini:not(.peek) .me:not(.legacy *) {justify-content:center;padding:6px;background:none}
.memenu:not(.legacy *) {position:fixed;width:264px;max-width:calc(100vw - 24px);background:var(--surface-3);border:1px solid var(--line-2);border-radius:14px;padding:6px;box-shadow:var(--shadow);z-index:50;display:flex;flex-direction:column;gap:2px}
.mmh:not(.legacy *) {display:flex;gap:10px;align-items:center;padding:8px 10px 10px;border-bottom:1px solid var(--line);margin-bottom:4px;font-weight:700;font-size:13px}
.mmh small:not(.legacy *) {display:block;font-weight:500;color:var(--dim);font-size:11.5px}
.memenu button:not(.legacy *) {display:grid;grid-template-columns:20px 1fr;column-gap:10px;align-items:center;border:0;background:none;color:var(--ink);text-align:right;padding:8px 10px;border-radius:10px;cursor:pointer;font-size:13px}
.memenu button small:not(.legacy *) {grid-column:2;color:var(--dim);font-size:11px}
.memenu button .ic:not(.legacy *) {width:16px;height:16px;color:var(--muted);grid-row:span 2}
.memenu button:hover:not(.legacy *) {background:rgb(255 255 255 / .05)}
.memenu .danger:not(.legacy *) {color:var(--bad);border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin-top:4px}
.memenu .danger .ic:not(.legacy *) {color:var(--bad)}
@media (max-width:820px){.main:not(.legacy *) {grid-column:1}.shell:not(.legacy *) {grid-template-columns:minmax(0,1fr)!important}.rgrip:not(.legacy *) {display:none}.shell.peek .rail:not(.legacy *) {width:min(300px,86vw)}}
.mail:not(.legacy *) {display:grid;grid-template-columns:200px 300px minmax(0,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;min-height:560px}
.mboxes:not(.legacy *) {border-inline-end:1px solid var(--line);padding:10px;display:flex;flex-direction:column;gap:2px;background:var(--bg-2)}
.mb:not(.legacy *) {display:grid;grid-template-columns:1fr auto;align-items:center;text-align:right;border:0;background:none;color:var(--muted);padding:8px 10px;border-radius:10px;cursor:pointer;direction:rtl}
.mb span:first-child:not(.legacy *) {direction:ltr;text-align:right;font-weight:700;color:var(--ink);font-size:13px}
.mb small:not(.legacy *) {grid-column:1;font-size:11px;color:var(--dim)}
.mb .bdg:not(.legacy *) {grid-row:1/span 2;grid-column:2}
.mb.on:not(.legacy *) {background:var(--surface-2);box-shadow:inset -3px 0 0 var(--gold)}
.mlist:not(.legacy *) {border-inline-end:1px solid var(--line);min-width:0}
.mread:not(.legacy *) {display:flex;flex-direction:column;min-width:0}
.mhd:not(.legacy *) {padding:14px 18px;border-bottom:1px solid var(--line)}
.mhd h3:not(.legacy *) {margin:0 0 4px;font-size:15px}
.mbody:not(.legacy *) {padding:18px;flex:1;line-height:2;font-size:13.5px}
@media (max-width:1100px){.mail:not(.legacy *) {grid-template-columns:minmax(0,1fr)}.mboxes:not(.legacy *) {flex-direction:row;flex-wrap:wrap}.mlist:not(.legacy *) {border-inline-end:0;border-bottom:1px solid var(--line)}}
.rolebar:not(.legacy *) {display:flex;flex-direction:column;gap:6px;padding:4px 2px}
.rolebar label:not(.legacy *) {font-size:11px;color:var(--dim)}
.rolebar select:not(.legacy *) {background:var(--surface);border:1px solid var(--line-2);border-radius:10px;padding:6px 10px;font-size:12.5px;width:100%}
.shell.mini:not(.peek) .rolebar:not(.legacy *) {display:none}
.ng.hide:not(.legacy *) {display:none}
.si.hide:not(.legacy *) {display:none}
@media (min-width:821px){
  .rail:not(.legacy *) {position:fixed;top:0;right:0;bottom:0;height:100vh;width:var(--rw,256px);transition:width .3s cubic-bezier(.22,.9,.24,1),box-shadow .3s ease}
  .shell.mini .rail:not(.legacy *) {width:76px}
  .shell.mini.peek .rail:not(.legacy *) {width:var(--rw,256px);box-shadow:-34px 0 70px -24px rgb(0 0 0 / .85)}
  body.resizing .rail {transition:none}
}
@keyframes railIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
.shell.mini.peek .nl:not(.legacy *), .shell.mini.peek .chev:not(.legacy *), .shell.mini.peek .bt:not(.legacy *), .shell.mini.peek .mt:not(.legacy *), .shell.mini.peek .sub:not(.legacy *), .shell.mini.peek .ni>.bdg:not(.legacy *), .shell.mini.peek .rolebar:not(.legacy *) {animation:railIn .24s cubic-bezier(.22,.9,.24,1) .08s both}
@media (prefers-reduced-motion:reduce){.rail:not(.legacy *) {transition:none}.shell.mini.peek .nl:not(.legacy *), .shell.mini.peek .chev:not(.legacy *), .shell.mini.peek .bt:not(.legacy *), .shell.mini.peek .mt:not(.legacy *), .shell.mini.peek .sub:not(.legacy *) {animation:none}}
/* thin, quiet scrollbars everywhere */
* {scrollbar-width:thin;scrollbar-color:rgb(255 255 255 / .16) transparent}
:not(.legacy *)::-webkit-scrollbar {width:8px;height:8px}
:not(.legacy *)::-webkit-scrollbar-track {background:transparent}
:not(.legacy *)::-webkit-scrollbar-thumb {background:rgb(255 255 255 / .14);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
:not(.legacy *)::-webkit-scrollbar-thumb:hover {background:rgb(242 193 78 / .5);background-clip:padding-box}
:not(.legacy *)::-webkit-scrollbar-corner {background:transparent}
/* sidebar list: scrollbar only while the pointer is on it, soft fade at the edges */
.nlist:not(.legacy *) {scrollbar-color:transparent transparent;mask-image:linear-gradient(180deg,transparent 0,#000 12px,#000 calc(100% - 16px),transparent 100%)}
.nlist:hover:not(.legacy *) {scrollbar-color:rgb(255 255 255 / .18) transparent}
.nlist:not(.legacy *)::-webkit-scrollbar {width:6px}
.nlist:not(.legacy *)::-webkit-scrollbar-thumb {background:transparent;background-clip:padding-box}
.nlist:hover:not(.legacy *)::-webkit-scrollbar-thumb {background:rgb(255 255 255 / .18);background-clip:padding-box}
.pmx th:not(.legacy *), .pmx td:not(.legacy *) {text-align:right}
.pmx td.pm:not(.legacy *), .pmx th.pm:not(.legacy *) {text-align:center;width:90px}
.pmx tbody th:not(.legacy *) {font-weight:600;color:var(--ink);background:none}
.ck:not(.legacy *) {display:inline-block;width:20px;height:20px;border-radius:6px;border:1.5px solid var(--line-2);vertical-align:middle;cursor:pointer;position:relative;background:var(--bg-2)}
.ck.sm:not(.legacy *) {width:14px;height:14px;border-radius:4px}
.ck.on:not(.legacy *) {background:var(--ok);border-color:var(--ok)}
.ck.on:not(.legacy *)::after {content:"";position:absolute;inset:3px 6px 6px 5px;border:solid #06140C;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ck.sm.on:not(.legacy *)::after {inset:1px 4px 4px 3px}
.ck.why:not(.legacy *) {background:var(--warn);border-color:var(--warn)}
.ck.why:not(.legacy *)::after {content:"!";position:absolute;inset:0;display:grid;place-items:center;color:#1A1204;font-weight:900;font-size:12px}
.ck.sm.why:not(.legacy *)::after {font-size:9px}
.ck:focus-visible:not(.legacy *) {outline:2px solid var(--gold);outline-offset:2px}
.rolelist:not(.legacy *) {display:flex;flex-direction:column;gap:2px}
.rl:not(.legacy *) {display:flex;flex-direction:column;align-items:flex-start;border:0;background:none;color:var(--muted);padding:8px 12px;border-radius:10px;cursor:pointer;text-align:right}
.rl b:not(.legacy *) {color:var(--ink);font-weight:700;font-size:13px}
.rl small:not(.legacy *) {font-size:11px;color:var(--dim)}
.rl.on:not(.legacy *) {background:var(--surface-2);box-shadow:inset -3px 0 0 var(--gold)}
.rl:hover:not(.legacy *) {background:var(--surface-2)}
tr.sel td:not(.legacy *) {background:rgb(242 193 78 / .05)}
.staffcard .ch:not(.legacy *) {align-items:center}
.sacts:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.btn.warnb:not(.legacy *) {border-color:rgb(242 153 74 / .45);color:var(--warn)}
.btn.dangerb:not(.legacy *) {border-color:rgb(255 107 122 / .45);color:var(--bad)}
@media (max-width:980px){#t-st-roles .grid:not(.legacy *) {grid-template-columns:minmax(0,1fr)!important}}
.cols:not(.legacy *) {display:flex;align-items:flex-end;gap:6px;height:120px;padding-top:6px;border-bottom:1px solid var(--line)}
.cols i:not(.legacy *) {flex:1;border-radius:6px 6px 0 0;background:linear-gradient(180deg,var(--violet),rgb(155 123 255 / .35));min-height:4px}
.hbars:not(.legacy *) {display:flex;flex-direction:column;gap:8px}
.hb:not(.legacy *) {display:grid;grid-template-columns:120px minmax(0,1fr) 34px;gap:10px;align-items:center;font-size:12.5px}
.hbl:not(.legacy *) {color:var(--muted)}
.hbt:not(.legacy *) {height:10px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.hbt i:not(.legacy *) {display:block;height:100%;border-radius:6px}
.hbv:not(.legacy *) {text-align:left;font-weight:700}
.sbt:not(.legacy *) {font-size:12.5px;color:var(--muted);margin-bottom:8px;display:flex;align-items:center;flex-wrap:wrap}
.sbar:not(.legacy *) {display:flex;height:14px;border-radius:8px;overflow:hidden;background:var(--surface-2);gap:2px}
.sbar i:not(.legacy *) {display:block;height:100%}
.slegend:not(.legacy *) {display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:12.5px;color:var(--muted)}
.slegend span:not(.legacy *) {display:flex;align-items:center;gap:6px}
.slegend i:not(.legacy *) {width:10px;height:10px;border-radius:3px;flex:none}
.slegend b:not(.legacy *) {color:var(--ink);margin-inline-start:auto}
.slegend small:not(.legacy *) {color:var(--dim);min-width:36px;text-align:left}
.qh:not(.legacy *) {font-size:15px;margin:6px 0 -6px;color:var(--muted)}
.qc:not(.legacy *) {display:flex;flex-direction:column;gap:4px}
.qq:not(.legacy *) {font-size:13px;color:var(--muted)}
.qa:not(.legacy *) {font-size:24px;font-weight:800}
.qs:not(.legacy *) {font-size:12.5px;color:var(--dim)}
.qf:not(.legacy *) {display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}
.dqs:not(.legacy *) {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dq:not(.legacy *) {background:var(--surface-2);border-radius:var(--r-sm);padding:12px 14px;display:flex;flex-direction:column;gap:4px}
@media (max-width:1180px){.dqs:not(.legacy *) {grid-template-columns:minmax(0,1fr)}}
.clickrows tbody tr:is([data-go],[data-id]):not(.legacy *) {cursor:pointer}
.clickrows tbody tr:is([data-go],[data-id]):hover td:not(.legacy *) {background:rgb(242 193 78 / .06)}
/* KPI numbers always fit their card */
.kpi:not(.legacy *) {container-type:inline-size;min-width:0}
.kpi .v:not(.legacy *) {font-size:clamp(16px,10.5cqi,28px);line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.hero.kpi .v:not(.legacy *), .kpi.hero .v:not(.legacy *) {font-size:clamp(18px,11.5cqi,34px)}
.kpi .v .num:not(.legacy *) {max-width:100%}
.kpi .d:not(.legacy *), .kpi .l:not(.legacy *) {overflow-wrap:anywhere}
.ng.has>.ni:not(.legacy *) {padding-inline-end:48px}
.chevbtn:not(.legacy *) {position:absolute;top:5px;inset-inline-end:6px;width:36px;height:36px;border-radius:50%;border:1px solid var(--line-2);background:rgb(255 255 255 / .04);color:var(--muted);display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}
.chevbtn:hover:not(.legacy *) {background:rgb(242 193 78 / .14);border-color:rgb(242 193 78 / .5);color:var(--gold)}
.ng.open>.chevbtn:not(.legacy *) {background:var(--surface-2);color:var(--ink)}
.chevbtn:focus-visible:not(.legacy *) {outline:2px solid var(--gold);outline-offset:1px}
.chevbtn .chev:not(.legacy *) {width:18px;height:18px;stroke-width:2.2}
.ng.open>.chevbtn .chev:not(.legacy *) {transform:rotate(180deg)}
.shell.mini:not(.peek) .chevbtn:not(.legacy *) {display:none}
.shell.mini:not(.peek) .ng.has>.ni:not(.legacy *) {padding-inline-end:6px}
.sphead:not(.legacy *) {display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.sphn h1:not(.legacy *) {font-size:24px}
.sphs:not(.legacy *) {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:2px}
.dotok:not(.legacy *) {display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ok)}
.dotok:not(.legacy *)::before {content:"";width:8px;height:8px;border-radius:50%;background:var(--ok)}
.spact:not(.legacy *) {margin-inline-start:auto;display:flex;gap:8px;align-items:center}
.mwrap:not(.legacy *) {position:relative}
.spmenu:not(.legacy *) {position:absolute;top:calc(100% + 6px);inset-inline-end:0;min-width:220px;background:var(--surface-3);border:1px solid var(--line-2);border-radius:12px;padding:6px;box-shadow:var(--shadow);z-index:20;display:flex;flex-direction:column}
.spmenu button:not(.legacy *) {border:0;background:none;color:var(--ink);text-align:right;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:13px}
.spmenu button:hover:not(.legacy *) {background:rgb(255 255 255 / .05)}
.spmenu hr:not(.legacy *) {border:0;border-top:1px solid var(--line);margin:4px 0}
.spmenu .w:not(.legacy *) {color:var(--warn)} .spmenu .d:not(.legacy *) {color:var(--bad)}
.spgrid:not(.legacy *) {display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.spmain:not(.legacy *) {display:flex;flex-direction:column;gap:16px;min-width:0}
.spside:not(.legacy *) {display:flex;flex-direction:column;gap:16px}
.sph3:not(.legacy *) {margin:0 0 10px;font-size:13px;color:var(--muted);font-weight:700}
.spkpis:not(.legacy *) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.spkpis>div:not(.legacy *) {display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:12px;background:var(--surface-2);min-width:0}
.spkpis .l:not(.legacy *) {font-size:12px;color:var(--dim)}
.spkpis b:not(.legacy *) {font-size:22px;font-weight:800}
.spkpis small:not(.legacy *) {font-size:11.5px;color:var(--dim)}
.spov:not(.legacy *) {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px;padding:10px;border-radius:10px;background:rgb(242 153 74 / .07);border:1px solid rgb(242 153 74 / .25)}
.spov b:not(.legacy *) {font-size:13px} .spov p:not(.legacy *) {margin:0;font-size:11.5px;color:var(--dim)}
@media (max-width:1100px){.spgrid:not(.legacy *) {grid-template-columns:minmax(0,1fr)}.spkpis:not(.legacy *) {grid-template-columns:repeat(2,minmax(0,1fr))}}
/* responsive pass */
.searchbtn:not(.legacy *) {min-width:0}
.searchbtn .sl:not(.legacy *) {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.h1row .act:not(.legacy *) {flex-wrap:wrap}
.field:not(.legacy *) {white-space:nowrap}
.tabs:not(.legacy *) {scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%)}
.tabs:not(.legacy *)::-webkit-scrollbar {display:none}
.tab:not(.legacy *) {flex:none}
.mockbar:not(.legacy *) {font-size:12px}
@media (max-width:1180px){.top .clock #clkDate:not(.legacy *) {display:none}}
@media (max-width:900px){.searchbtn .slx:not(.legacy *), .searchbtn .kbd:not(.legacy *) {display:none}}
@media (max-width:820px){
  .top:not(.legacy *) {gap:8px}
  .searchbtn:not(.legacy *) {flex:1;max-width:none}
  .screen:not(.legacy *) {gap:14px}
  h1:not(.legacy *) {font-size:19px}
  .h1row:not(.legacy *) {align-items:flex-start}
  .h1row .act:not(.legacy *) {margin-inline-start:0;width:100%}
  .seg:not(.legacy *) {flex-wrap:wrap}
  .sphead .spact:not(.legacy *) {margin-inline-start:0;width:100%}
  .idtop:not(.legacy *) {grid-template-columns:auto minmax(0,1fr)}
  .bbody:not(.legacy *) {grid-template-columns:minmax(0,1fr)}
  .card:not(.legacy *) {padding:14px}
  .dqs:not(.legacy *) {grid-template-columns:minmax(0,1fr)}
  .cmsend:not(.legacy *) {margin-inline-start:0;width:100%;justify-content:flex-end}
  .mockbar>span:not(.legacy *) {display:none}
}
@media (max-width:520px){.top .clock:not(.legacy *) {display:none}.g3:not(.legacy *), .g2:not(.legacy *) {grid-template-columns:minmax(0,1fr)}.spkpis:not(.legacy *) {grid-template-columns:repeat(2,minmax(0,1fr))}.hb:not(.legacy *) {grid-template-columns:96px minmax(0,1fr) 30px}}
.ai.aiwide:not(.legacy *) {grid-template-columns:4px 180px minmax(0,1fr) auto}
@media (max-width:820px){.ai.aiwide:not(.legacy *) {grid-template-columns:4px minmax(0,1fr)}.ai.aiwide>*:not(.s):not(.legacy *) {grid-column:2}.ai.aiwide .s:not(.legacy *) {grid-row:span 3}}
.ch:not(.legacy *) {flex-wrap:wrap}
@media (max-width:820px){.ai:not(.legacy *) {grid-template-columns:4px minmax(0,1fr)}.ai>*:not(.s):not(.legacy *) {grid-column:2}.ai>.s:not(.legacy *) {grid-row:1/span 3}.ai>div:last-child:not(:first-child):not(.legacy *) {justify-self:start}}
.ai>button:not(.legacy *), .ai>.btn:not(.legacy *) {justify-self:start;align-self:center}
@media (min-width:821px){.ai>button:not(.legacy *), .ai>.btn:not(.legacy *) {justify-self:end}}
.alert .btn:not(.legacy *) {white-space:nowrap}
.alert>div:not(.legacy *) {flex:1;min-width:200px}
/* inbox */
.inbox:not(.legacy *) {display:grid;grid-template-columns:330px minmax(0,1fr) 280px;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;min-height:620px}
.ilist:not(.legacy *) {border-inline-end:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.ilist .hd:not(.legacy *) {padding:12px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.it:not(.legacy *) {display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer;position:relative}
.it:hover:not(.legacy *) {background:rgb(242 193 78 / .05)}
.it.on:not(.legacy *) {background:var(--surface-2);box-shadow:inset -3px 0 0 var(--gold)}
.it .r1:not(.legacy *) {display:flex;gap:8px;align-items:center}
.it .r1 b:not(.legacy *) {font-weight:700;font-size:13px}
.it .r1 .t:not(.legacy *) {margin-inline-start:auto;color:var(--dim);font-size:11.5px}
.it p:not(.legacy *) {margin:0;color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.it .r3:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap}
.conv:not(.legacy *) {display:flex;flex-direction:column;min-width:0}
.conv .hd:not(.legacy *) {padding:14px 18px;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.conv .hd h3:not(.legacy *) {margin:0;font-size:15px}
.msgs:not(.legacy *) {flex:1;padding:18px;display:flex;flex-direction:column;gap:12px;overflow:auto;background:linear-gradient(180deg,var(--surface),var(--bg-2))}
.bub:not(.legacy *) {max-width:78%;border-radius:16px;padding:10px 14px;font-size:13px;line-height:1.9}
.bub small:not(.legacy *) {display:block;color:var(--dim);font-size:11px;margin-top:4px}
.bub.u:not(.legacy *) {background:var(--surface-3);align-self:flex-end;border-start-end-radius:4px}
.bub.s:not(.legacy *) {background:rgb(242 193 78 / .12);border:1px solid rgb(242 193 78 / .2);align-self:flex-start;border-start-start-radius:4px}
.bub.n:not(.legacy *) {background:rgb(155 123 255 / .1);border:1px dashed rgb(155 123 255 / .35);align-self:center;max-width:90%;font-size:12.5px;color:var(--muted)}
.mergebox:not(.legacy *) {display:flex;flex-direction:column;gap:4px;margin:0 0 12px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--ok) 12%,transparent);border:1px solid color-mix(in srgb,var(--ok) 45%,transparent);font-size:13px}
.mergebox > b:not(.legacy *) {color:var(--ok)}
.techinfo:not(.legacy *) {align-self:flex-end;display:flex;gap:6px;flex-wrap:wrap}
.reply:not(.legacy *) {border-top:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:8px}
.reply textarea:not(.legacy *) {background:var(--bg-2);border:1px solid var(--line-2);border-radius:var(--r-sm);padding:10px 12px;min-height:72px;resize:vertical;width:100%}
.reply .row:not(.legacy *) {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.side:not(.legacy *) {border-inline-start:1px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:14px;background:var(--bg-2);min-width:0}
.side h4:not(.legacy *) {margin:0;font-size:12px;color:var(--dim);font-weight:600}

/* phone */
.phones:not(.legacy *) {display:flex;gap:28px;flex-wrap:wrap;justify-content:center;align-items:flex-start}
.phone:not(.legacy *) {width:300px;max-width:100%;border-radius:38px;background:#03060C;padding:12px;border:1px solid var(--line-2);box-shadow:0 40px 80px -36px rgb(0 0 0 / .9)}
.pscr:not(.legacy *) {border-radius:28px;background:#0B1220;overflow:hidden;min-height:580px;display:flex;flex-direction:column}
.pbar:not(.legacy *) {display:flex;justify-content:space-between;padding:10px 18px 4px;font-size:11px;color:var(--dim);direction:ltr}
.phd:not(.legacy *) {display:flex;align-items:center;gap:10px;padding:8px 16px 12px}
.phd b:not(.legacy *) {font-size:15px}
.pbody:not(.legacy *) {padding:0 16px 16px;display:flex;flex-direction:column;gap:12px;flex:1}
.plab:not(.legacy *) {font-size:12px;color:var(--muted);margin-bottom:-6px}
.pin:not(.legacy *) {background:var(--surface);border:1px solid var(--line-2);border-radius:14px;padding:10px 12px;font-size:13px;color:var(--ink)}
.pin.ph:not(.legacy *) {color:var(--dim)}
.cats:not(.legacy *) {display:flex;gap:6px;flex-wrap:wrap}
.cats span:not(.legacy *) {font-size:12px;border-radius:999px;padding:4px 10px;background:var(--surface);border:1px solid var(--line-2);color:var(--muted)}
.cats span.on:not(.legacy *) {background:rgb(242 193 78 / .14);border-color:rgb(242 193 78 / .4);color:var(--gold)}
.attach:not(.legacy *) {border:1px dashed var(--line-2);border-radius:14px;padding:10px;display:flex;align-items:center;gap:8px;color:var(--dim);font-size:12.5px}
.tinfo:not(.legacy *) {background:var(--surface);border-radius:14px;padding:10px 12px;font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.tinfo b:not(.legacy *) {color:var(--ink);font-size:12.5px}
.pbtn:not(.legacy *) {margin-top:auto;background:var(--gold);color:var(--gold-ink);border-radius:14px;padding:12px;text-align:center;font-weight:800}
.tk:not(.legacy *) {background:var(--surface);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;position:relative}
.tk .r1:not(.legacy *) {display:flex;align-items:center;gap:8px}
.tk .r1 b:not(.legacy *) {font-size:13px}
.tk .r1 .chip:not(.legacy *) {margin-inline-start:auto}
.tk p:not(.legacy *) {margin:0;font-size:12px;color:var(--dim)}
.tk.new:not(.legacy *)::after {content:"";position:absolute;top:12px;left:12px;width:8px;height:8px;border-radius:50%;background:var(--gold)}

/* advertiser */
.pipe:not(.legacy *) {display:flex;gap:4px;flex-wrap:wrap}
.pipe span:not(.legacy *) {flex:1;min-width:90px;text-align:center;font-size:12px;padding:8px 6px;background:var(--surface-2);color:var(--dim);border-radius:8px}
.pipe span.done:not(.legacy *) {background:rgb(61 214 140 / .1);color:var(--ok)}
.pipe span.cur:not(.legacy *) {background:var(--gold);color:var(--gold-ink);font-weight:800}
.cal:not(.legacy *) {display:grid;grid-template-columns:120px repeat(14,minmax(26px,1fr));gap:3px;font-size:11px;min-width:640px}
.cal .hd:not(.legacy *) {color:var(--dim);text-align:center}
.cal .lb:not(.legacy *) {color:var(--muted);font-size:12px;display:flex;align-items:center}
.cal .c:not(.legacy *) {height:26px;border-radius:5px;background:transparent;border:1.5px dashed rgb(169 179 199 / .55)}
.cal .c.b:not(.legacy *) {background:linear-gradient(180deg,var(--gold),var(--gold-2));border:0}
.cal .c.o:not(.legacy *) {background:linear-gradient(180deg,var(--gold),var(--gold-2));border:0}
.cal .c.h:not(.legacy *) {background:repeating-linear-gradient(135deg,rgb(91 155 255 / .55) 0 5px,rgb(91 155 255 / .25) 5px 10px);border:1.5px solid var(--info)}
.legend:not(.legacy *) {display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.legend i:not(.legacy *) {display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:6px;vertical-align:middle}
.spark:not(.legacy *) {width:100%;height:56px}

/* search overlay */
.ov:not(.legacy *) {position:fixed;inset:0;background:rgb(3 6 12 / .7);backdrop-filter:blur(4px);z-index:50;display:flex;justify-content:center;align-items:flex-start;padding:10vh 16px 16px}
.cmd:not(.legacy *) {width:min(720px,100%);background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}
.cmd .in:not(.legacy *) {display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.cmd .in input:not(.legacy *) {flex:1;background:none;border:0;outline:none;font-size:16px}
.cmd .grp2:not(.legacy *) {padding:10px 18px 4px;font-size:11.5px;color:var(--dim)}
.res:not(.legacy *) {display:flex;align-items:center;gap:12px;padding:10px 18px;cursor:pointer}
.res:hover:not(.legacy *), .res.on:not(.legacy *) {background:var(--surface-2)}
.res .ico:not(.legacy *) {width:32px;height:32px;border-radius:10px;background:var(--surface-3);display:grid;place-items:center;color:var(--gold)}
.res b:not(.legacy *) {font-weight:700}
.res p:not(.legacy *) {margin:0;font-size:12px;color:var(--dim)}
.res .r:not(.legacy *) {margin-inline-start:auto;display:flex;gap:6px}
mark:not(.legacy *) {background:rgb(242 193 78 / .25);color:var(--ink);border-radius:3px;padding:0 2px}
.cmd .ft:not(.legacy *) {display:flex;gap:14px;padding:10px 18px;border-top:1px solid var(--line);font-size:11.5px;color:var(--dim);flex-wrap:wrap}

.note:not(.legacy *) {font-size:12px;color:var(--dim)}

@media (max-width:1180px){.inbox:not(.legacy *) {grid-template-columns:300px minmax(0,1fr)}.side:not(.legacy *) {display:none}}
@media (max-width:980px){.g4:not(.legacy *) {grid-template-columns:repeat(2,minmax(0,1fr))}.split:not(.legacy *), .g3:not(.legacy *), .g2:not(.legacy *) {grid-template-columns:minmax(0,1fr)}}
@media (max-width:820px){
  .shell:not(.legacy *), .shell.mini:not(.legacy *) {grid-template-columns:minmax(0,1fr)}
  .top:not(.legacy *) {padding-inline:16px}.screen:not(.legacy *) {padding:16px}
  .inbox:not(.legacy *) {grid-template-columns:minmax(0,1fr)}.ilist:not(.legacy *) {border-inline-end:0;border-bottom:1px solid var(--line)}
  .idcard:not(.legacy *) {grid-template-columns:minmax(0,1fr)}
  .tl li:not(.legacy *) {grid-template-columns:80px 26px minmax(0,1fr)}.tl li:not(.legacy *)::before {right:calc(80px + 10px + 12px)}
}
@media (max-width:520px){.g4:not(.legacy *) {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.g4>.card:not(.legacy *) {padding:12px}}
@media (prefers-reduced-motion:no-preference){.screen.on:not(.legacy *) {animation:fade .25s ease-out}@keyframes fade{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}}
