/* 18 Nov fixes (audit A01 + closed menu):
   1) desktop sign-in modal: when closed it is fully hidden (it used to sit at the bottom over "Tell us your problem" on short windows)
   2) closed menu: hidden from clicks AND keyboard focus, not just transparent */
html.desk.wide .sheet{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(16px) scale(.98)!important;
  transition:opacity .26s ease,transform .36s var(--sp),visibility 0s linear .36s}
html.desk.wide .open .sheet{opacity:1;visibility:visible;pointer-events:auto;transform:none!important;
  transition:opacity .26s ease,transform .36s var(--sp),visibility 0s}
.menu{visibility:hidden;transition:opacity .25s var(--sp-soft),transform .5s var(--sp-b),filter .3s var(--sp-soft),visibility 0s linear .5s}
.menu-open .menu{visibility:visible;transition:opacity .25s var(--sp-soft),transform .5s var(--sp-b),filter .3s var(--sp-soft),visibility 0s}
/* 3) What we build on desktop: words on the left, the sticky desk on the right and larger (it was a phone-width column) */
@media (min-width:900px){
  html.desk.wide #pg-build .pscroll{display:grid!important;grid-template-columns:minmax(260px,1fr) auto;column-gap:clamp(32px,5vw,72px);align-content:start}
  html.desk.wide #pg-build .pscroll>.ptitle,html.desk.wide #pg-build .pscroll>.plead,html.desk.wide #pg-build .pscroll>.btn,html.desk.wide #pg-build .pscroll>.foot{grid-column:1;max-width:440px}
  html.desk.wide #pg-build .pscroll>.ptitle{margin-top:clamp(24px,8vh,96px)}
  html.desk.wide #pg-build .pscroll>.btn{justify-self:start;margin-top:24px;width:auto;padding-inline:28px}
  html.desk.wide #pg-build .desk{grid-column:2;grid-row:1/span 6;zoom:1.3;margin:0;width:393px;padding:0 16px;box-sizing:border-box;justify-self:end}
  html.desk.wide #pg-build .pscroll>.foot{text-align:left;margin-inline:0}
}
/* 4) admin tables: row actions fit inside the 40px row (buttons were taller than the row and touched the next row's) */
html.desk.wide .trow{min-height:40px}
html.desk.wide .trow button{height:28px!important;min-height:28px!important;padding:0 12px!important;line-height:28px!important;font-size:12.5px!important;border-radius:8px!important;white-space:nowrap}
/* 5) update note: the close button never sits on the text */
.relnote{padding-right:52px!important;position:relative}
.relnote .xbtn{position:absolute!important;top:10px;right:10px}
@media (pointer:fine){
  html.desk.wide .trow .tc button,html.desk.wide .trow .tc .get{min-height:28px!important;height:28px!important;max-height:28px!important;box-sizing:border-box}
}
/* 6) wide admin tables on smaller windows: the table scrolls sideways inside its card instead of running off the window */
@media (max-width:1279px){
  html.desk.wide .dtable{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  html.desk.wide .dtable>.trow{min-width:900px}
}
/* 6b) the action column stays pinned on the right while the middle columns scroll */
@media (max-width:1279px){
  html.desk.wide .dtable>.trow>.tc:last-child{position:sticky;right:0;z-index:1;padding-left:12px;background:#0d0d10;box-shadow:-10px 0 12px -8px rgba(0,0,0,.6)}
  html.desk.wide[data-theme=light] .dtable>.trow>.tc:last-child{background:#ebe9e4;box-shadow:-10px 0 12px -8px rgba(0,0,0,.12)}
  html.desk.wide .dtable>.trow.th>.tc:last-child{background:transparent;box-shadow:none}
}
/* 7) desktop: the "Updated to vX" note sits bottom-right, never over the page title */
html.desk.wide .relnote{left:auto!important;right:24px!important;top:auto!important;bottom:24px!important;transform:none!important;position:fixed!important}
/* 8) audit filter bar wraps on narrower windows instead of pushing Export CSV off the edge */
html.desk.wide .ask.static{flex-wrap:wrap;row-gap:8px;height:auto!important;min-height:52px}
html.desk.wide .ask.static>*{min-width:0}

/* 9) real sign-in: no demo hint */
html.live .ix-authnote{display:none!important}

/* 10) no Sign in with Apple (not on the App Store): owner, 19 Nov */
[data-sso="Apple"]{display:none!important}
/* 11) "Turn your phone upright" is for touch phones only, never a short laptop window (display scaling made it appear) */
@media (pointer:fine){html .turn-card{display:none!important}}
/* 12) front door on short desktop windows (125-150% Windows scaling): the headline block never shrinks under its text, so the chat box can't cover the subline */
html.desk.wide .door .dtop{flex:1 0 auto!important;min-height:min-content!important}
html.desk.wide .door{overflow-y:auto;overscroll-behavior:contain}
@media (max-height:660px){
  html.desk.wide .door{padding-top:calc(5vh + 64px)!important;padding-bottom:3vh!important}
  html.desk.wide .door .dtop{padding-bottom:14px!important}
  html.desk.wide .door .chat{margin-top:14px!important}
}

/* 13) the top bar never blocks the icon loop under it: only its buttons take clicks */
html.desk.wide #topbar{pointer-events:none}
html.desk.wide #topbar>*{pointer-events:auto}

/* ── 14. Door chat box: "too big for its text" + "not aligned w text" (owner, 19 Nov) ───────────────
   Measured before: box 66px tall for a 21px line (3.14x), placeholder centre 1.5px below the send
   button's centre. Three separate causes, fixed at the root rather than nudged:
   (a) #attwrap is always in the DOM and empty, so the column's 6px gap applied to nothing.
   (b) .crow used align-items:flex-end, so a 40px textarea and a 44px button aligned by their bottoms
       instead of sharing a centre line.
   (c) 8px padding around a 44px control made the box far taller than the single line it holds.
   After: 52px box for a 21px line (2.48x), text and send button on one centre line.
   The send button stays a full 44px touch target via an invisible expanded hit area, so trimming the
   visible control costs nothing on touch. */
#attwrap:empty{display:none!important}
.door .chat{padding:6px!important;--r:26px}
.door .chat .crow{align-items:center!important;gap:8px!important}
.door .chat textarea{height:40px!important;padding:9px 4px!important}
.door .chat .venom-send{width:40px!important;height:40px!important;border-radius:20px!important;position:relative;flex:none}
.door .chat .venom-send::after{content:"";position:absolute;inset:-2px;border-radius:22px}
.door .chat .ccount{bottom:1px}

/* ══ 19 Nov (3): the admin console rebuilt against the reference shot ════════════════════════════════
   Reference: dribbble.com/shots/27380583 — "E-commerce Admin Dashboard UI design" (Obayedul Islam).
   Measured off the 4112x3088 original. The shot's app panel is 3720 px wide there, so every number
   below is the measured natural pixel x 0.35, which is what the panel becomes at this window's 1303 px.
   Hard constraint on top of that: the whole console fits 1303x640 with nothing clipped, so the three
   content bands are shortened (the shot's panel is 1.32:1, this window is 2.04:1) while the type scale,
   card treatment, grid ratios and colour relationships stay as measured. ══════════════════════════ */

/* ── 1. tokens: the shot's violet-on-white, replacing the console's terracotta-on-beige ───────────── */
html.admin[data-theme=light]{
  --a-r:10px;
  --a-bg:#E7E3FB;                 /* the lavender field the panel floats on */
  --a-card:#FFFFFF; --a-card2:#F6F6F9; --a-hover:#FAFAFC;
  --a-head:#FDF2E7;               /* the table header's warm cream band */
  --a-line:#EDEDF1; --a-line2:#DEDEE5;
  --a-text:#111827; --a-mut:#6B7280; --a-faint:#9AA0AC;
  --a-shadow:none;                /* the shot's cards carry a hairline, never a shadow */
  --a-pri:#6C3EF4; --a-prit:#FFFFFF; --a-link:#6C3EF4; --a-acc:#6C3EF4;
  --a-tint:#F1EDFE;               /* the active nav pill and the foot banner */
  --a-focus:#6C3EF4;
  --a-ok:#16A34A; --a-okt:#DCFCE7;
  --a-warn:#D97706; --a-warnt:#FEF0DC;
  --a-bad:#DC2626; --a-badt:#FEE2E2;
  --a-info:#2563EB; --a-infot:#DBEAFE;
  --a-mutc:#6B7280;
  --a-c1:#6C3EF4; --a-c2:#B6BAC4;  /* the two chart lines: violet, then grey */
  --a-g1:#6C3EF4; --a-g2:#A5B4FC; --a-g3:#C7CAD2;
}
html.admin{
  --a-r:10px;
  --a-bg:#15131F; --a-card:#1B1927; --a-card2:#232031; --a-hover:#262235; --a-head:#2A2234;
  --a-line:rgba(255,255,255,.09); --a-line2:rgba(255,255,255,.16);
  --a-text:#F3F2F8; --a-mut:#A7A4B8; --a-faint:#847FA0;
  --a-shadow:none;
  --a-pri:#7C5CF7; --a-prit:#FFFFFF; --a-link:#A68BFF; --a-acc:#A68BFF;
  --a-tint:rgba(124,92,247,.18); --a-focus:#8E72FF;
  --a-ok:#4ADE80; --a-okt:rgba(74,222,128,.16);
  --a-warn:#FBBF24; --a-warnt:rgba(251,191,36,.16);
  --a-bad:#FF8080; --a-badt:rgba(255,128,128,.16);
  --a-info:#8DB6FF; --a-infot:rgba(141,182,255,.16);
  --a-mutc:#A7A4B8;
  --a-c1:#8E72FF; --a-c2:#6E6A84;
  --a-g1:#8E72FF; --a-g2:#5D5680; --a-g3:#39354A;
}
html.admin .t-acc{--tone:var(--a-acc);--tonet:var(--a-tint)}
html.admin .t-ok{--tone:var(--a-ok);--tonet:var(--a-okt)}
html.admin .t-warn{--tone:var(--a-warn);--tonet:var(--a-warnt)}
html.admin .t-bad{--tone:var(--a-bad);--tonet:var(--a-badt)}
html.admin .t-info{--tone:var(--a-info);--tonet:var(--a-infot)}
html.admin .t-mute{--tone:var(--a-mutc);--tonet:var(--a-card2)}

/* ── 2. the window: one white rounded panel on the lavender field ─────────────────────────────────
   Shot: the panel is inset from the page on all four sides with a soft shadow and a ~32 px radius
   (x0.35 = 11). Here the inset is 8 px, the smallest that still reads as a floating panel without
   spending height the three content bands need. ───────────────────────────────────────────────── */
html.desk.wide.admin{--sb:238px;--tb:48px;--gx:8px}
@media (max-width:1180px){html.desk.wide.admin{--sb:214px}}
html.desk.wide.admin .device.in-ws{background:var(--a-bg)!important}
html.desk.wide.admin .device.in-ws .screens,
html.desk.wide.admin .device.in-ws .screen{background:var(--a-card)}
html.desk.wide.admin .device.in-ws .tabbar{
  left:var(--gx)!important;top:var(--gx)!important;bottom:var(--gx)!important;
  width:var(--sb)!important;border-radius:16px 0 0 16px!important;
  background:var(--a-card)!important;box-shadow:inset -1px 0 0 var(--a-line)!important;overflow:hidden}
html.desk.wide.admin .device.in-ws .navbar{
  left:calc(var(--sb) + var(--gx))!important;right:var(--gx)!important;top:var(--gx)!important;
  height:var(--tb)!important;border-radius:0 16px 0 0;background:var(--a-card);box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none}
html.desk.wide.admin .device.in-ws .screens{
  left:calc(var(--sb) + var(--gx))!important;top:calc(var(--tb) + var(--gx))!important;
  right:var(--gx)!important;bottom:var(--gx)!important;border-radius:0 0 16px 0;overflow:hidden}
/* one shadow for the whole panel, drawn behind all three pieces */
html.desk.wide.admin .device.in-ws::before{
  content:"";position:fixed;left:var(--gx);top:var(--gx);right:var(--gx);bottom:var(--gx);
  border-radius:16px;background:var(--a-card);box-shadow:0 1px 2px rgba(49,35,110,.06),0 18px 40px -22px rgba(49,35,110,.30);
  pointer-events:none;z-index:1}
html.admin[data-theme=light] ::selection{background:var(--a-tint);color:var(--a-text)}

/* ── 3. sidebar ────────────────────────────────────────────────────────────────────────────────────
   Shot: 710 nat wide (19 % of the panel) = 249; brand mark 86 nat square, radius 24 (= 30 / 8);
   nav row 105 nat tall (= 37) with a 540-nat pill inset 55 nat from the panel edge (= 19);
   group captions are hairline-ruled, uppercase, letterspaced; the account card sits on the floor
   with a 1 px border and a chevron. ─────────────────────────────────────────────────────────── */
html.desk.wide.admin .device.in-ws .tabbar{padding:0 12px 12px!important;gap:1px}
html.admin .asb-brand{height:58px;min-height:58px;gap:9px;padding:0 6px}
html.admin .asb-logo{width:30px;height:30px;border-radius:9px}
html.admin .asb-bt b{font-size:14.5px;line-height:18px;font-weight:700;letter-spacing:-.25px}
html.admin .asb-bt i{font-size:10px;line-height:13px}
html.admin .asb-g{padding:0 10px;margin:14px 0 4px;font-size:9.5px;line-height:12px;font-weight:700;letter-spacing:.09em;color:var(--a-faint)}
html.admin .asb-g::before{left:2px;right:2px;top:-8px}
html.admin .asb-brand+.asb-g{margin-top:2px}
html.desk.wide.admin .device.in-ws .tabbar .tab{
  height:34px;min-height:34px;border-radius:8px;padding:0 10px!important;gap:10px;
  font-size:12.5px!important;font-weight:500;color:var(--a-mut)!important}
html.desk.wide.admin .device.in-ws .tabbar .tab svg{width:17px;height:17px}
html.desk.wide.admin .device.in-ws .tabbar .tab span:last-child{font-size:12.5px!important}
html.desk.wide.admin .device.in-ws .tabbar .tab.on{background:var(--a-tint);color:var(--a-pri)!important;font-weight:600}
html.desk.wide.admin .device.in-ws .tabbar .tab.on:hover{background:var(--a-tint);color:var(--a-pri)!important}
html.admin .asb-user{height:46px;min-height:46px;padding:0 9px;gap:8px;border-radius:10px;border:1px solid var(--a-line2)}
html.admin .asb-user .aav{width:26px!important;height:26px!important;border-radius:50%!important;font-size:11px!important;background:var(--a-tint)!important;color:var(--a-pri)!important}
html.admin .asb-ut b{font-size:11.5px;line-height:15px;font-weight:650}
html.admin .asb-ut i{font-size:9.5px;line-height:13px}

/* ── 4. top bar ────────────────────────────────────────────────────────────────────────────────────
   Shot: 36-tall controls on white with no rule under the bar; the search is a filled grey field with
   no border and the shortcut set in a key cap at its right; icon buttons are bordered squares at the
   same radius; hairline dividers separate bell / people / action; one violet primary button. ───── */
html.desk.wide.admin .device.in-ws .navbar{padding:0 14px 0 16px!important;gap:9px}
html.desk.wide.admin .device.in-ws .navbar .nav-sym{width:32px;height:32px;min-width:32px;border-radius:9px;border:1px solid var(--a-line2)}
html.desk.wide.admin .device.in-ws .navbar .nav-sym svg{width:16px;height:16px}
html.desk.wide.admin .dsearch{width:min(268px,25vw);min-width:150px;height:32px;margin-right:auto;display:flex;align-items:center}
html.desk.wide.admin .dsearch input{height:32px;line-height:32px;border-radius:9px;border:0;background:var(--a-card2);padding:0 54px 0 30px;font-size:12px;color:var(--a-text)}
html.desk.wide.admin .dsearch input::placeholder{color:var(--a-faint)}
html.desk.wide.admin .dsearch::before{left:11px;top:11px;width:8px;height:8px;border:1.5px solid var(--a-faint)}
html.desk.wide.admin .dsearch::after{left:18.5px;top:19.5px;width:5px;height:1.5px;background:var(--a-faint)}
html.admin .akbd{position:absolute;right:7px;top:7px;height:18px;padding:0 6px;border-radius:5px;background:var(--a-card);border:1px solid var(--a-line2);color:var(--a-faint);font:inherit;font-size:9.5px;line-height:17px;font-weight:600;letter-spacing:.02em;pointer-events:none}
html.admin .atopr{gap:7px}
html.admin .atopr .aicon{width:32px;height:32px;border-radius:9px;border:1px solid var(--a-line2);background:var(--a-card);color:var(--a-mut)}
html.admin .atopr .aicon:hover{background:var(--a-hover);color:var(--a-text)}
html.admin .atopr .aicon svg{width:16px;height:16px}
html.admin .adotn{top:-5px;right:-5px;min-width:15px;height:15px;font-size:9.5px;line-height:15px;background:var(--a-pri);border-width:1.5px}
/* the shot rules the bell off from the people, and the people off from the action */
html.admin .atopr .aavs{position:relative;padding-left:14px;margin-left:5px}
html.admin .atopr .aavs::before{content:"";position:absolute;left:0;top:50%;width:1px;height:18px;margin-top:-9px;background:var(--a-line2)}
html.admin .atopr .abtn.pri{position:relative;height:32px;border-radius:9px;padding:0 13px;font-size:12.5px;font-weight:650;margin-left:12px}
html.admin .atopr .abtn.pri::before{content:"";position:absolute;left:-7px;top:50%;width:1px;height:18px;margin-top:-9px;background:var(--a-line2)}
html.admin .atopr .aavs>*,html.admin .atopr #navav{width:26px!important;height:26px!important;min-width:26px!important;font-size:10.5px!important;border-width:1.5px!important}
html.admin .atopr .aavs>*{margin-left:-7px!important}
html.admin .atopr #navav{margin:0 0 0 2px!important}

/* ── 5. the page: head, cards, grid ratios ────────────────────────────────────────────────────────
   Shot: title 66 nat (= 23) semibold over an 11 px grey line; cards carry a 1 px hairline and a
   20-nat radius (= 7, rounded to 10 for the shorter cards here) and no shadow at all; the middle row
   splits 1.47 : 1 and the foot row 2.89 : 1.38 : 1, both measured off the shot. ─────────────────── */
html.desk.wide.admin .device.in-ws .screen{padding:14px 16px 6px!important;background:var(--a-card)}
html.admin .ovw{gap:6px}
html.admin .ahead h1.lt{font-size:21px!important;line-height:26px!important;font-weight:700!important;letter-spacing:-.5px!important}
html.admin .ahead .lsub{font-size:11px!important;line-height:15px!important;margin-top:2px!important}
html.admin .acard{padding:10px 12px;border-radius:var(--a-r);border:1px solid var(--a-line);box-shadow:none;background:var(--a-card)}
html.admin .acard-h{min-height:18px;margin-bottom:6px;gap:5px}
html.admin .acard-h h2{font-size:13px;line-height:18px;font-weight:650;letter-spacing:-.15px}
html.admin .acard-link{padding-top:5px;border-top:1px solid var(--a-line)}
html.admin .alink{height:18px;font-size:11.5px;font-weight:600}
html.admin .ainfo{width:13px;height:13px;font-size:9px;border-width:1.1px;margin-left:3px}
html.admin .acount{min-width:19px;height:17px;font-size:10px;padding:0 6px}
html.admin .asel select{height:24px;padding:0 22px 0 8px;border-radius:7px;font-size:11px;line-height:22px;border-color:var(--a-line2)}
html.admin .asel svg{right:7px;top:6px;width:12px;height:12px}
html.admin .agrid.wide-left{grid-template-columns:minmax(0,1.47fr) minmax(0,1fr);gap:12px}
html.admin .agrid.trio{display:grid;grid-template-columns:minmax(0,2.89fr) minmax(0,1.38fr) minmax(0,1fr);gap:12px;align-items:stretch}
@container (max-width:900px){html.admin .agrid.trio{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}html.admin .agrid.trio>.c-donut{grid-column:1/-1}}
@container (max-width:620px){html.admin .agrid.trio{grid-template-columns:minmax(0,1fr)}}

/* ── 6. the KPI row ────────────────────────────────────────────────────────────────────────────────
   Shot: card 701 x 257 nat (= 245 x 90) with a 120-nat tinted tile (= 42, here 32 for the shorter
   card), label 31 nat (= 11), figure 58 nat semibold (= 20), delta line 31 nat, and a 133 x 75 nat
   sparkline (= 47 x 26) pinned right on the figure's line. Four tiles, four tints, as in the shot. */
html.admin .akpis,html.admin .akpis.four{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html.admin .akpi{flex-direction:row;align-items:flex-start;gap:10px;padding:9px 11px;min-height:0;border-radius:var(--a-r);border:1px solid var(--a-line);box-shadow:none}
html.admin button.akpi:hover{transform:none;border-color:var(--a-line2);background:var(--a-hover)}
html.admin .akpi-i{width:32px;height:32px;border-radius:9px;margin-top:1px;background:var(--tonet,var(--a-tint));color:var(--tone)}
html.admin .akpi-i svg{width:16px;height:16px}
html.admin .akpi-t{gap:0}
html.admin .akpi-l{font-size:10.5px;line-height:13px;font-weight:400;color:var(--a-mut)}
html.admin .akpi-v{font-size:19px;line-height:23px;font-weight:650;letter-spacing:-.5px}
html.admin .akpi-f{font-size:10px;line-height:13px;min-height:13px}
html.admin .ktr{font-size:10px}
html.admin .ktr.up{color:var(--a-ok)}
html.admin .ktr.down{color:var(--a-bad)}
html.admin .ktr.flat{color:var(--a-mut)}
html.admin .akpi-m{font-size:10px}
html.admin .kspark{width:46px;height:26px;align-self:center;margin-top:4px}
@container (max-width:1040px){html.admin .akpi{padding:9px;gap:8px}html.admin .akpi-i{width:28px;height:28px;border-radius:8px}html.admin .akpi-v{font-size:17.5px;line-height:22px}html.admin .kspark{width:38px;height:22px}}

/* ── 7. the line chart ────────────────────────────────────────────────────────────────────────────
   Shot: a full hairline grid (five columns, five rows, not just rules), a 1 px plot box, axis labels
   outside it, a 2 px violet curve over a pale violet wash and a grey second curve, and a grey dashed
   marker with its date set in the accent below the axis. ──────────────────────────────────────── */
html.admin .achart-k{gap:4px 14px;margin:0 0 6px;font-size:10.5px;color:var(--a-mut)}
html.admin .achart-k b{color:var(--a-text);font-weight:650;margin-left:3px}
html.admin .achart-k .lg{width:14px;height:7px;border-radius:4px;margin-right:6px}
html.admin .achart{height:var(--ch,105px);padding:2px 0 16px;grid-template-columns:26px minmax(0,1fr);gap:7px}
html.admin .achart-y span,html.admin .abars .achart-y span{font-size:9.5px;line-height:11px;color:var(--a-faint)}
html.admin .achart-x span{font-size:9.5px;line-height:11px;color:var(--a-faint)}
html.admin .achart-p,html.admin .abars-p{border:1px solid var(--a-line);border-radius:3px}
html.admin .achart-p{background-image:linear-gradient(to right,var(--a-line) 1px,transparent 1px);background-size:20% 100%;background-position:0 0}
html.admin .achart-g i{border-top:1px solid var(--a-line)}
html.admin .achart .ln{stroke-width:2}
html.admin .achart .a1{fill:var(--a-c1);opacity:.10}
html.admin .achart .a2{fill:var(--a-c2);opacity:.10}
html.admin .achart-m{border-left:1.5px dashed var(--a-faint);opacity:.85}
html.admin .achart-m span{margin-top:5px;font-size:9.5px;font-weight:600;color:var(--a-pri)}

/* ── 8. the invoicing card: two figures over a bar chart ──────────────────────────────────────────
   Shot: bars 76 nat wide in a 171-nat slot (44 %), flat-topped, pale violet with the current month
   solid; horizontal rules only, inside a 1 px plot box. ───────────────────────────────────────── */
html.admin .astats{gap:5px 16px;margin-bottom:7px}
html.admin .astat-l{font-size:10px;line-height:13px}
html.admin .astat-v{font-size:16px;line-height:20px;font-weight:650;letter-spacing:-.4px}
html.admin .astat2 .ktr{font-size:10px;line-height:13px}
html.admin .abars{grid-template-columns:28px minmax(0,1fr);gap:7px;height:var(--bh,73px);padding:2px 0 15px}
html.admin .abars-p{background-image:none}
html.admin .abar i{width:min(26px,44%);border-radius:2px 2px 0 0;background:color-mix(in srgb,var(--a-c1) 22%,var(--a-card))}
html.admin .abar.now i{background:var(--a-c1)}
html.admin .abar span{margin-top:5px;font-size:9.5px;line-height:11px;color:var(--a-faint)}

/* ── 9. the transaction table ─────────────────────────────────────────────────────────────────────
   Shot: a warm cream header band bleeding to the card's edges, sentence-case column names, 125-nat
   rows (= 44, here 26) split by hairlines inset to the cell padding, a 56-nat rounded avatar (= 20),
   status set in a tinted rounded chip with no dot, and a centred accent link under a rule. ────── */
html.admin .acard.c-table{padding:10px 0 4px}
html.desk.wide.admin .c-table .acard-h,html.desk.wide.admin .c-table .acard-link{padding-left:13px;padding-right:13px}
html.admin .c-table .acard-h{margin-bottom:8px}
html.desk.wide.admin .dtable.rtable .trow{position:relative;min-height:23px;padding:0 13px;column-gap:8px;border-bottom:0;box-shadow:none;font-size:11px;line-height:15px}
html.desk.wide.admin .dtable.rtable .trow:not(.th)::after{content:"";position:absolute;left:13px;right:13px;bottom:0;height:1px;background:var(--a-line)}
html.desk.wide.admin .dtable.rtable .trow:last-child::after{display:none}
html.desk.wide.admin .dtable.rtable .trow.th{min-height:22px;background-color:var(--a-head);border-bottom:0;font-size:10.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--a-mut)}
html.desk.wide.admin .dtable.rtable .tc.who{gap:8px}
html.desk.wide.admin .dtable.rtable .tc.who .aav{width:20px!important;height:20px!important;font-size:9.5px!important;border-radius:6px}
html.desk.wide.admin .dtable.rtable .trow .abtn.sm{height:22px!important;min-height:22px!important;padding:0 8px!important;font-size:10.5px!important;line-height:20px!important;border-radius:6px!important}
html.admin .apill{height:19px;border-radius:6px;padding:0 7px;font-size:10.5px;font-weight:500;gap:0;background:var(--tonet,var(--a-card2));color:var(--tone);border:0}
html.admin .apill::before{display:none}

/* ── 10. billed most: the shot's third column, a ranked list with a tile, two lines and a figure ── */
html.admin .atops{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
html.admin .atop{display:flex;align-items:center;gap:9px;min-height:32px;min-width:0}
html.admin .atop-i{flex:0 0 auto;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:var(--a-card2);color:var(--a-mut);font-size:11px;font-weight:650}
html.admin .atop-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:0}
html.admin .atop-t b{font-size:11.5px;line-height:15px;font-weight:600;color:var(--a-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.admin .atop-t i{font-style:normal;font-size:9.5px;line-height:13px;color:var(--a-mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.admin .atop-n{flex:0 0 auto;font-size:11px;font-weight:650;color:var(--a-text);font-variant-numeric:tabular-nums}

/* ── 11. the donut ─────────────────────────────────────────────────────────────────────────────────
   Shot: ring stroke is a third of its radius, a large percentage in the middle over a small caption,
   then the legend as dot / label / figure / share. ────────────────────────────────────────────── */
html.admin .adonut{width:76px;height:76px;margin:0 auto 6px}
html.admin .adonut svg{width:76px;height:76px}
html.admin .adonut .dn{stroke-width:17}
html.admin .adonut-c b{font-size:17px;line-height:20px;font-weight:700;letter-spacing:-.4px}
html.admin .adonut-c i{font-size:8.5px;line-height:11px}
html.admin .adleg li{gap:7px;min-height:20px;font-size:10.5px;line-height:14px}
html.admin .adleg .adot{width:7px;height:7px}
html.admin .adleg-p{min-width:30px;font-weight:650;font-size:10.5px}
html.admin .adleg-n{font-size:10.5px}

/* ── 12. the foot banner ──────────────────────────────────────────────────────────────────────────
   Shot: a pale lavender bar with no border, a white rounded tile holding the accent mark, a bold
   line over a grey one, and the accent link flush right. ─────────────────────────────────────── */
html.admin .astrip{gap:10px;padding:0 13px;min-height:40px;border-radius:var(--a-r);background:var(--a-tint)!important;border:0}
html.admin .astrip-i{width:28px;height:28px;border-radius:8px;background:var(--a-card);color:var(--tone)}
html.admin .astrip-i svg{width:15px;height:15px}
html.admin .astrip-t b{font-size:11.5px;line-height:15px;font-weight:650}
html.admin .astrip-t span{font-size:10px;line-height:13px}

/* ── 13. the rest of the console in the same language (Orgs, Users, Audit, System, the drawer) ──── */
html.admin .atool{padding:8px 11px;border-radius:var(--a-r);box-shadow:none;border:1px solid var(--a-line)}
html.admin .abtn{height:30px;padding:0 12px;border-radius:9px;font-size:12px;font-weight:600;border-color:var(--a-line2)}
html.admin .abtn.sm{height:24px;padding:0 9px;font-size:11px;border-radius:7px}
html.admin .achip{height:28px;border-radius:8px;font-size:11.5px}
html.admin .achip.on{background:var(--a-pri);color:var(--a-prit);border-color:transparent}
html.admin .asearch input.ainput{height:30px!important;border-radius:9px!important;background:var(--a-card2)!important;border-color:transparent!important;font-size:12px}
html.admin .aseg{padding:1px;border-radius:8px;background:var(--a-card2);border-color:var(--a-line)}
html.admin .asegb{height:20px;padding:0 8px;border-radius:6px;font-size:10.5px;line-height:20px}
html.admin .asegb.on{background:var(--a-card);box-shadow:0 1px 2px rgba(17,17,20,.07)}
html.admin .asegb i{font-size:9.5px;line-height:13px;padding:0 4px}
html.admin .asegb.on i{background:var(--a-tint);color:var(--a-pri)}
html.admin .acard.tablecard{box-shadow:none}
html.admin .aav{border-radius:7px;background:var(--a-card2)}
html.desk.wide.admin .dtable .trow.th{background-color:var(--a-head);text-transform:none;font-weight:500;letter-spacing:0;color:var(--a-mut)}
html.desk.wide.admin .ov-desk .btn.filled{background:var(--a-pri)!important;height:32px!important;font-size:12px!important;border-radius:9px!important}
html.admin .ov-desk{margin-top:18px}
html.admin .asec{font-size:14px}

/* ── 14. the last pass against the shot: field depth, quiet row actions, the title's breathing ──── */
html.admin .ahead{margin-bottom:5px}
/* the shot ends each row with a quiet kebab, never a filled button; ours carry a real action, so they
   are outlined in the accent rather than filled, to keep the row rhythm the shot has */
html.desk.wide.admin .dtable.rtable .trow .abtn.sm.pri{background:var(--a-card)!important;color:var(--a-pri)!important;border:1px solid var(--a-line2)!important}
html.desk.wide.admin .dtable.rtable .trow .abtn.sm.pri:hover{background:var(--a-tint)!important;border-color:var(--a-pri)!important}
/* the appearance button keeps the same weight as the rest of the bar */
html.desk.wide.admin .device.in-ws .navbar .nav-sym{color:var(--a-mut)}
html.desk.wide.admin .device.in-ws .navbar .nav-sym:hover{color:var(--a-text);background:var(--a-hover)}
html.desk.wide.admin .device.in-ws .navbar .nav-sym svg{border-radius:0}
/* sparklines: the shot's are a thin line over a flat pale wash, not a filled shape */
html.admin .kspark .ln{stroke-width:1.6;stroke:var(--tone)}
html.admin .kspark .ar{fill:var(--tone);opacity:.10}
/* the shot washes only the leading series; the second line is drawn bare */
html.admin .achart .a2{opacity:0}
html.admin .achart .l2{stroke:var(--a-c2);stroke-width:1.8}
/* a flat leading series would wash the whole plot, so the fill is lighter than the shot's rising curve */
html.admin .achart .a1{opacity:.07}

/* ── 15. the Desk as its own page (owner, 19 Nov) ─────────────────────────────────────────────────
   The Overview now ends at the foot banner, and the Desk sits beside it in the sidebar's MENU group,
   so nothing on the Overview is below the fold at 1303x640. ─────────────────────────────────────── */
/* the Desk page is a page, not a section appended under the Overview */
html.admin .apage.ov-desk{margin-top:0}
html.desk.wide.admin .apage.ov-desk .wgrid{margin-top:12px!important;gap:12px!important}
html.desk.wide.admin .apage.ov-desk .sec h2{font-size:13px;line-height:18px;font-weight:650;letter-spacing:-.15px}
html.desk.wide.admin .apage.ov-desk .list.sq{border-radius:var(--a-r);border:1px solid var(--a-line);background:var(--a-card);overflow:hidden}
html.desk.wide.admin .apage.ov-desk .ask.static{border-radius:var(--a-r);border:1px solid var(--a-line);background:var(--a-card)}
/* the phone tab bar's lozenge divides by the real tab count: an admin now has six, a client five */
.tabbar .lozenge{width:calc((100% - 8px) / var(--ntabs,5))}

/* ── 16. short windows: the same laptop at 125 % scaling is a 1042x512 viewport, and the console still
   has to show the Overview whole. Everything here is gated on height, so none of it can reach the
   640-tall window the console is tuned for. ────────────────────────────────────────────────────── */
@media (max-height:620px){
  html.desk.wide.admin{--tb:42px;--gx:6px}
  html.desk.wide.admin .device.in-ws .screen{padding:10px 14px 5px!important}
  html.admin .ovw{gap:4px}
  html.admin .ahead{margin-bottom:1px}
  html.admin .ahead h1.lt{font-size:18px!important;line-height:22px!important}
  html.admin .ahead .lsub{font-size:10px!important;line-height:13px!important}
  html.admin .acard{padding:8px 11px}
  html.admin .acard-h{margin-bottom:4px}
  html.admin .akpi{padding:6px 10px;gap:8px}
  html.admin .akpi-i{width:26px;height:26px;border-radius:8px}
  html.admin .akpi-i svg{width:14px;height:14px}
  html.admin .akpi-v{font-size:16px;line-height:19px}
  html.admin .kspark{width:38px;height:20px;margin-top:2px}
  html.admin .achart{height:72px;padding:2px 0 14px}
  html.admin .achart-k{margin:0 0 4px}
  html.admin .abars{height:50px;padding:2px 0 13px}
  html.admin .astats{margin-bottom:4px}
  html.admin .astat-v{font-size:14px;line-height:17px}
  html.admin .acard.c-table{padding:8px 0 3px}
  html.desk.wide.admin .dtable.rtable .trow{min-height:20px;font-size:10.5px}
  html.desk.wide.admin .dtable.rtable .trow.th{min-height:18px}
  /* three rows instead of four on a short window; the count and the Desk link below still say 59 */
  html.desk.wide.admin .dtable.rtable .trow:not(.th):nth-of-type(n+5){display:none}
  html.admin .adonut{width:56px;height:56px;margin:0 auto 4px}
  html.admin .adonut svg{width:56px;height:56px}
  html.admin .adonut .dn{stroke-width:13}
  html.admin .adonut-c b{font-size:13px;line-height:15px}
  html.admin .adonut-c i{font-size:7.5px;line-height:9px}
  html.admin .adleg li{min-height:16px;font-size:10px}
  html.admin .atop{min-height:26px}
  html.admin .astrip{min-height:32px;padding:0 11px}
  html.admin .astrip-i{width:24px;height:24px;border-radius:7px}
  html.admin .asb-brand{height:48px;min-height:48px}
  html.desk.wide.admin .device.in-ws .tabbar .tab{height:30px;min-height:30px}
  html.admin .asb-g{margin:9px 0 3px}
  html.admin .asb-user{height:40px;min-height:40px}
}
/* the donut card is the narrowest of the three; below this width its header link no longer fits beside
   the title, and the Orgs tab is one click away in the sidebar anyway */
@container (max-width:1000px){html.admin .c-donut .acard-a{display:none}}

/* ===================== QA pass 19 Nov: fixes ===================== */

/* 8 — the Appearance control in the signed-in desktop workspace.
   desktop.css hid .nav-sym for everyone in-ws and brought it back only for .admin, which left a signed-in
   client on the desktop with no reachable theme switch at all. Admin keeps its own styling, untouched. */
html.desk.wide:not(.admin) .device.in-ws .navbar .nav-sym{display:grid!important;place-items:center;
  width:32px!important;height:32px!important;min-width:32px;flex:0 0 auto;
  padding:0!important;margin:0!important;border-radius:9px;
  border:1px solid rgba(var(--ink,235,235,245),.12);background:transparent;opacity:1}
html.desk.wide:not(.admin) .device.in-ws .navbar .nav-sym:hover{background:rgba(var(--ink,235,235,245),.07)}
html.desk.wide:not(.admin) .device.in-ws .navbar .nav-sym::after{inset:0}
html.desk.wide:not(.admin) .device.in-ws .navbar .nav-sym .sym{width:17px;height:17px;border-radius:0}

/* 3 — the real attach control. The file input is only ever opened by its button, never shown.
   The control is off the screen (app.js ATTACH_UI) but the rules stay, so turning it back on needs no
   CSS change: the two padding rules only apply when the paperclip is actually in the row, otherwise the
   row keeps the padding it had before the button existed (app.css: 10px on the door, 14px on the pill). */
.fin{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.door .chat .crow:has(.attbtn){padding-left:0}
.pill:has(.attbtn){padding-left:6px}
.pill .attbtn{width:34px;height:34px;border-radius:17px}
.pillwrap .attrow:empty{display:none}
.pillwrap .attrow{margin-top:8px}
.pillwrap .attrow .att{margin:0 0 0 2px}
.att span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 1 and 9 — Account sheet. A row that only states a fact has no chevron and nothing to tap;
   a row that really goes somewhere is a link and keeps its chevron. */
a.row{text-decoration:none;color:inherit}
a.row:active{background:#3a3a3c}
[data-theme=light] a.row:active{background:rgba(0,0,0,.06)}
.row.inert-row{cursor:default}
.row.inert-row .end{color:var(--label-2)}

/* 11 — in-app replacement for window.prompt(), which Electron renderers do not implement. */
.askmodal{position:absolute;inset:0;z-index:95;display:grid;place-items:center}
.askback{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.askbox{position:relative;width:min(330px,84%);padding:20px;border-radius:22px;text-align:left}
.askbox h3{margin:0;font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.4px}
.askbox p{margin:6px 0 0;font-size:13px;line-height:18px;letter-spacing:-.08px;color:var(--label-2)}
.askin{width:100%;margin-top:14px;height:40px;border:0;border-radius:12px;padding:0 12px;
  font:inherit;font-size:15px;letter-spacing:-.24px;color:var(--label);background:var(--fill);outline:0}
.askin::placeholder{color:var(--label-3)}
.askin:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--tint) 45%,transparent)}
.askacts{display:flex;gap:10px;margin-top:16px}
.askacts .btn{flex:1;min-height:40px;padding:0 14px;font-size:15px}

/* the attachment chip is shown on the light front door too, where the dark-only colours vanished */
[data-theme=light] .att{background:rgba(17,17,20,.06);color:var(--label)}
[data-theme=light] .att small{color:var(--label-2)}
[data-theme=light] .att button{background:rgba(17,17,20,.09);color:var(--label-2)}
[data-theme=light] .att button:hover{background:rgba(17,17,20,.14);color:var(--label)}

/* 12 — "What we build": the flip-card detail (Flow / Map / In the app).
   It was drawn for the 361 px phone device and pinned left:14px/right:14px, so in the desktop window it
   stretched the whole way across. Everything inside is sized off that width, so at 1303 px and above:
     - the mini diagrams (SVG viewBox 300x168, width:100%) inflated to 47-71 px type and ran off the bottom,
     - .fcard::before (the accent rule) ran edge to edge across the window,
     - .fcard .tape (the strip of tape, left:50%) floated loose in the middle of nothing.
   In the window the card becomes a centred dialog of a real width that always fits; phone widths are untouched. */
html.desk .flipwrap.on{display:grid;place-items:center;padding:clamp(16px,4vh,40px) 14px}
html.desk .fcard{position:relative;left:auto;right:auto;top:auto;
  width:min(468px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
html.desk .fcard .tape{top:0}            /* inside the card, so nothing escapes the rounded corners */
html.desk .fvis{justify-content:center}
html.desk .fvis>svg.mini{width:100%;max-width:400px;height:auto;margin-inline:auto}
