
*{box-sizing:border-box}
html,body{margin:0;padding:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--paper);color:var(--text);
  font-size:var(--t-s);line-height:1.5;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
.mono{font-family:'IBM Plex Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums;letter-spacing:var(--track-2)}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer;background:none;border:none;padding:0}
h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:var(--track-3);line-height:1.2}
:focus-visible{outline:2px solid var(--brass);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.muted{color:var(--muted)}.faint{color:var(--faint)}.pos{color:var(--pos)}.neg{color:var(--neg)}
.eyebrow{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);font-weight:600}

.cc{display:inline-flex;align-items:center;justify-content:center;width:30px;height:20px;border-radius:4px;
  font-family:'IBM Plex Mono',monospace;font-size:var(--t-2xs);font-weight:600;letter-spacing:.02em;color:var(--on-stage);flex:none}
.cn{display:inline-flex;align-items:center;gap:9px}

.btn{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:8px;border:1px solid var(--ctl-line);
  background:var(--panel);font-size:var(--t-xs);font-weight:600;transition:.13s}
.btn:hover{border-color:var(--ctl-line);background:var(--tint)}
.btn:active{transform:translateY(1px)}
.btn-ink{background:var(--solid);border-color:var(--solid);color:var(--on-solid)}
.btn-ink:hover{background:var(--solid);border-color:var(--solid);color:var(--on-solid);filter:brightness(1.14)}
.btn-brass{background:var(--brass);border-color:var(--brass-t);color:var(--on-brass)}
.btn-brass:hover{background:var(--brass);border-color:var(--brass-t);color:var(--on-brass);filter:brightness(1.07)}
.btn-q{border-color:transparent;background:none;color:var(--muted)}
.btn-q:hover{background:var(--line-2);color:var(--text)}
.btn-sm{padding:5px 10px;font-size:var(--t-xs)}
.btn-danger{color:var(--neg);border-color:var(--neg-line)}

/* =========================================================
   LOGIN - one card on the rate-board stage.
   A single column at every width: nothing reorders, nothing
   is hidden on small screens, so there is one layout to trust.
   ========================================================= */
#login{position:fixed;inset:0;z-index:60;background:var(--ink);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:24px 20px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch}
#login:before{content:"";position:absolute;inset:0;opacity:.6;
  background:radial-gradient(900px 520px at 50% -10%,rgba(192,138,46,.38),transparent 62%)}
#login:after{content:"";position:absolute;inset:0;opacity:.045;
  background-image:linear-gradient(rgba(var(--hi),.5) 1px,transparent 1px);background-size:100% 5px}
#login>*{position:relative;z-index:1;width:100%}

.lg-wrap{max-width:404px;margin:auto;display:flex;flex-direction:column;gap:16px}

/* brand line above the card */
.lg-id{display:flex;align-items:center;justify-content:center;gap:14px;padding:0 2px}
.lg-id .mark b{color:var(--dk-text)}
.lg-id .mark i{background:var(--brass);color:var(--on-brass)}

/* the card */
.lg-card{background:var(--panel);border-radius:16px;overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,.42),0 2px 0 rgba(var(--hi),.05) inset;
  animation:lgcard .34s cubic-bezier(.2,.8,.3,1)}
@keyframes lgcard{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}

/* card body */
.lg-body{padding:24px 22px 22px}
.lg-head h1{font-size:var(--t-l);font-weight:600;letter-spacing:var(--track-2)}
.lg-head{margin-bottom:18px}
.lg-head p{color:var(--muted);font-size:var(--t-xs);margin:7px 0 0;line-height:1.6}
.lg-go{width:100%;justify-content:center;padding:14px;margin-top:4px;font-size:var(--t-s);min-height:44px}
/* the check page's one-line error (the sign-in card's errors sit under their fields) */
.lg-err{display:flex;gap:9px;align-items:flex-start;background:var(--neg-tint);border:1px solid var(--neg-line);color:var(--neg-deep);
  border-radius:12px;padding:11px 13px;font-size:var(--t-xs);line-height:1.55;margin-bottom:16px}
.lg-err .ic{width:16px;height:16px;flex:none;margin-top:1px}
/* Forgot password? sits at the inline-end under the password field */
.lg-row{display:flex;align-items:center;justify-content:flex-end;margin:6px 0 14px}
.lg-link{font-size:var(--t-xs);color:var(--muted);padding:6px 8px;border-radius:8px;min-height:44px;display:inline-flex;align-items:center;cursor:pointer}
.lg-link:hover{background:var(--line-2);color:var(--text);text-decoration:underline}
.lg-link:focus-visible{outline:2px solid #F0B90B;outline-offset:2px}
/* Forgot password?'s answer: who sets a new password, under its link */
.lg-forgot{margin-block:-6px 14px}
.lg-forgot p{margin:0}
.lg-forgot p+p{margin-block-start:6px}

/* the shop this card belongs to */

/* choosing a person or a workspace */

.who{display:flex;align-items:center;gap:13px;padding:11px 12px;border:1px solid transparent;border-radius:12px;
  width:100%;text-align:start;background:none;transition:.12s}
.who:hover{background:var(--line-2);border-color:var(--line)}
.who-av{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex:none;
  font-size:var(--t-xs);font-weight:600;letter-spacing:-.01em}
.who-av .ic{width:20px;height:20px}

.who.off{opacity:.5}.who.off:hover{background:none;border-color:transparent;cursor:not-allowed}

/* staff at a counter: a grid of faces is faster to hit than a list */

/* footer of the card and under it */
/* the card's foot: three quiet lines, each a 44px target */
.lg-alt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 22px 12px;border-top:1px solid var(--line);background:var(--tint)}
.lg-alt button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:var(--t-xs);color:var(--muted);padding:0 8px;min-height:44px;border-radius:8px;cursor:pointer}
.lg-alt button:hover{color:var(--text);text-decoration:underline}
.lg-alt button:focus-visible{outline:2px solid #F0B90B;outline-offset:-2px}
.lg-alt .ic{width:16px;height:16px}
.lg-demo-wrap{display:flex;justify-content:center}
/* TEST LINK (2026-10-13): remove with the link in lgAlt() before the app ships */
.lg-about{display:inline-flex;align-items:center;min-height:32px;padding:0 8px;border-radius:8px;font-size:var(--t-2xs);color:var(--muted);text-decoration:none}
.lg-about:hover{color:var(--text);text-decoration:underline}
.lg-about:focus-visible{outline:2px solid #F0B90B;outline-offset:-2px}
.lg-demo{min-width:250px}
.lg-demo-t{padding:6px 11px 8px;font-size:var(--t-2xs);color:var(--faint)}
.lg-demo button{flex-direction:column;align-items:flex-start;gap:1px;min-height:44px}
.lg-demo button small{color:var(--muted);font-size:var(--t-2xs)}
.lg-note{display:flex;gap:9px;align-items:flex-start;color:var(--dk-mut);font-size:var(--t-2xs);line-height:1.6;padding:0 4px}
.lg-note .ic{width:16px;height:16px;flex:none;margin-top:1px;color:var(--dk-mut)}
.lg-note b{color:var(--dk-nav);font-weight:500}

/* the password box is LTR in every language (the secret is typed as it is), and its toggle follows it */
.pwrap{position:relative;direction:ltr}
.pwrap input{padding-inline-end:42px;width:100%}
.peye{position:absolute;inset-inline-end:2px;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:8px;display:grid;place-items:center;
  display:grid;place-items:center;color:var(--faint);background:none}
.peye:hover{background:var(--line-2);color:var(--text)}
.peye .ic{width:16px;height:16px}
.shake{animation:shk .4s}
@keyframes shk{0%,100%{transform:none}20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}

.mark{display:flex;align-items:center;gap:10px}
.mark i{width:26px;height:26px;border-radius:8px;background:var(--brass);color:var(--on-brass);display:grid;place-items:center;
  font-style:normal;font-size:var(--t-xs);font-weight:700}
.mark b{font-size:var(--t-s);font-weight:600;letter-spacing:var(--track-3)}
.field{margin-bottom:15px}
.field label{font-size:var(--t-xs);color:var(--muted);margin-bottom:6px}
.field input,.field select{width:100%;height:var(--ctl);padding:0 13px;border:1px solid var(--field);
  border-radius:8px;background:var(--panel);transition:border-color .13s}
.field textarea{width:100%;min-height:var(--ctl);padding:12px 13px;border:1px solid var(--field);
  border-radius:8px;background:var(--panel);transition:border-color .13s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--brass)}
.fine{font-size:var(--t-xs);color:var(--muted);line-height:1.6}

#app{display:none}
/* =====================================================================
   THE FRAME (m37 job 2). One rule for every page: the shell owns the
   viewport, the page header holds still, and exactly ONE thing scrolls —
   the view body on a document page, the list frame on a list page
   (since m40 the list frame is tall and scrolls once the page reaches it; the
   chrome above it keeps its own). The document itself never scrolls.
   When a list page's chrome is taller than the viewport, the view body
   scrolls instead — the honest fallback, on short screens only. */
#app.on{display:grid;grid-template-columns:228px 1fr;height:100vh;min-height:0;transition:grid-template-columns .16s}
main{min-width:0;overflow-x:clip;display:flex;flex-direction:column;height:100vh;min-height:0;overflow:hidden}
.page{min-width:0;display:flex;flex-direction:column;flex:1;min-height:0}
.phead{flex:none}
#view{flex:1;min-height:0;overflow-y:auto;overflow-x:clip;padding-bottom:0}
.rail{position:sticky;top:0;height:100vh;background:var(--nav);color:var(--dk-nav);border-inline-end:1px solid var(--nav-line);padding:18px 10px 12px;display:flex;flex-direction:column;overflow-y:auto}
.rail .mark{padding:0 10px 20px}.rail .mark b{color:var(--on-nav)}
.rhead .mark{padding-block:0 0;padding-inline:8px 0}
/* collapsed: icons only, with the label appearing on hover. A desktop idea
   only — on a phone the rail is a drawer and always shows its words, so a
   narrowed rail left behind on a desktop cannot cripple the phone menu. */
@media(min-width:1081px){
.rail-scrim{display:none}
#app.on.rail-min{grid-template-columns:68px 1fr}
.rail-min .rail{padding-inline-start:8px;padding-inline-end:8px;align-items:center}
.rail-min .rail .mark{padding:0 0 20px}
.rail-min .rail .mark b,.rail-min .rsec,.rail-min .rlink>span,
.rail-min .bizbtn>span,.rail-min .ucv{display:none}
.rail-min .rlink{justify-content:center;padding:10px 0;width:44px}
.rail-min .bizbtn{justify-content:center;padding:6px}
.rail-min .rsec{display:block;font-size:0;height:0;padding:0;width:26px;margin:13px auto 9px;
  border-top:1px solid rgba(var(--ov),var(--ov-2));overflow:hidden}
.rail-min .rlink.never:after{content:attr(data-t);position:absolute;inset-inline-start:calc(100% + 12px);top:50%;
  transform:translateY(-50%);background:var(--ink);color:var(--on-stage);font-size:var(--t-xs);white-space:nowrap;
  padding:6px 10px;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.3);z-index:80;
  border:1px solid rgba(var(--ov),var(--ov-3))}
.rail-min .rhead{flex-direction:column;gap:14px;padding-bottom:16px}
.rail-min .rhead .mark{flex:none;padding:0}
}
.rhead{display:flex;align-items:center;gap:8px;padding:0 2px 18px}
.rhead .mark{flex:1;min-width:0;padding-block:0 0;padding-inline:8px 0}
.rmin{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:8px;
  color:var(--dk-mut);transition:.13s;border:1px solid var(--ctl-line)}
.rmin:hover{background:rgba(var(--ov),var(--ov-2));color:var(--dk-text);border-color:rgba(var(--ov),var(--ov-3))}
.rmin .ic{width:16px;height:16px}
.rmin span{display:none}
@media(max-width:1080px){.rmin{display:none}}
.rsec{padding:17px 11px 7px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--dk-mut);font-weight:600}
.rlink{display:flex;align-items:center;gap:11px;width:100%;text-align:start;padding:10px 11px;border-radius:8px;
  font-size:var(--t-s);color:var(--dk-nav);position:relative;transition:.12s}
.rlink>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rlink .ic{width:16px;height:16px;flex:none;opacity:.7}

.rlink:hover{background:rgba(var(--ov),var(--ov-1));color:var(--on-nav)}
.rlink.on{background:rgba(var(--ov),var(--ov-2));color:var(--on-nav);font-weight:500}
.rlink.on:before{content:"";position:absolute;inset-inline-start:-12px;top:7px;bottom:7px;width:2px;background:var(--brass-t);border-radius:0 2px 2px 0}
.rlink[disabled]{color:var(--dk-faint);cursor:not-allowed}.rlink[disabled]:hover{background:none}
.rfoot{margin-top:auto;padding-top:10px;border-top:1px solid rgba(var(--ov),var(--ov-2));position:relative}
/* the business at the bottom of the rail: logo or monogram, name, city */
.bizbtn{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border-radius:12px;text-align:start;transition:.13s}
.bizbtn:hover{background:rgba(var(--ov),var(--ov-1))}
.bizbtn>span{flex:1;min-width:0}
.bizbtn b{display:block;font-size:var(--t-xs);font-weight:500;color:var(--on-nav);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bizbtn>span>span{display:block;font-size:var(--t-2xs);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bmark{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;flex:none;
  background:var(--brass);color:var(--on-brass);font-weight:700;font-size:var(--t-2xs);letter-spacing:.03em}
.bmark.img{background:var(--panel);overflow:hidden;border:1px solid var(--line)}
.bmark.img img{width:100%;height:100%;object-fit:cover;display:block}
.mark .bmark{width:26px;height:26px;border-radius:8px;font-size:var(--t-2xs)}
.ucv{display:flex;color:var(--muted)}.ucv .ic{width:13px;height:13px}
/* the header avatar and its menu, hung like the bell panel */
.uav{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;flex:none;
  border:1px solid var(--ctl-line);background:var(--panel);transition:.13s}
.uav:hover{border-color:var(--ctl-line);box-shadow:var(--e-1)}
.uav .who-av{width:28px;height:28px;border-radius:8px;font-size:var(--t-2xs)}
@media(max-width:1080px){.uav{width:34px;height:34px}.uav .who-av{width:26px;height:26px}}
.umenu{display:none;position:absolute;inset-inline-end:0;top:calc(100% + 9px);width:290px;z-index:80;background:var(--float);
  border:1px solid var(--float-line);border-radius:12px;box-shadow:var(--e-2);overflow:hidden;
  max-height:min(560px,80vh);overflow-y:auto}
.umenu.open{display:block;animation:u .14s}
.um-head{display:flex;align-items:center;gap:11px;padding:14px;border-bottom:1px solid var(--line-2);background:var(--tint)}
.um-head .who-av{width:38px;height:38px;border-radius:12px;font-size:var(--t-xs)}
.um-head b{display:block;font-size:var(--t-s);font-weight:600;color:var(--text)}
.um-head small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:2px}
.um-sec{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);padding:12px 14px 5px;font-weight:600}
.um-item{display:flex;align-items:center;gap:11px;width:100%;padding:9px 14px;text-align:start;transition:.11s}
.um-item:hover{background:var(--line-2)}
.um-item>i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;flex:none;background:var(--line-2);color:var(--muted)}
.um-item>i .ic{width:16px;height:16px}
.um-item>span{flex:1;min-width:0}
.um-item b{display:block;font-size:var(--t-xs);font-weight:500;color:var(--text)}
.um-item small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.um-item em{color:var(--faint);display:flex;font-style:normal}.um-item em .ic{width:16px;height:16px}
.um-item.on{background:var(--tint)}.um-item.on em{color:var(--pos)}
.um-foot{border-top:1px solid var(--line-2);margin-top:8px;padding:6px 0}
.um-item.danger b{color:var(--neg)}
.um-item.danger>i{background:var(--neg-tint);color:var(--neg)}
.um-hero{display:flex;align-items:center;gap:14px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line-2)}
.um-hero b{display:block;font-size:var(--t-m);font-weight:600}
.um-hero small{display:block;color:var(--muted);font-size:var(--t-xs);margin-top:3px}
.pwbar{height:5px;background:var(--line);border-radius:99px;overflow:hidden}
.pwbar i{display:block;height:100%;width:0;background:var(--line);transition:.2s}

.page{padding:22px 24px 0;max-width:1420px}
.phead{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}
.phead h1{font-size:var(--t-2xl);font-weight:600;letter-spacing:var(--track-1);margin-top:3px}
.phead .sp{flex:1}
/* Wide screens: the page body (#view) scrolls under the header and its top edge
   cuts whatever passes it (a row of tab icons cut there read as "-- -" under the
   title). Once it is scrolled, a hairline sits on that edge, as the phone bar's
   .collapsed draws one, and under it the body's first 4px are the page colour
   and the next 14px fade from it, so a cut row melts into the edge instead of
   leaving marks. Both are
   one box hung from the header over its 18px bottom gap: the header is
   positioned with no z-index, so its panels keep their stacking, and the box
   is painted over the body's flowing content and under anything positioned in
   it (a dialog included). It takes no clicks. */
@media(min-width:1081px){
  .phead{position:relative}
  .phead::after{content:"";position:absolute;inset-inline:0;inset-block-end:-36px;block-size:19px;
    background:linear-gradient(var(--line),var(--line)) top/100% 1px no-repeat,linear-gradient(to bottom,var(--paper) 5px,transparent);
    opacity:0;transition:opacity .2s;pointer-events:none}
  .phead.scrolled::after{opacity:1}
}
.pact{display:flex;align-items:center;gap:8px;padding-top:12px}

.board{background:var(--nav);color:var(--on-nav);border:1px solid var(--nav-line);border-radius:16px;padding:24px 26px;position:relative;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(224,180,92,.35)}
.board:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;
  background:radial-gradient(620px 300px at 88% -10%,rgba(192,138,46,.18),transparent 60%)}
.board>*{position:relative}
.board .lab{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--dk-mut)}
.board .big{font-size:var(--t-3xl);font-weight:700;letter-spacing:var(--track-1);margin-top:8px;line-height:1}
.board .big small{font-size:var(--t-s);color:var(--dk-mut);letter-spacing:0;margin-inline-start:6px}
.board .sub{color:var(--dk-mut);font-size:var(--t-xs);margin-top:7px}
.stack{display:flex;gap:3px;height:11px;margin:22px 0 14px}
.stack i{display:block;border-radius:4px;transition:opacity .13s}
.stack i:hover{opacity:.75}
.legend{display:flex;flex-wrap:wrap;gap:0 26px}
.legend div{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:var(--t-xs);color:var(--dk-nav)}
.legend b{color:var(--on-nav);font-weight:500}
.bd-split{display:grid;grid-template-columns:1fr 292px;gap:34px;align-items:start}
.bd-rates{border-inline-start:1px solid rgba(var(--ov),var(--ov-3));padding-inline-start:26px}
.bd-rates .row{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:var(--t-xs);border-bottom:1px solid rgba(var(--ov),var(--ov-1))}
.bd-rates .row:last-child{border-bottom:none}
.bd-rates .row .nm{flex:1;color:var(--dk-nav)}

.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--e-1)}
.ph2{padding:12px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:56px}
.gsearch{display:flex;align-items:center;gap:9px;padding-block:8px 8px;padding-inline:12px 10px;border:1px solid var(--ctl-line);
  border-radius:12px;background:var(--panel);color:var(--muted);font-size:var(--t-xs);transition:.13s;min-width:270px}
.gsearch:hover{border-color:var(--ctl-line);color:var(--text);box-shadow:var(--e-1)}
.gsearch>span:first-of-type{flex:1;text-align:start}
.gsearch svg{color:var(--muted);flex:none}
.gsearch:hover svg{color:var(--text)}
.gsearch .kbd{flex:none}
.ph2 h2{font-size:var(--t-s);white-space:nowrap}
.ph2 .sbox{margin-inline-start:auto}
.ph2 .sbox+.btn,.ph2 .sbox+.hits{margin-inline-start:0}
.ph2 .sp{flex:1}
.pb{padding:20px}
/* On a phone the card body is a touch tighter, for one consistent rhythm across
   screens and a little more room for the figures. */
@media(max-width:560px){.pb{padding:16px}}
/* The two "cover" gradients mask the scroll-shadow until there is overflow,
   so they must be painted in the colour of the SURFACE the table sits on,
   not a fixed --panel. On a page that is --panel; inside any floating surface
   (a dialog, the hawala drawer) it is --float, set below via --tw-cover and
   inherited down to the table. Hard-coding --panel left a darker 42px band
   down each table edge in every Midnight report dialog (--float is lighter
   than --panel), the one place the covers never matched their backdrop. */
.tw{overflow-x:auto;min-width:0;-webkit-overflow-scrolling:touch;
  background:
    linear-gradient(to right,var(--tw-cover,var(--panel)) 30%,rgba(var(--hi),0)),
    linear-gradient(to right,rgba(var(--hi),0),var(--tw-cover,var(--panel)) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%,rgba(var(--ov),var(--ov-3)),rgba(var(--ov),0)),
    radial-gradient(farthest-side at 100% 50%,rgba(var(--ov),var(--ov-3)),rgba(var(--ov),0)) 100% 0;
  background-repeat:no-repeat;background-size:42px 100%,42px 100%,15px 100%,15px 100%;
  background-attachment:local,local,scroll,scroll;
  /* the edge shadows live on the content, never under the bar's lane or
     its clearance (job 3) */
  background-origin:content-box;background-clip:content-box}
/* every floating surface that can hold a scrollable table tells its tables
   which colour their scroll-fade covers should blend into — the surface's
   own --float, inherited down to .tw. One rule fixes every report dialog,
   the print sheet (a .mod) and the hawala drawer at once. */
.mod,.hwdr{--tw-cover:var(--float)}
.tw table{min-width:660px}
table{width:100%;border-collapse:collapse}
th{text-align:start;vertical-align:middle;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600;
  padding:12px 20px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:16px 20px;border-bottom:1px solid var(--line-2);font-size:var(--t-s);line-height:20px;vertical-align:middle}
tbody tr:last-child td{border-bottom:none}
tr.click{cursor:pointer}
tr.click:hover{background:var(--tint)}
.num{text-align:right;font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;letter-spacing:var(--track-2);white-space:nowrap}
th.num{text-align:right}
/* the net / balance-after figure is the strongest number in its row */
td.strong,td.strong .mono,td.strong b{font-weight:700}
.rule{border-inline-start:1px solid var(--line-2)}
.sec{line-height:1.45;font-size:var(--t-xs);color:var(--muted);margin-top:2px}
.empty{padding:50px 20px;text-align:center;color:var(--muted);font-size:var(--t-xs)}
.empty b{display:block;color:var(--text);margin-bottom:5px;font-size:var(--t-s);font-weight:600}
.rows>*{display:flex;align-items:center;gap:15px;padding:14px 20px;border-bottom:1px solid var(--line-2);width:100%;text-align:start}
.rows>*:last-child{border-bottom:none}
.rows button:hover{background:var(--tint)}
.kv{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line-2);font-size:var(--t-xs)}
.kv:last-child{border-bottom:none}
.kv>span{color:var(--muted)}

/* ---- ONE KPI-card anatomy everywhere (m24): a quiet label above, ONE
   dominant number (mono, 700), ONE quiet line below. .figs is the joined
   strip; .stat, .balcard and .reg-c are free-standing cards — same bones.
   A card that summarises a list is a <button> and the WHOLE card opens
   that list, filtered to the rows its figure was read from. ---- */
.figs{display:grid;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.figs>*{padding:18px 20px;border-inline-start:1px solid var(--line)}
.figs>*:first-child{border-inline-start:none}
.figs>button{text-align:start;transition:background .12s}
.figs>button:hover{background:var(--tint)}
.figs .l{font-size:var(--t-2xs);color:var(--muted)}
.figs .f{font-size:var(--t-xl);font-weight:700;margin-top:7px;letter-spacing:var(--track-2);line-height:1.1}
.figs .f .unit{font-size:var(--t-xs);font-weight:600;color:var(--faint);letter-spacing:0}
.figs .s{font-size:var(--t-2xs);color:var(--faint);margin-top:5px}
/* a per-currency money list: each amount is one unbreakable unit so a figure
   never splits mid-number; it wraps as a tidy list instead of bursting its card.
   Inline (table cells, totals) it reads as before — "amt CUR · amt CUR".
   Inside a KPI figure it steps down to a compact wrapped grid (the dot
   separators give way to gaps) so even five currencies stay inside the card. */
.pots{max-width:100%}
.pot{white-space:nowrap}
.figs .f .pots{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:var(--t-s);font-weight:600;line-height:1.3;letter-spacing:0;margin-top:1px}
.figs .f .pots .pot-sep{display:none}
.f2{grid-template-columns:repeat(2,1fr)}.f3{grid-template-columns:repeat(3,1fr)}.f4{grid-template-columns:repeat(4,1fr)}

.jr{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:24px 26px}
.jrline{display:grid;grid-template-columns:1fr 24px 1fr 24px 1fr 28px 1.1fr;align-items:end}
.jrline .op{text-align:center;color:var(--faint);font-size:var(--t-s);padding-bottom:7px}
.ji .l{font-size:var(--t-2xs);color:var(--muted)}
.ji .f{font-size:var(--t-xl);font-weight:700;letter-spacing:var(--track-2);margin-top:6px;line-height:1.15}
.ji .s{font-size:var(--t-2xs);color:var(--faint);margin-top:5px}
/* the Received / Paid-out items are doors into the filtered book */
button.ji{text-align:start;border-radius:8px;margin:-6px -8px;padding:6px 8px;transition:background .12s}
button.ji:hover{background:var(--tint)}
.ji.tot .f{padding-bottom:6px;border-bottom:3px double var(--text)}
.ji.tot .l{color:var(--text);font-weight:500}

.st{display:inline-flex;align-items:center;gap:6px;min-height:22px;font-size:var(--t-xs);white-space:nowrap}
.st:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--faint)}
.st-ok:before{background:var(--pos)}.st-wait:before{background:var(--brass)}.st-no:before{background:var(--neg)}
.aff{font-size:var(--t-xs);color:var(--muted);white-space:nowrap}
.aff-l{color:var(--faint)}
.note{display:flex;gap:10px;font-size:var(--t-xs);color:var(--muted);line-height:1.6;padding:13px 15px;background:var(--tint-2);border:1px solid var(--line);border-radius:8px}
.note b{color:var(--text);font-weight:600}
.note.warn{background:var(--brass-tint);border-color:var(--brass-line)}

.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:20px;
  overflow-x:auto;scrollbar-width:none;min-width:0}
.tabs::-webkit-scrollbar{display:none}
.tabs .tab{white-space:nowrap;flex:none}
.tab{padding:0 0 11px;font-size:var(--t-xs);color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s,border-color .12s}
.tab.on{color:var(--text);border-bottom-color:var(--brass-t);font-weight:600}

.sbox{position:relative;display:inline-flex;align-items:center;flex:0 1 260px;min-width:170px}
.sbox svg{position:absolute;inset-inline-start:11px;width:14px;height:14px;color:var(--muted);pointer-events:none}
.sbox input{width:100%;padding-block:7px 7px;padding-inline:33px 30px;border:1px solid var(--field);border-radius:8px;
  background:var(--tint);font-size:var(--t-xs);color:var(--text);transition:.13s;-webkit-appearance:none;appearance:none}
/* every placeholder wears --faint (≥4.5 on its field in both themes);
   without this the browser default lands near 3.9 in Midnight */
input::placeholder,textarea::placeholder{color:var(--faint)}
.sbox input::placeholder{color:var(--faint)}
.sbox input::-webkit-search-cancel-button{display:none}
.sbox input:hover{border-color:var(--ctl-line);background:var(--panel)}
.sbox input:focus{outline:none;border-color:var(--text);background:var(--panel);box-shadow:0 0 0 3px rgba(var(--sh),.06)}
.sbox:focus-within svg{color:var(--text)}
.sbox.has input{border-color:var(--text);background:var(--panel)}
.sbox .x{position:absolute;inset-inline-end:6px;width:20px;height:20px;border-radius:8px;color:var(--muted);font-size:var(--t-2xs);
  display:none;place-items:center}
.sbox.has .x{display:grid}
.sbox .x:hover{background:var(--line-2);color:var(--text)}
.hits{font-size:var(--t-2xs);color:var(--muted);white-space:nowrap}
/* on a dark panel header the field has to invert */
.board .sbox input,.panel.accent .sbox input{background:rgba(var(--ov),var(--ov-1));border-color:var(--field);color:var(--on-nav)}
.board .sbox input::placeholder{color:var(--dk-mut)}
.board .sbox svg{color:var(--dk-mut)}
.hits{font-size:var(--t-2xs);color:var(--faint)}
.gq{width:100%;padding-block:14px 14px;padding-inline:42px 16px;font-size:var(--t-m);border:none;border-bottom:1px solid var(--line);background:none}
.gq:focus{outline:none;border-bottom-color:var(--text)}
.gres{display:block;width:100%;text-align:start;padding:10px 13px;border-radius:8px}
.gres:hover{background:var(--line-2)}
/* the result the keyboard is standing on */
.gres.on{background:var(--wash);box-shadow:inset 2px 0 0 var(--brass)}
.gres.on:hover{background:var(--wash);filter:brightness(.99)}
.gres b{font-size:var(--t-xs);font-weight:500}
.gres small{display:block;color:var(--muted);font-size:var(--t-xs)}
.gres-ic{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;
  background:var(--wash);color:var(--muted)}
.gres-ic .ic{width:16px;height:16px}
.gq-hint{display:flex;gap:16px;padding:10px 13px 2px;margin-top:6px;border-top:1px solid var(--line);
  color:var(--faint);font-size:var(--t-2xs)}
.gq-hint>span{display:inline-flex;align-items:center;gap:5px}
.gsec{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);margin:16px 0 5px;padding:0 13px}
.kbd{font-family:'IBM Plex Mono',monospace;font-size:var(--t-2xs);color:var(--faint);border:1px solid var(--line);border-radius:4px;padding:1px 5px}

/* the scrim behind a dialog pushes the page back: that is shadow work, cast
   by the dark in BOTH themes (--sh), never the hover tint (--ov). With --ov
   it painted Midnight's whole page 42% white the moment any dialog opened. */
.ovl{position:fixed;inset:0;background:var(--scrim);z-index:70;display:grid;place-items:start center;padding:52px 20px;overflow-y:auto;animation:f .14s}
@keyframes f{from{opacity:0}}
/* item 4 (2026-11-10): ONE correct modal frame, app-wide and at every size —
   a header, a scrollable body, and a pinned footer always fully visible. The
   card is a flex column capped to the viewport, and it clips its own overflow
   so the body meets the 16px corners cleanly (no cut strip above the action
   bar, no shadow past the radius). The short/narrow rules below only refine
   the padding. */
.mod{background:var(--float);border:1px solid var(--float-line);border-radius:16px;width:100%;max-width:600px;box-shadow:var(--e-2);animation:u var(--dur-2) var(--ease-out);
  position:relative;display:flex;flex-direction:column;max-height:calc(100vh - 104px);overflow:hidden}
/* A dialog body that overflows must say so. Item 5 hides every scrollbar
   app-wide (the main app reads like a native app), but a modal with a long
   scrollable body — a receipt's Recorded-by block, a statement, a long form —
   is exactly where a native app DOES show one; without it the last section
   reads as cut off behind the pinned action bar. So dialog bodies (and only
   dialog bodies) carry a real, quiet scrollbar — not a fade over the content.
   Scoped to .mb; scrollbar.test exempts it from the app-wide no-lane rule. */
.mb{scrollbar-width:thin;scrollbar-color:var(--edge) transparent}
.mb::-webkit-scrollbar{display:block;width:10px;height:10px}
.mb::-webkit-scrollbar-thumb{background:var(--edge);border-radius:8px;border:3px solid transparent;background-clip:padding-box}
.mb::-webkit-scrollbar-thumb:hover{background:var(--faint)}
.mb::-webkit-scrollbar-track{background:transparent}

/* ITEM 4 — the motion system. The page's content settles in on a change
   of page; a freshly saved row lands with a soft highlight that fades so
   the user SEES it arrive; the day-status dot breathes while the day is
   open; a button answers a press. All under 200ms bar the land highlight,
   all off under prefers-reduced-motion (the one rule near the top). */
#view.viewin{animation:viewin var(--dur-2) var(--ease-out)}
@keyframes viewin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.row-flash{animation:rowland var(--dur-land) var(--ease-out)}
@keyframes rowland{0%{background:var(--brass-wash)}60%{background:var(--brass-tint)}100%{background:transparent}}
.daybtn.on .dd{animation:breathe 2.4s var(--ease-in-out) infinite}
@keyframes breathe{0%,100%{opacity:1}50%{opacity:.5}}
.jumptop{position:absolute;inset-inline-end:18px;bottom:18px;z-index:6;display:inline-flex;align-items:center;gap:6px;
  padding:7px 12px;border-radius:99px;background:var(--solid);color:var(--on-solid);border:none;
  box-shadow:var(--e-2);font-size:var(--t-xs);font-weight:600;cursor:pointer;opacity:0;transform:translateY(6px);
  pointer-events:none;transition:opacity var(--dur-2),transform var(--dur-2)}
.jumptop.on{opacity:1;transform:none;pointer-events:auto}
.jumptop .ic{width:14px;height:14px}
.jumptop:hover{background:var(--dk-2)}
.btn{transition:background var(--dur-1),border-color var(--dur-1),color var(--dur-1),transform var(--dur-1)}
.btn:active{transform:translateY(1px)}
.btn.loading{position:relative;color:transparent!important;pointer-events:none}
.btn.loading .ic,.btn.loading .actw{visibility:hidden}
.btn.loading::after{content:"";position:absolute;inset:0;margin:auto;width:15px;height:15px;border-radius:50%;
  border:2px solid currentColor;border-top-color:transparent;animation:spin .6s linear infinite;color:var(--on-brass)}
.btn:not(.btn-ink).loading::after{color:var(--text)}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes u{from{transform:translateY(8px);opacity:0}}
/* every text field answers focus the same way: border shift + the ring */
.field input:focus-visible,.field textarea:focus-visible,.setrow-c input:focus-visible{
  outline:none;border-color:var(--brass);box-shadow:0 0 0 3px rgba(252,213,53,.28)}
/* a focus ring inside an overflow-clipped card must draw inward, not vanish */
.figs>button:focus-visible,button.balcard:focus-visible,.accfig>button:focus-visible{outline-offset:-3px}
/* =====================================================================
   SCROLLBARS (item 5, 2026-11-10). HIDDEN on every scroll surface, so the
   app reads like a native app — one shared rule, both themes, both engines
   (scrollbar-width:none for Gecko, ::-webkit-scrollbar{display:none} for
   Chromium/WebKit). Scrolling is unchanged — wheel, trackpad, drag and keys
   all still work, and the separate independent scroll areas stay separate;
   only the visible bar and the lane it used to reserve are gone, so no
   gutter gap is left and every scroller keeps the full width of its content.
   Horizontal page scroll is never allowed: #view clips its x-overflow (a
   wide table scrolls inside its own frame, never the page body). */
*{scrollbar-width:none}
::-webkit-scrollbar{display:none;width:0;height:0}
.mod.wide{max-width:880px}
.mh{padding:20px 24px 0;display:flex;align-items:flex-start;gap:14px;flex:none}
.mh h3{font-size:var(--t-m);font-weight:600}
.mh .sp{flex:1}
.mb{padding:20px 24px 24px;overflow-y:auto;min-height:0;flex:1 1 auto}
/* the action bar spans the modal width and WRAPS — a dialog with many actions
   (the receipt: roll / 80mm / A5 / A4 / Send / Edit / Delete) flows onto a
   second row instead of overflowing and clipping the last buttons off the
   right edge (2026-11-12). flex:none keeps the bar out of the body scroller. */
.mf{padding:16px 24px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:9px;flex:none}
/* THE RECEIPT SHEET (Round 6, 2026-11-11): one frame for the journal
   receipt, the hawala slip and the okay slip (slipSheet). About 1120px
   wide; the paper keeps its own width on the stage, and what belongs to the
   record but not to the paper sits beside it. The footer is ONE row: the
   record's actions at the start; the paper switch, the one Print and Send
   to customer at the end. It still wraps rather than clip (2026-11-12b),
   and under 900px it is two centred rows (the balanced groups of
   2026-11-12c). */
.mod.rsheet{max-width:1120px}
/* on paper the frame keeps its old 600px, so a slip prints exactly as wide
   on each of the three papers as it did before the dialog grew */
@media print{.mod.rsheet{max-width:600px}}
.rs{display:flex;align-items:flex-start;gap:20px}
.rs-stage{flex:1 1 auto;min-width:0;display:flex;justify-content:center;padding:24px 20px;
  background:var(--tint);border:1px solid var(--line-2);border-radius:12px}
/* the okay slip used to fill the 600px dialog: it keeps that width, on the
   dialog's own surface. Screen only, so its printed widths are untouched. */
@media screen{.rs-stage .rc-ok{width:550px;max-width:100%;background:var(--float)}}
.rs-side{flex:none;width:320px}
.rs-side>:first-child{margin-top:0}
.rs-papers{margin-block-start:16px}
.rs-paperset{display:flex;flex-wrap:wrap;gap:8px;margin-block:8px}
.rsheet>.mf{align-items:center;gap:10px 16px}
.rs-act,.rs-out{display:flex;align-items:center;gap:7px;margin:0}
.rs-out{margin-inline-start:auto}
.rs-seg{flex:none;flex-wrap:nowrap}
.rs-seg button{white-space:nowrap}
/* Delete is quiet like its neighbours, and red; it fills once the pointer commits */
.rs-act .btn-q.btn-danger{background:none;border-color:transparent;color:var(--neg)}
.rs-act .btn-q.btn-danger:hover{background:var(--neg);border-color:var(--neg);color:var(--on-solid);filter:none}
@media(max-width:900px){
  .rs{display:block}
  .rs-side{width:auto;margin-top:14px}
  .rsheet>.mf{flex-direction:column;align-items:stretch;gap:12px}
  .rs-act,.rs-out{justify-content:center;flex-wrap:wrap;margin:0}
}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.f3row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}
/* item 4 — the sarafi network */
.tab-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;
  margin-inline-start:6px;border-radius:9px;background:var(--brass);color:#000;font-size:var(--t-2xs);font-weight:700}
/* partners — the B2B partnership handshake (2026-09-21) */
.net-logo{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;
  font-weight:700;font-size:var(--t-s);flex:0 0 auto;overflow:hidden}
.tag.net-partner{background:var(--brass-tint);color:var(--brass-t)}
.netreq{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.netreq:last-child{border-bottom:none}
.netreq-card{display:flex;align-items:center;gap:11px;flex:1;min-width:0}
.netreq-card b{font-weight:600}
.netreq-card .sec{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.netreq-act{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto}
/* the card in Add a sarafi: its note field goes under the card, not beside it, so a phone holds it */
.netreq.netreq-add{flex-wrap:wrap}.netreq.netreq-add>.field{flex:1 1 100%}
.net-reqgroup+.net-reqgroup{margin-top:16px}
.net-reqhead{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:var(--t-2xs);font-weight:700;
  text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.net-reqhead svg{width:13px;height:13px}
/* the strip in the hawala incoming panel that links to partnership requests */
.netmirror{display:flex;align-items:center;gap:9px;width:100%;text-align:start;padding:11px 14px;margin-bottom:12px;
  border:1px solid transparent;border-radius:10px;background:var(--tint-2);color:var(--fg);cursor:pointer;
  font-size:var(--t-xs);font-weight:500;transition:background .13s}
.netmirror:hover{background:var(--wash)}
/* item 3 — the one account dialog */
.ncrow2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}
.nccard{display:flex;align-items:center;gap:12px;text-align:start;padding:12px 14px;border:1.5px solid var(--field);
  border-radius:12px;background:var(--panel);cursor:pointer;transition:border-color .13s,background .13s}
.nccard:hover{border-color:var(--line-3)}
.nccard.on{border-color:var(--brass);background:var(--brass-tint)}
.nccard .ncc-i{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;flex:0 0 auto}
.nccard .ncc-i svg{width:18px;height:18px}
.nccard .ncc-t b{display:block;font-size:var(--t-s)}
.nccard .ncc-t small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:2px;line-height:1.4}
.ncsec-h{display:flex;align-items:center;gap:9px;width:100%;text-align:start;padding:12px 2px;margin-top:6px;
  border:none;border-top:1px solid var(--line);background:none;color:var(--fg);font-weight:600;font-size:var(--t-s);cursor:pointer}
.ncsec-h .aff{margin-inline-start:auto;color:var(--muted);font-weight:400;font-size:var(--t-2xs)}
.ncsec-h svg:last-child{width:15px;height:15px;transition:transform .15s;flex:0 0 auto}
.ncsec-h.open svg:last-child{transform:rotate(180deg)}
.ncsec-b{padding:6px 2px 8px}
.ncopen{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:8px}
.ncphoto{display:flex;align-items:center;gap:12px}
.ncphoto-t{display:inline-flex;align-items:center;justify-content:center;width:56px;height:40px;border-radius:8px;
  background:var(--line-2);overflow:hidden;flex:0 0 auto;font-size:var(--t-2xs)}
.ncphoto-t img{width:100%;height:100%;object-fit:cover}
.prev{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
/* item 11 (2026-11-10): the board-colour swatches are large and tappable, with
   an obvious selected state — a double ring and a white tick. Scoped to
   .swatches so the 9px status dot (.sw, used elsewhere) never shrinks them. */
.swatches{display:flex;gap:12px;flex-wrap:wrap;margin-top:2px}
.swatches .sw{width:40px;height:40px;border-radius:11px;border:none;padding:0;cursor:pointer;position:relative;
  box-shadow:inset 0 0 0 1px rgba(var(--sh),.14);transition:transform .12s,box-shadow .12s}
.swatches .sw:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 1px rgba(var(--sh),.14),0 3px 8px rgba(var(--sh),.2)}
.swatches .sw:focus-visible{outline:none;box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--text)}
.swatches .sw.on{box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--text)}
.swatches .sw.on::after{content:"";position:absolute;inset:0;margin:auto;width:7px;height:12px;
  transform:translateY(-1px) rotate(45deg);border:solid #fff;border-width:0 2.5px 2.5px 0;
  filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.4))}

.rc{border:1px solid var(--line);border-radius:12px;overflow:hidden}

.rc-b{padding:20px}
.rc-t{padding:15px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:baseline}
.rc-t .mono{font-size:var(--t-l)}

.sig{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:24px}
.sig div{border-top:1px solid var(--line);padding-top:7px;font-size:var(--t-2xs);color:var(--faint);text-align:center}

/* THE TOAST (m42): one at a time, bottom-centre over the view (toastPlace
   sets left to the view's centre and lifts it above a primary button it
   would cover). Always the dark stage, whatever the theme; the level
   speaks through the bar and the icon — pos / brass / neg icon tokens,
   which read on the ink in both themes. Slides in from below, never
   pops; reduced motion is honoured by the global rule at the top. */
#toasts{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:400;pointer-events:none;display:flex;justify-content:center}
.toast{pointer-events:auto;display:flex;align-items:center;gap:10px;background:var(--ink);color:var(--on-stage);
  padding-block:9px 9px;padding-inline:14px 8px;border-radius:10px;font-size:var(--t-xs);line-height:1.45;box-shadow:var(--e-2);
  max-width:min(440px,calc(100vw - 32px));border-inline-start:3px solid var(--on-stage);animation:tst .18s cubic-bezier(.2,.8,.3,1)}
@keyframes tst{from{transform:translateY(10px);opacity:0}}
.toast.out{opacity:0;transform:translateY(6px);transition:opacity .16s,transform .16s}
.toast .tico{display:grid;place-items:center;flex:none;width:18px;height:18px}
.toast .tico .ic{width:16px;height:16px}
.toast .tmsg{flex:1;min-width:0}
/* item 6: the toast's one action (Undo) — a brass pill on the dark stage */
.toast .tact{flex:none;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 11px;border-radius:99px;
  border:1px solid var(--brass-2);background:transparent;color:var(--brass-2);font-weight:600;font-size:var(--t-xs);
  cursor:pointer;white-space:nowrap;margin-inline-start:2px;transition:background var(--dur-1)}
.toast .tact:hover,.toast .tact:focus-visible{background:rgba(240,185,11,.16);outline:none}
.toast .tact .ic{width:13px;height:13px}
.toast .tx{flex:none;display:grid;place-items:center;width:26px;height:26px;margin-inline-start:2px;border:none;border-radius:7px;padding:0;
  background:transparent;color:var(--on-stage);opacity:.72;cursor:pointer}
.toast .tx:hover,.toast .tx:focus-visible{opacity:1;background:var(--toast-hover)}
.toast .tx .ic{width:13px;height:13px}
.toast.tl-success{border-inline-start-color:var(--pos-ic)}.toast.tl-success .tico{color:var(--pos-ic)}
.toast.tl-warning{border-inline-start-color:var(--brass-2)}.toast.tl-warning .tico{color:var(--brass-2)}
.toast.tl-danger{border-inline-start-color:var(--neg-ic)}.toast.tl-danger .tico{color:var(--neg-ic)}
.bar{height:6px;border-radius:99px;background:var(--line-2);overflow:hidden}
.bar>i{display:block;height:100%;border-radius:99px}

/* ===== plans & activation (2026-09-20) ===== */

/* icons */
.ic{width:16px;height:16px;flex:none;vertical-align:-3px}
.btn .ic,.tab .ic,.ph2 h2 .ic{margin-inline-end:-1px}
.ph2 h2{display:flex;align-items:center;gap:8px}
.ph2 h2 .ic{color:var(--faint)}
.tab{display:inline-flex;align-items:center;gap:7px}
.tab .ic{color:var(--faint)}.tab.on .ic{color:var(--brass-t)}
/* ONE field anatomy (m29 ph3): every label is a single fixed-height row —
   a small inline icon (coloured where it means in/out/rate) plus the
   words — so every control's top edge sits on the same line whether or
   not an icon exists. The boxed badge belongs to KPI cards, never to a
   field label; the money fields keep their coloured left edge. */
.field label{display:flex;align-items:center;gap:6px;min-height:18px}
.field label .ic{width:13px;height:13px;color:var(--faint);flex:none}
.lab-in .ic{color:var(--pos-ic)}.lab-out .ic{color:var(--neg-ic)}
.lab-rate .ic{color:var(--muted)}
.lab-in,.lab-out{display:flex;align-items:center;gap:6px;font-weight:600;letter-spacing:-.005em}
.lab-in .ibadge,.lab-out .ibadge{width:24px;height:24px;border-radius:8px;flex:none}
.lab-in .ibadge .ic,.lab-out .ibadge .ic{width:13px;height:13px}
.hd-in,.hd-out{display:inline-flex;align-items:center;gap:6px;justify-content:flex-end}
.hd-in{color:var(--pos)}.hd-out{color:var(--neg)}
.hd-in .ic,.hd-out .ic{width:13px;height:13px}
.mv-in,.mv-out{display:inline-flex;align-items:center;gap:7px;justify-content:flex-end;font-variant-numeric:tabular-nums}
.mv-in{color:var(--pos)}.mv-out{color:var(--neg)}
.mv-in .ic,.mv-out .ic{width:13px;height:13px;opacity:.85}
.eform .lab-in,.eform .lab-out{font-weight:600}
.field:has(.lab-in) .amt{border-inline-start:3px solid var(--pos)}
.field:has(.lab-out) .amt{border-inline-start:3px solid var(--neg)}
.field:has(.lab-rate) .amt{border-inline-start:3px solid var(--field)}
.kv>span .ic{width:13px;height:13px;color:var(--faint);margin-inline-end:7px;vertical-align:-2px}
.ibadge{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;flex:none}
.ibadge .ic{width:16px;height:16px;stroke-width:1.8}
.lab-in .ibadge{background:var(--pos-bg)!important;color:var(--pos-ic)!important;
  box-shadow:inset 0 0 0 1px rgba(18,165,116,.22)}
.lab-out .ibadge{background:var(--neg-bg)!important;color:var(--neg-ic)!important;
  box-shadow:inset 0 0 0 1px rgba(224,86,57,.22)}
.lab-in{color:var(--pos)}
.lab-out{color:var(--neg)}
.empty .ibadge{width:38px;height:38px;margin:0 auto}
.empty .ibadge .ic{width:20px;height:20px}
.note{align-items:flex-start}
.note .ic{color:var(--faint);margin-top:2px}
.note.warn .ic{color:var(--brass-t)}
.tag{display:inline-flex;align-items:center;gap:6px;padding-block:0 0;padding-inline:7px 9px;min-height:22px;border-radius:99px;
  font-size:var(--t-2xs);font-weight:500;white-space:nowrap}
.tag .ic{width:13px;height:13px}
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:none}

/* currency selector */
.curseg{max-width:100%;overflow-x:auto;scrollbar-width:none;display:inline-flex;gap:3px;padding:3px;background:var(--line-2);border-radius:12px;flex-wrap:wrap}
.curseg button{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;
  font-size:var(--t-xs);color:var(--muted);transition:.13s}
.curseg button:hover{color:var(--text)}
.curseg button.on{background:var(--panel);color:var(--text);font-weight:600;box-shadow:var(--e-1)}
/* the segment you are already on still answers the pointer, quietly —
   these two were the last buttons in the audit with no reply at all */
.curseg button.on:hover{filter:brightness(.96)}
/* the time/date format segments carry a live example under their label, so
   each option shows what it looks like before you pick it (2026-11-12) */
.curseg.fmtseg{flex-wrap:nowrap}
.curseg.fmtseg button{flex-direction:column;align-items:flex-start;gap:1px;padding:6px 12px;line-height:1.25}
.curseg.fmtseg button small{font-size:var(--t-2xs);color:var(--faint);font-weight:400;font-variant-numeric:tabular-nums}
.curseg.fmtseg button.on small{color:var(--muted)}
/* a registered language whose table is still an empty stub: shown, quiet,
   not pickable, with a "Soon" tag — it enables itself when the file is filled */
.curseg .lang-soon{color:var(--faint);cursor:default;opacity:.7}
.curseg .lang-soon:hover{color:var(--faint)}
.curseg .lang-soon small{font-size:var(--t-2xs);color:var(--faint);font-weight:400;margin-inline-start:4px;text-transform:uppercase;letter-spacing:var(--track-caps)}

/* treasury */
.jrhead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid var(--line-2)}
.jrtitle{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:var(--t-s)}
.jrtitle .ic{color:var(--faint)}
.jrnote{font-size:var(--t-xs);color:var(--faint);max-width:38ch;line-height:1.5}
.ji .l{display:flex;align-items:center;gap:0;font-size:var(--t-xs);color:var(--muted)}
.ji .f .unit{font-size:var(--t-xs);color:var(--faint);letter-spacing:0;margin-inline-start:2px}
.rephead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.figs .l{display:flex;align-items:center;gap:9px}
tr.hl td{background:var(--tint)}
tr.totrow td{border-top:1px solid var(--line);font-weight:500}
.dpick{padding:6px 10px;border:1px solid var(--line);border-radius:8px;font-size:var(--t-xs);background:var(--panel)}
input[type="date"],input[type="time"]{-webkit-appearance:none;appearance:none;
  font-family:'IBM Plex Mono',monospace;font-size:var(--t-xs);max-width:190px;height:var(--ctl)}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value{text-align:start}
input[type="date"]::-webkit-calendar-picker-indicator{opacity:.5;padding:0;margin-inline-start:4px}
input[type="date"]:focus::-webkit-calendar-picker-indicator{opacity:.85}
.dpick{max-width:170px}

/* transfer modal */

/* panels with a little life */
.panel.accent{border-color:var(--edge);box-shadow:0 1px 0 rgba(192,138,46,.1),var(--e-1)}
.panel.accent .ph2{background:linear-gradient(180deg,var(--tint),var(--panel));border-radius:12px 12px 0 0}
.panel.accent .ph2 h2 .ic{color:var(--faint)}
.panel.ghost{background:var(--tint-2)}
.panel.locked{border-color:var(--neg-line);background:var(--neg-tint)}
.ebar{display:flex;gap:9px;margin-top:20px;align-items:center;flex-wrap:wrap}
/* On a phone the exchange desk's primary action is full width, like the other
   money forms (Create transfer, Save transaction); the secondary buttons follow
   on their own row. */
@media(max-width:560px){
  .ebar>.btn-ink{flex:1 1 100%;justify-content:center;order:-1}
  .ebar>div[style]{display:none}
}
.btn-alt{background:var(--wash);border-color:var(--ctl-line);color:var(--text)}
.btn-alt:hover{background:var(--line);border-color:var(--ctl-line)}
.btn-alt .ic{color:var(--muted)}
.rlink.on .ic{opacity:1;color:var(--brass-t)}

/* ---- Update all rates: a purpose-built grid, never a page table ----
   (the .tw table's 660px floor cannot fit a 600px dialog) */
.rgrid{border:1px solid var(--line);border-radius:12px;padding:2px 14px}
.rl{display:grid;grid-template-columns:minmax(0,1fr) auto 88px 88px 52px;gap:4px 12px;
  align-items:center;padding:11px 0;border-bottom:1px solid var(--line-2)}
.rl:last-child{border-bottom:none}
.rl-c{min-width:0}
.rl-now small,.rl-f small,.rl-d small{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--faint);margin-bottom:3px}
.rl-now b{font-size:var(--t-xs);color:var(--muted);white-space:nowrap}
.rl-f input{width:100%;text-align:right;padding:6px 8px;border:1px solid var(--field);
  border-radius:8px;background:var(--panel);color:var(--text);font-size:var(--t-xs)}
.rl-f input:focus{outline:none;border-color:var(--text)}
.rl-d{text-align:right}.rl-d b{font-size:var(--t-xs)}
@media(max-width:720px){
  /* the row becomes a labelled card: currency, then now+drift, then the
     two fields — never a sideways scroll */
  .rl{grid-template-columns:1fr 1fr;gap:9px 12px}
  .rl-c{grid-column:1/-1}
  .rl-now{order:1}.rl-d{order:2;text-align:start}.rl-f{order:3}
}

/* searchable picker */
.pick{position:relative}
.pick-btn{display:flex;align-items:center;gap:9px;width:100%;height:var(--ctl);padding:0 12px;
  border:1px solid var(--field);border-radius:8px;background:var(--panel);font-size:var(--t-xs);
  text-align:start;transition:.13s}
.pick-btn:hover{border-color:var(--muted)}
.pick.open .pick-btn{border-color:var(--text)}
.pick-lab{flex:1;display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pick-cv{color:var(--faint);display:flex}.pick-cv .ic{width:13px;height:13px}
.pick.open .pick-cv{transform:rotate(180deg)}
.pick-pop{display:none;position:absolute;z-index:80;top:calc(100% + 5px);inset-inline-start:0;inset-inline-end:0;min-width:min(250px,calc(100vw - 40px));max-width:calc(100vw - 40px);
  background:var(--float);border:1px solid var(--float-line);border-radius:12px;box-shadow:var(--e-2);overflow:hidden}
.pick.open .pick-pop{display:block;animation:u .14s}
.pick-search{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid var(--line-2)}
.pick-search .ic{color:var(--faint)}
.pick-search input{border:none;outline:none;flex:1;font-size:var(--t-xs);background:none;min-width:0}
.pick-list{max-height:264px;overflow-y:auto;padding:5px}
.pick-head{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);padding:9px 10px 4px;font-weight:600}
.pick-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:8px;text-align:start}
.pick-opt:hover{background:var(--line-2)}
.pick-opt.sel{background:var(--tint)}
.pick-opt.sel .pick-tick{opacity:1}
.pick-txt{flex:1;min-width:0}
.pick-txt b{display:block;font-weight:500;font-size:var(--t-xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick-txt small{display:block;color:var(--muted);font-size:var(--t-2xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* where a partner's transfers go: on Balanceko, or in this book only (20 Nov 2026) */
.pick-tag,.reach-tag{flex:none;margin-inline-start:8px;padding-inline:7px;min-height:20px;display:inline-flex;align-items:center;border-radius:99px;font-size:var(--t-2xs);font-weight:500;white-space:nowrap;background:var(--tint-2);color:var(--muted)}
.pick-tag.net,.reach-tag.net{background:color-mix(in srgb,var(--pos) 12%,transparent);color:var(--pos)}
.pick-tag.book,.reach-tag.book{background:var(--brass-tint);color:var(--brass-t)}
.ps-reach{margin:8px 0 0}
/* a box of several lines (a receiver's name, phone, papers): each line takes its own direction, so a
   phone number reads left to right under a name in either script (20 Nov 2026) */
.bidi-lines{unicode-bidi:plaintext;text-align:start}
/* which account in this book stands for a sarafi that joins Balanceko under another name (20 Nov 2026) */
.acch{border:0;margin:0;padding:0;min-width:0}
.acch-lg{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.acch-list{display:flex;flex-direction:column;gap:8px}
.acch-opt{display:flex;align-items:center;gap:10px;padding-block:10px;padding-inline:12px;border:1px solid var(--line);border-radius:var(--r);cursor:pointer;min-width:0}
.acch-opt.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.acch-opt input[type=radio]{flex:none;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0}
.acch-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:var(--tint-2);color:var(--muted)}
.acch-ic .ic{width:15px;height:15px}
.acch-txt{flex:1;min-width:0}
.acch-txt b{display:block;font-weight:500;font-size:var(--t-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acch-txt small{display:block;color:var(--muted);font-size:var(--t-2xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acch-bal{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:end;font-size:var(--t-2xs)}
.acch-amt{display:inline-flex;align-items:center;gap:5px}
@media(max-width:520px){.acch-opt{flex-wrap:wrap}.acch-bal{flex-basis:100%;align-items:flex-start;padding-inline-start:70px}}
.acc-meta .reach-tag{margin-inline-start:0;min-height:22px;padding-inline:9px}
/* connecting a partner kept in this book only to its business on Balanceko (21 Nov 2026) */
.acc-meta .acc-connect{min-height:26px;padding-inline:10px}
.acc-connect-wait{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:var(--t-2xs);color:var(--brass-t)}
.acc-connect-wait .ic{width:13px;height:13px}
.acc-connect-wait .lnk{margin-inline-start:4px}
.acch-opt.acch-fixed{cursor:default}
.pick-tick{color:var(--pos);opacity:0}.pick-tick .ic{width:16px;height:16px}
.pick-ic{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;flex:none}
.pick-ic .ic{width:16px;height:16px}
.pick-ic.sm{width:19px;height:19px;vertical-align:-4px}.pick-ic.sm .ic{width:13px;height:13px}
.pick-none{display:none;padding:22px 12px;text-align:center;color:var(--muted);font-size:var(--t-xs)}
.pick.inline .pick-btn{padding:5px 10px;font-size:var(--t-xs);border-radius:8px}
.pick.inline{min-width:150px}
/* the currency chip, on the left: the picker button IS the chip — solid
   currency colour (painted inline through chipBg/onColor), a hairline edge,
   a chevron, a lift on hover and a ring on focus, so it reads as a button */
.amt .pick{order:-1;flex:none;width:auto}
.amt .pick-btn{border:1px solid var(--ctl-line);border-radius:8px;background:var(--line-2);color:var(--text);
  height:var(--ctl-in);padding-block:0 0;padding-inline:10px 8px;gap:6px;font-size:var(--t-xs);font-weight:600;letter-spacing:.01em;
  font-family:'IBM Plex Mono',monospace;transition:.12s;cursor:pointer}
.amt .pick-btn:hover{filter:brightness(1.07);transform:translateY(-1px);
  box-shadow:0 2px 8px rgba(var(--sh),.18)}
.amt .pick-btn:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.amt .pick-btn .dot{display:none}
.amt .pick-btn .pick-lab span{white-space:nowrap}
/* inside the solid button the .cc chip dissolves into it: the code alone */
.amt .pick-btn .pick-lab .cc{background:none!important;color:inherit!important;
  width:auto;height:auto;font-size:inherit;padding:0}
.amt .pick-btn .pick-lab .pl-n{display:none}
.amt .pick-cv{opacity:.85;display:flex;color:inherit}
.amt .pick-cv .ic{width:13px;height:13px}
.amt .pick-pop{inset-inline-start:0;inset-inline-end:auto;min-width:230px}
.amt .pick.open .pick-btn{box-shadow:0 0 0 2px rgba(var(--sh),.12)}
/* the full-width field picker shows the chip and the name side by side */
.pick-lab .pl-n{overflow:hidden;text-overflow:ellipsis}
/* the same pill, read-only, for a computed result */
.xcur{order:-1;display:inline-flex;align-items:center;height:var(--ctl-in);padding:0 11px;
  border-radius:8px;background:var(--line-2);flex:none;font-size:var(--t-xs);font-weight:600;
  font-family:'IBM Plex Mono',monospace;letter-spacing:.01em}

/* accounts list + profile */
/* account identity, used in every table */
.acc-link{display:inline-flex;align-items:center;gap:8px;text-align:start;border-radius:8px;padding-block:2px 2px;padding-inline:2px 6px;
  margin-inline-start:-2px;transition:.12s;max-width:100%}
.acc-link:hover{background:var(--line-2)}
.acc-link>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.walkin{display:inline-flex;align-items:center;gap:7px;color:var(--muted)}
.walkin .ic{width:13px;height:13px;color:var(--faint)}
.gres{display:flex;align-items:center;gap:11px}
.gres-mk{flex:none}
.acc-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;font-size:var(--t-xs);color:var(--muted)}
.acc-legend span{display:inline-flex;align-items:center;gap:7px}
/* settings */
.setwrap{display:grid;grid-template-columns:250px 1fr;gap:16px;align-items:start}
.setwrap>*{min-width:0}
/* ITEM 2 (2026-10-31): a Settings table fits its column — the narrow device / session / passkey
   tables never force the 660px data-table floor, so the horizontal scroll-shadow (the left / right
   edge artefacts seen on "Sign-in and devices") never shows inside the rounded panel, and no cell
   is clipped. A genuinely wide table still scrolls, but settings tables have few, narrow columns. */
.setwrap .tw{background:none;overflow-x:auto}
.setwrap .tw table{min-width:0}
.setwrap .tw th,.setwrap .tw td{white-space:normal}   /* fit the column: a few narrow cells wrap rather than force a horizontal scroll */   /* a grid column never grows to a wide table's intrinsic width; the table scrolls inside its frame (m43 sweep) */
.setnav{display:flex;flex-direction:column;gap:2px;position:sticky;top:22px}
.setnav button{display:flex;gap:11px;align-items:flex-start;text-align:start;padding:10px 11px;border-radius:12px;
  border:1px solid transparent;transition:.13s}
.setnav button:hover{background:var(--line-2)}
.setnav button.on{background:var(--panel);border-color:var(--ctl-line);box-shadow:var(--e-1)}
.setnav button i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;flex:none;
  background:var(--line-2);color:var(--muted)}
.setnav button.on i{background:var(--solid);color:var(--on-solid)}
.setnav button i .ic{width:16px;height:16px}
.setnav button b{display:block;font-size:var(--t-xs);font-weight:500}
.setnav button small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:2px;line-height:1.45}
.setnav button.on b{font-weight:600}
.setrow{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line-2)}
.setrow:last-child{border-bottom:none;padding-bottom:0}
.setrow:first-child{padding-top:0}
.setrow>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;background:var(--line-2);color:var(--muted)}
.setrow>i .ic{width:16px;height:16px}
/* item 4: a dot marks a printing row set up differently from Apply to all */
.setrow.doc>i{position:relative}
.setrow.doc.has-over>i{background:var(--brass-tint);color:var(--brass-t)}
.ovr-dot{position:absolute;top:-3px;inset-inline-end:-3px;width:8px;height:8px;border-radius:50%;
  background:var(--brass);box-shadow:0 0 0 2px var(--panel);pointer-events:auto}
/* Business printing (2026-10-15): the Apply-to-all row in sections */
.pr-gsub{border-top:1px solid var(--line);padding-top:12px}
.pr-gh{font-size:var(--t-2xs);font-weight:600;letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);margin:2px 0 6px}
html[dir="rtl"] .pr-gh{letter-spacing:0}
#prFooter{min-width:260px}
.setrow-t{flex:1;min-width:0}
.setrow-t b{display:block;font-size:var(--t-xs);font-weight:500}
.setrow-t span{display:block;color:var(--muted);font-size:var(--t-xs);margin-top:3px;line-height:1.5}
.setrow-c{flex:none;min-width:150px;display:flex;justify-content:flex-end}
/* A setting nothing acts on yet says so beside its control (round 31). */
.setrow-c{align-items:center;gap:8px;flex-wrap:wrap}.setrow-c>.not-yet,.prv-f>.not-yet{flex:none;white-space:nowrap}
.setrow-c input{width:100%;max-width:280px;border:1px solid var(--field);border-radius:8px;padding:0 10px;height:36px;
  background:var(--panel);color:var(--text)}
.setrow-c input:focus{outline:none;border-color:var(--text)}
.setrow-c input:disabled{background:var(--tint-2);color:var(--muted)}
/* the shop's own Business ID and its copy button (components/BusinessId) */
.bizid{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.bizid input{flex:0 1 auto;width:280px;min-width:0}
.setrow-c .bizid .btn{width:auto;flex:none}
/* in Settings the Business ID leads: a brass mark, a full-strength value that
   selects whole on focus, and its copy button; the licence stays a quiet field */
.setrow.key>i{background:var(--brass-tint);color:var(--brass-t)}
.setrow-c input.bizid-v{width:200px;border-color:var(--ctl-line);color:var(--text);font-size:var(--t-m);font-weight:600;cursor:text}
.bizid-same{color:var(--muted);font-size:var(--t-xs)}
.bizid-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line-2)}
.bizid-line>span{color:var(--muted);font-size:var(--t-xs)}
.bizid-line>b{font-weight:600;letter-spacing:.02em}
/* the logo row in the business profile: the mark, then its controls */
.bizlogo-c{display:flex;align-items:center;gap:9px}
.bizlogo-c .bmark{width:36px;height:36px;border-radius:12px}
.bizup{position:relative;overflow:hidden;cursor:pointer}
/* the file input inside an upload button: out of sight and taking no room, still
   the control a keyboard reaches and a screen reader names (its label is the button) */
.bizup input[type=file]{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:1px;block-size:1px;
  margin:0;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;opacity:0}
.bizup:has(input:focus-visible){outline:2px solid var(--brass);outline-offset:2px}
.setrow-c .pick{min-width:150px}
.tog{width:42px;height:24px;border-radius:99px;background:var(--line);position:relative;transition:.16s;flex:none}
.tog i{position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:99px;background:var(--panel);transition:.16s;
  box-shadow:0 1px 3px rgba(var(--sh),.2)}
.tog.on{background:var(--pos)}.tog.on i{inset-inline-start:21px}
.panel.danger{border-color:var(--neg-line)}
.panel.danger .ph2{background:var(--neg-tint);border-bottom-color:var(--neg-line)}
.panel.danger .ph2 h2,.panel.danger .ph2 .ic{color:var(--neg-deep)}
.btn-danger{background:var(--neg);color:var(--on-neg);border-color:var(--neg)}
.btn-danger:hover{background:var(--neg-deep)}
/* a rare destructive row action stays quiet until the pointer commits to it */
.btn-neg-q{background:var(--panel);color:var(--neg);border-color:var(--neg-line)}
.btn-neg-q:hover{background:var(--neg);border-color:var(--neg);color:var(--on-solid)}
@media(max-width:1080px){.setwrap{grid-template-columns:1fr}.setnav{position:static}
  .setrow{flex-wrap:wrap}.setrow-c{min-width:0;width:100%;justify-content:flex-start;padding-inline-start:44px}}
.acc-cell{display:flex;align-items:center;gap:11px}
.acc-cell b{font-weight:500}
.acc-head{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);
  border-radius:var(--r);padding:22px 24px;margin-bottom:12px}
.acc-avatar{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;flex:none}
.acc-avatar .ic{width:20px;height:20px}
.acc-name{display:flex;align-items:center;gap:11px;flex-wrap:wrap;
  font-size:var(--t-xl);font-weight:600;letter-spacing:var(--track-2)}
.acc-meta{display:flex;flex-wrap:wrap;gap:7px 16px;margin-top:9px;font-size:var(--t-xs);color:var(--muted);align-items:center}
.acc-meta>span{display:inline-flex;align-items:center;gap:6px}
.acc-meta .ic{width:13px;height:13px;color:var(--faint)}
.acc-total{text-align:right;padding-inline-start:22px;border-inline-start:1px solid var(--line-2)}
.acc-total .l{font-size:var(--t-2xs);color:var(--muted)}
.acc-total .f{font-size:var(--t-xl);font-weight:700;letter-spacing:var(--track-2);margin-top:5px}
.acc-total .s{font-size:var(--t-2xs);color:var(--faint);margin-top:4px}
.acc-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.balgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:1px;background:var(--line);
  border-radius:0 0 var(--r) var(--r);overflow:hidden}
.balcard{background:var(--panel);padding:16px 18px;text-align:start;width:100%;display:block;transition:background .12s}
button.balcard:hover{background:var(--tint)}
.balcard.zero{background:var(--tint)}
.balc-h{display:flex;align-items:center;gap:8px;font-size:var(--t-xs);color:var(--muted)}
.balc-f{font-size:clamp(var(--t-l),1.9vw,var(--t-xl));font-weight:700;letter-spacing:var(--track-1);margin-top:9px}
.balcard.zero .balc-f{color:var(--faint)}
.balc-s{font-size:var(--t-2xs);color:var(--faint);margin-top:4px}
.dgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:900px){.dgrid{grid-template-columns:1fr}.acc-total{border-inline-start:none;padding-inline-start:0;text-align:start}}

.eform{display:grid;grid-template-columns:150px 1.5fr 1fr 1fr;gap:13px}

/* One money control. The currency sits inside the frame as a tinted pill on the left,
   carrying its own colour, so the figure reads as the field and the currency as its unit. */
.amt{display:flex;align-items:center;height:var(--ctl);border:1px solid var(--field);border-radius:8px;
  background:var(--panel);padding:4px;gap:2px;transition:border-color .13s,box-shadow .13s}
.amt:hover{border-color:var(--line)}
.amt:focus-within{border-color:var(--text);box-shadow:0 0 0 3px rgba(var(--sh),.07)}
/* One entry, one side (Round 6): the amount and currency chip that stand down while the
   other side holds an amount. The frame carries the tip, so the pointer goes through the
   disabled controls to it. */
.amt.off{background:var(--tint-2);cursor:not-allowed}
.amt.off:hover{border-color:var(--field)}
.amt.off input,.amt.off .pick{pointer-events:none}
.amt.off input:disabled{background:none}
.amt.off .pick-btn:disabled{filter:grayscale(1);opacity:.55}

/* ---- exchange: the same grid the journal entry form uses ---- */
/* ---- every responsive grid is declared HERE, above the breakpoints. ----
   A base rule written after a media query wins at every width and the
   layout silently stops collapsing on small screens. */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:10px}
.regs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:16px 17px}
.abox{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:16px 17px 0}
.apos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px 17px}
.acols{padding:0 17px 17px;gap:17px}
.cols2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
/* a grid child defaults to min-width:auto, so a wide table pushes the column
   past the viewport. Pin it to zero and let the table scroll inside instead. */
.cols2>*{min-width:0}
.cols2 .tw{overflow-x:auto}
/* the 660px floor suits a full-width table; inside a half-width column it
   would always overhang, so these tables size to their own content instead */
.cols2 .tw table{min-width:0}
/* no per-list type forks: the half-width feeds read in the SAME table
   voice as every full list (m24) — only the side padding narrows */
.cols2 th{padding-inline-start:15px;padding-inline-end:15px}
.cols2 td{padding-inline-start:15px;padding-inline-end:15px}
.flow{width:100%;height:auto;display:block;overflow:visible}
.eform.ex2{grid-template-columns:1fr 1fr}
.eform.ex3{grid-template-columns:1fr 1fr 1fr}

.eform.ex5{grid-template-columns:150px 1.3fr 1fr 1fr 1fr}
.eform.ex5a{grid-template-columns:1.2fr 1fr 1fr 1fr 1.2fr}
.lab-rate{font-weight:600}
.xeq{font-size:var(--t-2xs);color:var(--faint);font-weight:400}
.xhint{font-size:var(--t-2xs);margin-top:6px;display:flex;gap:6px;align-items:center}
.xhint .ic{width:13px;height:13px}
.xhint .neg{color:var(--neg);display:inline-flex;align-items:center;gap:6px}
.xhint .muted{color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.xhint:empty{display:none}
.xboard{display:inline-flex;align-items:center;gap:5px;font-size:var(--t-2xs);color:var(--muted);
  margin-inline-start:auto;padding:0 8px;height:18px;margin:-2px 0;
  border:1px dashed var(--ctl-line);border-radius:99px;background:var(--panel);flex:none}
.xboard:hover{border-style:solid;border-color:var(--edge);color:var(--text)}
.xboard .ic{width:13px;height:13px}
.xboard:empty{display:none}
.exp{display:flex;gap:6px;flex-wrap:wrap}
/* a section heading inside a form */
.fsec{display:flex;align-items:center;gap:8px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
  font-weight:600;color:var(--muted);margin:22px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line-2)}
.fsec:first-child{margin-top:0}
.fsec .ic{width:13px;height:13px}
/* a checkbox shaped like the other controls */
.chk{display:flex;align-items:center;gap:10px;width:100%;height:var(--ctl);padding:0 12px;
  border:1px solid var(--field);border-radius:8px;background:var(--panel);text-align:start;font-size:var(--t-xs);
  color:var(--muted);transition:.13s}
.chk:hover{border-color:var(--ctl-line)}
.chk i{display:grid;place-items:center;width:19px;height:19px;border-radius:8px;border:1.5px solid var(--line);
  background:var(--panel);flex:none;color:var(--muted);transition:.12s}
/* an unticked box hides its tick outright (opacity), never by painting
   it the colour of the box — a glyph that is there but unreadable is a
   contrast failure, a glyph that is not there is a box (m34) */
.chk i .ic{width:13px;height:13px;opacity:0;transition:opacity .12s}
.chk.on i .ic{opacity:1}
.chk.on{border-color:var(--text);color:var(--text)}
.chk.on i{background:var(--solid);border-color:var(--solid);color:var(--on-solid)}
.chk span{flex:1;min-width:0}
/* filter chips over a list */

.fchip:hover{border-color:var(--ctl-line);color:var(--text)}

/* a td must stay a table-cell or it escapes the row's borders and
   background — the buttons line up with inline flow instead */
.rowact{text-align:end;white-space:nowrap}
.rowact .btn{margin-inline-start:6px}
/* a hint under a field, and the worked-out amount under a commission */
.fhint{font-size:var(--t-2xs);color:var(--faint);margin-top:7px;line-height:1.5}
.fhint.amtline b{font-size:var(--t-xs);font-weight:600}
.fhint .pos{color:var(--pos)}
.fhint .neg{color:var(--neg)}
.fhint .muted{color:var(--muted)}
/* ---- form validation (2026-09-19): the required dot, the flagged field,
   the message under it, and the submit button that names what to fix ---- */
.req{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--neg-ic);
  margin-inline-start:5px;vertical-align:middle;flex:none}
label .req{align-self:center}
.field.bad input,.field.bad textarea,.field.bad select,.frow.bad input,.frow.bad textarea,
.field.bad .amt,.field.bad .pick-btn,.lg-field.bad input,.ob-field.bad input{border-color:var(--neg)!important}
.field.bad .amt input{border-color:transparent!important}
.ferr{display:block;margin-top:7px;font-size:var(--t-2xs);color:var(--neg);line-height:1.5;text-align:start;font-weight:500}
.btn.btn-fix,.btn.btn-fix:hover{background:var(--neg-bg);color:var(--neg);border-color:var(--neg-line)}
.btn.btn-fix .ic{color:var(--neg)}
/* a nested control that only matters in one case */
.sub-field{margin-top:9px;padding:11px 12px;border:1px dashed var(--line);border-radius:8px;background:var(--tint)}
.sub-field>label{display:block;font-size:var(--t-2xs);color:var(--muted);margin-bottom:7px}
/* a field that spans the rest of its row */

textarea{font-family:inherit;font-size:var(--t-s);line-height:1.55;resize:vertical}
/* the confirmation shown after a transfer is created */
.donebox{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);
  border-radius:12px;background:var(--tint-2)}
.donebox b{font-size:var(--t-m);letter-spacing:-.01em}
.donebox .sec{margin-top:3px}
.dhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;font-size:var(--t-xs)}
/* the printed slip */

.rc-top{text-align:center;padding:22px 20px 18px;border-bottom:1px solid var(--line)}
.rc-top .mark{margin:0 auto 10px}
.rc-top b{display:block;font-size:var(--t-m);letter-spacing:-.01em}
.rc-top span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:3px}
.rc-no{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:13px 20px;background:var(--tint-2);border-bottom:1px solid var(--line)}
.rc-no span{font-size:var(--t-2xs);color:var(--faint);text-transform:uppercase;letter-spacing:var(--track-caps)}
.rc-no b{font-size:var(--t-s)}
.rc-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px 20px;border-bottom:1px solid var(--line)}
.rc-l{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);margin-bottom:5px}
.rc-v{font-size:var(--t-s);line-height:1.5}

/* the mark at the foot of the slip */
.rc-brand{display:flex;align-items:center;gap:13px;padding:14px 20px;border-top:1px solid var(--line);
  background:var(--tint-2)}
.rc-brand .bk{display:flex;align-items:center;gap:7px;font-size:var(--t-xs);font-weight:600;letter-spacing:var(--track-3);
  color:var(--text);flex:none}
.rc-brand .bk span{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;
  background:var(--ink);color:var(--brass-2);font-family:'IBM Plex Mono',monospace;font-size:var(--t-xs)}
.rc-brand b{display:block;font-size:var(--t-xs);font-weight:600}
/* ---------- OVERVIEW ---------- */
/* the bell and its list */
.kbtn{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;
  border:1px solid var(--ctl-line);background:var(--panel);color:var(--muted);transition:.13s}
.kbtn:hover{border-color:var(--ctl-line);color:var(--text)}
.kbtn .kbd{font-size:var(--t-xs);padding:0;border:none;background:none;color:inherit}
.bwrap{position:relative}
.bell{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;
  border:1px solid var(--ctl-line);background:var(--panel);color:var(--muted);transition:.13s}
.bell:hover{border-color:var(--ctl-line);color:var(--text)}
.bell .ic{width:16px;height:16px}
.bdot{position:absolute;top:-5px;inset-inline-end:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;
  background:var(--neg);color:var(--on-stage);font-size:var(--t-2xs);font-weight:600;display:grid;place-items:center;
  font-family:'IBM Plex Mono',monospace;border:2px solid var(--paper)}
.npanel{display:none;position:absolute;inset-inline-end:0;top:calc(100% + 9px);width:352px;z-index:80;
  background:var(--float);border:1px solid var(--float-line);border-radius:16px;
  box-shadow:var(--e-2);overflow:hidden}
.npanel.open{display:block;animation:u .14s}
.np-h{display:flex;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line-2);
  background:var(--tint)}
.np-h b{font-size:var(--t-xs)}
.np-clear{font-size:var(--t-xs);color:var(--muted)}
.np-clear:hover{color:var(--text);text-decoration:underline}
.np-l{max-height:min(420px,60vh);overflow-y:auto}
.np-i{display:flex;align-items:center;gap:11px;width:100%;padding:12px 15px;text-align:start;
  border-bottom:1px solid var(--line-2);transition:.11s}
.np-i:last-child{border-bottom:none}
.np-i:hover{background:var(--tint-2)}
.np-i.seen{opacity:.55}
.np-i>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none}
.np-i>i .ic{width:16px;height:16px;stroke-width:1.8}
.np-i.bad>i{background:var(--neg-bg);color:var(--neg-ic)}
.np-i.warn>i{background:var(--brass-wash);color:var(--brass)}
.np-i.info>i{background:var(--cat-cust-bg);color:var(--cat-cust)}
.np-i>div{flex:1;min-width:0}
.np-i b{display:block;font-size:var(--t-xs);font-weight:600;line-height:1.35}
.np-i span{display:block;font-size:var(--t-2xs);color:var(--muted);margin-top:2px}
.np-new{width:7px;height:7px;border-radius:99px;background:var(--brass);flex:none}
.np-e{display:flex;align-items:center;gap:12px;padding:20px 15px}
.np-e b{display:block;font-size:var(--t-xs)}
.np-e span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:2px}
.hi{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.hi>span{display:inline-flex;align-items:center;gap:7px;font-size:var(--t-xs);color:var(--muted);
  padding:6px 11px;border-radius:99px;background:var(--panel);border:1px solid var(--line)}
.hi .ic{width:16px;height:16px;opacity:.55}
.hi .hi-s{font-weight:500}
.hi .hi-s.on{color:var(--pos);background:var(--pos-bg);border-color:transparent}
.hi .hi-s.on:before{content:"";width:6px;height:6px;border-radius:99px;background:var(--pos-ic)}

.hero-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
/* the four figures of the day */
.stat{background:var(--panel);border:1px solid var(--ctl-line);border-radius:16px;padding:16px 17px;min-width:0;
  text-align:start;width:100%;transition:border-color .12s,box-shadow .12s}
button.stat:hover{border-color:var(--ctl-line);box-shadow:var(--e-1)}
.st-l{display:flex;align-items:center;gap:7px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
  color:var(--faint);font-weight:600}
.st-l .ic{width:16px;height:16px;opacity:.6}
.st-f{font-size:clamp(var(--t-l),2vw,var(--t-2xl));font-weight:700;letter-spacing:var(--track-1);margin-top:11px;
  line-height:1.1;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-width:0}
.st-f small{font-family:'Inter',sans-serif;font-size:var(--t-xs);font-weight:600;letter-spacing:.06em;
  color:var(--faint);text-transform:uppercase}
.stat.pos .st-f{color:var(--pos)}
.stat.neg .st-f{color:var(--neg)}
.st-s{font-size:var(--t-xs);color:var(--muted);margin-top:9px;line-height:1.5;min-width:0}

.hero-b{color:var(--dk-nav);border-color:var(--ctl-line);background:rgba(var(--ov),var(--ov-1))}
.hero-b:hover{background:rgba(var(--ov),var(--ov-2));color:var(--on-stage)}
.figs .l .ic{width:13px;height:13px;margin-inline-end:5px;vertical-align:-2px;opacity:.55}
.dt{font-size:var(--t-2xs);white-space:nowrap;display:inline-block}
.st-s{overflow-wrap:anywhere}
.dt.up{color:var(--pos)}.dt.down{color:var(--neg)}.dt.flat{color:var(--faint)}
/* the things that want a decision */
.att{display:grid;gap:1px;background:var(--line);border-top:1px solid var(--line)}
.att-i{display:flex;align-items:center;gap:13px;width:100%;padding:14px 17px;background:var(--panel);
  text-align:start;transition:.12s}
.att-i:hover{background:var(--tint-2)}
.att-i>i{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;flex:none}
.att-i>i .ic{width:16px;height:16px;stroke-width:1.8}
.att-i.bad>i{background:var(--neg-bg);color:var(--neg-ic)}
.att-i.warn>i{background:var(--brass-wash);color:var(--brass-t)}
.att-i.info>i{background:var(--cat-cust-bg);color:var(--cat-cust)}
.att-i>div{flex:1;min-width:0}
.att-i b{display:block;font-size:var(--t-xs);font-weight:600;letter-spacing:-.01em}
.att-i span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:2px}
.att-a{display:flex;align-items:center;gap:4px;font-size:var(--t-xs);color:var(--faint);flex:none}
.att-a .ic{width:13px;height:13px}
.att-i:hover .att-a{color:var(--text)}
.calm{display:flex;align-items:center;gap:14px;padding:20px 17px;border-top:1px solid var(--line)}
.calm b{display:block;font-size:var(--t-xs)}
.calm span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:2px}
/* the week in bars */

.flow text{font-family:'IBM Plex Mono',ui-monospace,monospace}
.flow .ax{font-size:var(--t-2xs);fill:var(--faint);font-family:'Inter',sans-serif}
.flow .ax.now{fill:var(--text);font-weight:600}
.flow .axn{font-size:var(--t-2xs);font-weight:500}
.flow .axn.pos{fill:var(--pos)}.flow .axn.neg{fill:var(--neg)}
.flow .bv{font-size:var(--t-2xs);font-weight:600}
.flow .bv.pos{fill:var(--pos)}.flow .bv.neg{fill:var(--neg)}
.flow rect{transition:opacity .12s}
.flow rect:hover{opacity:.82}
.flow-f{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--line-2)}
.flow-f>div{flex:1;min-width:118px}
.flow-f span{display:block;font-size:var(--t-2xs);color:var(--faint);text-transform:uppercase;letter-spacing:var(--track-caps)}
.flow-f b{display:block;font-size:var(--t-s);margin-top:4px}
.lgnd{display:flex;align-items:center;gap:6px;font-size:var(--t-2xs);color:var(--muted)}
.sw{display:inline-block;width:9px;height:9px;border-radius:4px}
.sw.pos{background:var(--pos-ic)}.sw.neg{background:var(--neg-ic);margin-inline-start:8px}
.shr{display:inline-block;width:52px;height:5px;border-radius:99px;background:var(--line-2);
  overflow:hidden;vertical-align:middle;margin-inline-end:7px}
.shr i{display:block;height:100%;border-radius:99px}
/* the counters */

.reg-c{border:1px solid var(--ctl-line);border-radius:12px;padding:13px;text-align:start;background:var(--panel);transition:.12s}
/* the account book summary */
.abx{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--ctl-line);border-radius:12px;
  background:var(--panel);text-align:start;min-width:0;transition:.12s}
.abx:hover{border-color:var(--ctl-line);box-shadow:var(--e-1)}
.abx>i{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;flex:none}
.abx>i .ic{width:16px;height:16px;stroke-width:1.8}
.abx>span{min-width:0;flex:1}
.abx b{display:block;font-size:var(--t-l);font-weight:600;letter-spacing:var(--track-3);line-height:1.1}
.abx span span,.abx>span{font-size:var(--t-2xs);color:var(--muted)}
.apos-c{border:1px solid var(--line);border-radius:12px;padding:14px 15px;background:var(--tint);min-width:0}
.apos-c.neg{border-inline-start:3px solid var(--neg)}
.apos-c.pos{border-inline-start:3px solid var(--pos)}
.apos-c b{display:block;font-size:clamp(var(--t-l),1.8vw,var(--t-xl));font-weight:700;letter-spacing:var(--track-2);margin-top:6px}
.apos-c b small{font-family:'Inter',sans-serif;font-size:var(--t-2xs);font-weight:600;color:var(--faint)}
.apos-c>span{display:block;font-size:var(--t-2xs);color:var(--muted);margin-top:5px}
.asec{min-width:0;border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:var(--tint)}
.asec-h{display:flex;align-items:center;gap:8px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
  color:var(--faint);font-weight:600;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:2px}
.asec .tw tbody tr:last-child td{border-bottom:none}
.asec .tw{background:none}
.asec-h .ic{width:13px;height:13px}
.asec .tw table{min-width:0}
.asec th{padding:9px 10px}
.asec td{padding:11px 10px;font-size:var(--t-xs)}
.asec th:first-child,.asec td:first-child{padding-inline-start:0}
.asec th:last-child,.asec td:last-child{padding-inline-end:0}
.reg-c:hover{border-color:var(--ctl-line);box-shadow:var(--e-1)}
.reg-c.on{background:var(--tint)}
/* the employee card wears the shared KPI bones: name above, ONE net
   figure, in/out/count sharing the single quiet line below (m24) */
.reg-l{display:flex;align-items:center;gap:7px;font-size:var(--t-2xs);color:var(--muted);font-weight:500}
.reg-l .ic{width:13px;height:13px;opacity:.6}
.reg-n{font-size:var(--t-l);font-weight:700;letter-spacing:var(--track-2);margin-top:8px}
.reg-n small{font-family:'Inter',sans-serif;font-size:var(--t-2xs);font-weight:600;color:var(--faint);letter-spacing:.05em}
.reg-s{font-size:var(--t-2xs);color:var(--faint);margin-top:5px}

.rc-brand span.i,.rc-brand div>span{display:block;font-size:var(--t-2xs);color:var(--faint);margin-top:2px}

.qr-fail{font-size:var(--t-2xs);color:var(--neg)}
/* the reader */
.scan-eye{position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--ink);
  display:grid;place-items:center}
.scan-eye video{width:100%;height:100%;object-fit:cover}
.scan-frame{position:absolute;inset:18%;border:2px solid rgba(var(--hi),.85);border-radius:12px;
  box-shadow:0 0 0 2000px rgba(var(--sh),.35)}
.scan-off{text-align:center;color:var(--on-stage);padding:26px;display:grid;gap:6px;justify-items:center}
.scan-off b{font-size:var(--t-s)}
.scan-off span{font-size:var(--t-xs);color:rgba(var(--hi),.6)}
.scan-off .ic{width:20px;height:20px;color:var(--faint)}
.scan-state{margin-top:11px;font-size:var(--t-xs);color:var(--muted);text-align:center}
.pre{white-space:pre-line;text-align:end;display:block}
.rc-two .pre{text-align:start}   /* both columns of a slip read from the left */

.rate{color:var(--muted);font-weight:600}
td.empty{text-align:center;color:var(--faint);padding:26px 0}
.amt input{border:none;background:none;border-radius:8px;flex:1 1 auto;min-width:0;width:100%;
  height:var(--ctl-in);text-align:end;padding:0 10px;font-size:var(--t-m);font-weight:600;letter-spacing:var(--track-3)}
.amt input:focus{outline:none;border-color:transparent;box-shadow:none}
.amt input::placeholder{font-weight:400;color:var(--faint)}
.amt select{width:88px;border-radius:0 8px 8px 0;padding:10px 8px;flex:none;background:var(--tint)}
/* the summary: pushed clear of the fields and framed, so it reads as the result
   of the form rather than another row of it */
.eprev{margin-top:28px;border:1px solid var(--line);border-radius:12px;background:var(--tint-2);
  padding:15px 17px 14px;position:relative}
.eprev:empty{display:none}
.eprev:before{content:"Summary";position:absolute;top:-7px;inset-inline-start:15px;background:var(--panel);
  padding:0 8px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
  color:var(--faint);font-weight:600}
.eprev .kv{padding:9px 0;border-bottom:1px solid var(--line);font-size:var(--t-xs);align-items:baseline}
.eprev .kv:first-child{padding-top:2px}
.eprev .kv:last-child{border-bottom:none;padding-bottom:0}
.eprev .kv>span{color:var(--muted);display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.eprev .kv>b{font-weight:600;text-align:end;flex:none;white-space:nowrap}
.eprev .kv .pos{color:var(--pos)}
.eprev .kv .neg{color:var(--neg)}
.eprev-h{font-size:var(--t-xs);font-weight:600;margin-bottom:8px}
.eprev-b{display:flex;flex-wrap:wrap;gap:7px 26px;font-size:var(--t-xs);color:var(--muted)}
.eprev-b span{display:inline-flex;align-items:center;gap:7px}
.eprev-b b{color:var(--text);font-weight:600}
.eprev .fine{margin:0}
/* the conversion headline at the top of a summary */
.xsum{display:flex;align-items:stretch;gap:12px;padding:2px 0 14px;margin-bottom:2px;
  border-bottom:1px solid var(--line)}
.xsum-s{flex:1;min-width:0;border-radius:12px;padding:10px 12px;border:1px solid var(--line);background:var(--panel)}
.xsum-s.in{border-inline-start:3px solid var(--pos);background:linear-gradient(90deg,var(--pos-bg),var(--panel) 62%)}
.xsum-s.out{border-inline-start:3px solid var(--neg);background:linear-gradient(90deg,var(--neg-bg),var(--panel) 62%)}
.xsum-s small{display:flex;align-items:center;gap:5px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;font-weight:600;margin-bottom:5px}
.xsum-s small .ic{width:13px;height:13px}
.xsum-s.in small{color:var(--pos)}
.xsum-s.out small{color:var(--neg)}
.xsum-s b{display:block;font-size:var(--t-xl);font-weight:700;letter-spacing:var(--track-2);line-height:1.15}
.xsum-s i{font-style:normal;font-size:var(--t-2xs);color:var(--muted);font-family:'IBM Plex Mono',monospace}
.xsum-ar{display:grid;place-items:center;color:var(--faint);flex:none}
.xsum-ar .ic{width:16px;height:16px}
.dsep{color:var(--faint);margin:0 7px}
.darr{color:var(--faint);margin:0 6px}
@media(max-width:520px){
  .xsum{flex-direction:column;gap:8px}
  .xsum-ar{transform:rotate(90deg);height:14px}
  .xsum-s b{font-size:var(--t-m)}
}
.menu{display:none;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;align-items:center;justify-content:center;background:var(--panel)}
@media(max-width:1080px){
  #app.on{grid-template-columns:1fr}
  .rail{position:fixed;inset-inline-start:0;top:0;bottom:0;width:228px;z-index:50;transform:translateX(-100%);transition:.2s}
  .rail.open{transform:none;box-shadow:2px 0 28px rgba(var(--sh),.32)}
  .rail{max-width:82vw}
  /* the dimmed, tap-to-dismiss layer behind the open drawer (rendered only
     while the drawer is open; the rail sits above it at z-index 50) */
  .rail-scrim{position:fixed;inset:0;z-index:49;border:0;padding:0;cursor:pointer;
    background:rgba(var(--sh),.45);animation:f .14s}
  .menu{display:inline-flex!important}
  .bd-split{grid-template-columns:1fr;gap:24px}.bd-rates{border-inline-start:none;border-top:1px solid rgba(var(--ov),var(--ov-3));padding:20px 0 0}
  .f4{grid-template-columns:repeat(2,1fr)}
  .jrline{grid-template-columns:1fr 1fr;gap:20px}.jrline .op{display:none}
}
@media(max-width:1080px){.eform{grid-template-columns:1fr 1fr}}
/* On a phone the journal's new-entry form stacks to one column so the date and
   the account field are not squeezed (the date no longer reads "2026-11..."
   clipped). The exchange desk's own grids (.eform.ex2/.ex3/.ex5) are more
   specific and keep their narrow two-column layouts. */
@media(max-width:560px){.eform{grid-template-columns:1fr}}
@media(max-width:900px){
  .f3{grid-template-columns:repeat(2,1fr)}
  .figs.f3>div:nth-child(3){grid-column:1/-1}
  .acc-head{padding:18px}
  .setrow-c .pick{min-width:0}
  .setrow-c .pick,.setrow-c input{max-width:230px}
}
/* the narrowest tablets (744 is the m26 floor): the search compresses to
   its icon and shortcut so the header row never pushes past the edge */
@media(max-width:800px){
  .gsearch{min-width:0}
  .gsearch>span:first-of-type{display:none}
}
@media(max-width:720px){
  .page{padding:20px 16px 0}
  .tw table{min-width:600px}
  .curseg{width:100%;flex-wrap:nowrap}
  .curseg::-webkit-scrollbar{display:none}
  .ph2{padding:12px 16px;gap:10px}
  .pb{padding:16px}
  .mod{border-radius:12px}
  .acc-name{font-size:var(--t-l)}
  .acc-total .f{font-size:var(--t-l)}
  .balgrid{grid-template-columns:repeat(2,1fr)}
  
  .f4,.f3,.f2{grid-template-columns:1fr}
  .figs>div{border-inline-start:none;border-top:1px solid var(--line)}.figs>div:first-child{border-top:none}
  .jrline{grid-template-columns:1fr}
  .frow,.f3row{grid-template-columns:1fr}
  .board .big{font-size:var(--t-2xl)}
  th,td{padding-inline-start:14px;padding-inline-end:14px}
  .sbox{flex:1 1 100%;min-width:0}
  .gsearch{min-width:0;flex:1}
  .gsearch>span:first-of-type{display:none}
}
@keyframes sheet{from{transform:translateY(26px);opacity:.7}to{transform:none;opacity:1}}
/* ---- phones ---- */
@media(max-width:720px){
  /* Safari zooms the page whenever a focused field is under 16px. This is the single
     biggest reason a layout "stops being responsive" on an iPhone. */
  input,select,textarea,.sbox input,.pick-btn,.pick-search input{font-size:var(--t-m)}
  :root{--ctl:48px;--ctl-in:38px}
  .field label{font-size:var(--t-xs);margin-bottom:5px}
  .field{margin-bottom:13px}
  .eform{gap:12px}
  .eform .field{margin-bottom:0}
  input[type="date"],input[type="time"]{max-width:200px;font-size:var(--t-m)}  /* 16px keeps iOS from zooming */
  .amt input{font-size:var(--t-m)}      /* stays at 16px or iOS zooms the page on focus */

  /* modals become bottom sheets you can actually reach with a thumb */
  .ovl{place-items:end center;padding:0}
  .mod{max-width:100%;border-radius:16px 16px 0 0;max-height:92vh;display:flex;flex-direction:column;
    animation:sheet .22s cubic-bezier(.2,.8,.3,1)}
  .mh{position:sticky;top:0;background:var(--float);z-index:2;padding:16px 18px}
  .mb{padding:16px 18px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .mf{padding:12px 18px calc(12px + env(safe-area-inset-bottom));position:sticky;bottom:0;background:var(--float);
    flex-wrap:wrap}
  /* the foot wraps its buttons, never their words (round 28): each keeps its label on one
     line at its own width, the row's room shared out among them; a note takes a row of its own */
  .mf .btn{flex:1 0 auto;justify-content:center;min-height:44px;white-space:nowrap;max-inline-size:100%}
  .mf>.fine{flex:1 1 100%;margin:0}

  /* the sign-in form comes first; the dark panel becomes a short header */
}

/* ---- round-2 collapsing header (supersedes the round-1 auto-hide) ----
   The .phead is a slim strip that is always shown. The large title, shop line
   and search ride in .mhero at the top of the scroller and scroll away; once
   the page is scrolled past them AppShell adds .collapsed, and the strip's
   compact title fades in with a hairline + soft shadow. This is the phone
   SHELL, so it runs to the drawer breakpoint (<=1080): the whole range that
   used the off-canvas rail + hamburger now gets the slim bar + bottom bar. */
@media(max-width:1080px){
  .page{position:static;padding:0 16px}
  .phead{flex-wrap:nowrap;align-items:center;gap:10px;margin-inline:-16px;
    min-height:56px;padding:calc(6px + env(safe-area-inset-top)) 16px 6px;
    background:var(--paper);border-bottom:1px solid transparent;
    transition:box-shadow .2s,border-color .2s}
  .phead.collapsed{border-bottom-color:var(--line);box-shadow:0 2px 14px rgba(var(--sh),.06)}
  #view{padding-top:0}
  .phead .sp{display:none}
  /* the shop badge, left */
  .ph-biz{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;
    background:var(--brass-tint);color:var(--brass-t);font-weight:700;font-size:var(--t-xs);font-style:normal}
  /* the compact title: in only once the bar collapses */
  .ph-tt{min-width:0;flex:1}
  .ph-tt .eyebrow{display:none}
  .phead h1{font-size:var(--t-m);font-weight:600;letter-spacing:0;margin:0;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateY(5px);
    transition:opacity .2s,transform .2s}
  .phead.collapsed h1{opacity:1;transform:none}
  /* theme and help move to the More sheet; search moves to .mhero */
  #themeToggle,.kbtn{display:none}
  .phead .gsearch{display:none}
  .pact{padding-top:0;width:auto;flex:none;gap:6px;flex-wrap:nowrap}
  /* the day control: the full clock pill, its time and its day, at the top and
     collapsed alike (round 29: it used to keep just its status dot once collapsed,
     and the day was hidden on a phone; a shop reads both at a glance). */

  /* the large title block that rides in the scroller */
  .mhero{display:flex;flex-direction:column;gap:12px;padding:8px 0 14px}
  .mhero .eyebrow{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
    color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mhero-t{font-size:var(--t-2xl);font-weight:700;letter-spacing:var(--track-1);line-height:1.1;overflow-wrap:anywhere}
  .mhero-s{width:100%;min-width:0}
  .mhero-s>span:first-of-type{display:block}
  .dp-clock{display:inline;margin-inline-start:8px;font-size:var(--t-xs);color:var(--muted)}
  /* The three header menus open as bottom sheets, defined once near the base
     panel rules (search 'header menus as bottom sheets'). */
  .gsearch>span:first-of-type{display:block}
  .gsearch .kbd{display:none}
}

@media(max-width:720px){
  /* thumb-sized controls */
  .btn{min-height:38px}
  .tab{padding-bottom:12px}
  .who{padding:12px}
  .um-item{padding:11px 14px}
  .rail{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .acc-actions .btn{flex:1 1 46%;justify-content:center}
  .setrow-c .btn{width:100%;justify-content:center}
}

/* ---- round-2 phone shell: bottom tab bar + More sheet ----
   Runs to the drawer breakpoint (<=1080): the whole range that showed the
   off-canvas rail + hamburger now gets a fixed bottom bar instead; everything
   the bar does not hold lives in the More sheet, so no destination is lost.
   Hidden by default so wider screens keep the rail untouched. */
.tabbar,.msheet,.msheet-scrim{display:none}
/* the shell pieces are hidden only above the drawer breakpoint, so the rules
   below never have to fight a later base declaration */
@media(min-width:1081px){.mhero,.ph-biz,.dp-clock{display:none}}
@media(max-width:1080px){
  #app{--tabbar-h:56px}
  .rail,.menu,.rail-scrim{display:none!important}
  #app.on{grid-template-columns:1fr}
  /* content clears the fixed bar */
  #view{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px)}

  .tabbar{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:45;
    background:var(--nav);border-top:1px solid var(--nav-line);
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -1px 0 var(--nav-line),0 -8px 24px rgba(var(--sh),.06)}
  .tabbar .tab{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;min-height:var(--tabbar-h);padding:7px 2px;color:var(--dk-nav);
    font-size:var(--t-2xs);font-weight:600;position:relative;background:none;transition:color .14s}
  .tabbar .tab .ic{width:23px;height:23px;flex:none}
  .tabbar .tab span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabbar .tab.on{color:var(--brass-t)}
  .tabbar .tab.on .ic{stroke-width:2.1}
  .tabbar .tab:active{color:var(--on-nav)}
  .tabbar .tab:focus-visible{outline:2px solid var(--brass);outline-offset:-3px;border-radius:10px}

  /* the More sheet: a bottom sheet in the app's sheet shape, not a full drawer */
  .msheet-scrim{display:block;position:fixed;inset:0;z-index:71;border:0;padding:0;cursor:pointer;
    background:var(--scrim);animation:f .16s}
  .msheet{display:flex;flex-direction:column;position:fixed;inset-inline:0;bottom:0;z-index:72;
    max-height:min(82vh,620px);background:var(--float);border-top:1px solid var(--float-line);
    border-radius:var(--r-sheet) var(--r-sheet) 0 0;box-shadow:0 -10px 40px rgba(var(--sh),.28);
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
    transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.3,1)}
  .msheet.open{transform:none}
  .ms-grab-zone{flex:none;display:flex;justify-content:center;padding:10px 0 4px;touch-action:none;cursor:grab}
  .ms-grab{width:36px;height:5px;border-radius:99px;background:var(--edge)}
  .ms-scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px 12px 8px;display:flex;flex-direction:column;gap:16px}
  .ms-sec{display:flex;flex-direction:column;gap:4px}
  .ms-lab{padding:4px 8px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600}
  .ms-item{display:flex;align-items:center;gap:13px;width:100%;text-align:start;min-height:52px;padding:8px 12px;
    border-radius:12px;color:var(--text);background:none;transition:background .13s}
  .ms-item>i{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--tint);color:var(--muted)}
  .ms-item>i .ic{width:19px;height:19px}
  .ms-item>span{flex:1;min-width:0;font-size:var(--t-m);font-weight:500}
  .ms-item>em{flex:none;color:var(--faint)}.ms-item>em .ic{width:16px;height:16px}
  .ms-item:active{background:var(--tint-2)}
  .ms-item.on{background:var(--tint)}
  .ms-item.on>i{background:var(--brass-tint);color:var(--brass-t)}
  .ms-item:disabled{opacity:.42;cursor:not-allowed}
  .ms-item:focus-visible{outline:2px solid var(--brass);outline-offset:-2px}

  .ms-switch{flex:none;display:flex;align-items:center;gap:12px;margin:8px 12px 0;padding:11px 12px;
    border-radius:14px;border:1px solid var(--line);background:var(--panel);text-align:start}
  .ms-switch .bmark{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:11px;
    background:var(--brass-tint);color:var(--brass-t);font-weight:700;font-size:var(--t-s)}
  .ms-switch>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
  .ms-switch>span b{font-size:var(--t-s);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ms-switch>span small{font-size:var(--t-xs);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ms-switch .ucv{flex:none;color:var(--faint)}.ms-switch .ucv .ic{width:16px;height:16px}
  .ms-switch:active{background:var(--tint)}

}
/* the base-code suffix is only said on the phone, where the column head
   ("In AFN") is not there to say it */
.wms-sfx{display:none}
@media(max-width:720px){.wms-sfx{display:inline}}
/* the live figure a report row carries */
.rep-fig{display:flex;flex-direction:column;align-items:flex-end;gap:1px;margin-inline-end:14px;flex:none}
.rep-fig b{font-size:var(--t-xs);font-weight:600}
.rep-fig small{color:var(--muted);font-size:var(--t-2xs)}
@media(max-width:600px){.rep-fig{display:none}}
/* a quiet amber remark under a status chip (e.g. "Needs release") */
.warn-t{color:var(--brass-t);display:inline-flex;align-items:center;gap:4px}
.warn-t .ic{width:13px;height:13px}
/* row-action words: an icon with a tooltip where the table is tight,
   the full word again where there is room (wide desks and phone cards) */
.actw{display:none}
@media(max-width:720px),(min-width:1441px){.actw{display:inline}}
/* Tables stop being tables on a phone: each row becomes a labelled card,
   so nothing needs a sideways scroll to be read. */
@media(max-width:720px){
  .tw{overflow:visible;background:none;min-width:0}
  .tw table{min-width:0;display:block}
  .tw thead{display:none}
  .tw tbody{display:block}
  .tw tbody tr{display:block;background:var(--panel);border:1px solid var(--line);
    border-radius:12px;padding:2px 13px;margin:0 0 9px}
  .tw tbody tr:last-child{margin-bottom:0}
  .tw tbody tr:hover{background:var(--panel)}
  .tw td{display:flex;align-items:center;justify-content:space-between;gap:14px;
    border:none;border-bottom:1px solid var(--line-2);padding:9px 0;
    text-align:end!important;white-space:normal;height:auto}
  .tw td:last-child{border-bottom:none}
  .tw td::before{content:attr(data-l);flex:none;max-width:44%;text-align:start;
    color:var(--muted);font-size:var(--t-2xs);font-weight:500;font-family:'Inter',sans-serif;letter-spacing:0}
  .tw td[data-l=""]::before,.tw td:not([data-l])::before{display:none}
  .tw td[colspan]{display:block;text-align:center!important;padding:20px 0}
  .tw td[colspan]::before{display:none}
  .tw td>.acc-cell,.tw td>.mv-in,.tw td>.mv-out{justify-content:flex-end}
  .tw td .sub{text-align:end}
  .tw .rowact{justify-content:flex-end}
  /* a long name beside its code chip would otherwise push past the card edge */
  .tw td>.cn{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0;flex:1}
  .tw td>.cn>span{min-width:0;overflow-wrap:anywhere}
  .tw td .mono{overflow-wrap:anywhere}
  .ph2 .aff{white-space:normal}

  /* ---- m24: every transaction list becomes the SAME three-line card ----
     line 1  title (+ note under it), the when quiet on the right
     line 2  the money, biggest thing on the card
     line 3  the meta: account, employee, status — small, labelled
     The two forced breaks are the row's ::before/::after, ordered between
     the cell groups; cells keep their roles from the shared row grammar. */
  .tw table.t3 tbody tr{display:flex;flex-wrap:wrap;align-items:baseline;padding:12px 14px}
  .tw table.t3 tbody tr::before{content:"";order:3;flex-basis:100%;height:8px}
  .tw table.t3 tbody tr::after{content:"";order:5;flex-basis:100%;height:6px}
  .tw table.t3 td{display:block;border:none;padding:0;text-align:start!important;height:auto}
  .tw table.t3 td::before{display:none}
  .tw table.t3 td.ct{order:1;flex:1 1 55%;min-width:0}
  .tw table.t3 td.cw{order:2;flex:none;max-width:42%;margin-inline-start:auto;font-size:var(--t-2xs);text-align:end!important}
  .tw table.t3 td.cm{order:4;display:inline-flex;align-items:baseline;gap:6px;margin-inline-end:18px;font-size:var(--t-s)}
  .tw table.t3 td.cm>.faint{display:none}
  .tw table.t3 td.cm .sec{display:inline;margin-inline-start:4px}
  .tw table.t3 td.cx{order:6;display:inline-flex;align-items:center;gap:5px;margin-inline-end:14px;
    font-size:var(--t-xs);color:var(--muted)}
  .tw table.t3 td.cx::before{content:attr(data-l);display:inline;color:var(--faint);
    font-size:var(--t-2xs);font-weight:600;text-transform:uppercase;letter-spacing:.08em;margin-inline-end:2px}
  .tw table.t3 td.cx.mt{display:none}
  .tw table.t3 td.rowact{order:7;flex-basis:100%;display:flex;justify-content:flex-end;gap:8px;margin-top:9px}
  .tw table.t3 td.rowact:empty{display:none}
  .tw table.t3 td[colspan]{display:block;flex-basis:100%;text-align:center!important;padding:20px 0}

  /* the treasury flow reads better as a 2x2 block than a tall stack */
  .jrline{grid-template-columns:1fr 1fr;gap:14px}

  /* Where the money sits: five currencies should read as five short lines,
     not five labelled cards. Line one holds the money, line two the shape. */
  .wms tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;
    align-items:center;padding:11px 13px}
  .wms td{display:block;border:none;padding:0;text-align:start!important}
  .wms td::before{display:none}
  .wms td:nth-child(1){grid-row:1;grid-column:1;min-width:0;white-space:normal;overflow:visible;text-overflow:clip}
  .wms td:nth-child(1)>.cn{display:inline-flex;flex:none;justify-content:flex-start;vertical-align:middle}
  .wms td:nth-child(2){grid-row:1;grid-column:2;text-align:end!important}
  .wms td:nth-child(3){grid-row:2;grid-column:1;color:var(--muted);font-size:var(--t-xs)}
  .wms td:nth-child(3)::before{display:inline;content:"\2248 ";color:var(--faint)}
  .wms td:nth-child(4){grid-row:2;grid-column:2;display:flex;justify-content:flex-end;align-items:center;gap:8px}
}
@media(max-width:400px){
  .page{padding:16px 12px 0}
  #view{padding-bottom:56px}
  .figs>div{padding:15px 16px}
  .balgrid{grid-template-columns:1fr}
  .acc-actions .btn{flex:1 1 100%}
  .tabs{gap:16px}
}
/* ------------------------------------------------------------------
   LAYOUT BREAKPOINTS
   Declared here, below every base rule, so a narrow screen actually wins.
   A grid rule written after its breakpoint silently beats it at all widths.
   ------------------------------------------------------------------ */
@media(max-width:1280px){
  
  .eform.ex5{grid-template-columns:150px 1fr 1fr}
  .eform.ex5a{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:1080px){
  .eform.ex5,.eform.ex5a,.eform.ex4{grid-template-columns:1fr 1fr}
  .cols2{grid-template-columns:1fr}
  .regs{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr 1fr}
  .abox{grid-template-columns:repeat(3,1fr)}
  .apos{grid-template-columns:1fr}
  .eform.ex3{grid-template-columns:1fr 1fr}
  .eform.ex3>.field:last-child{grid-column:1/-1}
}
@media(max-width:720px){
  
  
  .rc-two{grid-template-columns:1fr;gap:14px}
  .regs{grid-template-columns:1fr;padding:14px}
  .stats{grid-template-columns:1fr 1fr;gap:9px}
  .abox{grid-template-columns:1fr 1fr;gap:9px;padding:14px 14px 0}
  .apos{padding:12px 14px;gap:9px}
  .acols{padding:0 14px 14px}
  .stat{padding:13px 14px}
  .st-f{font-size:clamp(var(--t-l),5vw,var(--t-xl));margin-top:8px}
  .st-s{font-size:var(--t-2xs);margin-top:7px}
  .hi h1{font-size:var(--t-l)}
  .att-i{padding:13px 14px}
  
  .eform.ex3>.field:last-child{grid-column:auto}
}
@media(max-width:560px){
  /* The exchange desk stacks one field per line so the currency pill and the
     FULL amount fit on a phone (no more "358,00"), and the rate row's Board chip
     is not cut at the right edge. */
  .eform.ex2,.eform.ex3{grid-template-columns:1fr}
  .eform.ex3>.field:last-child{grid-column:auto}
}
@media print{
  /* whatever the screen theme, paper is paper: Midnight's light-on-dark
     letters would land as pale grey on white */
  :root,:root[data-theme="dark"]{
    --paper:#fff;--panel:#fff;--tint:#fff;--tint-2:#fff;--wash:#f3f3f3;
    --text:#000;--muted:#333;--faint:#555;--line:#bbb;--line-2:#ddd;--edge:#999;
    --ink:#000;--pos:#0F766E;--neg:#BE123C;--pos-ic:#0F766E;--neg-ic:#BE123C;--sh:0,0,0}
  body *{visibility:hidden}
  .rc,.rc *{visibility:visible}.rc{position:fixed;inset:0;border:none}
  body.print-report #printArea,body.print-report #printArea *{visibility:visible}
  body.print-report #printArea{position:absolute;left:0;top:0;width:100%}
  body.print-report .panel,body.print-report .figs{border-color:var(--edge);break-inside:avoid}
  body.print-report .sbox,body.print-report .ph2 .btn{display:none}
  /* a whole list page (exchange list, hawala list) printed as it stands */
  body.print-page main,body.print-page main *{visibility:visible}
  body.print-page main{position:absolute;left:0;top:0;width:100%}
  body.print-page .rail,body.print-page .pact,body.print-page .menu,
  body.print-page .btn,body.print-page .lfbar,body.print-page .fchips,
  body.print-page .sbox,body.print-page .rowact{display:none!important}
  body.print-page .panel{break-inside:avoid;box-shadow:none}
  /* slips: A5 for the drawer, 80mm for the thermal roll (BACKLOG #10/#14) */
  body.print-a5 .rc,body.print-80 .rc,body.print-a4 .rc{position:absolute;inset:auto;left:0;top:0}
  body.print-a5 .rc{width:130mm;page:a5slip}
  body.print-a4 .rc{width:180mm;page:a4slip}
  /* the document and page families on a paper other than A4 (m34) */
  body.print-doc.pd-a5 #printDoc{page:doca5}
  body.print-doc.pd-80 #printDoc{page:thermal;width:72mm;font-size:9px}
  body.print-doc.pd-80 #printDoc .pd-head{display:block}
  body.print-doc.pd-80 #printDoc .pd-doc{text-align:left;margin-top:6px}
  /* item 9: the day-close summary on the 80mm roll — the five-column
     morning/in/out/evening table reads on a narrow strip: tighter cells,
     smaller chips, no side padding wasted, and the two figures stack */
  body.print-doc.pd-80 #printDoc .dc-tbl{width:100%;table-layout:fixed;font-size:8px}
  body.print-doc.pd-80 #printDoc .dc-tbl th,
  body.print-doc.pd-80 #printDoc .dc-tbl td{padding:2px 1px;white-space:nowrap}
  body.print-doc.pd-80 #printDoc .dc-tbl .cc,
  body.print-doc.pd-80 #printDoc .dc-tbl .chip{padding:0 3px;font-size:8px}
  body.print-doc.pd-80 #printDoc .figs.f2{display:block}
  body.print-doc.pd-80 #printDoc .figs.f2>div+div{margin-top:6px}
  /* document switches (m35): page numbers and the running column */
  body.pd-nopages #printDoc .pd-num{display:none}
  body.pd-norun #printDoc .rule{display:none!important}
  body.print-page.pd-a5 main{page:doca5}
  body.print-page.pd-80 main{page:thermal;width:72mm;font-size:9px}
  body.print-80 .rc{width:72mm;max-width:72mm;padding:4mm 3mm;font-size:var(--t-2xs);page:thermal}
  body.print-80 .rc .kv{padding:4px 0}
  body.print-80 .rc .sig{margin-top:8mm}
}
@page{margin:8mm}
@page a5slip{size:A5}
@page a4slip{size:A4 portrait}
@page doca5{size:A5 portrait;margin:10mm 8mm 14mm}
@page thermal{size:80mm auto;margin:2mm}
/* the floating label and the keyboard list */
/* DESIGN rule 1: the tooltip is ALWAYS dark and never wears a stage token,
   so its colours are fixed — identical in Porcelain and Midnight. The old
   var(--dk-text) flipped with the theme and left dark-on-dark in light. */
.tip{position:fixed;z-index:400;display:none;align-items:center;gap:8px;max-width:280px;
  padding:7px 10px;border-radius:8px;background:#101321;color:#FFFFFF;font-size:var(--t-xs);
  line-height:1.45;box-shadow:var(--e-2);pointer-events:none;
  animation:tipin .12s ease-out}
.tip.on{display:flex}
@keyframes tipin{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.tip-k{flex:none;font-family:'IBM Plex Mono',monospace;font-size:var(--t-2xs);padding:2px 5px;border-radius:4px;
  background:rgba(255,255,255,.16);color:#FFFFFF;letter-spacing:.02em}
.kbl{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.kbl-s{padding:10px 14px;background:var(--tint-2);border-bottom:1px solid var(--line-2);
  font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);font-weight:600}
.kbl-r{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--line-2)}
.kbl-r:last-child{border-bottom:none}
.kbl-r b{flex:none;min-width:74px;text-align:center}
.kbl-r span{font-size:var(--t-xs)}
.pg-hide{display:none}
.pgf{display:none;align-items:center;gap:9px;flex-wrap:wrap;padding:11px 2px 0;margin-top:10px;
  border-top:1px solid var(--line-2)}
.pgf.on{display:flex}
.pgf-c{font-size:var(--t-xs);color:var(--muted)}
.pgf-c b{color:var(--text);font-weight:600}

/* one account: status choices, unit boxes, the figures strip */
.pickcol{display:grid;gap:9px}
.pickrow{display:block;width:100%;text-align:start;padding:13px 15px;border:1px solid var(--field);
  border-radius:12px;background:var(--panel);transition:.12s}
.pickrow:hover{border-color:var(--muted);background:var(--tint)}
.pickrow.on{border-color:var(--brass);background:var(--brass-tint);box-shadow:0 0 0 1px var(--brass) inset}
.pickrow b{display:block;font-size:var(--t-s);font-weight:600}
.pickrow span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:3px;line-height:1.5}
.unitbox{display:grid;place-items:center;padding:0 13px;font-size:var(--t-xs);color:var(--muted);
  border-inline-start:1px solid var(--line);white-space:nowrap}
.accfig{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);
  border-radius:16px;background:var(--panel);overflow:hidden;margin-bottom:16px}
.accfig>*{padding:15px 17px;border-inline-end:1px solid var(--line-2);min-width:0;text-align:start;transition:background .12s}
.accfig>button:hover{background:var(--tint)}
.accfig>*:last-child{border-inline-end:none}
.accfig .l{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);font-weight:600}
.accfig .f{font-size:clamp(var(--t-m),1.4vw,var(--t-l));font-weight:600;letter-spacing:var(--track-3);margin-top:7px}
.accfig .f small{font-family:'Inter',sans-serif;font-size:var(--t-2xs);font-weight:600;color:var(--faint)}
.accfig .s{font-size:var(--t-2xs);color:var(--muted);margin-top:5px}

.acc-cta{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
@media(max-width:1080px){.accfig{grid-template-columns:1fr 1fr}
  .accfig>*:nth-child(2){border-inline-end:none}
  .accfig>*:nth-child(1),.accfig>*:nth-child(2){border-bottom:1px solid var(--line-2)}}
@media(max-width:600px){.accfig{grid-template-columns:1fr}
  .accfig>*{border-inline-end:none;border-bottom:1px solid var(--line-2)}
  .accfig>*:last-child{border-bottom:none}}
.lnk{display:inline-flex;border-radius:99px;transition:.12s}
.lnk:hover{opacity:.75;transform:translateY(-1px)}
.quad{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
@media(max-width:900px){.quad{grid-template-columns:1fr 1fr;gap:16px}}
@media(max-width:430px){.quad{grid-template-columns:1fr;gap:13px}}

/* counters: money lines, drawer cards and the review strip */

/* the header: the trading day, your drawer, and what needs you */
.daybtn{display:flex;align-items:center;gap:9px;height:var(--ctl-in);padding-block:0 0;padding-inline:11px 12px;white-space:nowrap;
  border:1px solid var(--ctl-line);border-radius:12px;background:var(--panel);position:relative;
  transition:.13s;flex:none}
.daybtn:hover{border-color:var(--ctl-line);background:var(--tint)}
.daybtn .dd{width:7px;height:7px;border-radius:99px;background:var(--faint);flex:none}
.daybtn.on .dd{background:var(--pos-ic);box-shadow:0 0 0 3px var(--pos-ic)20}
.daybtn.off .dd{background:var(--faint)}
.daybtn .dv{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.daybtn .dv b{font-size:var(--t-xs);font-weight:600;letter-spacing:.01em}
.daybtn .dv small{font-size:var(--t-2xs);color:var(--faint);letter-spacing:.02em}
.daybtn.due{border-color:var(--brass-line);background:var(--brass-tint)}
  display:grid;place-items:center;font-style:normal;border:2px solid var(--paper)}
.bell.due{border-color:var(--brass-line)}
.bell.bad{border-color:var(--neg)}
.bdot.bad{background:var(--neg)}
/* on Midnight the red fill is a light coral, so the count on it must be dark
   letters, not stage-white (DESIGN.md rule 5; was a real 2.2:1 violation) */
:root[data-theme="dark"] .bdot{color:var(--on-solid)}
@media(min-width:1081px){.dpanel{width:320px}}
.dstat{font-size:var(--t-2xs);font-weight:600;padding:2px 9px;border-radius:99px;
  background:var(--wash);color:var(--muted)}
.dstat.on{background:var(--pos-bg);color:var(--pos)}
.dgrid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line-2);
  border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.dgrid>div{background:var(--panel);padding:11px 13px}
.dgrid span{display:block;font-size:var(--t-2xs);letter-spacing:.06em;text-transform:uppercase;
  color:var(--faint);margin-bottom:4px}
.dgrid b{font-size:var(--t-s);font-weight:600}
/* The account page's two cards (its Details) share the class with the day panel's figures above,
   which sets two to a row at every width and so undid the account page's own 900px rule: on a
   phone the second card was cut off. The account page's grid is named, and stacks its cards one
   under the other, full width, up to 900px, in both directions (round 29). */
@media(max-width:900px){
  .dgrid.acc-dgrid{grid-template-columns:1fr}
  /* a label keeps its words together; a value that does not fit beside it moves under it, whole */
  .acc-dgrid .kv{flex-wrap:wrap;row-gap:4px}
  .acc-dgrid .kv>span{white-space:nowrap}
  .acc-dgrid .kv>b{flex:0 0 auto;max-width:100%;margin-inline-start:auto;text-align:end}
}
.dlist{padding:7px}
.dl-i{display:flex;align-items:center;gap:11px;width:100%;text-align:start;padding:9px 9px;
  border-radius:8px;transition:.12s}
button.dl-i{cursor:pointer}
button.dl-i:hover{background:var(--tint-2)}
.dl-i>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;
  background:var(--wash);color:var(--muted)}
.dl-i>i .ic{width:16px;height:16px}
.dl-i.due>i{background:var(--brass)14;color:var(--brass-t)}
.dl-i div{flex:1;min-width:0}
.dl-i b{display:block;font-size:var(--t-xs);font-weight:600}
.dl-i span{display:block;font-size:var(--t-2xs);color:var(--muted);margin-top:1px}
.dl-i>.ic{width:16px;height:16px;color:var(--faint);flex:none}
.dfoot{padding:11px 13px 13px;border-top:1px solid var(--line-2)}
.np-c{font-size:var(--t-2xs);font-weight:600;padding:2px 8px;border-radius:99px;
  background:var(--brass)16;color:var(--brass-t);margin-inline-start:8px}
.np-s{display:flex;align-items:center;gap:7px;padding:11px 13px 6px;font-size:var(--t-2xs);
  font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--faint)}
.np-s .ic{width:13px;height:13px}
.np-i>.ic{width:16px;height:16px;color:var(--faint);flex:none;align-self:center}

/* filter chips above a list, and what the list adds up to */
.lfbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:11px 15px;
  border-bottom:1px solid var(--line-2);background:var(--tint)}
/* item 8 (2026-11-10): the Daily report's date controls live inside the panel
   header row (.ph2), so the filter bar's own tint band and bottom border read
   as a stray shaded strip under them. Strip both here and drop the padding, so
   the control sits clean and flush with the rest of the header row. The
   controls themselves are untouched. */
.jrr-bar{display:inline-flex;min-width:0}
.jrr-bar .lfbar{background:transparent;border-bottom:none;padding:0}
/* JOB 4 (2026-09-22) — the one-entry bar: the chips you navigate with stay
   on the row, every question sits behind "Filters", and what is chosen
   comes back as removable pills between the row and the result line. */
.lfpills{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 15px 8px;
  background:var(--panel);border-bottom:1px solid var(--line-2)}
.lfpill{display:inline-flex;align-items:center;gap:6px;height:24px;padding-inline:9px 7px;
  border:none;border-radius:99px;background:var(--brass-tint);
  color:var(--brass-t);font-size:var(--t-2xs);font-weight:600;white-space:nowrap;cursor:pointer}
.lfpill:hover{background:var(--brass-wash)}
.lfpill .ic{width:11px;height:11px;opacity:.8}
.lfwrap.one .lfbar{gap:10px}
.lfwrap.one .acc-curs{flex-wrap:wrap}
/* ITEM 5 — the result line: what the reader is looking at, in a sentence */
.lfres{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px 15px;font-size:var(--t-xs);
  color:var(--muted);border-bottom:1px solid var(--line-2);background:var(--panel)}
.lfres>.ic{width:14px;height:14px;flex:none;opacity:.55}
.lfres-t{min-width:0}
.lfres-t b{color:var(--text);font-weight:600}
.lfres-s{font-style:normal;color:var(--faint)}
.lfres-x{display:inline-flex;align-items:center;gap:4px;margin-inline-start:auto;border:none;background:none;
  color:var(--brass-t);font-weight:600;font-size:var(--t-xs);cursor:pointer;padding:3px 7px;border-radius:7px;white-space:nowrap}
.lfres-x:hover{background:var(--brass-tint)}
.lfres-x .ic{width:12px;height:12px}
.lfg{display:inline-flex;align-items:center;gap:0;border:1px solid var(--line);
  border-radius:8px;overflow:hidden;background:var(--panel)}
.lfc{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:30px;
  font-size:var(--t-xs);color:var(--muted);border-inline-end:1px solid var(--line-2);transition:.12s;
  white-space:nowrap}
.lfg .lfc:last-child{border-inline-end:none}
.lfc:hover{background:var(--tint-2);color:var(--text)}
.lfc.on{background:var(--solid);color:var(--on-solid)}
.lfc.on:hover{background:var(--solid)}
.lfc .ic{width:13px;height:13px;opacity:.8}
/* a chip you type into: the date and amount ranges (BACKLOG #9).
   "on" is said with a brass underline, never the solid fill — a field
   with dark letters on the yellow would fight its own caret. */

.lfc-in input:focus{outline:none}
.lfc-in input::placeholder{color:var(--faint)}

.lfc.lfc-in.on:hover{background:var(--brass-wash);color:var(--brass-t)}

.lfc em{font-style:normal;font-size:var(--t-2xs);font-weight:600;padding:1px 5px;border-radius:99px;
  background:var(--wash);color:var(--muted)}
.lfc.on em{background:rgba(var(--sh),.16);color:var(--on-solid)}
/* item 2 (2026-11-10): a small status dot on a standing option, to aid
   scanning without the clutter of a count */
.lfc-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--muted)}
.lfc-dot.pos{background:var(--pos)}
.lfc-dot.neg{background:var(--neg)}
.lfc-dot.warn,.lfc-dot.brass{background:var(--brass-t)}
.lfc.on .lfc-dot{box-shadow:0 0 0 1.5px var(--on-solid)}
/* item 2 (2026-11-10): the amount range's currency row — filter in any
   currency, not only the base */
.fb-amtcur{margin-top:10px}
.fb-amtcur-l{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
  color:var(--muted);font-weight:600;margin:0 0 6px}
.fb-amtcur .lfg{flex-wrap:wrap}
.lfx{display:inline-flex;align-items:center;gap:6px;padding:0 11px;height:30px;border-radius:8px;
  font-size:var(--t-xs);color:var(--neg);border:1px solid var(--neg);background:var(--neg-tint);transition:.12s}
.lfx:hover{background:var(--neg-bg);border-color:var(--neg-deep)}
.lfx .ic{width:13px;height:13px}
/* ---- the folded filters (milestones 21–22): currency chips stay out on
   the bar; three small group buttons — Kind, Employee, Date & amount —
   each with its own compact dropdown (popover on a desk, bottom sheet on
   a phone). An active button turns brass, reads its selection back and
   carries its own × ---- */
.lfbar{position:relative}
.fb-seg{display:inline-flex}
.fb-btn{border:1px solid var(--ctl-line);border-radius:8px;background:var(--panel)}
.fb-btn.act{background:var(--brass-tint);color:var(--brass-t);border-color:var(--brass-t)}
.fb-btn.act:hover{background:var(--brass-wash);color:var(--brass-t)}
.fb-lab{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fb-x{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:4px;
  font-size:var(--t-xs);line-height:1;opacity:.7;margin-inline-start:1px}
.fb-x:hover{opacity:1;background:rgba(var(--sh),.12)}
.fb-wrap{display:none}
.fb-wrap.open{display:block}
.fb-pop{position:absolute;z-index:85;top:calc(100% - 5px);inset-inline-start:15px;
  width:min(560px,calc(100vw - 60px));background:var(--float);border:1px solid var(--float-line);
  border-radius:12px;box-shadow:var(--e-2);padding:4px 15px 12px;
  max-height:min(66vh,520px);overflow-y:auto}
.fb-scrim{display:none}
.fb-g{padding:11px 0 12px;border-bottom:1px solid var(--line-2)}
.fb-g:last-of-type{border-bottom:none}
.fb-h{display:flex;align-items:center;gap:7px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--faint);font-weight:600;margin-bottom:8px}
.fb-h .ic{width:13px;height:13px}
.fb-o{display:block}
/* inside the popover a chip strip wraps instead of forcing a scroll */
.fb-o .lfg{display:flex;flex-wrap:wrap;max-width:100%}
.fb-o .lfc{border-bottom:1px solid var(--line-2);margin-bottom:-1px}
.fb-f{display:flex;align-items:center;gap:9px;padding-top:12px;border-top:1px solid var(--line-2)}
@media(max-width:720px){
  /* on a phone each dropdown becomes a bottom sheet behind a scrim */
  .fb-wrap.open{position:fixed;inset:0;z-index:120}
  .fb-scrim{display:block;position:absolute;inset:0;background:rgba(0,0,0,.45)}
  .fb-pop{position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:0;top:auto;width:auto;max-height:78vh;
    border-radius:16px 16px 0 0;padding-bottom:calc(14px + env(safe-area-inset-bottom));
    animation:sheet .22s cubic-bezier(.2,.8,.3,1)}
}
@media(max-width:540px){
  /* the group buttons compress to icons; the brass fill and the × still
     say which are active. Currency chips never compress. */
  .fb-btn .fb-lab{display:none}
  .fb-btn{padding:0 8px}
}
/* ITEM 3 — the statement's opening → in/out → closing band, per currency */
/* =====================================================================
   THE STATEMENT SUMMARY (job 1, 2026-09-22) — where an account stands,
   per currency: the figure, the side it stands on, and the last time
   that currency was okayed. One card per currency; a grand line states
   the position per currency and never sums across them.
   ===================================================================== */
.stsg{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:1px;background:var(--line);
  border-top:1px solid var(--line)}
.stsc{display:block;width:100%;text-align:start;background:var(--panel);padding:15px 18px 16px;transition:background .12s}
button.stsc:hover{background:var(--tint)}
button.stsc:focus-visible{outline-offset:-3px}
.stsc.zero{background:var(--tint)}
.stsc-h{display:flex;align-items:center;gap:8px;font-size:var(--t-xs);color:var(--muted)}
.stsc-f{display:block;font-size:clamp(var(--t-l),1.9vw,var(--t-xl));font-weight:700;
  letter-spacing:var(--track-1);margin-top:9px}
.stsc.zero .stsc-f{color:var(--faint)}
.stsc-p{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}
.stsc-p em{font-style:normal;font-size:var(--t-2xs);color:var(--faint)}
.stsc-o{display:flex;align-items:center;gap:5px;margin-top:9px;font-size:var(--t-2xs);color:var(--muted)}
.stsc-o .ic{width:13px;height:13px;color:var(--pos);flex:none}
.stsc-o.none{color:var(--faint)}
.stsc-o.none .ic{color:var(--muted)}
.sts-gr{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 18px;
  border-top:1px solid var(--line);background:var(--wash);font-size:var(--t-xs)}
.sts-gr .ic{width:14px;height:14px;color:var(--faint);flex:none}
.sts-gr>span{color:var(--muted)}
.sts-gr b{font-weight:600;color:var(--text)}
.sts-gr b+b{padding-inline-start:12px;border-inline-start:1px solid var(--line)}
.sts-gr b.credit .mono{color:var(--pos)}
.sts-gr b.debit .mono{color:var(--neg)}
.stsum .empty{border-top:1px solid var(--line)}
@media(max-width:1080px){.stsg{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.stsg{grid-template-columns:1fr}}
/* the Credit / Debit token: the standing language, one step smaller so a
   table cell keeps its row height */
/* job 2: a print PRESET button reads its own state — the one that matches
   the switches as they stand wears the tick and the brass edge */
.btn[data-preset].on{border-color:var(--brass-line);background:var(--brass-tint);color:var(--brass-t)}
.btn[data-preset].on .ic{color:var(--brass-t)}
/* =====================================================================
   THE OKAYS LIST (job 3, 2026-09-22) — the shared table grammar, with the
   agreed figures inline, what was left open beneath them, and the row
   jumping to its divider in the statement.
   ===================================================================== */
.okl-g{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.okl-c{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.okl-c b{font-weight:600;letter-spacing:var(--track-2)}
.okl-c.open b{text-decoration:line-through;text-decoration-color:var(--faint)}
.okl-open{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:6px}
.okl-open>em{font-style:normal;text-transform:uppercase;letter-spacing:var(--track-caps);color:var(--faint)}
.okl-y{font-style:normal;color:var(--muted)}
.okl-now{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:9px;
  background:var(--brass);color:#000;font-size:var(--t-2xs);font-weight:700}
.okl-t td.okl-who .sec .ic{width:12px;height:12px;margin-inline-end:4px;vertical-align:-2px;color:var(--faint)}
.okl-t tr.okrow-latest>td{background:var(--brass-tint)}
/* the divider the Okays list jumped to, lit for a moment */
tr.okdiv.okd-hit>td{box-shadow:inset 0 0 0 2px var(--brass-t)}
/* =====================================================================
   THE LEDGER'S TYPE CELL (2026-09-23) — the kind with its own icon, in
   the kind colour language. The same markup on the screen and on paper.
   ===================================================================== */
.stmt-t td.ct,#printDoc .cs-t td.ct{line-height:17px}
.txk.stype{gap:5px;padding-inline:5px 8px}
.stype .txk-i{width:11px;height:11px;flex:none;color:var(--ki-other)}
.stype.k-deposit .txk-i{color:var(--ki-deposit)}
.stype.k-withdraw .txk-i{color:var(--ki-withdraw)}
.stype.k-exchange .txk-i{color:var(--ki-exchange)}
.stype.k-hawala .txk-i{color:var(--ki-hawala)}
.stype.k-transfer .txk-i{color:var(--ki-transfer)}
.stype.k-partner .txk-i{color:var(--ki-partner)}
.stype.k-expense .txk-i{color:var(--ki-expense)}
.stype.k-bank .txk-i{color:var(--ki-bank)}
.stype.k-profit .txk-i{color:var(--ki-profit)}
.stype.k-okay .txk-i{color:var(--brass-t)}
/* the opening, the subtotal and the closing: the ledger's own ends */
tr.stmend>td{background:var(--tint);font-weight:600}
tr.stm-closing>td{border-top:1.5px solid var(--edge)}
tr.stmend td.ct b{font-weight:600}
/* the okay, as a line in the ledger */
tr.okdiv>td{background:var(--brass-tint)}
tr.okdiv.latest>td{box-shadow:inset 0 2px 0 var(--brass-line),inset 0 -2px 0 var(--brass-line)}
.okd-now{display:inline-flex;align-items:center;height:18px;padding:0 7px;margin-inline-start:8px;
  border-radius:9px;background:var(--brass);color:#000;font-size:var(--t-2xs);font-weight:700}
td.okd-b .okd-v.oko{text-decoration:line-through;text-decoration-color:var(--faint)}
.okd-tick{width:11px;height:11px;color:var(--pos);margin-inline-end:4px;vertical-align:-1px}
.okd-no{font-style:normal;font-size:var(--t-2xs);color:var(--muted);margin-inline-end:5px}
/* the tinted ledger ends and the okay row keep AA on their own tint */
tr.okdiv .cw-2,tr.stmend .cw-2,tr.okdiv .faint,tr.stmend .faint{color:var(--muted)}
.stc.sq{background:var(--wash);color:var(--muted)}
.dtok{height:20px;padding-inline:7px 8px}
/* the movements table's own two narrow columns: the reference and the side */
.stmt-t td.cref{color:var(--muted);white-space:nowrap}
.stmt-t td.cm.cr .mv-in,.stmt-t td.cm.db .mv-out{white-space:nowrap}
/* the source tag: the kind tag, carrying a transfer's own number */
.txk.src .src-c{font-style:normal;margin-inline-start:5px;font-weight:500}
.stmtband{border:1px solid var(--ctl-line);border-radius:12px;background:var(--panel);margin-bottom:14px;overflow:hidden}
.stmtband .stb-h{display:flex;align-items:center;gap:7px;padding:9px 14px;background:var(--wash);
  border-bottom:1px solid var(--line-2);font-size:var(--t-2xs);font-weight:600;color:var(--muted);
  letter-spacing:var(--track-caps);text-transform:uppercase}
.stmtband .stb-h .ic{width:14px;height:14px;opacity:.6}
.stb-row{display:flex;align-items:center;gap:10px;padding:9px 14px;flex-wrap:wrap}
.stb-row+.stb-row{border-top:1px solid var(--line-2)}
.stb-c{flex:0 0 auto;min-width:64px}
.stb-n{display:flex;flex-direction:column;gap:1px;min-width:96px;flex:1 1 96px}
.stb-n em{font-style:normal;font-size:var(--t-2xs);color:var(--faint);text-transform:uppercase;letter-spacing:var(--track-caps)}
.stb-n b{font-size:var(--t-s);font-weight:700;letter-spacing:var(--track-2)}
.stb-close{border-inline-start:1px solid var(--line-2);padding-inline-start:12px}
.stb-close em{color:var(--text)}
@media(max-width:720px){.stb-n{min-width:78px;flex-basis:78px}}
.tsum{display:flex;flex-wrap:wrap;align-items:center;gap:0;border-bottom:1px solid var(--line-2)}
.ts-c{padding:10px 15px;font-size:var(--t-xs);color:var(--muted);border-inline-end:1px solid var(--line-2)}
.ts-c b{font-size:var(--t-s);font-weight:600;color:var(--text)}
.ts-v{padding:8px 15px;border-inline-end:1px solid var(--line-2);min-width:132px}
.ts-v span{display:block;font-size:var(--t-2xs);letter-spacing:.06em;text-transform:uppercase;
  color:var(--faint);margin-bottom:2px}
.ts-v b{font-size:var(--t-s);font-weight:700}
.ts-cur{display:flex;flex-wrap:wrap;gap:8px;padding:9px 15px;flex:1;justify-content:flex-end}
.ts-p{display:inline-flex;align-items:center;gap:6px;font-size:var(--t-xs);
  font-variant-numeric:tabular-nums}
.ts-p b{font-weight:600}
.mv-in b,.mv-out b{font-weight:600}
.cu{font-style:normal;font-size:var(--t-2xs);color:var(--muted);letter-spacing:.03em;
  min-width:26px;text-align:start}
/* ITEM 1 (accounts brief 2) — the Standing cell: who owes whom in words,
   the decisive figure beneath in its own currency, pos/neg tokens */
.acc-stand{white-space:nowrap}
.acc-stand .acc-side{display:block;font-size:var(--t-2xs);letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin-bottom:2px}
.acc-stand .acc-side.neg{color:var(--neg)}
.acc-stand .acc-side.pos{color:var(--pos)}
.acc-stand b{font-weight:600;font-variant-numeric:tabular-nums}
.acc-stand b.faint{color:var(--faint)}
.acc-sides .lfc .ic{opacity:.7}
.ts-v b .cu{margin-inline-start:1px}
/* item 1 — the "Balance after" figure: the account's running balance, one
   line per currency leg, tabular so a column of them lines up */
.balaft{display:inline-flex;align-items:center;gap:6px;justify-content:flex-end;
  font-variant-numeric:tabular-nums;color:var(--text)}
.balaft.neg{color:var(--neg)}
/* ITEM 3 — the "Balance after" column: a tinted strip down the list, the
   figure 14/600 mono, the chip inside, right-aligned; the same cell on
   every list, the day header and the strip reading from the same engine */
td.bal-c,th.bal-h{background:var(--tint);white-space:nowrap;vertical-align:middle;position:relative}
.bal-ls{display:inline-flex;flex-direction:column;align-items:flex-end;gap:0;vertical-align:middle}
td.bal-c .balaft{line-height:17px}
th.bal-h{color:var(--muted)}
.tw table.t3 tbody tr.click td.bal-c .balaft,.hwt tr.hwr td.bal-c .balaft,td.bal-c .balaft{font-size:14px;font-weight:600}
td.bal-c .balaft .cc{font-size:11px;height:16px;min-width:24px}
td.bal-c .bal-tag,.bal-tag{font-style:normal;font-size:var(--t-2xs);font-weight:600;letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint)}
tr.click:hover td.bal-c,.hwt tr.hwr:hover td.bal-c{background:var(--tint-2)}
tr.dgrp td.bal-g,.tw table.t3 tr.dgrp td.bal-g{background:var(--tint-2);padding:0 16px;height:36px;line-height:18px;font-size:14px;text-align:end;white-space:normal}
.bal-st{display:inline;font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;font-size:12px;font-weight:600;color:var(--text);text-transform:none;letter-spacing:0;line-height:16px}
.bal-st .neg{color:var(--neg)}
.bal-st .bal-tag{margin-inline-end:4px}
/* the hawala list has no header row: its day headers carry the column's
   name at the start edge of the balance column */
.hwt tr.hwday td.bal-g{text-transform:uppercase;letter-spacing:var(--track-caps);font-size:var(--t-2xs);color:var(--muted);font-weight:600}
tr.dgrp td.bal-g .bal-tag{font-size:10px}
.bal-s{font-style:normal;color:var(--faint)}
/* the closing balance on the strip's currency chip: "⇢ 1.7M" */
.ts-p .ts-cl{font-weight:600;color:var(--text);padding-inline-start:4px;border-inline-start:1px solid var(--line-2);margin-inline-start:2px}
.ts-p .ts-cl.neg{color:var(--neg)}
/* the hawala row is a six-column budget at 1280: the balance column
   shows from 1366 up, and stays the drawer's first line below that */
.hwt col.c-bal{width:170px}
.hwt td.hb{padding-inline:12px}
@media(min-width:1441px){.hwt col.c-act{width:220px}}
/* the printed document obeys the Balance-after toggle */
body.pd-norun #printDoc .bal-c,body.pd-norun #printDoc .bal-h,body.pd-norun #printDoc .bal-g{display:none!important}
.balaft .cu{min-width:0}
/* the day book's Account cell: name, then the balance after inline and
   muted — one line, so the row stays the same height and the frame keeps
   twelve rows. The cell is capped and BOTH parts clip, so the running
   balance never forces the column wider (which would squeeze the Entry
   column, wrap its title and grow the row). */
/* the day book's "Balance after" column: the account's balance after an
   entry that touched it (item 1). A dedicated right-aligned column, like
   the statement — so it never touches the row height or the frame's twelve
   rows. Below the desktop the day book gets crowded, so it folds away (the
   figure stays on the statement and the receipt). */
.jrbook td.jr-bal-c,.jrbook th.jr-bal-h{text-align:end;font-variant-numeric:tabular-nums;
  color:var(--muted);white-space:nowrap;vertical-align:middle}
.jrbook .jr-bal-fig{color:var(--fg)}
.jrbook .jr-bal-fig.neg{color:var(--neg)}
/* JOB 1: with the cashier column gone the day book is 6 columns, so the
   balance-after now stays through 1280 and folds only on a tablet */
@media(max-width:1080px){.jrbook .jr-bal-c,.jrbook .jr-bal-h,.jrbook .bal-c,.jrbook .bal-h,.jrbook .bal-g{display:none!important}}
@media(max-width:900px){.ts-cur{justify-content:flex-start;border-top:1px solid var(--line-2);width:100%}}
@media(max-width:720px){
  /* the bar wraps so the group buttons stay on screen; only the currency
     chips keep their one-line group, swiped if the board grows */
  .lfbar{padding:10px 12px}
  /* a horizontal-scroll segmented control: a soft right-edge fade signals there
     is more to swipe to (the row stays scrollable; no money is clipped) */
  .lfbar>.lfg{max-width:100%;flex:none;overflow-x:auto;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent);
    mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent)}
  /* RTL scrolls the other way, so the fade follows reading direction */
  html[dir="rtl"] .lfbar>.lfg{
    -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 18px),transparent);
    mask-image:linear-gradient(to left,#000 calc(100% - 18px),transparent)}
  .lfbar>.lfg::-webkit-scrollbar{display:none}
  .lfx{flex:none}
  .ts-v{min-width:0;flex:1}
  .ts-c{width:100%;border-inline-end:none;border-bottom:1px solid var(--line-2)}}

/* a fresh day in a statement gets a line, so weeks do not run together */

.wd{font-weight:600;color:var(--muted)}
/* the rule between days when a list spans more than one */

@media(max-width:720px){
  .tw tbody tr.dbreak{background:none;border:none;padding:2px 6px;margin:2px 0 9px}
  .tw tbody tr.dbreak td{background:none;border:none;padding:0}
}

.way{font-weight:500;min-width:0}
.way .sec .ic{width:13px;height:13px;margin-inline-end:4px;vertical-align:-1px}

/* a reference number is one word, never three lines of one */
.tw td>.mono:first-child,.tw td.mono{white-space:nowrap}
.tw td.mono .sec{white-space:normal}

@media(max-width:720px){
  /* on a card the amount and its currency wrap together rather than run off the edge */
  .tw td>.mv-in,.tw td>.mv-out{flex-wrap:wrap;max-width:100%;row-gap:0}
  .tw td .sec{max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .cu{min-width:0}
}

/* green and red were chosen against paper; on the dark hero the lighter
   pair of the same two colours is what can actually be read */
:root[data-theme="dark"] .hero .pos,:root[data-theme="dark"] .board .pos{color:var(--pos-ic)}
:root[data-theme="dark"] .hero .neg,:root[data-theme="dark"] .board .neg{color:var(--neg-ic)}
.hero .dsep,.board .dsep,.hero .darr,.board .darr{color:var(--dk-mut)}
.cnt{color:var(--text)}

:root[data-theme="dark"] img,:root[data-theme="dark"] .qr-img{filter:none}

/* a coloured word on a wash of the same colour never quite reads; the panel does */
.xcur,.amt .xcur{color:var(--muted)}
/* on a dark theme a red or green fill is light, so the word on it must be dark */
html,body{background:var(--paper)}
/* theme switch */
.thseg{display:flex;gap:4px;padding:6px 10px 2px}
.thseg button{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:9px 4px;border:1px solid var(--line);border-radius:12px;background:var(--panel);
  color:var(--muted);font-size:var(--t-2xs);cursor:pointer;transition:.13s}
.thseg button:hover{border-color:var(--ctl-line);color:var(--text)}
.thseg button.on{background:var(--solid);border-color:var(--solid);color:var(--on-solid)}
.thseg button .ic{width:16px;height:16px}
.um-now{padding:4px 12px 10px;font-size:var(--t-2xs);color:var(--faint)}

/* the rail keeps its dark stage in both themes, so its text uses stage tokens */

.rail #uRole{color:var(--dk-mut)}
.rail #uName{color:var(--dk-text)}

/* the theme button sits beside the bell and matches it */
.hic{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;flex:none;
  border:1px solid var(--ctl-line);background:var(--panel);color:var(--muted);transition:.13s;cursor:pointer}
.hic:hover{border-color:var(--ctl-line);color:var(--text)}
.hic .ic{width:16px;height:16px}
@media(max-width:720px){.hic{width:34px;height:34px}}

/* on paper the hero is a light panel, so the warm inner light and the glow
   that read on a dark stage have to come down to a whisper */
:root[data-theme="light"] .board{box-shadow:var(--e-1)}
:root[data-theme="light"] .board:before{opacity:.30}

/* ============ sign in ============ */
#login{background:#0A0D12;display:block;padding:0;overflow-y:auto}
#login:before{content:"";position:fixed;inset:0;pointer-events:none;
  background:
    radial-gradient(760px 460px at 16% -6%,rgba(240,185,11,.20),transparent 62%),
    radial-gradient(620px 420px at 92% 8%,rgba(47,120,180,.14),transparent 60%),
    radial-gradient(900px 600px at 50% 116%,rgba(61,217,160,.07),transparent 64%)}
#login:after{content:"";position:fixed;inset:0;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(1100px 700px at 30% 20%,#000,transparent 78%);
  mask-image:radial-gradient(1100px 700px at 30% 20%,#000,transparent 78%)}
/* one centred column at every width, 360 to 1920: nothing else on the stage */
.lg-stage{position:relative;z-index:1;min-height:100vh;min-height:100dvh;
  display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;
  padding:40px 20px calc(40px + env(safe-area-inset-bottom))}
.lg-wrap{max-width:404px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:18px;
  animation:lgup .5s cubic-bezier(.2,.8,.3,1)}
@keyframes lgup{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* the sign-in screen must not inherit the page's text colour, or the card's
   heading turns white on white the moment the device is in Midnight */
#login{color:#ECEFF3}
#login .lg-body,#login .lg-foot{color:var(--text)}
#login .lg-body h1,#login .lg-body h2,#login .lg-body label{color:var(--text)}

/* .btn:hover is more specific than .btn-brass, so a filled button lost its own
   colours the moment the pointer touched it. Each filled kind restates them. */
.btn-danger:hover{background:var(--neg);border-color:var(--neg);color:var(--on-solid);filter:brightness(1.08)}
.btn-alt:hover{color:var(--text)}
.hero-b:hover{color:var(--on-nav)}
/* things that had no answer to the pointer at all */
/* item 7 (2026-11-10): the in-page sub-tabs are underline tabs (.tabs .tab) —
   on hover they warm to the text colour and preview a faint underline, never
   a cramped background block behind the word (the old grey rectangle read as
   broken against the underline indicator). */
.tab:not(.on):hover{color:var(--text);border-bottom-color:var(--line)}
.pick-btn:hover{border-color:var(--muted);background:var(--tint)}
.amt .pick-btn:hover,.pick.inline .pick-btn:hover{filter:brightness(.97)}
.board .xboard,.hero .xboard{color:var(--dk-nav)}
.xboard:hover{color:var(--text);border-color:var(--edge)}
.board .xboard:hover,.hero .xboard:hover{color:var(--on-nav)}

/* the item you are already on should still answer the pointer, quietly */
.rlink.on:hover{filter:brightness(1.06)}
/* item 7: the active sub-tab already shows its brass underline — it answers the
   pointer by warming its underline, not by a brightness shift that dims the ink */
.tab.on:hover{border-bottom-color:var(--brass)}
.lfc.on:hover,.fchip.on:hover{filter:brightness(1.06)}

.seg button.on:hover,.cchip.on:hover,.setnav button.on:hover{filter:brightness(1.05)}

:root[data-theme="dark"] .hero .mono,:root[data-theme="dark"] .board .mono{color:var(--pos-ic)}
:root[data-theme="light"] .hero .pos,:root[data-theme="light"] .board .pos,
:root[data-theme="light"] .hero .mono.pos,:root[data-theme="light"] .board .mono.pos{color:var(--pos)}
:root[data-theme="light"] .hero .neg,:root[data-theme="light"] .board .neg{color:var(--neg)}

/* the accent lifted for a dark stage is too pale on a light one */
:root[data-theme="light"] .board .lab,:root[data-theme="light"] .hero .lab{color:var(--faint)}

/* ============ sign in, the character pass ============ */
/* one beam of yellow light falls across the stage; everything else stays quiet */
#login:before{background:
  linear-gradient(115deg,transparent 42%,rgba(240,185,11,.045) 46%,rgba(240,185,11,.10) 50%,rgba(240,185,11,.045) 54%,transparent 58%),
  radial-gradient(820px 480px at 14% -8%,rgba(240,185,11,.16),transparent 62%),
  radial-gradient(700px 480px at 96% 110%,rgba(61,217,160,.06),transparent 64%)}
/* the card wears a thin yellow crown and lifts off the stage */
.lg-card{position:relative;box-shadow:0 40px 90px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.06)}
.lg-card:before{content:"";position:absolute;top:0;inset-inline-start:0;inset-inline-end:0;height:3px;z-index:2;
  background:linear-gradient(90deg,#F0B90B 0%,#F8D33A 45%,rgba(248,211,58,.25) 100%)}
/* the button is the one loud thing on the page */
#login .btn-ink,#login .lg-go{background:#F0B90B;border-color:#8A6D00;color:#181A20;font-weight:600;
  box-shadow:0 10px 28px rgba(240,185,11,.28)}
#login .lg-go:hover{box-shadow:0 12px 32px rgba(240,185,11,.38)}
#login .btn-ink:hover,#login .lg-go:hover{background:#F0B90B;border-color:#F0B90B;color:#181A20;filter:brightness(1.08)}
/* the mark: yellow square, dark letter, like a coin die */
#login .mark i,.lg-id .mark i{background:#F0B90B;color:#181A20}
.lg-card{border-radius:16px}

/* ==================================================================
   THE PUBLIC STATUS LOOKUP (m46) — the phone page. A fixed dark stage
   like sign-in, identical in both themes, and EXEMPT from the tablet
   gate: a receiver checks a transfer from a phone. Fits at 390px.
   ================================================================== */
#check{display:none;position:fixed;inset:0;z-index:60;background:#0A0D12;color:#ECEFF3;overflow-y:auto;
  /* the stage is ALWAYS dark, so the dark-stage palette is pinned here —
     the theme's own --dk-* flip to near-black text in Porcelain (m46) */
  --dk-text:#F1F4F8;--dk-nav:#AEB6C2;--dk-mut:#98A1AF;--dk-faint:#767E8C}
body.checking #check{display:block}
body.checking #login,body.checking #app,body.checking #wizard{display:none!important}
#check:before{content:"";position:fixed;inset:0;pointer-events:none;background:
  linear-gradient(115deg,transparent 42%,rgba(240,185,11,.045) 46%,rgba(240,185,11,.10) 50%,rgba(240,185,11,.045) 54%,transparent 58%),
  radial-gradient(820px 480px at 14% -8%,rgba(240,185,11,.16),transparent 62%),
  radial-gradient(700px 480px at 96% 110%,rgba(61,217,160,.06),transparent 64%)}
#check .lg-body,#check .lg-body h1,#check .lg-body h2,#check .lg-body label,#check .lg-body b{color:var(--text)}
#check .btn-ink,#check .lg-go.btn-ink{background:#F0B90B;border-color:#8A6D00;color:#181A20;font-weight:600;
  box-shadow:0 10px 28px rgba(240,185,11,.28)}
#check .btn-ink:hover{background:#F0B90B;border-color:#F0B90B;color:#181A20;filter:brightness(1.08)}
#check .mark .lmark{width:34px;height:34px}
/* the language switch on the dark stage, above the card */
/* ===== the language switcher before sign-in (2026-09-20) =====
   a globe and the current language's own name in the top inline-end
   corner of the stage; a menu of the three languages, each in its own
   script and face. Stage tokens only (the sign-in, check and phone pages
   are dark in both themes); brand yellow for the focus ring. 44px targets. */
.lm{position:absolute;top:16px;inset-inline-end:16px;z-index:5}
.mh .lm{position:static;margin-inline-end:8px;z-index:auto}
.mh .lm-menu{inset-inline-end:auto;inset-inline-start:0}
.lm-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:0 12px;border-radius:12px;
  background:rgba(var(--ov),var(--ov-1));border:1px solid var(--dk-line);color:var(--dk-text);font-size:var(--t-xs);font-weight:500;
  cursor:pointer;transition:background .13s,border-color .13s}
.lm-btn:hover{background:rgba(var(--ov),var(--ov-2));border-color:var(--dk-mut)}
.lm-btn:focus-visible{outline:2px solid #F0B90B;outline-offset:2px}
.lm-btn[aria-expanded="true"]{background:rgba(var(--ov),var(--ov-2));border-color:var(--dk-mut)}
.lm-btn .ic{width:16px;height:16px;color:var(--dk-nav);flex:none}
.lm-btn .ic:last-child{width:12px;height:12px}
.lm-menu{position:absolute;top:calc(100% + 6px);inset-inline-end:0;min-width:172px;padding:6px;border-radius:12px;
  background:var(--dk-2);border:1px solid var(--dk-line);box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:6;animation:u .14s}
.lm-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:0 12px;
  border-radius:8px;text-align:start;color:var(--dk-nav);font-size:var(--t-s);cursor:pointer}
.lm-menu button:hover{background:rgba(var(--ov),var(--ov-2));color:var(--dk-text)}
.lm-menu button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #F0B90B;color:var(--dk-text)}
.lm-menu button[aria-checked="true"]{color:var(--dk-text);font-weight:600}
.lm-menu button .ic{width:16px;height:16px;color:var(--brass);flex:none}
/* a language still on its way: shown, not pickable, with a quiet "Soon" tag */
.lm-menu .lm-soon{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:0 12px;
  border-radius:8px;color:var(--dk-mut);font-size:var(--t-s);cursor:default}
.lm-menu .lm-soon em{font-style:normal;font-size:var(--t-2xs);color:var(--dk-mut);text-transform:uppercase;letter-spacing:var(--track-caps);opacity:.8}
/* a language's own name is set in its own face wherever it is written */
[lang="fa"],[lang="ps"]{font-family:'Vazirmatn','Inter',system-ui,-apple-system,sans-serif;letter-spacing:0}
[lang="en"]{font-family:'Inter',system-ui,-apple-system,sans-serif}

/* The phone gate (m26) was removed in responsive/app: the app now serves every
   width from ~360px up, so there is no "open it on a computer" wall below 744px
   and no #gate element. Its markup (Gate.tsx) and mount were removed too. */

/* ==================================================================
   JOURNAL POLISH (m27)
   ================================================================== */
/* the day's status and its one big action, together on the drawer strip */
.dayhome{display:inline-flex;align-items:center;gap:10px;flex:none}

/* the book scrolls inside its own frame; header, filters and the totals
   strip hold still above it — the table owns its scroll, not the page */
/* the tall list frame (m40): its height is set by sizeFrames — the
   viewport once the page has scrolled to it, never under 640 px — and
   it scrolls only then (.live); before that a wheel over it moves the
   page. The header row, the day-group headers and the totals strip are
   sticky inside it. */
.tw.frame{height:668px;overflow-y:hidden;position:relative}
.tw.frame.frame-tall{height:900px}   /* account movements: room for twelve 64px rows (JOB 1); sizeFrames keeps it */
.tw.frame.live{overflow-y:auto}
.tw.frame thead th{position:sticky;top:0;z-index:3;background:var(--panel);height:32px;padding-top:0;padding-bottom:0;vertical-align:middle;
  box-shadow:0 1px 0 var(--line)}
.tw.frame tr.dgrp td,.tw.frame tr.hwday td{position:sticky;top:32px;z-index:2}
.tw.frame table:not(:has(thead)) tr.dgrp td,.tw.frame table:not(:has(thead)) tr.hwday td{top:0}
tr.dgrp td,.tw table.hwt tr.hwday td{height:36px;padding:0 16px;background:var(--tint-2);border-bottom:1px solid var(--line);border-top:1px solid var(--line);
  font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600;line-height:18px}
tbody tr.dgrp:first-child td,.tw table.hwt tbody tr.hwday:first-child td,.tw.frame thead+tbody tr.dgrp:first-child td{border-top:none}
tr.dgrp td:first-child>span{display:inline-flex;align-items:center;gap:7px;line-height:18px}
tr.dgrp td:first-child>span:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--brass)}
tr.dgrp:hover td{background:var(--tint-2)}
.tw.frame .tfoot{position:sticky;bottom:0;z-index:3;background:var(--panel);border-top:1px solid var(--line)}
.tw.frame .tfoot .tsum{border-bottom:none}
/* the strip is 28 px lines — one at most widths, two where the totals wrap: count (and the page line), the values, the currency totals */
.tw.frame .tfoot .ts-c{padding:4px 10px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;line-height:20px}
.tw.frame .tfoot .ts-c .pgf-c b{font-size:var(--t-xs)}
.tw.frame .tfoot .ts-v{padding:4px 10px;display:inline-flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap;line-height:20px}
.tw.frame .tfoot .ts-v span{display:inline;letter-spacing:.04em}
.tw.frame .tfoot .ts-cur{padding:3px 10px;gap:4px 10px;line-height:20px;flex:1 0 auto}
.tw.frame .tfoot .ts-cur .cc{height:16px;font-size:10px;min-width:26px}
/* On a phone the footer summary stacks: credit/debit, the net, and the
   per-currency totals each take a full-width line and wrap, so no total is
   clipped at or overlaps the edge. */
@media(max-width:560px){
  .tw.frame .tfoot .tsum{flex-direction:column;align-items:stretch;gap:0}
  .tw.frame .tfoot .ts-c{width:100%;flex-wrap:wrap}
  /* the per-currency totals (e.g. "They owe us 5.8M AFN · 665k USD · …") wrap
     onto as many lines as they need; each currency stays whole */
  .tw.frame .tfoot .ts-v{width:100%;white-space:normal;display:block}
  .tw.frame .tfoot .ts-v>span{display:block}
  .tw.frame .tfoot .ts-v b{display:block;white-space:normal;min-width:0}
  .tw.frame .tfoot .ts-v b>span{white-space:nowrap;display:inline-block}
  .tw.frame .tfoot .ts-cur{width:100%;justify-content:flex-start;flex:1 1 auto;min-width:0}
}
.pg-top.btn-sm{padding:2px 6px;min-height:0;height:22px}
.pg-top .ic{width:12px;height:12px;margin:0}
.tw.frame .hwt tr.hwend td{position:sticky;bottom:0;z-index:3;background:var(--panel);border-top:1px solid var(--line);padding:6px 14px}
.tw.frame .hwend-i{flex-wrap:wrap;min-height:22px}
.tw.frame .hwend-i>span:not(.hwsum):not(.ts-pg){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tw.frame .hwend-i .hwsum{margin-inline-start:0;width:100%;flex:1 1 100%;white-space:normal}
.tw.frame .hwend-i .ts-pg{padding:0;margin-inline-start:0;flex:none}
/* the per-transfer action cell: full width on a phone, buttons inside the card,
   so the Pay out button is no longer pushed off the left edge */
.tw table.hwt td.hx{width:100%;max-width:none;overflow:visible;white-space:normal;
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.tw table.hwt td.hx .btn{margin:0}
tr.pgsent td{height:1px;padding:0;border:none}
.ts-pg{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;margin-inline-start:auto;font-size:var(--t-2xs);color:var(--muted);white-space:nowrap}
.ts-pg b{color:var(--text)}
.ts-pg .pgf-m{display:inline-flex;align-items:center;gap:4px;color:var(--faint)}
.ts-pg .pgf-m .ic{width:12px;height:12px}
.ts-pg .btn-sm{padding:2px 8px;font-size:var(--t-2xs)}
/* a frame inside a dialog keeps to the dialog */
#modalRoot .tw.frame{height:auto;max-height:calc(100vh - 300px);overflow-y:auto}
/* the shared row (m40): 45 px, two lines where the second carries the meta —
   twelve of them, the header row, a day header and the strip fit the 668 px
   a 768 px screen leaves under the header */
/* JOB 1 — the transaction row breathes: 64 px, two lines, one hairline, the
   key figure the only bold thing. Worn by every entry list (t3) and the
   hawala list (hwt). Data rows are 64 px; day headers and the opening /
   closing lines keep their own smaller height. */
.tw table.t3 td{padding-block:12px;padding-inline:16px}
.tw table.t3 tbody tr.click>td,
table.hwt tbody tr.hwr>td{height:64px;padding-top:12px;padding-bottom:12px;vertical-align:middle}
.tw table.t3 tbody tr.click .sec,
table.hwt tbody tr.hwr .sec{line-height:16px;margin-top:4px;white-space:normal;overflow:visible;text-overflow:clip;max-width:none;overflow-wrap:anywhere}
.tw table.t3 td .oklock{padding:0 6px;line-height:18px}
.tw table.t3 td.cm>.mv-in,.tw table.t3 td.cm>.mv-out{line-height:18px}
/* type: title 14.5/500, meta 12.5 muted, key money 15/600, other money 13.5 —
   nothing in the row is bolder than the key figure */
.ct-k .ct-t{font-size:14.5px;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.tw table.t3 tbody tr.click td.num,.tw table.t3 tbody tr.click td.cm{font-size:13.5px}
.tw table.t3 tbody tr.click td.strong,.tw table.t3 tbody tr.click td.strong .mono,.tw table.t3 tbody tr.click td.strong b{font-size:15px;font-weight:600}
td.strong,td.strong .mono,td.strong b{font-weight:600}
/* currency chips and codes inside a money cell sit at 11 px */
.tw table.t3 td.num .cu,.tw table.t3 td.cm .cu{font-size:11px}
.tw table.t3 td.num .cc,.tw table.t3 td.cm .cc{font-size:11px;height:16px;min-width:24px}
/* the tablet folds the meta line: the row is one line and shorter (JOB 1) —
   the second line and its detail move to the drawer the row opens. Above the
   720px card layout, below the desktop. */
/* (Round 15, C3: the tablet's fold of the second line is gone; every list keeps its two lines) */

/* ITEM 2 — the shared transaction row: one WHEN cell (date AND time), one
   KIND tag (a coloured dot on a neutral chip). Worn by every entry list. */
.cw-tx{white-space:nowrap}
.cw-1{display:block;color:var(--text);font-weight:600;line-height:16px}
.cw-2{display:block;color:var(--faint);font-size:var(--t-2xs);font-weight:500;line-height:13px}
.ct-k .ct-h{display:flex;align-items:center;gap:7px;min-width:0;line-height:17px}
.ct-k .ct-t{min-width:0;overflow:visible;text-overflow:clip}
.txk{display:inline-flex;align-items:center;gap:5px;flex:none;padding-inline:5px 7px;height:16px;border-radius:99px;
  background:var(--wash);border:1px solid var(--line-2);font-size:10px;font-weight:600;
  color:var(--muted);white-space:nowrap;letter-spacing:.01em}
.txk-d{width:6px;height:6px;border-radius:50%;flex:none;background:var(--k-other)}
.txk.k-deposit .txk-d{background:var(--k-deposit)}
.txk.k-withdraw .txk-d{background:var(--k-withdraw)}
.txk.k-exchange .txk-d{background:var(--k-exchange)}
.txk.k-hawala .txk-d{background:var(--k-hawala)}
.txk.k-transfer .txk-d{background:var(--k-transfer)}
.txk.k-expense .txk-d{background:var(--k-expense)}
.txk.k-bank .txk-d{background:var(--k-bank)}
.txk.k-profit .txk-d{background:var(--k-profit)}
.txk.k-commission .txk-d{background:var(--k-commission)}
.txk.k-partner .txk-d{background:var(--k-partner)}
/* tablet card: the tag sits with the title, the WHEN's two lines stay tight */
@media(max-width:900px){
  .tw table.t3 td.cw.cw-tx .cw-1{font-size:var(--t-xs)}
  .tw table.t3 td.cw.cw-tx .cw-2{display:inline;margin-inline-start:5px}
  .ct-k .ct-t{white-space:normal}
}

/* the transfer modal: two columns joined by a hairline, not boxes */
.tcols{display:grid;grid-template-columns:1fr 1fr;gap:16px 32px;position:relative}
.tcols:before{content:"";position:absolute;left:50%;top:2px;bottom:2px;width:1px;background:var(--line-2)}
.tsep{height:1px;background:var(--line-2);margin:18px 0}
.tbal{min-height:18px}
.tbal .cu{font-style:normal;color:var(--faint);font-size:var(--t-2xs)}
.tbal b.neg{color:var(--neg)}
/* the confirmation sentence: the last thing read before the buttons */
.tconfirm{margin-top:16px;padding-top:14px;border-top:1px solid var(--line-2)}
.tsum-say{font-size:var(--t-s);line-height:1.6}
.tsum-say b{font-weight:600}

/* a genuinely short viewport (landscape tablet): the modal pins its
   header and footer and scrolls only its body */
@media(max-height:820px){
  .ovl{padding:20px}
  .mod{display:flex;flex-direction:column;max-height:calc(100vh - 40px)}
  .mh{flex:none;padding-bottom:14px;border-bottom:1px solid var(--line-2)}
  .mb{overflow-y:auto;min-height:0}
  .mf{flex:none;background:var(--float)}
}

/* ==================================================================
   THE PRODUCT LOGO (m28) — the real mark, sized on the icon scale:
   28px in the rail, 34px on the sign-in stage and the gate, 16-ish
   inline. The SVG tile carries its own ink background and gold glyph,
   so it sits legibly on every surface without variants.
   ================================================================== */
.lmark{display:block;flex:none;width:28px;height:28px}
.lg-id .mark .lmark{width:34px;height:34px}
.rc-brand .bk span .lglyph{width:15px;height:15px;display:block;margin:auto}
/* print: the product chip goes monochrome — black glyph, no tile —
   so A5 and the 80mm roll stay crisp black-on-white */
body.print-a5 .rc-brand .bk span,body.print-80 .rc-brand .bk span,
body.print-a5 .sl-bk,body.print-80 .sl-bk{
  background:none!important;color:#000!important}

/* ---- filter language for people who never used filters (m29 ph1) ---- */
.lfc .ic.tick{margin-inline-end:-2px}
.fb-hint{font-size:var(--t-xs);color:var(--muted);margin:-4px 0 8px;line-height:1.5}
.fb-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
.fbf{display:flex;flex-direction:column;gap:5px;min-width:150px}
.fbf>span{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600}
.fbf input{border:1px solid var(--field);border-radius:8px;padding:8px 10px;background:var(--panel);font-size:var(--t-xs)}
.fbf .fbf-in{display:flex;align-items:center;border:1px solid var(--field);border-radius:8px;background:var(--panel);overflow:hidden}
.fbf .fbf-in input{border:none;flex:1;min-width:0;outline-offset:-2px}
.fbf .fbf-in em{font-style:normal;font-size:var(--t-2xs);color:var(--muted);padding:0 9px;border-inline-start:1px solid var(--line-2)}
.fbf.on>span{color:var(--brass-t)}

/* ---- the Export menu (m29 ph2): one button, two ways out ---- */
.expmenu{position:absolute;z-index:300;background:var(--float);border:1px solid var(--float-line);
  border-radius:12px;box-shadow:var(--e-2);padding:6px;min-width:200px;animation:u .14s}
.expmenu button{display:flex;align-items:center;gap:11px;width:100%;text-align:start;
  padding:9px 11px;border-radius:8px;font-size:var(--t-xs)}
.expmenu button:hover{background:var(--tint)}
.expmenu button .ic{width:16px;height:16px;color:var(--muted);flex:none}
.expmenu button b{display:block;font-weight:600}
.expmenu button small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:1px}

/* ---- the printed document (m29 ph2): A4 portrait, black on white ---- */
#printDoc{display:none}
@media print{
  body.print-doc{background:#fff}
  body.print-doc #app,body.print-doc #login,
  body.print-doc #modalRoot,body.print-doc #toasts,body.print-doc .expmenu{display:none!important}
  body.print-doc #printDoc{display:block;position:absolute;left:0;top:0;width:100%;
    font-size:12px;line-height:1.5;page:doc}
  /* Midnight prints black-on-white like everything else */
  #printDoc,#printDoc *{color:#000!important;background:transparent!important;
    box-shadow:none!important;border-color:#999!important;visibility:visible}
  #printDoc button,#printDoc .btn,#printDoc .lfbar,#printDoc .sbox,#printDoc .curseg,
  #printDoc .rowact,#printDoc .fchips,#printDoc .dpick,#printDoc .st:before{display:none!important}
  #printDoc .pd-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;
    border-bottom:2px solid #000!important;padding-bottom:12px;margin-bottom:16px}
  #printDoc .pd-biz{display:flex;align-items:center;gap:14px}
  #printDoc .pd-biz .bmark,#printDoc .pd-biz .lmark{width:52px;height:52px;border:1px solid #999;border-radius:11px;
    display:grid;place-items:center;font-weight:700;font-size:18px;object-fit:contain;flex:none;overflow:hidden}
  #printDoc .pd-biz .bmark img,#printDoc .pd-biz .lmark img{width:100%;height:100%;object-fit:contain}
  #printDoc .pd-biz b{display:block;font-size:19px;letter-spacing:-.02em}
  #printDoc .pd-biz span{display:block;font-size:10.5px;margin-top:3px;color:#333!important;letter-spacing:.01em}
  #printDoc .pd-doc{text-align:right}
  #printDoc .pd-doc .pd-lg{width:15px;height:15px;display:inline-block;margin-bottom:5px;opacity:.75}
  #printDoc .pd-doc h1{font-size:17px;margin:0 0 4px;letter-spacing:-.02em}
  #printDoc .pd-doc span{display:block;font-size:10.5px}
  #printDoc .pd-doc .pd-range{font-weight:600;font-size:11.5px;margin-bottom:4px}
  #printDoc .pd-doc .pd-meta,#printDoc .pd-doc .pd-by{color:#444!important}
  #printDoc .pd-filt{font-weight:600;margin-top:4px}
  /* right-to-left documents mirror the band, the tables and the footer */
  #printDoc[dir=rtl] .pd-doc{text-align:left}
  #printDoc[dir=rtl] th{text-align:right}
  #printDoc[dir=rtl] .pd-foot .pd-num{margin-left:0;margin-right:auto}
  #printDoc[dir=rtl] .pd-fmark{margin-right:0;margin-left:auto}
  #printDoc table{width:100%;border-collapse:collapse;font-size:11px}
  #printDoc th{text-align:left;font-size:9px;letter-spacing:.1em;text-transform:uppercase;
    border-bottom:1.5px solid #000!important;padding:6px 8px}
  #printDoc td{padding:7px 8px;border-bottom:1px solid #ccc!important;vertical-align:top}
  #printDoc th.num,#printDoc td.num{text-align:right;font-family:'IBM Plex Mono',monospace}
  #printDoc tr{break-inside:avoid}
  #printDoc .pd-tot{margin-top:18px;break-inside:avoid}
  #printDoc .pd-tot h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px}
  #printDoc .pd-t{max-width:420px}
  #printDoc .pd-body{padding-bottom:34px}
  /* data-built statement blocks (components/print/StatementDoc) */
  #printDoc .pd-block{margin-bottom:18px}
  #printDoc .pd-sum table{max-width:560px}
  #printDoc .pd-cap{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#333!important;
    margin:0 0 7px;break-after:avoid}
  #printDoc .pd-intro{font-size:11px;color:#333!important;margin:0 0 14px}
  #printDoc .pd-none{font-size:10.5px;color:#555!important;font-style:italic;margin:0}
  #printDoc tr.pd-grp td{background:#efefef!important;font-weight:600;font-size:9.5px;
    letter-spacing:.04em;text-transform:uppercase;padding:5px 8px}
  #printDoc tr.pd-grp .pd-gn{font-weight:400;text-transform:none;letter-spacing:0;color:#555!important}
  #printDoc tr.pd-ftr td{border-top:1.5px solid #333!important;border-bottom:none!important;
    font-weight:700;background:#f4f4f4!important}
  #printDoc td.pd-strong{font-weight:700}
  #printDoc td.pd-quiet{color:#555!important}
  #printDoc .pd-foot{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;gap:10px;
    border-top:1px solid #999!important;padding-top:6px;font-size:9.5px;color:#444!important}
  #printDoc .pd-foot .lglyph{width:11px;height:11px;margin-right:4px}
  #printDoc .pd-fmark{display:inline-flex;align-items:center;margin-right:auto}
  #printDoc .pd-fbiz{font-weight:600;color:#000!important}
  #printDoc .pd-foot .pd-num{margin-left:auto}
  #printDoc .pd-num:after{content:var(--pg-w,"Page ") counter(page) var(--pg-of," of ") counter(pages)}
  #printDoc .empty,#printDoc .fb-hint{display:none!important}
  /* ITEM 3 — the customer statement */
  #printDoc .cs-to{display:flex;align-items:baseline;gap:8px;margin:0 0 12px;font-size:11px}
  #printDoc .cs-to span{color:#666}
  #printDoc .cs-to b{font-size:14px}
  #printDoc .cs-to{display:block;margin:0 0 14px}
  #printDoc .cs-who{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
  #printDoc .cs-who b{font-size:15px}
  #printDoc .cs-badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;
    border:1px solid #999;border-radius:99px;padding:1px 7px}
  #printDoc .cs-badge .ic{width:11px;height:11px}
  #printDoc .cs-quiet{font-size:10.5px;color:#444!important;margin-top:3px}
  #printDoc .stype .ic{width:11px;height:11px}
  #printDoc tr.stmend td{background:#f2f2f2!important;font-weight:600}
  #printDoc tr.stm-closing td{border-top:1.5px solid #333!important}
  #printDoc tr.okdiv td{background:#ececec!important}
  #printDoc tr.okdiv.latest td{box-shadow:none}
  #printDoc .okd-now{background:transparent!important;border:1px solid #333;border-radius:99px;
    font-size:9px;padding:0 6px;margin-inline-start:6px}
  #printDoc td.okd-b .okd-v{display:inline-flex;gap:4px;margin-inline-start:7px}
  #printDoc .bal-c,#printDoc td.cm{white-space:nowrap}
  #printDoc .cs-sum{margin:0 0 16px;break-inside:avoid}
  #printDoc .cs-sh{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#444!important;margin:0 0 6px}
  #printDoc .cs-sumt{max-width:none;width:100%}
  #printDoc .cs-src{font-weight:600}
  #printDoc .cs-okd td{background:#ececec;font-weight:600;font-size:10px;letter-spacing:.02em;
    border-top:1px solid #333!important;border-bottom:1px solid #333!important}
  #printDoc .cs-t{max-width:none;width:100%}
  #printDoc .cs-t .cs-mark td{background:#f2f2f2;font-weight:600}
  #printDoc .cs-t .cs-close td{border-top:1.5px solid #333}
  #printDoc .cs-note{color:#666;font-size:9px;font-weight:400}
  #printDoc .cs-sign{display:flex;gap:44px;margin-top:38px;break-inside:avoid}
  #printDoc .cs-sig{flex:1}
  #printDoc .cs-line{display:block;border-top:1px solid #333;margin-bottom:5px;height:30px}
  #printDoc .cs-sig em{font-style:normal;font-size:10px;color:#333}
  body.pd-nosig #printDoc .cs-sign{display:none!important}
}
@page doc{size:A4 portrait;margin:14mm 12mm 18mm}

/* =====================================================================
   THE BUSINESS'S OWN ACCOUNTS (m30)
   The four system accounts wear the same clothes as every other account
   — the same head, the same balance grid, the same statement. What is
   new here is only what marks them as the house's own: the System tag,
   the card that carries their mark on the accounts list, and the small
   "In the bank" figure that stands beside cash on the Overview.
   ===================================================================== */
.systag{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:5px;
  background:var(--wash);color:var(--muted);font-size:var(--t-2xs);font-weight:600;
  letter-spacing:var(--track-caps);text-transform:uppercase}
.systag .ic{width:13px;height:13px}
.sys-blurb{margin-top:10px;max-width:62ch;font-size:var(--t-xs);color:var(--muted);line-height:1.55}
.sys-ren{margin-inline-start:8px;vertical-align:2px}
.sys-ren .ic{width:16px;height:16px}

/* four cards, four tracks — auto-FIT so a row never leaves a ghost cell */
#sysGrid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.syscard{display:flex;align-items:flex-start;gap:12px}
.syscard .sys-ic{width:34px;height:34px;border-radius:10px}
.syscard .sys-ic .ic{width:20px;height:20px}
.sysc-b{display:block;min-width:0;flex:1}
.sysc-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.sysc-h b{font-size:var(--t-s);font-weight:600;color:var(--text)}
/* the figure here shares a card with a mark and a tag, so it takes the
   section-figure step rather than the KPI step — five currencies of
   afghani do not fit at 26px */
.syscard .balc-f{display:block;margin:0;font-size:var(--t-l);letter-spacing:var(--track-3)}
.syscard .balc-f .unit{font-size:var(--t-2xs);font-weight:500;color:var(--muted);font-style:normal}
.syscard .balc-s{display:block}

/* the bank figure on the hero: a quiet door, never a second headline */
.inbank{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding-block:7px 7px;padding-inline:11px 10px;
  border:1px solid var(--ctl-line);border-radius:8px;background:var(--panel);color:var(--muted);
  font-size:var(--t-xs);transition:.13s}
.inbank:hover{background:var(--tint);color:var(--text)}
.inbank .ic{width:16px;height:16px;color:var(--ser-6)}
.inbank .ic:last-child{width:13px;height:13px;color:var(--faint)}
.inbank b{color:var(--text);font-weight:600}
.inbank b em{font-size:var(--t-2xs);font-weight:500;color:var(--muted);font-style:normal}

/* =====================================================================
   "BALANCE OKAYED" (m31)
   Brass marks the one thing in the book both sides have signed. Nothing
   else on the page borrows it, so when it appears it means exactly this.
   ===================================================================== */
.acc-ok{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:13px}
@media(max-width:900px){.acc-ok{justify-content:flex-start}}

.okchip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:7px;
  background:var(--brass-tint);color:var(--brass-t);border:1px solid var(--brass-line);
  font-size:var(--t-xs);font-weight:600;white-space:nowrap}
.okchip .ic{width:14px;height:14px;flex:none}
.okchip em{font-style:normal;font-weight:500;color:var(--muted);font-family:'IBM Plex Mono',monospace;
  font-size:var(--t-2xs)}
.okchip.sm em{display:none}
/* never agreed, or agreed too long ago to still mean much */
.okchip.none{background:var(--wash);color:var(--muted);border-color:var(--line)}
.okchip.stale{background:var(--neg-tint);color:var(--neg);border-color:var(--neg-line)}

/* a row inside an okayed balance: settled, still readable, plainly shut */
tr.lok td{background:var(--tint)}
tr.lok .ct,tr.lok .cw{color:var(--muted)}
tr.lok:hover td{background:var(--tint-2)}
.oklock{display:inline-flex;align-items:center;gap:4px;margin-inline-start:8px;padding:1px 6px;border-radius:5px;
  background:var(--brass-tint);color:var(--brass-t);font-size:var(--t-2xs);font-weight:600;
  letter-spacing:var(--track-caps);text-transform:uppercase;vertical-align:1px}
.oklock .ic{width:11px;height:11px}

/* the figures being read out together, in the dialog and the undo */
.okcheck{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.okc-r{display:flex;align-items:center;gap:12px;padding:11px 15px;border-bottom:1px solid var(--line-2)}
/* the chip keeps its own size; the currency name takes the slack */
.okc-r .cn{flex:1;min-width:0}
.okc-r .cn .cc{flex:none}
.okc-r .cn>span:last-child{flex:1;font-size:var(--t-s)}
.okc-r b{font-size:var(--t-l);font-weight:700;letter-spacing:var(--track-3)}
.okc-r>span{font-size:var(--t-2xs);color:var(--faint);width:118px;text-align:end}
.okc-t{display:flex;align-items:center;gap:12px;padding:11px 15px;background:var(--tint)}
.okc-t span{display:flex;align-items:center;gap:6px;flex:1;font-size:var(--t-xs);color:var(--muted)}
.okc-t .ic{width:14px;height:14px}
.okc-t b{font-size:var(--t-s);font-weight:600}

/* ITEM 2 — the okay per currency: the tick on each dialog line, the note
   line an unticked one opens, and "not agreed" in the warning tint on the
   divider, the okays tab and the slip */
.okc-r>span.okc-ag{flex:none;width:auto;text-align:start}
.okc-ag .chk{width:auto;height:30px;padding:0 10px 0 8px;gap:7px;font-size:var(--t-xs);white-space:nowrap}
.okc-ag .chk span{width:auto;flex:none;font-size:var(--t-xs);color:inherit;text-align:start}
.okc-r.open{background:var(--neg-tint)}
.okc-r.open b{color:var(--muted)}
.okc-n{padding:8px 15px 11px;border-bottom:1px solid var(--line-2);background:var(--neg-tint)}
.okc-n input{width:100%;height:34px;font-size:var(--t-xs)}
.okd-v .okd-tick{width:13px;height:13px;color:var(--pos)}
.okd-v.oko b{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line)}
.okd-no{font-style:normal;font-size:var(--t-2xs);font-weight:600;letter-spacing:var(--track-caps);text-transform:uppercase;
  color:var(--neg);background:var(--neg-tint);border:1px solid var(--neg-line);
  padding:1px 6px;border-radius:5px}
.rc-open{margin-top:6px;padding-top:2px;border-top:1px dashed var(--line)}
.rc-open .kv b{color:var(--muted)}
.rc-why{font-size:var(--t-2xs);color:var(--muted);margin-top:2px}

/* ITEM 5 — the one filter row: the search sits inside it, after the
   currency chips; the Clear button reads Clear */
.lfbar .sbox{margin:0;flex:0 1 150px;min-width:120px;transition:flex-basis var(--dur-2,.18s)}
.lfbar .sbox:focus-within,.lfbar .sbox.has{flex-basis:260px}
.lfbar .sbox input{height:30px}
/* the row keeps to one line on a laptop: a quiet segment folds to its icon
   (its question stays in the tooltip and for a screen reader), Clear to its × */
@media(max-width:1280px){.lfbar .fb-btn:not(.act) .fb-lab{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.lfbar .fb-btn:not(.act){padding:0 9px}.lfbar .fb-btn:not(.act) .ic{opacity:1}}
@media(max-width:1080px){.lfbar>.lfx span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.lfbar>.lfx{padding:0 9px;gap:0}}
.lfbar .hits{font-size:var(--t-2xs);color:var(--muted)}
.lfbar>.aff{margin-inline-start:auto}
.lfbar .rep-asof{height:30px}
/* ITEM 4.2 — the Reports index: six groups of cards, each card a name,
   what it answers, and the headline figure for the index's period */
.rep-groups{padding:4px 0 8px}
.rep-grp{padding:10px 20px 6px}
.rep-grp h3{display:flex;align-items:center;gap:8px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600;margin:6px 0 10px}
.rep-grp h3 .ic{width:14px;height:14px;color:var(--faint)}
.rep-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.rep-card{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 14px;align-items:start;text-align:start;
  padding:14px 16px;border:none;box-shadow:inset 0 0 0 1px var(--line);border-radius:12px;background:var(--panel);min-height:84px}
.rep-card:hover{background:var(--tint);box-shadow:inset 0 0 0 1px var(--ctl-line)}
.rep-card>b{font-weight:600;font-size:var(--t-s);color:var(--text)}
.rep-card>.sec{grid-column:1;font-size:var(--t-2xs);color:var(--muted);line-height:1.35}
.rep-card>.rep-fig{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;text-align:end;white-space:nowrap}
.rep-card .rep-fig b{font-size:var(--t-s);font-weight:700}
.rep-card .rep-fig small{font-size:var(--t-2xs);color:var(--faint)}
.rep-card>.rep-go{display:none}
/* ITEM 4.2 — the one report shape inside the modal */
.rep .rep-head{margin-bottom:10px}
.rep .rep-wrap{margin-bottom:14px}
.rep .rep-bar{border:1px solid var(--line-2);border-radius:10px}
.rep .rep-bar .sbox{margin-inline-start:auto}
.rep .rep-kpi{margin-bottom:14px}
.rep .rep-kpi .f{font-size:var(--t-l)}
/* a report dialog is never wide enough for four money columns: a per-currency
   figure needs room, so report KPIs hold at two across at every width (the
   same shape the app already shows below 1300) */
.rep .rep-kpi.f4{grid-template-columns:repeat(2,1fr)}
.rep .rep-kpi.f4>*:nth-child(3){border-inline-start:none}
.rep .rep-body{min-height:40px}
.rep .rep-tw{border:1px solid var(--line);border-radius:9px}
.rep .rep-tot:empty{display:none}
.rep-totl{display:flex;flex-wrap:wrap;gap:6px 22px;padding:12px 4px 2px;border-top:1px solid var(--line);margin-top:12px}
.rep-totl span{display:inline-flex;align-items:baseline;gap:8px;font-size:var(--t-xs)}
.rep-totl em{font-style:normal;color:var(--muted)}
.rep-totl b{font-weight:700;font-size:var(--t-s)}
.rep-asof{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:8px;border:1px solid var(--line);font-size:var(--t-xs);color:var(--muted)}
.rep-asof .ic{width:13px;height:13px}
.tw.rep-tw td.empty{padding:22px 16px}
@media(max-width:900px){.rep-card>.rep-fig{grid-row:auto;grid-column:1;align-items:flex-start;text-align:start;flex-direction:row;gap:8px;align-items:baseline}}

/* ITEM 4.1 — the Daily report: one document, eight sections */
.jrr .rephead{margin-bottom:16px}
.jrr-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:8px;font-size:var(--t-xs);color:var(--muted)}
.jrr-meta span{display:inline-flex;align-items:center;gap:6px}
.jrr-meta .ic{width:14px;height:14px;color:var(--faint)}
.jrr .rep-sec{margin-bottom:16px}
.jrr .rep-sec .ph2 .aff{display:inline-flex;align-items:center;gap:6px}
.jrr .rep-csv,.jrr .rep-pdf{margin-inline-start:6px}
.jrr-g td{background:var(--tint-2)}
.jrr-g .jrr-n{font-style:normal;text-transform:none;letter-spacing:0;color:var(--faint);font-weight:500;margin-inline-start:6px}
.jrr-g td.jrr-sub{text-transform:none;letter-spacing:0;font-size:var(--t-xs);color:var(--text);font-weight:600;white-space:nowrap}
.jrr-g td.jrr-sub .mono{font-weight:600}
.jrr-drawer td,.jrr-emp td,.jrr-open td{padding:12px 16px;border-bottom:1px solid var(--line-2)}
.jrr-drawer tr.totrow td,.jrr-emp tr.totrow td{background:var(--tint);border-top:1px solid var(--line);font-weight:600}
.jrr-emp tr.click td:first-child{display:flex;align-items:center;gap:8px}
.jrr-emp td .ic{width:14px;height:14px;color:var(--faint)}
/* on paper each section starts a page */
#printDoc .rep-sec{break-before:page;margin-top:0}
#printDoc .rep-sec:first-of-type,#printDoc .jrr-head+.rep-sec{break-before:auto}
#printDoc .rep-csv,#printDoc .rep-pdf,#printDoc .jrr .curseg{display:none!important}

/* the confirmation slip */
.okcheck+.frow input:disabled,.field input:disabled{background:var(--tint-2);color:var(--muted)}
.rc-ok .rc-b{padding:18px 20px}
.rc-ok .rc-two{border-bottom:1px solid var(--line)}

/* =====================================================================
   THE HAWALA PAGE (m32)
   Three work modes behind one segmented control. The frame holds still —
   mode bar, needs-action strip and panel header — and only the list
   scrolls, inside .tw.frame, exactly as the day book does.
   ===================================================================== */
.hwbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
/* the mode control is the one place a segment carries an icon and a count */
.curseg.lg{padding:4px;border-radius:13px}
.curseg.lg button{padding:8px 14px;font-size:var(--t-s)}
.curseg.lg button .ic{width:16px;height:16px}

/* --- needs action: four counts that lead to an action, each a
   free-standing card in the shared KPI language (.stat bones) and each
   a filter on the list. Zero greys the card; it never disappears, so
   the strip's layout is stable (item 1). --- */
.hwneed{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.hwn-i{min-width:0;display:flex;align-items:center;gap:12px;padding:13px 15px;
  background:var(--panel);border:1px solid var(--ctl-line);border-radius:16px;text-align:start;
  transition:border-color .12s,box-shadow .12s,background .12s}
.hwn-i:hover{box-shadow:var(--e-1)}
.hwn-i.on{background:var(--tint-2);border-color:var(--brass-t);box-shadow:inset 3px 0 0 var(--brass-t)}
.hwn-i.on:hover{box-shadow:inset 3px 0 0 var(--brass-t),var(--e-1)}
.hwn-m{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;flex:none}
.hwn-m .ic{width:17px;height:17px}
.hwn-m.pos{background:var(--pos-bg);color:var(--pos)}
.hwn-m.brass{background:var(--brass-tint);color:var(--brass-t)}
.hwn-m.warn{background:var(--brass-tint);color:var(--brass-t)}
.hwn-m.neg{background:var(--neg-bg);color:var(--neg)}
.hwn-b{min-width:0;display:flex;flex-direction:column;gap:1px}
.hwn-b b{font-size:var(--t-l);font-weight:700;letter-spacing:var(--track-3);line-height:1.1}
.hwn-b>span{font-size:var(--t-xs);font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hwn-b em{font-style:normal;font-size:var(--t-2xs);color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hwn-i.nil{background:var(--wash)}
.hwn-i.nil .hwn-b b{color:var(--muted)}
.hwn-i.nil .hwn-m{background:var(--line-2);color:var(--muted)}
@media(max-width:1100px){.hwneed{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.hwneed{grid-template-columns:1fr 1fr}}

/* the line that says a needs-action filter is on, and how to drop it */
.hwfilt{display:flex;align-items:center;gap:9px;padding:9px 18px;background:var(--tint);
  border-bottom:1px solid var(--line-2);font-size:var(--t-xs);color:var(--muted)}
.hwfilt .ic{width:15px;height:15px;flex:none}
.hwfilt .lfx{margin-inline-start:auto}

/* --- the row, one grammar in both lists --- */
.hwwho{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.hwwho i{display:inline-grid;place-items:center;color:var(--faint)}
.hwwho i .ic{width:14px;height:14px}

/* =====================================================================
   THE TWO LISTS (m39 job 2): one anatomy, columns to the pixel, rows a
   counter can read across the desk (52 px, 14 px names, 12.5 px meta),
   day headers that stick inside the frame, standing chips in one
   colour language, actions on hover with the primary one always there.
   ===================================================================== */
.hwt{width:100%;table-layout:fixed;border-collapse:collapse;min-width:720px}
.hwt col.c-st{width:132px}.hwt col.c-code{width:136px}.hwt col.c-amt{width:190px}.hwt col.c-when{width:100px}.hwt col.c-act{width:180px}
/* the action words reveal on the wide breakpoint (.actw, min-width:1441),
   so the column widens with them and never clips a revealed action (item 1) */
@media(min-width:1441px){.hwt col.c-act{width:264px}}
.hwt td{padding:4px 12px;height:46px;border-bottom:1px solid var(--line-2);vertical-align:middle;font-size:var(--t-s);line-height:18px}
.hwt tr.hwr:last-child td{border-bottom:1px solid var(--line-2)}
.hwt td.hc{white-space:nowrap}
.hwt td.hc b{font-size:var(--t-s);font-weight:700;letter-spacing:var(--track-2)}
.hwt td.ht{min-width:0}
.hwt td.ht .hwwho{font-weight:500}
.hwt td .sec{font-size:var(--t-xs);line-height:16px;margin-top:1px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;color:var(--muted)}
.hwt td.ha{text-align:right}
.hwt td.ha .hwm{justify-content:flex-end}
.hwt td.ha .hwm b{font-size:15px;font-weight:600;letter-spacing:var(--track-3)}
.hwt td.hw{font-size:var(--t-xs);color:var(--muted);line-height:1.25}
.hww-1{display:block;color:var(--text);font-weight:600;font-size:var(--t-s);white-space:nowrap}
.hww-2{display:block;color:var(--faint);font-size:var(--t-2xs);white-space:nowrap}
.hwt td.ha .sec .hwm{gap:3px}
.hwt td.ha .sec .hwm b{font-size:var(--t-xs);font-weight:500;color:var(--muted)}
.hwt td.ha .sec .hwm .cc{height:14px;font-size:9.5px;min-width:24px;padding:0 4px}
.hwt td.hx{text-align:end;white-space:nowrap;padding-inline-end:14px}
.hwt td.hx .btn{margin-inline-start:4px;vertical-align:middle}
.hwt td.hx .btn-sm{padding:4px 9px}
.hwt td.hx .btn.ico{padding:4px 6px}
/* the rest of the actions show when the pointer or the keyboard is on the row */
.hwt .hx-more{display:inline-flex;opacity:0;transition:opacity .12s}
.hwt td.hx{overflow:hidden;max-width:100%}   /* the hidden actions never widen the page (m43 sweep) */
.hwt tr.hwr:hover .hx-more,.hwt tr.hwr:focus-within .hx-more,.hwt tr.hwr.sel .hx-more{opacity:1}
@media(hover:none){.hwt .hx-more{opacity:1}}
.hwt tr.hwr{outline:none}
.hwt tr.hwr.sel td{background:var(--brass-tint);box-shadow:inset 3px 0 0 var(--brass)}
.hwt tr.hwr:focus-visible td{box-shadow:inset 3px 0 0 var(--text)}
/* the day header sticks under the frame's top edge while its rows scroll */
.hwt tr.hwday td{position:sticky;top:0;z-index:2;height:auto;padding:2px 12px;background:var(--tint-2);
  border-bottom:1px solid var(--line);font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;
  color:var(--muted);font-weight:600;line-height:20px}
.hwt tr.hwday td span{display:inline-flex;align-items:center;gap:7px}
.hwt tr.hwday td span:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--brass)}
/* the end of the list says so, and adds it up */
.hwt tr.hwend td{height:auto;padding:12px 14px;color:var(--muted);font-size:var(--t-xs);border-bottom:none}
.hwend-i{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hwend-i .ic{width:14px;height:14px;color:var(--pos);flex:none}
.hwend-i .hwsum{margin-inline-start:auto}
.hwt td.empty{height:auto}
/* one colour language for the standings: pos / neg / warn tokens only */
.stc{display:inline-flex;align-items:center;gap:6px;height:24px;padding-block:0 0;padding-inline:8px 9px;border-radius:99px;
  font-size:var(--t-2xs);font-weight:600;white-space:nowrap;letter-spacing:.01em}
.stc:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.stc.pos{background:var(--pos-bg);color:var(--pos)}
.stc.neg{background:var(--neg-bg);color:var(--neg)}
.stc.warn{background:var(--brass-tint);color:var(--brass-t)}
/* JOB 2 — Requests waiting: a distinct warm panel above the pay-out list */
.hwreq{background:var(--brass-tint);border:1px solid var(--brass-line);margin-bottom:0}
.hwreq .hwq-l{display:none}
.hwreq.open .hwq-l{display:block;border-top:1px solid var(--brass-line);overflow-x:auto}
.hwreq .hwq-l .hwt{min-width:640px;background:none}
.hwreq .hwt-req td{border-bottom:1px solid var(--brass-line)}
.hwreq .hwt-req tr.hwr:last-child td{border-bottom:none}
.hwreq .hwt-req tr.hwr:hover{background:var(--brass-wash)}
.hwreq .hwt-req td.hq-who{min-width:0}
.hwreq .hwt-req td.hq-amt{text-align:end;white-space:nowrap;font-size:15px;font-weight:600}
.hwreq .hwt-req td.hq-amt .cu{font-size:11px;color:var(--faint);font-style:normal}
.hwreq .hwt-req td.hq-amt .sec{font-weight:400}
.hwreq .hwt-req td.hq-when{white-space:nowrap;font-size:var(--t-xs);color:var(--muted)}
.hwreq .hwt-req td.hq-amt .hwm b{font-size:15px;font-weight:600}
.hwreq .hwt-req td.hq-amt .sec .mono{font-weight:500}
.hwreq .hwt-req td.hq-act{text-align:end;white-space:nowrap;padding-inline-end:14px}
.hwreq .hwt-req td.hq-act .btn{margin-inline-start:6px}
/* the secondary icon buttons sit on the warm panel, not as white boxes —
   the control-line keeps the border legible against the tint (contrast ≥ 3) */
.hwreq .hwt-req td.hq-act .btn-q{background:transparent;border-color:var(--ctl-line)}
.hwreq .hwt-req td.hq-act .btn-q:hover{background:var(--brass-wash)}
.hwcard{display:flex;align-items:center;gap:11px;min-width:0}
.hwcard .net-logo{width:36px;height:36px}
.hwcard-t{min-width:0}
.hwcard-t b{display:flex;align-items:center;gap:5px;font-weight:600;font-size:14.5px}
.hwcard-t b .ic{width:13px;height:13px;color:var(--pos)}
.hwcard-t .sec{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:var(--t-xs)}
.hwcard-t .sec .ic{width:12px;height:12px}
/* the divider that names the rule between the two sections */
.hwdiv{display:flex;align-items:center;justify-content:center;padding:10px 0 2px;margin:0}
.hwdiv span{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:var(--t-xs)}
.hwdiv span .ic{width:14px;height:14px;color:var(--faint)}
@media(max-width:1023px){.hwreq .hwq-l .hwt{min-width:560px}}
.hwlist .ph2 .curseg{padding:2px}
.hwlist .ph2 .curseg button{padding:4px 9px;font-size:var(--t-xs)}
/* ---- the drawer: the record beside the list ---- */
.hwdr{position:fixed;top:0;inset-inline-end:0;bottom:0;width:460px;max-width:100vw;z-index:60;display:flex;flex-direction:column;
  background:var(--float);border-inline-start:1px solid var(--float-line);box-shadow:var(--e-2);
  transform:translateX(102%);visibility:hidden;transition:transform .16s ease-out,visibility 0s .16s}
.hwdr.open{transform:none;visibility:visible;transition:transform .16s ease-out}
.hwdr-h{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);flex:none}
.hwdr-h>b{font-size:var(--t-m);letter-spacing:var(--track-2);white-space:nowrap}
.hwdr-pos{font-size:var(--t-2xs);color:var(--faint);white-space:nowrap}
.hwdr-h .btn.ico{padding:4px 6px}
.hwdr-b{flex:1;min-height:0;overflow-y:auto;padding:4px 18px 18px}
.hwdr-b .fsec{margin:16px 0 8px}
.hwdr-b .dhead{margin-bottom:10px}
.hwdr-b .kv{padding:7px 0}
.hwdr-slip{display:flex;justify-content:center}
.hwdr-slip .slip{max-width:100%}
.hwdr-f{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid var(--line);flex:none;background:var(--float)}
/* the timeline */
.hwtl{list-style:none;margin:0;padding-block:0 0;padding-inline:4px 0;border-inline-start:2px solid var(--line-2)}
.hwtl li{position:relative;display:flex;gap:12px;padding-block:0 12px;padding-inline:16px 0;font-size:var(--t-xs)}
.hwtl li:last-child{padding-bottom:2px}
.hwtl li i{position:absolute;inset-inline-start:-7px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--pos);border:2px solid var(--float)}
.hwtl li.todo i{background:var(--float);border:2px solid var(--faint)}
.hwtl li.bad i{background:var(--neg)}
.hwtl li b{display:block;font-weight:600;color:var(--text)}
.hwtl li.todo b{color:var(--muted)}
.hwtl li span{display:block;color:var(--muted);margin-top:1px;line-height:1.45}
/* a tablet (744 / 834): the same anatomy on narrower fixed columns, so
   the names keep their room; the hover-only actions live in the drawer
   there (the primary one stays on the row) */
@media(max-width:1023px){
  .hwt{min-width:640px}
  .hwt col.c-st{width:108px}.hwt col.c-code{width:128px}.hwt col.c-amt{width:156px}.hwt col.c-when{width:76px}.hwt col.c-act{width:112px}
  .hwt td{padding:7px 8px}
  .hwt td.hx{padding-inline-end:10px}
  .hwt .hx-more{display:none}
}
/* a tablet: the drawer becomes a bottom sheet */
@media(max-width:900px){
  .hwdr{top:auto;inset-inline-start:0;inset-inline-end:0;width:auto;max-width:none;height:72vh;border-inline-start:none;border-top:1px solid var(--float-line);
    border-radius:16px 16px 0 0;transform:translateY(102%)}
  .hwdr.open{transform:none}
}

/* =====================================================================
   THE QUEUE GETS ITS HEIGHT BACK (m38 job 1)
   Above the list, every band is one line: the needs-action strip reads
   count + label (the amount moves into the tooltip, and comes back on a
   wide desk), the panel header carries only the search and the two
   buttons, the requests are a foldable section INSIDE the panel, and the
   queue's own title, its standing segment, its date filter and its
   totals share ONE row. The rows themselves are dense: two lines,
   nothing wraps, Slip and Cancel are icons that say their word.
   ===================================================================== */
.hwbar{margin-bottom:10px}
.hwneed{margin-bottom:10px}
.hwn-i{padding:7px 14px;gap:9px}
.hwn-m{width:24px;height:24px;border-radius:7px}
.hwn-m .ic{width:14px;height:14px}
.hwn-b{flex-direction:row;align-items:baseline;gap:7px;flex-wrap:wrap}
.hwn-b b{font-size:var(--t-m)}
.hwn-b em{display:none}
@media(min-width:1441px){.hwn-b em{display:inline}}

.hwlist .ph2{min-height:44px;padding:6px 20px}
/* the requests section: a header that folds it, the rows beneath */
.hwreq-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;min-height:40px}
.hwreq-t{display:inline-flex;align-items:center;gap:8px;padding:4px 6px;border-radius:8px;
  background:none;color:var(--text);font-size:var(--t-s);font-weight:600;transition:background .12s;cursor:pointer;border:none}
.hwreq-t:hover{background:var(--brass-wash)}
.hwreq-t:disabled{color:var(--muted);cursor:default}
.hwreq-t:disabled:hover{background:none}
.hwreq-in{display:inline-grid;place-items:center}
.hwreq-in .ic{width:16px;height:16px;color:var(--brass-t)}
.hwreq-n{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;
  border-radius:99px;background:var(--brass-wash);color:var(--brass-t);font-size:var(--t-2xs);font-weight:700}
.hwreq-ch{display:inline-grid;place-items:center;transition:transform .14s}
.hwreq-ch .ic{width:14px;height:14px;color:var(--faint)}
.hwreq.open .hwreq-ch{transform:rotate(180deg)}
.hwreq .hwq-l{display:none}
.hwreq.open .hwq-l{display:flex;border-top:1px solid var(--line-2)}

/* the queue's own row: title, standing, days, totals */

.hwsum{margin-inline-start:auto;font-size:var(--t-xs);color:var(--muted);white-space:nowrap}
.hwsum b{color:var(--text);font-weight:600}
.hwsum b.pos{color:var(--pos)}
.hwsum .dsep{margin:0 6px}
@media(max-width:1100px){.hwsum{margin-inline-start:0;width:100%}}
/* the dense row: two lines, nothing wraps, the names get the width */
.hwlist th{padding:9px 14px}
.hwlist td{padding:4px 14px}
.hwlist td.ct{width:40%;max-width:0;min-width:200px}
/* the standing keeps a share of the width and its flags wrap inside it,
   so a long flag never pushes the actions off the edge */
.hwlist td.cx{width:18%;max-width:0;min-width:120px}

.hwlist td.rowact{width:1%}
.hwlist td.ct .sec{margin-top:0;line-height:1.3;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.hwlist .hwwho{display:flex;flex-wrap:wrap;gap:2px 6px;min-width:0;overflow:visible;white-space:normal}
.hwlist .hwwho .hwp{min-width:0;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.hwlist .hwwho .hwp .acc-link{max-width:100%;overflow:visible;text-overflow:clip;white-space:normal}
.hwlist .hwwho i{flex:none}
.hwlist td.cm .sec{margin-top:0;line-height:1.3;white-space:normal}

.hwlist .rowact .btn{margin-inline-start:4px}
.hwlist .rowact .btn-sm{padding:4px 9px}
.hwlist .rowact .btn.ico{padding:4px 6px}
.hwlist .rowact .btn.ico .actw{margin-inline-start:2px}
/* ---- an amount with its currency's colour (m38 job 3): the figure, then
   the shared chip; pos / neg tone the figure, never the chip ---- */
.hwm{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;vertical-align:baseline}
.hwm b{font-weight:600}
.hwm.pos b{color:var(--pos)}
.hwm.neg b{color:var(--neg)}
.hwm .cn{gap:0}
.hwm .cc{height:18px;font-size:10.5px;width:auto;min-width:30px;padding:0 5px}
.hwlist td.cm .hwm{justify-content:flex-end}
.hwlist td.cm .hwm b{font-weight:500}
.hwlist td.strong .hwm b{font-weight:700}
.kv>b .hwm{margin-inline-start:0}
.hws-sum .kv>b{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:2px}
/* the pass-on sheet's receiver: one line each, at the end of the row */
.ps-rcv{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:end;min-width:0;overflow-wrap:anywhere}
/* "Pass it on" with no partner to take it: plainly not pressable */
#psGo:disabled{opacity:.42;cursor:not-allowed;filter:none}
.hwsum .hwm{gap:4px}
.hwsum .hwm .cc{height:16px;font-size:10px;min-width:26px}
.hwfee-h #hFeeLine .hwm{gap:4px}
.hwfee-h #hFeeLine .cc{height:16px;font-size:10px;min-width:26px}
.hws-sl-r b .hwm b{font-size:inherit}
/* ---- the edit dialog: the shared anatomy, two columns, the sentence ---- */
.hwe .frow{gap:10px 18px;margin-bottom:10px}
.hwe .frow.three{grid-template-columns:1fr 1fr 1fr;gap:10px 14px}
.hwe .xeq .cc{height:16px;font-size:10px;min-width:26px;margin-inline-start:5px}
.xeq .cn{gap:0}
.hwe .field{margin-bottom:0}
.hwe>.field{margin-bottom:10px}
.hwe .fsec{margin:8px 0 6px}
.hwe .tconfirm{margin-top:10px;padding-top:10px}
.hwe .tsum-say{font-size:var(--t-xs)}
.hwe .tsum-say .hwm{gap:4px;margin:0 1px}
.hwe .tsum-say .cc{height:16px;font-size:10px;min-width:26px}
.hwe textarea{min-height:var(--ctl);padding:12px 13px 0;resize:vertical}
/* this dialog fits an 800 px screen with nothing scrolling inside: the
   body's padding is the send workspace's, not the modal's roomier one */
.mb:has(.hwe){padding:14px 20px 16px}

/* --- the release queue, lifted above the list for whoever can act --- */
.hwq-l{display:flex;flex-direction:column}

/* --- SEND: the workspace. Fields left, what it does beside them. --- */
.hws{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:0}
.hws-form{padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.hwg{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.hwg.one{grid-template-columns:1fr}
.hwg.three{grid-template-columns:1fr 1fr 1fr}
/* On a phone the hawala Send form stacks to a single column; otherwise its
   two/three-column grid runs past the viewport and the right-hand fields
   (the sender's name, the paying sarafi, the rate) are clipped off-screen. */
@media(max-width:560px){.hwg,.hwg.three{grid-template-columns:1fr}}
.hws-side{border-inline-start:1px solid var(--line);background:var(--tint);
  padding:18px;display:flex;flex-direction:column;gap:14px}
.hws-sum .kv{padding:7px 0}
.hws-sum .xsum{margin-bottom:10px}
/* the slip as it will print, so nobody saves blind */
.hws-slip{border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}
.hws-sl-h{display:flex;align-items:center;gap:8px;padding:10px 13px;border-bottom:1px solid var(--line-2)}
.hws-sl-h span{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted)}
.hws-sl-h b{margin-inline-start:auto;font-size:var(--t-2xs);color:var(--muted)}
.hws-lg{width:18px;height:18px;border-radius:5px}
.hws-sl-b{padding:4px 13px 10px}
.hws-sl-r{display:flex;align-items:baseline;gap:10px;padding:5px 0;font-size:var(--t-xs)}
.hws-sl-r>span{width:56px;flex:none;color:var(--faint);font-size:var(--t-2xs)}
.hws-sl-r>b{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hws-sl-r>b em{font-style:normal;font-weight:400;color:var(--faint)}
/* the money inside the Collects line keeps its own shape (amount + chip), not the label's */
.hws-sl-r .hwm{display:inline-flex;align-items:baseline;gap:5px;width:auto;color:inherit;font-size:inherit}
.hws-sl-r .hwm .cn{width:auto}
.hws-sl-r.big{border-top:1px solid var(--line-2);margin-top:4px;padding-top:9px}
.hws-sl-r.big>b{font-size:var(--t-m);letter-spacing:var(--track-3)}
.hws-sl-f{display:flex;align-items:center;gap:7px;padding:9px 13px;border-top:1px solid var(--line-2);
  background:var(--tint-2);font-size:var(--t-2xs);color:var(--muted)}
.hws-sl-f .ic{width:13px;height:13px;flex:none}
.hws-act{display:flex;gap:9px;margin-top:auto}
.hws-act .btn{flex:1;justify-content:center}

/* a tablet stacks the workspace, and the summary becomes a band that
   still fits 744x900 without the page ever scrolling */
@media(max-width:1023px){
  .hws{grid-template-columns:1fr}
  .hws-form{padding-bottom:4px}
  .hws-side{border-inline-start:none;border-top:1px solid var(--line);
    display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:14px 18px}
  .hws-sum{grid-column:1}
  .hws-sum .kv{padding:5px 0}
  .hws-slip{grid-column:2;grid-row:1}
  .hws-act{grid-column:1/-1;margin-top:0}
  .hws-act .btn{flex:0 1 auto}
}

/* --- the page that owns the viewport (m32) --- */
/* A list page does not grow a document: the chrome holds still and the
   list scrolls inside its frame. Scoped to the pages that ask for it, so
   every other page keeps the ordinary document scroll. */

/* --- the commission, folded behind its own terms --- */
.hwfee{border:1px solid var(--ctl-line);border-radius:10px;background:var(--panel)}
.hwfee-h{display:flex;align-items:center;gap:9px;width:100%;padding:12px 14px;text-align:start;
  font-size:var(--t-xs);color:var(--muted);transition:background .12s;border-radius:9px}
.hwfee-h:hover{background:var(--tint)}
.hwfee-h>.ic{width:15px;height:15px;flex:none}
.hwfee-h span{font-weight:600;color:var(--text);flex:none}
.hwfee-h b{flex:1;min-width:0;font-weight:500;font-family:'IBM Plex Mono',monospace;
  font-size:var(--t-2xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hwfee-ch{display:grid;place-items:center;flex:none;transition:transform .14s}
.hwfee-ch .ic{width:15px;height:15px}
.hwfee.open .hwfee-ch{transform:rotate(180deg)}
.hwfee-b{display:none}
.hwfee.open .hwfee-b{display:flex;flex-direction:column;gap:14px;padding:2px 14px 14px}

/* the rail says what the form cannot; the form already shows in and out */
.hws-sum .kv{padding:4px 0}
.hws-sl-h{padding:9px 12px}
.hws-sl-b{padding:3px 12px 8px}
.hws-sl-r{padding:4px 0}
.hws-sl-f{padding:8px 12px}
/* the number this transfer will carry, said once */
.hws-no{display:none;align-items:center;gap:7px;font-size:var(--t-2xs);color:var(--muted)}
.hws-no .ic{width:13px;height:13px;flex:none}
@media(max-width:1023px){
  /* A tablet has the width but not the height. The hints go (the
     overdraw warning is .xhint and stays), the slip card gives way to
     one line of type, and the rail becomes a band: what the recipient
     collects on the left, the figures reading across beside it, the
     buttons under both. */
  .hws-form>.hwg .fhint{display:none}
  .hws-form>.hwg .fhint.phone-in-line{display:flex}
  .hws-form{padding:13px 16px;gap:11px}
  .hws-side{display:grid;grid-template-columns:214px minmax(0,1fr);
    align-items:start;padding:13px 16px;gap:10px 20px}
  .hws-out{grid-column:1;grid-row:1/span 2}
  .hws-sum{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;gap:2px 20px;min-width:0}
  .hws-sum .kv{width:auto;padding:0;border:none;gap:8px;white-space:nowrap}
  .hws-sum .kv:nth-child(n+5){display:none}
  .hws-no{display:flex;grid-column:2;grid-row:2}
  .hws-slip{display:none}
  .hws-act{grid-column:1/-1;margin-top:0}
}
@media(min-width:1024px){
  /* on a desk the rail has room for the slip as it will print */
  .hws-out{padding-bottom:13px;border-bottom:1px solid var(--line)}
}

/* the rail carries long labels beside long figures — give it the room.
   Guarded by the same breakpoint the stacked layout uses, or it would
   win on source order and put a 340px rail on a 744px tablet. */
@media(min-width:1024px){.hws{grid-template-columns:minmax(0,1fr) 340px}}
.hws-sum .kv{gap:12px}
.hws-sum .kv>span{font-size:var(--t-xs)}
.hws-act .btn{white-space:nowrap}
.hws-act .btn:first-child{flex:1.6}
@media(max-width:560px){
  /* The send form's side rail stacks on a phone: Recipient collects, then every
     summary line full width (sender hands over, travels, we charge, we earn,
     reference, slip note) - none clipped off the right. The tablet band hides
     the extra lines; a phone shows them all. */
  .hws-side{grid-template-columns:1fr;gap:4px}
  .hws-out{grid-column:1;grid-row:auto}
  .hws-sum{grid-column:1;grid-row:auto;display:flex;flex-direction:column;gap:0;min-width:0}
  .hws-sum .kv{width:100%;padding:7px 0;white-space:normal;justify-content:space-between;gap:12px}
  .hws-sum .kv:nth-child(n+5){display:flex}
  .hws-no{grid-column:1;grid-row:auto}
  /* the commission summary wraps instead of clipping to an ellipsis */
  .hwfee-h b{white-space:normal;overflow:visible;text-overflow:clip}
  /* Create transfer stays full width */
  .hws-act{flex-wrap:wrap}
  .hws-act .btn{flex:1 1 100%;justify-content:center}
}

@media(max-width:560px){
  /* Account holdings: the label, then each currency as one unit (chip + full
     value together), wrapping only between currencies, never inside a number
     (the generic .tw td>.cn rule used overflow-wrap:anywhere, which split
     "1,008,700" across two lines). */
  #accTable tbody td[data-l="Holdings"]{display:block;text-align:start!important}
  #accTable tbody td[data-l="Holdings"]::before{display:block;margin-bottom:5px}
  #accTable tbody td[data-l="Holdings"]>.cn{display:inline-flex;flex:none;flex-wrap:nowrap;white-space:nowrap;margin:0 14px 5px 0}
  #accTable tbody td[data-l="Holdings"]>.cn .mono{overflow-wrap:normal;white-space:nowrap}
}
/* the quiet mark that says a field opened on the shop's usual choice (m33) */
.dfl{display:inline-flex;align-items:center;gap:3px;margin-inline-start:7px;padding:1px 6px;border-radius:5px;
  background:var(--wash);color:var(--muted);font-size:var(--t-2xs);font-weight:600;
  letter-spacing:var(--track-caps);text-transform:uppercase;vertical-align:1px}
.dfl .ic{width:11px;height:11px}
.dfl.off{display:none}

/* =====================================================================
   ONE SLIP, THREE TARGETS (m33 job 3)
   Screen (the phone screenshot), A5, and the 80mm thermal roll — one
   template, three widths. Everything sits on a 4px grid and every size
   comes from the type scale.

   A slip is PAPER in both themes: it leaves the shop as ink or as a
   screenshot, so it carries its own light palette instead of the app's.
   ===================================================================== */
.slip{
  color-scheme:light;
  --panel:#FFFFFF; --text:#101321; --muted:#4A5160; --faint:#6B7380;
  --line:#D6D9E0; --line-2:#EBEDF2; --tint:#F7F8FA; --tint-2:#FAFBFC;
  --ink:#101321; --pos:#0F766E; --neg:#BE123C;
  width:344px;max-width:100%;margin:0 auto;
  background:var(--panel);color:var(--text);
  border:1px solid var(--line);border-radius:10px;overflow:hidden}
/* the shop, small — it is not news to anyone standing at the counter */
.sl-top{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.sl-top .mark{width:24px;height:24px;flex:none}
.sl-top .mark img,.sl-top .mark b{font-size:var(--t-2xs)}
.sl-top b{display:block;font-size:var(--t-xs);font-weight:700;letter-spacing:var(--track-3);line-height:1.2}
.sl-top span{display:block;font-size:var(--t-2xs);color:var(--muted);line-height:1.35}
/* THE CODE: the largest thing on the paper, because it is what gets quoted */
.sl-code{padding:8px 12px 12px;border-bottom:1px solid var(--line);background:var(--tint-2)}
.sl-code span{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--faint)}
.sl-code b{display:block;margin-top:4px;font-size:var(--t-xl);font-weight:700;
  letter-spacing:var(--track-2);line-height:1}
/* from -> to */
.sl-who{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.sl-p{flex:1;min-width:0}
.sl-p span{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--faint)}
.sl-p b{display:block;margin-top:2px;font-size:var(--t-s);font-weight:600;line-height:1.25}
.sl-p em{display:block;font-style:normal;font-size:var(--t-2xs);color:var(--muted);
  font-family:'IBM Plex Mono',monospace;margin-top:2px}
.sl-ar{display:grid;place-items:center;flex:none;margin-top:12px;color:var(--faint)}
.sl-ar .ic{width:14px;height:14px}
/* the amount, large */
.sl-amt{padding:8px 12px 12px;border-bottom:1px solid var(--line)}
.sl-amt span{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--faint)}
.sl-amt b{display:block;margin-top:4px;font-size:var(--t-l);font-weight:700;
  letter-spacing:var(--track-3);line-height:1.05}
.sl-amt em{display:block;font-style:normal;font-size:var(--t-2xs);color:var(--muted);margin-top:4px}
/* the particulars, one line each */
.sl-rows{padding:4px 12px;border-bottom:1px solid var(--line)}
.sl-r{display:flex;align-items:baseline;gap:12px;padding:4px 0;font-size:var(--t-2xs);line-height:1.35}
.sl-r+.sl-r{border-top:1px solid var(--line-2)}
.sl-r span{flex:none;width:108px;color:var(--faint);letter-spacing:var(--track-caps);
  text-transform:uppercase;line-height:1.3}
.sl-r b{flex:1;min-width:0;font-size:var(--t-xs);font-weight:600}
/* WHAT MOVED (Round 6): the label on its own line, then one line per leg in
   two columns, the name and the amount. The amount never wraps on any of
   the three papers; a name too long for its line is cut short. */
.sl-r.sl-mv{display:block}
.sl-r.sl-mv>span{display:block;width:auto}
.sl-leg{display:flex;align-items:baseline;gap:12px;padding-top:2px}
.sl-leg b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sl-leg em{flex:none;font-style:normal;font-size:var(--t-xs);font-weight:600;white-space:nowrap;
  text-align:end;font-variant-numeric:tabular-nums}
/* the code again, for a camera */
.sl-qr{display:flex;align-items:flex-start;gap:12px;padding:12px}
.sl-qr .qr{width:120px;height:120px;flex:none;border:1px solid var(--line)}
.sl-qt{min-width:0;flex:1}
.sl-qt b{display:block;font-size:var(--t-xs);font-weight:700}
.sl-qt span{display:block;font-size:var(--t-2xs);color:var(--muted);line-height:1.4;margin-top:4px}
.sl-qt em{display:block;font-style:normal;font-size:var(--t-xs);font-weight:600;margin-top:8px}
/* a courtesy detail: shown where there is paper, dropped on the roll */
.sl-x{display:block;font-style:normal;font-weight:400;color:var(--muted);margin-top:1px}
.sl-note{padding:8px 12px;border-top:1px solid var(--line);font-size:var(--t-2xs);
  color:var(--muted);text-align:center;line-height:1.4}
/* two signature lines, on A5 only */
.sl-sig{display:none;grid-template-columns:1fr 1fr;gap:24px;padding:24px 12px 8px;
  border-top:1px solid var(--line)}
.sl-sig div{border-top:1px solid var(--line);padding-top:4px;font-size:var(--t-2xs);
  color:var(--faint);text-align:center}
/* the product mark, small */
.sl-foot{display:flex;align-items:center;gap:8px;padding:6px 12px;white-space:nowrap;border-top:1px solid var(--line);
  background:var(--tint);font-size:var(--t-2xs);color:var(--muted)}
.sl-lic{margin-inline-start:auto;white-space:nowrap}
.sl-bk{display:grid;place-items:center;width:16px;height:16px;border-radius:5px;flex:none;
  background:var(--ink);color:var(--brass-2)}
.sl-bk .lglyph{width:12px;height:12px;display:block;margin:auto}

.sl-fs{display:none}
/* =====================================================================
   RIGHT-TO-LEFT PAPER (m34 job 4). Dari and Pashto receipts set
   dir="rtl" on the slip root: every flex row mirrors by itself, the
   arrow turns round, and the caps voice loses its tracking (letter-
   spacing breaks Arabic-script joining). Amounts, codes and phone
   numbers are isolated left-to-right runs so a leading "+" or a
   trailing currency never jumps to the wrong side; digits stay Western.
   Inter carries no Arabic glyphs, so the root names system faces that
   do, and .mono keeps Plex Mono for the figures. */
.slip[dir="rtl"]{font-family:'Vazirmatn','Noto Naskh Arabic','Noto Sans Arabic','Geeza Pro','Segoe UI','Tahoma',
  'Arial',sans-serif}
.slip[dir="rtl"],.slip[dir="rtl"] *{letter-spacing:0}
.slip[dir="rtl"] .sl-top b,.slip[dir="rtl"] .sl-p b,.slip[dir="rtl"] .sl-r b,.slip[dir="rtl"] .sl-qt b{line-height:1.5}
.slip[dir="rtl"] .mono,.slip[dir="rtl"] .sl-p em,.slip[dir="rtl"] .sl-qt em,.slip[dir="rtl"] .sl-ltr{direction:ltr;unicode-bidi:isolate;text-align:right}
/* the shop's own footer line takes the direction of whatever it says */
.slip[dir="rtl"] .sl-note{unicode-bidi:plaintext}
.slip[dir="rtl"] .sl-ar{transform:scaleX(-1)}
/* the settings preview: the slip as it will print, on the page itself */
.prv{display:flex;justify-content:center;padding:20px 20px 12px;background:var(--tint)}
/* item 10: the preview takes the width of the chosen paper, so the roll's
   narrow budget is visible to the owner before anything prints */
.prv-80 .slip{width:300px}
.prv-a5 .slip{width:470px}
.prv-a4 .slip{width:600px}
.prv-f{display:flex;align-items:center;gap:8px;padding:10px 20px 14px;font-size:var(--t-xs);color:var(--muted);background:var(--tint)}
.prv-f .ic{width:14px;height:14px;flex:none}
@media print{
  .prv{display:none}
  /* On paper the slip goes to pure black: a thermal head dithers
     anything that is not, and a tinted block is ink for nothing. The
     screen palette above is for the screenshot; this is for the printer. */
  .slip{border:none;border-radius:0;width:auto;
    --text:#000;--ink:#000;--muted:#333;--faint:#555;
    --line:#999;--line-2:#ccc;--tint:#fff;--tint-2:#fff;--panel:#fff}
  body.print-a5 .slip{width:130mm;page:a5slip}
  body.print-a5 .sl-sig{display:grid}
  /* a full sheet, when that is the paper the shop has (m34) */
  body.print-a4 .slip{width:180mm;page:a4slip}
  body.print-a4 .sl-sig{display:grid}
  /* THE ROLL. 72mm of paper and a target of 140mm, so every block gives
     something back: the two parties become one line each, the labels
     shrink, the QR comes down to 26mm (still plenty for a phone at arm's
     length) and the footer says the short version. */
  body.print-80 .slip{width:72mm;max-width:72mm;page:thermal}
  body.print-80 .sl-top{padding:4px 8px;gap:6px}
  body.print-80 .sl-top .mark{width:20px;height:20px}
  body.print-80 .sl-code,body.print-80 .sl-amt{padding:3px 8px 6px}
  body.print-80 .sl-who{display:block;padding:2px 8px}
  body.print-80 .sl-ar{display:none}
  body.print-80 .sl-p{display:flex;align-items:baseline;gap:8px;padding:2px 0}
  body.print-80 .sl-p+.sl-p{border-top:1px solid var(--line-2)}
  body.print-80 .sl-p span{width:40px;flex:none}
  body.print-80 .sl-p b{flex:1;min-width:0;margin-top:0;font-size:var(--t-xs)}
  body.print-80 .sl-p em{display:none}
  body.print-80 .sl-top span{line-height:1.25}
  body.print-80 .sl-rows{padding:2px 8px}
  body.print-80 .sl-r span,body.print-80 .sl-p span{text-transform:none;letter-spacing:0}
  body.print-80 .sl-r span{width:66px}
  body.print-80 .sl-p span{width:32px}
  body.print-80 .sl-r b{font-size:var(--t-2xs)}
  body.print-80 .sl-r.sl-mv>span{width:auto}
  body.print-80 .sl-leg em{font-size:var(--t-2xs)}
  body.print-80 .sl-x{display:none}
  body.print-80 .sl-qr{padding:6px 8px;gap:8px}
  body.print-80 .sl-qr .qr{width:96px;height:96px}
  body.print-80 .sl-r{padding:2px 0}
  body.print-80 .sl-foot{padding:4px 8px}
  body.print-80 .sl-note{padding:4px 8px;line-height:1.3}
  body.print-80 .sl-foot{padding:4px 8px}
  body.print-80 .sl-fl{display:none}
  body.print-80 .sl-fs{display:inline}
}
/* collection places (m35 job 2): one row per place, the star is the default */
.plist{display:flex;flex-direction:column}
.plrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line-2)}
.plrow:last-child{border-bottom:none}
.plstar{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;border:1px solid var(--ctl-line);
  background:var(--panel);color:var(--faint);flex:none;transition:.13s}
.plstar:hover{color:var(--text);border-color:var(--text)}
.plstar.on{background:var(--brass-tint);border-color:var(--brass);color:var(--brass-t)}
.plstar .ic{width:15px;height:15px}
.plstar:disabled{cursor:default}
.plstar:disabled:hover{color:var(--faint);border-color:var(--ctl-line)}
.plstar.on:disabled:hover{color:var(--brass-t);border-color:var(--brass)}
input.plname{flex:1;min-width:120px;height:36px;border:1px solid var(--field);border-radius:8px;padding:0 10px;
  background:var(--panel);color:var(--text);font-size:var(--t-xs)}
input.plname:focus{outline:none;border-color:var(--text)}
b.plname{flex:1;font-weight:500;font-size:var(--t-xs)}
.plmeta{display:flex;align-items:center;gap:8px;flex:none;font-size:var(--t-2xs)}
.pladd{display:flex;gap:8px;margin-top:12px}
.pladd input{flex:1;height:36px;border:1px solid var(--field);border-radius:8px;padding:0 10px;background:var(--panel);color:var(--text)}
.pladd input:focus{outline:none;border-color:var(--text)}
/* the place field in the row takes the room the button leaves (round 33, F1) */
.pladd .plf{flex:1}
.pladd .plf-frame{block-size:36px;padding-inline:10px 2px}
/* printing per document (m35 job 3): the list rows are doors */
button.setrow.doc{width:100%;text-align:start;cursor:pointer;border-radius:8px;transition:background .12s}
button.setrow.doc:hover{background:var(--tint)}
button.setrow.doc:first-child{padding-top:15px}
.docsum{flex-direction:column;align-items:flex-end;gap:3px;font-size:var(--t-2xs);position:relative;padding-inline-end:22px}
.docsum .mono{color:var(--text)}
.docsum>.ic{position:absolute;inset-inline-end:0;top:50%;margin-top:-8px;width:16px;height:16px;color:var(--faint)}
.docsum .faint{color:var(--faint)}
/* a person's photo in place of their initials (m36) */
.who-av.img{padding:0;overflow:hidden;background:var(--line-2)}
.who-av.img img{width:100%;height:100%;object-fit:cover;display:block}

/* =====================================================================
   WHICH DAYS? — the one date-range picker (m38 job 2). Presets as the
   filter chips already are; the calendar: two months side by side, the
   chosen stretch tinted, its first and last day solid, today ringed,
   the day the keyboard stands on outlined. Tokens only, both themes.
   A standalone segment (.dp) positions its own popover.
   ===================================================================== */
.dp-presets{flex-wrap:wrap}
.dp{position:relative;display:inline-flex}
.dp .fb-pop{inset-inline-start:0;top:calc(100% + 4px)}
.fb-pop.flip{inset-inline-start:auto;inset-inline-end:0}
.fb-pop.up{top:auto;bottom:calc(100% - 5px)}
.dp .fb-pop.up{bottom:calc(100% + 4px)}
/* with the calendar showing the popover widens so the presets sit on one line and the months breathe */
.fb-pop:has(.dpcal){width:min(700px,calc(100vw - 60px))}
.dpcal{margin-top:12px;outline:none;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:8px 12px 10px}
.dpcal:focus-visible{border-color:var(--text);box-shadow:0 0 0 3px rgba(var(--sh),.07)}
.dp-nav{display:flex;align-items:center;gap:8px;padding-bottom:6px}
.dp-nav b{flex:1;text-align:center;font-size:var(--t-xs);font-weight:600}
.dp-nav .dp-sep{color:var(--faint);margin:0 8px}
.dp-nav .btn{padding:3px 6px}
.dp-months{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.dp-m{min-width:0}
.dp-mh{display:none}
.dp-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0}
.dpw{display:grid;place-items:center;height:22px;font-style:normal;font-size:var(--t-2xs);letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--faint);font-weight:600}
.dpd{display:grid;place-items:center;height:28px;min-width:0;border-radius:6px;font-size:var(--t-xs);
  font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;color:var(--text);background:none;transition:background .1s}
.dpd.nil{visibility:hidden}
.dpd:hover{background:var(--tint-2)}
.dpd.fut{color:var(--muted)}
.dpd.today{box-shadow:inset 0 0 0 1px var(--brass)}
.dpd.in{background:var(--brass-tint);color:var(--brass-t);border-radius:0}
.dpd.in:hover{background:var(--brass-wash)}
.dpd.start{border-radius:6px 0 0 6px}
.dpd.end{border-radius:0 6px 6px 0}
.dpd.start.end{border-radius:6px}
.dpd.start,.dpd.end{background:var(--solid);color:var(--on-solid);font-weight:600}
.dpd.start:hover,.dpd.end:hover{background:var(--solid);filter:brightness(1.06)}
.dpd.focus{outline:2px solid var(--text);outline-offset:-2px;z-index:1}
.dp-hint{margin:8px 0 0}
@media(max-width:1023px){
  .dp-months{grid-template-columns:1fr}
  .dp-mh{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600;margin:8px 0 4px}
  .dp-nav b span,.dp-nav b{font-size:var(--t-xs)}
}
.dpd.dis{color:var(--faint);opacity:.4;cursor:default}
.dpd.dis:hover{background:none}
/* the From / Up-to display fields: read-only, driven by the calendar, never
   the OS picker; they read as fields but carry a quiet calendar cue (item 1) */
.dp-field{cursor:pointer}
.dp-field::placeholder{color:var(--faint)}
/* the one single-date picker — a floating one-month calendar anchored under
   a lone date field (item 1). It reuses the range calendar's day grid. */
.sd-pop{position:fixed;z-index:95;background:var(--float);border:1px solid var(--float-line);border-radius:12px;
  box-shadow:var(--e-2);padding:10px 12px 10px;
  width:min(300px,calc(100vw - 20px));outline:none;animation:f .12s}
.sd-pop .dpcal{margin-top:0;border:none;padding:0;background:none}
.sd-pop .dp-months,.sd-months{grid-template-columns:1fr}
.sd-pop .dpd{height:30px}
.sd-foot{display:flex;align-items:center;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line-2)}
.sd-foot .btn-brass{margin-inline-start:auto}
/* the calendar and its popover are screen furniture, never paper */
@media print{.fb-wrap,.fb-pop,.dp,.dpcal,.dp-presets,.sd-pop{display:none!important}}

/* =========================================================
   FIRST-RUN ONBOARDING (m44): the setup wizard layer and the
   first-steps checklist. The wizard follows the theme (step 1 picks
   it), so every colour is a token; logical properties only.
   ========================================================= */
#wizard{display:none;position:fixed;inset:0;z-index:58;background:var(--paper);color:var(--text);overflow-y:auto;-webkit-overflow-scrolling:touch}
#wizard.on{display:block}
.ob-stage{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 20px calc(22px + env(safe-area-inset-bottom))}
.ob-wrap{width:100%;max-width:760px;display:flex;flex-direction:column;gap:12px}
.ob-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 2px}
.ob-head .mark b{color:var(--text)}
.ob-step{font-size:var(--t-xs);color:var(--muted);white-space:nowrap}
.ob-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.ob-bar i{display:block;height:5px;border-radius:99px;background:var(--line);transition:background .16s}
.ob-bar i.on{background:var(--brass)}
.ob-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--e-1);animation:lgcard .3s cubic-bezier(.2,.8,.3,1)}
.ob-title{padding:20px 24px 0}
.ob-title h1{font-size:var(--t-l);font-weight:600;letter-spacing:var(--track-3)}
.ob-title p{color:var(--muted);font-size:var(--t-xs);margin-top:5px;line-height:1.6}
.ob-body{padding:16px 24px 4px}
.ob-body .field{margin-bottom:13px}
.ob-body .fine{margin:6px 0 10px}
.ob-foot{display:flex;gap:9px;align-items:center;padding:14px 24px;border-top:1px solid var(--line)}
.ob-foot .sp{flex:1}
.ob-note{display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:var(--t-2xs);line-height:1.6;padding:0 4px}
.ob-note .ic{width:16px;height:16px;flex:none;margin-top:1px;color:var(--faint)}
.ob-leave{color:var(--muted);text-decoration:underline;padding:0 2px;border-radius:4px}
.ob-leave:hover{color:var(--text);background:var(--line-2)}
.ob-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}
.ob-lab{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:6px}
.ob-logo{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:2px 0 14px}
.ob-logo .fine{margin:0;flex:1;min-width:200px}
.ob-segs{gap:13px;margin-bottom:10px}
.ob-segs .curseg{display:inline-flex;flex-wrap:nowrap}
.ob-segs .curseg button .ic{width:14px;height:14px}
/* the chip grid: a currency is a card you switch on */
.ob-base{align-items:end;margin-bottom:8px}
.ob-basehint{margin:0 0 13px!important}
.ob-chips{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:12px}
.ob-chip{display:flex;align-items:center;gap:8px;padding:7px 9px;min-height:44px;border:1px solid var(--ctl-line);border-radius:10px;background:var(--panel);color:var(--text);text-align:start;min-width:0;transition:.12s}
.ob-chip:hover{background:var(--tint);border-color:var(--text)}
.ob-chip.on{border-color:var(--text);background:var(--tint-2);box-shadow:inset 0 0 0 1px var(--text)}
.ob-chip.on:hover{filter:brightness(.97)}
.ob-chip.base{border-style:dashed;cursor:default}
.ob-chip.base:hover{background:var(--panel);border-color:var(--ctl-line)}
.ob-chip:disabled{opacity:1}
.ob-chip>span:not(.cc){flex:1;min-width:0;display:flex;flex-direction:column;font-size:var(--t-xs);line-height:1.25}
.ob-chip>span:not(.cc)>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal;display:block}
.ob-chip small{color:var(--faint);font-size:var(--t-2xs);min-height:13px}
.ob-chip .cc{flex:none}
.ob-chip .ob-tick{width:14px;height:14px;flex:none;color:var(--pos)}
.ob-other .cc{background:var(--line-2);color:var(--text);font-weight:600}
.ob-otherrow{display:grid;grid-template-columns:110px 1fr 130px auto;gap:10px;align-items:start}
.ob-otherrow .field{margin-bottom:12px}
/* the compact grids: rates, cash, people */
.ob-rows{display:grid;gap:6px}
.ob-row{display:grid;grid-template-columns:150px 1fr 1fr;gap:10px;align-items:center}
.ob-people .ob-row{grid-template-columns:1fr 1.2fr 150px 36px}
.ob-row.ob-hd{font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600;padding-bottom:2px}
.ob-row.ob-hd small{text-transform:none;letter-spacing:0;font-weight:400;color:var(--faint)}
.ob-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ob-row input{width:100%;height:40px;padding:0 12px;border:1px solid var(--field);border-radius:8px;background:var(--panel);color:var(--text);font-size:var(--t-s)}
.ob-row input:focus{outline:none;border-color:var(--text)}
.ob-row .pick .pick-btn{height:40px}
.ob-row .btn{justify-content:center;padding:0;height:36px;width:36px}
/* the summary: every line is a door back to its step */
.ob-sums{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}
.ob-sum{display:flex;align-items:center;gap:13px;width:100%;padding:11px 14px;background:var(--panel);color:var(--text);text-align:start;transition:background .12s}
.ob-sum:hover{background:var(--tint-2)}
.ob-sum>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;background:var(--wash);color:var(--muted)}
.ob-sum>i .ic{width:15px;height:15px}
.ob-sum>div{flex:1;min-width:0}
.ob-sum b{display:block;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted);font-weight:600}
.ob-sum>div>span{display:block;font-size:var(--t-xs);margin-top:2px;line-height:1.5}
.ob-sum .cn{display:inline-flex;margin-inline-end:4px;vertical-align:middle}
.ob-sum>em{color:var(--faint);flex:none}
.ob-sum>em .ic{width:14px;height:14px}
.ob-sum:hover>em{color:var(--text)}
@media(max-width:1000px){.ob-chips{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.ob-grid2,.ob-otherrow{grid-template-columns:1fr}.ob-row,.ob-people .ob-row{grid-template-columns:1fr}.ob-row.ob-hd{display:none}}
/* the first-steps checklist on the Overview */
.fs-i.done>i{background:var(--pos-bg);color:var(--pos-ic)}
.fs-i.done b{color:var(--muted);text-decoration:line-through}
.fs-i>i>b{font-size:var(--t-xs);font-weight:600}
.fs-i:disabled{opacity:.6;cursor:default}

/* =====================================================================
   RIGHT TO LEFT (m43). The layout mirrors by itself: the properties above
   are logical (inline-start / inline-end), the grid and the flex rows
   flow from the inline start, tables lay their columns out from the
   start edge. What CSS cannot mirror on its own is here: the Arabic
   face, no letter tracking on Arabic script, the direction icons, the
   inset accent shadows, the slide transforms, and numbers as isolated
   left-to-right runs so a leading sign never jumps to the wrong side.
   Exceptions kept physical, on purpose: money columns (.num, td.ha, the
   amount inputs) align on the physical right edge in both directions —
   in RTL that is the start edge, the digits still line up on the unit;
   the 50% centring of the toast and the two-column divider; the paper
   (.slip, #printDoc, print media), which mirrors by dir on its own root
   with the hand-written RTL rules of m34.
   ===================================================================== */
html[dir="rtl"] body{font-family:'Vazirmatn','Inter',system-ui,-apple-system,sans-serif}
html[dir="rtl"] :not(.mono):not(.num):not(.cc):not(.kbd):not(.cu):not(svg):not(path){letter-spacing:0}
html[dir="rtl"] .mono,html[dir="rtl"] .num,html[dir="rtl"] .cc,html[dir="rtl"] .cu,html[dir="rtl"] .hwm,html[dir="rtl"] .mv-in,html[dir="rtl"] .mv-out,
html[dir="rtl"] .ts-p b,html[dir="rtl"] .kbd,html[dir="rtl"] input[inputmode="decimal"],html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="password"],html[dir="rtl"] input[type="tel"]{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .num,html[dir="rtl"] td.ha{text-align:right}
html[dir="rtl"] .ic.dir{transform:scaleX(-1)}
/* A logo is a picture of a name (round 25): never mirrored or turned, whatever the direction:
   the Balanceko mark, a shop's logo or monogram, a partner's. Direction icons (.ic.dir) may flip. */
html[dir="rtl"] :is(.lmark,.bmark,.bmark img,.net-logo,.net-logo img,.logo-sm,.logo-sm img,.acc-avatar.logo img,.pick-ic.logo img,.ph-biz.logo,.ph-biz.logo img,.rp-logo,.stmt-logo){transform:none}
/* item 2: the in/out glyph on a transfer row — arriving in green, sent muted */
.txdir{display:inline-flex;vertical-align:-2px;margin-inline-end:6px}
.txdir .ic{width:14px;height:14px}
.txdir-in{color:var(--pos)}
.txdir-out{color:var(--muted)}
/* item 8: the sort toggle above the by-employee chips */
.dp-order{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--line-2)}
/* item 1: the hawala row "…" menu — reuses .expmenu chrome */
.rowmenu{min-width:170px}
.rowmenu button span{font-weight:500}
.rowmenu button:focus-visible{background:var(--tint);outline:2px solid var(--brass);outline-offset:-2px}
html[dir="rtl"] .gres.on{box-shadow:inset -2px 0 0 var(--brass)}
html[dir="rtl"] .hwn-i.on{box-shadow:inset -3px 0 0 var(--brass-t)}
html[dir="rtl"] .hwt tr.hwr.sel td{box-shadow:inset -3px 0 0 var(--brass)}
html[dir="rtl"] .hwt tr.hwr:focus-visible td{box-shadow:inset -3px 0 0 var(--text)}
html[dir="rtl"] .hwdr{transform:translateX(-102%)}
html[dir="rtl"] .hwdr.open{transform:none}
@media(max-width:1080px){html[dir="rtl"] .rail{transform:translateX(100%)}html[dir="rtl"] .rail.open{transform:none}}
html[dir="rtl"] .rail-min .rlink.never:after{inset-inline-start:auto;inset-inline-end:calc(100% + 12px)}

/* the sweep (m43): four figure cards fold to two rows below 1300 px, a table wider than its panel scrolls inside it */
@media(max-width:1300px){.figs.f4{grid-template-columns:1fr 1fr}.figs.f4>*:nth-child(3){border-inline-start:none}}
.setbody .tw{overflow-x:auto}

/* =====================================================================
   SECURITY (web-security brief) — the passkey sign-in button, the sheet
   that imitates the browser's WebAuthn dialog, and the passkeys panel.
   ===================================================================== */
/* the secondary way in: an outline button below the divider (2026-09-20) */
.lg-passkey{width:100%;justify-content:center;padding:12px;font-size:var(--t-s);min-height:44px;color:var(--text);background:var(--panel)}
.lg-passkey:hover{background:var(--tint);border-color:var(--muted)}
.lg-passkey:focus-visible{outline:2px solid #F0B90B;outline-offset:2px}
.lg-passkey .ic{width:18px;height:18px}
.lg-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:var(--t-xs);margin:14px 0 14px}
.lg-or::before,.lg-or::after{content:"";flex:1;height:1px;background:var(--line)}
.lg-or span{white-space:nowrap}

/* the sheet: its own overlay, centred, above any open modal */
.sec-ovl{z-index:80;place-items:center}
.sec-sheet{position:relative;background:var(--float);border:1px solid var(--float-line);border-radius:18px;
  width:100%;max-width:380px;padding:30px 26px 22px;box-shadow:var(--e-2);text-align:center;
  animation:u var(--dur-2) var(--ease-out)}
.sec-sheet h3{font-size:var(--t-l);font-weight:600;margin:4px 0 0;letter-spacing:var(--track-2)}
.sec-line{color:var(--muted);font-size:var(--t-xs);line-height:1.6;margin:8px 0 16px}
.sec-x{position:absolute;top:12px;inset-inline-end:12px;width:30px;height:30px;border-radius:8px;
  display:grid;place-items:center;color:var(--muted)}
.sec-x:hover{background:var(--line-2);color:var(--text)}
.sec-x .ic{width:16px;height:16px}
.sec-ring{width:74px;height:74px;margin:6px auto 4px;border-radius:99px;display:grid;place-items:center;
  background:var(--brass-tint);border:1px solid var(--brass-line);color:var(--brass-t)}
.sec-ring .ic{width:38px;height:38px}
.sec-ring.busy{animation:secpulse 1s var(--ease-out) infinite}
.sec-ring.done{background:var(--pos-bg);border-color:var(--pos-line);color:var(--pos)}
@keyframes secpulse{50%{box-shadow:0 0 0 8px var(--brass-tint)}}
.sec-act{display:inline-flex;align-items:center;gap:7px;font-size:var(--t-xs);color:var(--text);
  background:var(--line-2);border-radius:99px;padding:5px 12px;margin:0 0 14px}
.sec-act .ic{width:15px;height:15px;color:var(--muted)}
.sec-go{width:100%;justify-content:center;padding:12px}
.sec-cancel{width:100%;justify-content:center;margin-top:8px}
/* the quiet way back inside the sheet: Lost your passkey? */
.sec-link{display:block;width:100%;text-align:center;font-size:var(--t-xs);color:var(--muted);min-height:44px;padding:0 8px;border-radius:8px;margin-top:2px;cursor:pointer}
.sec-link:hover{color:var(--text);text-decoration:underline}
.sec-link:focus-visible{outline:2px solid #F0B90B;outline-offset:-2px}
.sec-fine{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);
  font-size:var(--t-2xs,11px);margin:14px 0 0}
.sec-fine .ic{width:13px;height:13px}

/* the passkeys panel, empty state */
.sec-empty{display:flex;align-items:center;gap:14px;padding:6px 0}
.sec-empty>.ic{width:30px;height:30px;color:var(--muted);flex:none}
.sec-empty b{display:block;font-size:var(--t-s);font-weight:500}
.sec-empty span{display:block;color:var(--muted);font-size:var(--t-xs);margin-top:3px;line-height:1.5}

/* =====================================================================
   SECURITY item 2 — the read-only banner, the idle-lock screen, the
   console's segmented filter.
   ===================================================================== */
#secBanner{margin:0 0 4px}
.secban{display:flex;align-items:center;gap:14px;background:var(--brass-tint);border:1px solid var(--brass-line);
  border-radius:12px;padding:12px 16px;margin-bottom:12px}
.secban-i{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;flex:none;
  background:var(--brass);color:var(--on-brass)}
.secban-i .ic{width:19px;height:19px}
.secban-t{flex:1;min-width:0}
.secban-t b{display:block;font-size:var(--t-s);font-weight:600}
.secban-t span{display:block;color:var(--brass-t);font-size:var(--t-xs);margin-top:2px;line-height:1.5}

/* the console / idle segmented filter reuses the currency-segment look */
.secseg{flex-wrap:wrap}

/* the lock screen: drawn instead of the app while the session is locked, so
   nothing of the book is behind it */
.sec-lockscreen{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;
  background:var(--paper);overflow-y:auto;animation:f .16s}
.sec-lockcard{background:var(--float);border:1px solid var(--float-line);border-radius:18px;
  width:100%;max-width:360px;padding:28px 26px 20px;box-shadow:var(--e-2);text-align:center;
  animation:u var(--dur-2) var(--ease-out)}
.sec-lockcard h2{font-size:var(--t-l);font-weight:600;margin:6px 0 0}
.sec-lockwho{display:flex;flex-direction:column;align-items:center;gap:2px;margin-block-start:10px;min-inline-size:0}
.sec-lockwho b{font-size:var(--t-s);font-weight:600;color:var(--text);line-height:1.35;overflow-wrap:anywhere;max-inline-size:100%}
.sec-lockwho small{font-size:var(--t-xs);color:var(--muted)}
.sec-lockcard p{color:var(--muted);font-size:var(--t-xs);line-height:1.6;margin:8px 0 14px}
.sec-lockcard .field{text-align:start}
.sec-unlock{width:100%;justify-content:center;padding:11px}
.sec-signout{width:100%;justify-content:center;margin-block-start:8px}
.sec-lockcard .sec-lockmsg{color:var(--neg);font-weight:500;margin-block:12px 16px}
.sec-lockcard .sec-ring{margin:0 auto 4px}

/* =====================================================================
   SCAN-TO-FILL (item 3) — the sample photos, the review, confidence.
   ===================================================================== */
.scanread .scan-eye{aspect-ratio:16/7}
.scan-samples{margin-top:16px}
.scan-samples-h,.scan-review-h{font-size:var(--t-2xs);text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted);font-weight:600;margin-bottom:9px;display:flex;align-items:center;gap:8px}
.scan-review-h .ic{width:15px;height:15px}
.scan-review-h .aff{text-transform:none;letter-spacing:0;font-weight:400}
.scan-samples-row{display:flex;gap:10px;flex-wrap:wrap}
.scan-sample{flex:1;min-width:120px;display:flex;flex-direction:column;align-items:center;gap:7px;
  padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer;
  transition:border-color .12s,box-shadow .12s}
.scan-sample:hover{border-color:var(--brass);box-shadow:var(--e-1)}
.scan-sample span{font-size:var(--t-xs);color:var(--text);text-align:center;line-height:1.35}
.scan-thumb-svg{width:100%;max-width:130px;height:auto;border-radius:6px}
.scan-choose{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:var(--t-xs);
  color:var(--muted);cursor:pointer;padding:7px 0}
.scan-choose:hover{color:var(--text)}
.scan-choose .ic{width:16px;height:16px}
.scan-fail{display:flex;gap:12px;align-items:flex-start;margin-top:16px;padding:14px;border-radius:12px;
  background:var(--neg-tint);border:1px solid var(--neg-line)}
.scan-fail .ic{width:20px;height:20px;color:var(--neg);flex:none}
.scan-fail b{display:block;font-size:var(--t-s);color:var(--neg)}
.scan-fail span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:3px}
.scan-review{margin-top:16px;border-top:1px solid var(--line-2);padding-top:14px}
.scan-fld{margin-bottom:12px}
.scan-fld-l{display:flex;align-items:center;gap:9px;font-size:var(--t-xs);color:var(--muted);margin-bottom:5px}
.scan-in{width:100%}
.scan-conf{display:inline-flex;align-items:center;gap:4px;font-size:var(--t-2xs);padding:1px 8px;border-radius:99px;font-weight:500}
.scan-conf .ic{width:12px;height:12px}
.scan-conf.hi{background:var(--pos-bg);color:var(--pos)}
.scan-conf.lo{background:var(--brass-tint);color:var(--brass-t)}
.scan-review-act{display:flex;gap:8px;margin-top:6px}
.scan-fine{display:flex;align-items:flex-start;gap:6px;color:var(--muted);font-size:var(--t-2xs);margin:12px 0 0;line-height:1.5}
.scan-fine .ic{width:13px;height:13px;flex:none;margin-top:1px}
.scan-idbtn{margin-bottom:12px}
/* a field just filled from a scan gets a brief highlight */
.scan-lit{animation:scanlit 1.4s var(--ease-out)}
@keyframes scanlit{0%,60%{background:var(--brass-wash);box-shadow:0 0 0 3px var(--brass-tint)}100%{background:transparent;box-shadow:none}}

.scan-ovl{z-index:80}

/* =====================================================================
   ASK THE BOOK (item 4) — the answer card in the ⌘K launcher.
   ===================================================================== */
.ask-card{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:2px 0 6px;background:var(--panel)}
.ask-figure{font-size:var(--t-xl,28px);font-weight:600;letter-spacing:var(--track-2);line-height:1.1;
  font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.ask-fig2{font-size:var(--t-s);font-weight:500;color:var(--muted);letter-spacing:0}
.ask-sub{color:var(--muted);font-size:var(--t-xs);margin-top:6px;line-height:1.5}
.ask-act{margin-top:14px}
.ask-fine{display:flex;align-items:flex-start;gap:6px;color:var(--muted);font-size:var(--t-2xs);margin:12px 0 0;line-height:1.5}
.ask-fine .ic{width:13px;height:13px;flex:none;margin-top:1px}
.ask-none-h{display:flex;align-items:center;gap:9px;font-size:var(--t-s);font-weight:500}
.ask-none-h .ic{width:16px;height:16px;color:var(--muted)}
.ask-why{color:var(--muted);font-size:var(--t-xs);margin:8px 0 0}
.ask-egs{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.ask-eg{display:flex;align-items:center;gap:9px;text-align:start;padding:9px 11px;border:1px solid var(--line-2);
  border-radius:10px;font-size:var(--t-xs);color:var(--text);background:var(--panel-2,var(--panel))}
.ask-eg:hover{border-color:var(--brass);color:var(--text)}
.ask-eg .ic{width:15px;height:15px;color:var(--muted);flex:none}
.ask-hint{display:flex;align-items:flex-start;gap:9px;padding:10px 4px 4px;color:var(--muted);font-size:var(--t-xs);line-height:1.55}
.ask-hint .ic{width:16px;height:16px;flex:none;margin-top:1px;color:var(--brass-t)}
.ask-hint b{color:var(--text);font-weight:600}

/* =====================================================================
   THE WATCHFUL BOOK (item 5) — the quiet flag chip, the reasons, the
   Watch section, the rate outlook.
   ===================================================================== */
.watch-chip{display:inline-flex;align-items:center;gap:4px;margin-inline-start:8px;font-size:var(--t-2xs);
  font-weight:600;padding:1px 8px;border-radius:99px;background:var(--brass-tint);color:var(--brass-t);
  vertical-align:middle}
.watch-chip .ic{width:12px;height:12px}
.watch-item{padding:12px 0;border-bottom:1px solid var(--line-2)}
.watch-item:last-child{border-bottom:none;padding-bottom:0}
.watch-item:first-child{padding-top:0}
.watch-item-h{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:var(--t-s)}
.watch-item-h .muted{font-size:var(--t-xs)}
.watch-reasons{margin:7px 0 0;padding-inline-start:18px;color:var(--muted);font-size:var(--t-xs);line-height:1.6}
.watch-reasons li{margin:2px 0}
.watch-item-a{display:flex;gap:8px;margin-top:10px}
.watch-box{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--brass-tint);border:1px solid var(--brass-line)}
.watch-box.ok{background:var(--pos-bg);border-color:var(--pos-line)}
.watch-box-h{display:flex;align-items:center;gap:8px;font-size:var(--t-xs);font-weight:600;color:var(--brass-t)}
.watch-box.ok .watch-box-h{color:var(--pos)}
.watch-box-h .ic{width:15px;height:15px}
.watch-box .btn{margin-top:10px}
.watch-dup .kv{padding:5px 0}

/* =====================================================================
   THE OWNER'S DESK (item 6) — compare panes, month-end, bulk statements.
   ===================================================================== */
.tabs-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.acc-desk{display:flex;gap:8px;flex-wrap:wrap}

/* compare mode — a full-frame overlay of two independent panes */
.cmp{position:fixed;inset:0;z-index:75;background:var(--paper);display:flex;flex-direction:column;animation:f .14s}
.cmp-bar{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--panel)}
.cmp-title{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:var(--t-s)}
.cmp-title .ic{width:17px;height:17px;color:var(--muted)}
.cmp-panes{flex:1;display:flex;min-height:0}
.cmp-pane{flex:50;display:flex;flex-direction:column;min-width:0;min-height:0}
.cmp-pane-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line-2);background:var(--panel)}
.cmp-pick{padding:7px 10px;border:1px solid var(--ctl-line,var(--line));border-radius:9px;background:var(--panel);
  color:var(--text);font-size:var(--t-xs);max-width:220px}
.cmp-cur{flex-wrap:wrap}
.cmp-pane-body{flex:1;overflow:auto;padding:14px 16px}
.cmp-div{width:8px;cursor:col-resize;background:var(--line-2);flex:none;position:relative}
.cmp-div:hover,.cmp-div:active{background:var(--brass)}
.cmp-div::after{content:"";position:absolute;inset:0 -4px}
.cmp-acc-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px;
  padding-bottom:8px;border-bottom:1px solid var(--line-2)}
.cmp-acc-top b{font-size:var(--t-s)}
.cmp-acc-top .mono{font-weight:600}

/* month-end walkthrough */
.mend-prog{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.mend-bar{flex:1;height:8px;border-radius:99px;background:var(--line-2);overflow:hidden}
.mend-bar i{display:block;height:100%;background:var(--pos);border-radius:99px;transition:width .3s;
  /* the steps done of the steps to do, from the two counts the dialog sets on the bar (round 33, B1) */
  width:calc(var(--done,0) / max(var(--need,1), 1) * 100%)}
.mend-prog span{font-size:var(--t-xs);color:var(--muted);white-space:nowrap}
.mend{display:flex;flex-direction:column}
.mend-step{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--line-2)}
.mend-step:last-child{border-bottom:none}
.mend-mk{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;flex:none;
  background:var(--line-2);color:var(--muted)}
.mend-mk .ic{width:18px;height:18px}
.mend-step.done .mend-mk{background:var(--pos-bg);color:var(--pos)}
.mend-step.todo .mend-mk{background:var(--brass-tint);color:var(--brass-t)}
.mend-t{flex:1;min-width:0}
.mend-t b{display:block;font-size:var(--t-s)}
.mend-t span{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:2px}

/* bulk statements picker */
.bulk-head{font-size:var(--t-xs);color:var(--muted);margin-bottom:8px}
.bulk-list{max-height:44vh;overflow:auto;border:1px solid var(--line-2);border-radius:10px}
.bulk-i{display:flex;align-items:center;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line-2);cursor:pointer}
.bulk-i:last-child{border-bottom:none}
.bulk-i span:nth-child(2){flex:1;font-size:var(--t-xs)}
.bulk-i input{width:16px;height:16px;accent-color:var(--brass)}

/* the print bundle: one statement per page */
.pd-break{break-before:page;page-break-before:always}
.pd-stmt{margin-top:10px}
.pd-sub{color:var(--muted);font-size:var(--t-xs);margin:0 0 8px}
@media print{ .cmp{display:none!important} }

/* =====================================================================
   THE TRANSACTION ROW — ONE MODEL FOR EVERY LIST (2026-10-13, js/ledger.js;
   Round 15). Seven columns: When · Type · Number · Details · Credit ·
   Debit · Balance after. Fixed widths (table-layout:fixed) for every
   column but Details, so every column starts at the same x on every row.
   Money is mono, tabular, at the end edge, one LANE per currency.
   The frame decides the shape, not the window (container queries):
     ≥ 900px  the seven columns, a header, rows of their own height
     600–899  one grid: type, number and time; details; the amount; the balance
     < 600    a card (and on every phone): type, number and time; details;
              the amount and the balance, the balance the boldest
   ===================================================================== */
.ldgw{container-type:inline-size;container-name:ldg}
table.ldg{table-layout:fixed;width:100%}
/* measured: the widest type label ("Booked from a partner") 156px, a number with its copy step 80px,
   a six-figure amount at 14px 120px; a long number's second line (a transfer's) wraps under it */
table.ldg th.l-when{width:84px}
table.ldg th.l-ty{width:172px}
table.ldg th.l-no{width:112px}
table.ldg th.l-cr,table.ldg th.l-db{width:128px}
table.ldg th.l-bal{width:152px}
table.ldg.ldg-mixed th.l-bal{width:196px}
@container ldg (min-width:1100px){
  table.ldg th.l-when{width:92px}
  table.ldg th.l-ty{width:176px}
  table.ldg th.l-no{width:132px}
  table.ldg th.l-cr,table.ldg th.l-db{width:144px}
  table.ldg th.l-bal{width:168px}
  table.ldg.ldg-mixed th.l-bal{width:212px}
}
.tw table.t3.ldg td{padding-inline:10px}
.tw table.t3.ldg td.cm{padding-inline:10px}
/* the chip inside a lane sits tight to its figure */
table.ldg .ln .cc{width:auto;min-width:0;padding:0 4px;height:16px;font-size:10.5px}
table.ldg .ln.ln-l b,table.ldg .ln.ln-l.balaft{font-size:12px!important}
table.ldg .ln.ln-xl b,table.ldg .ln.ln-xl.balaft{font-size:11px!important}
.tw table.t3.ldg td.ldg-d{padding-inline:12px}
/* Dari and Pashto spell the month out ("13 اکتوبر 2026", up to 105px):
   the When column widens for them so the date is never clipped */
[dir=rtl] table.ldg th.l-when{width:120px}
/* a description is often a name or a note typed in English: it reads in
   its own direction, held to the start edge, cut at its END, never its start */
[dir=rtl] table.ldg .sec{unicode-bidi:plaintext;text-align:right}
/* the lanes */
table.ldg .lns{display:inline-flex;flex-direction:column;align-items:flex-end;vertical-align:middle;gap:0}
table.ldg .ln{display:flex;align-items:center;justify-content:flex-end;gap:6px;height:18px;line-height:18px;
  white-space:nowrap;font-variant-numeric:tabular-nums}
table.ldg .ln b{font-weight:600}
table.ldg .ln.mv-in b{color:var(--pos)}
table.ldg .ln.mv-out b{color:var(--neg)}
.tw table.t3.ldg tbody tr td.ldg-bal .balaft{line-height:18px}
table.ldg td.ldg-bal .bal-net{color:var(--muted)}
/* When: the date over the time, both always */
table.ldg td.ldg-when .cw-1{font-size:12.5px;white-space:nowrap}
table.ldg td.ldg-when .cw-1.ldg-say{white-space:normal;font-size:12px;line-height:16px}
table.ldg td.ldg-when .cw-2{font-size:12px;color:var(--muted);line-height:16px;margin-top:2px}
/* Type: the label; Number: the number with its copy step, a transfer's own number under it */
table.ldg td.ldg-ty{white-space:nowrap}
table.ldg td.ldg-no{font-size:12px;line-height:16px;color:var(--muted)}
table.ldg td.ldg-no .ldg-id{display:block;color:var(--text);font-weight:600;white-space:nowrap}
table.ldg td.ldg-no .ldg-id2{display:block;color:var(--muted);white-space:nowrap;margin-top:2px}
/* every row takes its own height: about 56px for a title and its grey line */
@container ldg (min-width:900px){.tw table.t3.ldg tbody tr.stmr>td{height:auto;padding-block:10px;vertical-align:middle}}
/* Details: the title, the description; the folded type and meta line */
table.ldg .ldg-alt,table.ldg .ldg-meta{display:none}
table.ldg .ldg-meta{font-size:11.5px;color:var(--muted);line-height:16px;margin-top:4px;white-space:normal;overflow:visible;text-overflow:clip}
table.ldg .ldg-meta .ldg-alt{vertical-align:middle}
/* the meta line wraps BETWEEN its pieces — the type, the number, the date
   and time — and never cuts one: those are values that matter */
.ldgw table.ldg .ldg-meta{white-space:normal;overflow:visible;text-overflow:clip}
.ldgw table.ldg .ldg-meta>span{white-space:nowrap;display:inline-block}
/* the space between the pieces is the line's own gap, not a margin on a piece:
   a figure keeps its own left-to-right direction under right-to-left, so a
   margin on it would land on the wrong side and the date would touch the number */
.ldgw table.ldg .ldg-meta{flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:2px}
.ldgw table.ldg .ldg-meta>span:empty{display:none}
/* the description is plain words: one line on a table, cut at its end */
.ldgw table.ldg .sec{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* the title keeps to one line on every table tier: it shortens, the
   chips beside it (the lock, the watch flag) keep their place */
.ldgw table.ldg .ct-k .ct-h{overflow:visible;flex-wrap:wrap;row-gap:3px}
.ldgw table.ldg .ct-k .ct-t{white-space:normal;min-width:0;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.ldgw table.ldg .ct-k .ct-h>.oklock,.ldgw table.ldg .ct-k .ct-h .watch-chip{flex:none}
table.ldg .ldg-who{font-weight:600;color:var(--text)}
.tw table.t3.ldg tbody tr .sec{max-width:none}
tr.okdiv .ldg-meta,tr.stmend .ldg-meta,tr.okdiv .ldg-id,tr.stmend .ldg-id,tr.okdiv .ldg-who{color:var(--muted)}
tr.okdiv .ldg-id2,tr.stmend .ldg-id2{color:var(--muted)}
/* 600–899: one grid, the same columns in every row (Round 15, C3). Type, number and time; the
   title and its grey line; the amount; the balance, always shown and the boldest figure. */
@container ldg (max-width:899px){
  .ldgw table.ldg{display:block;min-width:0}
  .ldgw table.ldg thead{display:none}
  .ldgw table.ldg tbody{display:block}
  .ldgw table.ldg tbody tr.stmr{display:grid;grid-template-columns:160px minmax(0,1fr) 132px 148px;grid-template-rows:auto auto 1fr;
    column-gap:12px;row-gap:3px;align-items:start;padding:10px 14px;border-bottom:1px solid var(--line-2)}
  .ldgw table.ldg tbody tr.stmr>td{display:block;height:auto;padding:0;border:none;min-width:0;width:auto}
  .ldgw table.ldg tbody tr.stmr>td.ldg-ty{grid-column:1;grid-row:1}
  .ldgw table.ldg tbody tr.stmr>td.ldg-no{grid-column:1;grid-row:2}
  .ldgw table.ldg tbody tr.stmr>td.ldg-when{grid-column:1;grid-row:3}
  .ldgw table.ldg tbody tr.stmr>td.ldg-d{grid-column:2;grid-row:1/4}
  .ldgw table.ldg tbody tr.stmr>td.ldg-cr{grid-column:3;grid-row:1}
  .ldgw table.ldg tbody tr.stmr>td.ldg-db{grid-column:3;grid-row:2}
  .ldgw table.ldg tbody tr.stmr>td.ldg-cr.ldg-0+td.ldg-db{grid-row:1}
  .ldgw table.ldg tbody tr.stmr>td.ldg-cr.ldg-0,.ldgw table.ldg tbody tr.stmr>td.ldg-db.ldg-0{display:none}
  .ldgw table.ldg tbody tr.stmr>td.ldg-bal{grid-column:4;grid-row:1/4;text-align:end}
  .ldgw table.ldg td.ldg-when .cw-1,.ldgw table.ldg td.ldg-when .cw-2{display:inline;margin:0;font-size:12px;color:var(--muted)}
  .ldgw table.ldg td.ldg-when .cw-2::before{content:" "}
  .ldgw table.ldg td.ldg-no .ldg-id2{margin-top:1px}
  .ldgw table.ldg tr.dgrp{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .ldgw table.ldg tr.dgrp td{display:block;flex:1 1 auto}
  .ldgw table.ldg tr.dgrp td.bal-g{display:none}
  .ldgw table.ldg tr.dgrp.ldg-g td.cm{flex:none}
  .ldgw table.ldg tr.nores,.ldgw table.ldg tr.nores td{display:block}
  .ldgw table.ldg tr.pgsent{display:block}
  /* one ground per row: the row carries it, never a cell (the end rows, the okay, a changed partner line) */
  .ldgw table.ldg tbody tr.stmr>td{background:none!important}
  .ldgw table.ldg tbody tr.stmr.stmend{background:var(--tint)!important}
  .ldgw table.ldg tbody tr.stmr.okdiv{background:var(--brass-tint)!important}
  .ldgw table.ldg tbody tr.stmr.dl-warn{background:var(--brass-tint)!important}
  .ldgw table.ldg tbody tr.stmr>td{box-shadow:none!important}
  .ldgw table.ldg tbody tr.stmr.okdiv.latest{box-shadow:inset 0 2px 0 var(--brass-line),inset 0 -2px 0 var(--brass-line)}
  .ldgw table.ldg tbody tr.stmr.okdiv.okd-hit{box-shadow:inset 0 0 0 2px var(--brass-t)}
  .ldgw table.ldg tbody tr.stmr>td.ldg-no{flex:0 1 auto}
}
/* under 600, and on every phone: a card. Type, number and time; the title and its grey line; the
   amount at the start, the balance at the end, each with its word. */
@container ldg (max-width:599px){
  .ldgw table.ldg tbody tr.stmr{display:flex!important;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:6px;
    padding:12px 14px!important;margin:0!important;border:none!important;border-bottom:1px solid var(--line-2)!important;border-radius:0!important}
  .ldgw table.ldg tbody tr.stmr>td{display:block!important;padding:0!important;border:none!important;height:auto!important;text-align:start!important;width:auto}
  .ldgw table.ldg tbody tr.stmr>td::before{display:none}
  .ldgw table.ldg tbody tr.stmr>td.ldg-ty{order:1;flex:none}
  .ldgw table.ldg tbody tr.stmr>td.ldg-no{order:2;flex:0 1 auto;min-width:0}
  .ldgw table.ldg tbody tr.stmr>td.ldg-when{order:3;flex:none;margin-inline-start:auto;text-align:end!important}
  .ldgw table.ldg tbody tr.stmr>td.ldg-d{order:4;flex:1 1 100%}
  .ldgw table.ldg tbody tr.stmr>td.ldg-cr{order:5;flex:1 1 auto}
  .ldgw table.ldg tbody tr.stmr>td.ldg-db{order:6;flex:1 1 auto}
  .ldgw table.ldg tbody tr.stmr>td.ldg-0{display:none!important}
  .ldgw table.ldg tbody tr.stmr>td.ldg-bal{order:7;flex:none;margin-inline-start:auto;text-align:end!important}
  .ldgw table.ldg tbody tr.stmr>td.cm{display:flex!important;align-items:baseline;gap:6px}
  .ldgw table.ldg tbody tr.stmr>td.cm::before{content:attr(data-l);display:block;flex:none;font-family:'Inter',sans-serif;font-size:var(--t-2xs);font-weight:500;color:var(--muted)}
  .ldgw table.ldg .lns{align-items:flex-start}
  .ldgw table.ldg td.ldg-bal .lns{align-items:flex-end}
  .ldgw table.ldg tbody tr.stmr>td.cm.ldg-0{display:none!important}
  .ldgw table.ldg tbody tr::before,.ldgw table.ldg tbody tr::after{display:none!important}
}
@media(max-width:720px){
  .ldgw table.ldg{display:block!important;min-width:0!important}
  .ldgw table.ldg thead{display:none!important}
  .ldgw table.ldg tbody{display:block!important}
  .ldgw table.ldg tbody tr.stmr{display:flex!important;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:6px;
    padding:12px 14px!important;margin:0!important;border:none!important;border-bottom:1px solid var(--line-2)!important;border-radius:0!important}
  .ldgw table.ldg tbody tr.stmr:not(.okdiv):not(.dl-warn):not(.stmend){background:var(--panel)}
  .ldgw table.ldg tbody tr.stmr>td{display:block!important;padding:0!important;border:none!important;height:auto!important;text-align:start!important;width:auto}
  .ldgw table.ldg tbody tr.stmr>td::before{display:none}
  .ldgw table.ldg tbody tr.stmr>td.ldg-ty{order:1;flex:none}
  .ldgw table.ldg tbody tr.stmr>td.ldg-no{order:2;flex:0 1 auto;min-width:0}
  .ldgw table.ldg tbody tr.stmr>td.ldg-when{order:3;flex:none;margin-inline-start:auto;text-align:end!important}
  .ldgw table.ldg tbody tr.stmr>td.ldg-d{order:4;flex:1 1 100%}
  .ldgw table.ldg tbody tr.stmr>td.ldg-cr{order:5;flex:1 1 auto}
  .ldgw table.ldg tbody tr.stmr>td.ldg-db{order:6;flex:1 1 auto}
  .ldgw table.ldg tbody tr.stmr>td.ldg-0{display:none!important}
  .ldgw table.ldg tbody tr.stmr>td.ldg-bal{order:7;flex:none;margin-inline-start:auto;text-align:end!important}
  .ldgw table.ldg tbody tr.stmr>td.cm{display:flex!important;align-items:baseline;gap:6px}
  .ldgw table.ldg tbody tr.stmr>td.cm::before{content:attr(data-l);display:block;flex:none;font-family:'Inter',sans-serif;font-size:var(--t-2xs);font-weight:500;color:var(--muted)}
  .ldgw table.ldg .lns{align-items:flex-start}
  .ldgw table.ldg td.ldg-bal .lns{align-items:flex-end}
  .ldgw table.ldg td.ldg-when .cw-1,.ldgw table.ldg td.ldg-when .cw-2{display:inline;margin:0;font-size:12px;color:var(--muted)}
  .ldgw table.ldg td.ldg-when .cw-2::before{content:" "}
  .ldgw table.ldg td.ldg-no .ldg-id,.ldgw table.ldg td.ldg-no .ldg-id2{display:inline}
  .ldgw table.ldg td.ldg-no .ldg-id2::before{content:" · ";color:var(--faint)}
  .ldgw table.ldg tr.dgrp{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px!important;background:var(--wash)}
  .ldgw table.ldg tr.dgrp td{display:block!important;padding:0!important;border:none!important;height:auto}
  .ldgw table.ldg tr.dgrp td.bal-g{display:none!important}
  .ldgw table.ldg tr.nores{display:block!important}
  .ldgw table.ldg tr.nores td{text-align:center!important;padding:20px 0!important}
  .ldgw table.ldg tbody tr.stmr>td.cm.ldg-0{display:none!important}
  .ldgw table.ldg tbody tr::before,.ldgw table.ldg tbody tr::after{display:none!important}
  .ldgw table.ldg td.ldg-when .cw-1{font-weight:500;font-size:11.5px}
  .ldgw table.ldg tbody tr.stmr>td.ldg-when{margin-inline-start:auto}
  /* one ground per row: the row carries it, never a cell (the end rows, the okay, a changed partner line) */
  .ldgw table.ldg tbody tr.stmr>td{background:none!important}
  .ldgw table.ldg tbody tr.stmr.stmend{background:var(--tint)!important}
  .ldgw table.ldg tbody tr.stmr.okdiv{background:var(--brass-tint)!important}
  .ldgw table.ldg tbody tr.stmr.dl-warn{background:var(--brass-tint)!important}
  .ldgw table.ldg tbody tr.stmr>td{box-shadow:none!important}
  .ldgw table.ldg tbody tr.stmr.okdiv.latest{box-shadow:inset 0 2px 0 var(--brass-line),inset 0 -2px 0 var(--brass-line)}
  .ldgw table.ldg tbody tr.stmr.okdiv.okd-hit{box-shadow:inset 0 0 0 2px var(--brass-t)}

  .ldgw table.ldg tr.dgrp{border:none!important;border-bottom:1px solid var(--line-2)!important;border-radius:0!important;margin:0!important}
  .ldgw table.ldg tr.dgrp td{text-align:start!important;background:none!important}
}
/* the detail drawer's "Recorded by" block: the internal fields the row leaves out */
.ldg-rec{margin-top:14px;padding:4px 14px 6px;border-radius:12px;background:var(--wash);border:1px solid var(--line-2)}
.ldg-rec-h{display:flex;align-items:center;gap:7px;padding:8px 0 4px;font-size:var(--t-2xs);font-weight:600;
  letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--muted)}
.ldg-rec-h .ic{width:13px;height:13px}
.ldg-rec .kv:last-child{border-bottom:none}
.ldg-rec .kv span{color:var(--muted)}
/* on paper: the same six columns at the document's size */
@media print{
  #printDoc table.ldg{table-layout:fixed}
  #printDoc table.ldg th.l-when{width:92px}
  #printDoc table.ldg th.l-tx{width:104px}
  #printDoc table.ldg th.l-cr,#printDoc table.ldg th.l-db{width:100px}
  #printDoc table.ldg th.l-bal{width:136px}
  #printDoc table.ldg .cw-1{font-size:10.5px;white-space:nowrap}
  #printDoc table.ldg .ldg-id2{display:block}
  #printDoc table.ldg .ldg-id2 .sep{display:none}
  #printDoc table.ldg .balaft,#printDoc table.ldg .ln b{font-size:11px}
  #printDoc table.ldg .bal-tag{font-size:8px;letter-spacing:.06em}
  #printDoc table.ldg .ln{height:16px;line-height:16px;gap:4px}
  #printDoc table.ldg .lns{display:inline-flex;flex-direction:column;align-items:flex-end}
  #printDoc table.ldg td{vertical-align:top}
  #printDoc table.ldg .ldg-id{font-size:9.5px;margin-top:3px}
  #printDoc table.ldg .cw-2{display:block;font-size:10px}
  #printDoc table.ldg .hd-in .ic,#printDoc table.ldg .hd-out .ic{display:none}
  #printDoc table.ldg .cc{width:auto;min-width:0;height:auto;padding:0;font-size:9.5px}
  #printDoc table.ldg .sec{font-size:10px;color:#333!important}
  #printDoc td.bal-c::before{display:none!important}   /* the hover glyph is the screen's */
  /* ONE currency (2026-10-13): one summary line, then the ledger with more air */
  #printDoc .cs-one .cs-sh{font-size:10px}
  #printDoc .cs-onet td{padding:10px 8px;font-size:12px}
  #printDoc .cs-onet td.cs-close{font-weight:700;font-size:13px}
  #printDoc .cs-onet .cc{font-weight:600}
  #printDoc .cs-doc-one table.ldg td{padding:10px 9px}
  #printDoc .cs-doc-one table.ldg .ln{height:18px;line-height:18px}
  #printDoc .cs-doc-one table.ldg .balaft,#printDoc .cs-doc-one table.ldg .ln b{font-size:12px}
  #printDoc .cs-doc-one .cs-sum{margin-bottom:22px}
}
/* the screen-only parts of a detail (the watch reasons, the recorded-by block) */
@media print{.no-print{display:none!important}}

/* =====================================================================
   ONE OVERLAY SHELL — FOUR EQUAL CORNERS (2026-10-13)
   Every pop-up is one of three families, each with ONE radius token
   (tokens.css): --r-modal (a modal, dialog or confirm, the security
   sheet, the lock card), --r-sheet (a sheet at an edge: the transfer
   drawer, a phone's bottom sheet), --r-pop (a popover, dropdown, menu or
   panel). The radius sits on the WHOLE container, on all four corners,
   and the container clips (overflow:hidden) — so nothing inside it, the
   header band, the body, the footer action bar, a tinted section, a
   scrolled row, can paint into a corner or square one off. The header
   and the footer are INSIDE the rounded container; the body between them
   is the one scroller, so scrolled content meets the radius, never a
   square edge. A dropdown opened inside a shell floats above it instead
   of being clipped (ovFloat, helpers.js). Corners are physical-symmetric,
   so right-to-left needs nothing of its own.
   ===================================================================== */
.mod,.sec-sheet,.sec-lockcard{border-radius:var(--r-modal);overflow:hidden}
.mod{display:flex;flex-direction:column;max-height:calc(100vh - 104px);max-height:calc(100dvh - 104px)}
.mod>.mh,.mod>.mf{flex:none}
.mod>.mb{flex:1 1 auto;min-height:0;overflow-y:auto}
.mod>.mf{background:var(--float)}
@media(max-height:820px){.mod{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px)}}
/* the transfer drawer floats in from the edge, a sheet with its four corners */
.hwdr{top:12px;bottom:12px;inset-inline-end:12px;max-width:calc(100vw - 24px);
  border:1px solid var(--float-line);border-radius:var(--r-sheet);overflow:hidden}
.hwdr.open{transform:none}
/* a tablet: the drawer is a bottom sheet — floated 12px off the edges */
@media(max-width:900px){
  .hwdr{top:auto;bottom:12px;inset-inline-start:12px;inset-inline-end:12px;width:auto;max-width:none;
    border:1px solid var(--float-line);border-radius:var(--r-sheet)}
}
/* every popover, dropdown, menu and panel */
.umenu,.npanel,.pick-pop,.fb-pop,.expmenu,.lm-menu{border-radius:var(--r-pop);overflow:hidden}
.umenu.open{display:flex;flex-direction:column}
.umenu>.um-head,.umenu>.um-foot{flex:none}
.um-body{flex:1 1 auto;min-height:0;overflow-y:auto}
/* a dropdown floated out of a shell (ovFloat): fixed to the window */
.ov-float{position:fixed!important;z-index:95}
/* a phone: the modal and the filter sheet are bottom sheets, floated off
   the edge by 8px so all four corners carry the sheet radius */
@media(max-width:720px){
  .ovl{padding:8px}
  .mod{border-radius:var(--r-sheet);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  .hwdr{top:auto;bottom:8px;inset-inline-start:8px;inset-inline-end:8px;border-radius:var(--r-sheet)}
  .fb-pop{inset-inline-start:8px;inset-inline-end:8px;bottom:8px;border-radius:var(--r-sheet)}
  .npanel,.umenu{border-radius:var(--r-pop)}
}

/* ---- the three header menus as bottom sheets (<=1080) ----
   Notifications, the day and the person's menu rise from the foot over a
   scrim, above the tab bar, in the same sheet shape as the More sheet, rather
   than docking to the bottom edge. Only the container changes; every item
   keeps its action. Placed after the base panel rules so it wins their radius,
   overflow and pop animation. Above 1080 the anchored dropdowns are untouched. */
.sh-grab,.sheet-scrim{display:none}
@media(max-width:1080px){
  .sheet-scrim{display:block;position:fixed;inset:0;z-index:71;border:0;padding:0;cursor:pointer;
    background:var(--scrim);animation:f .16s}
  .npanel,.umenu,.dpanel{position:fixed;inset-inline:0;bottom:0;top:auto;width:auto;z-index:72;
    display:block;transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.3,1);
    border:0;border-top:1px solid var(--float-line);border-radius:var(--r-sheet) var(--r-sheet) 0 0;
    box-shadow:0 -10px 40px rgba(var(--sh),.28);
    max-height:min(82vh,620px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    padding-bottom:calc(6px + env(safe-area-inset-bottom))}
  .npanel.open,.umenu.open,.dpanel.open{display:block;transform:none;animation:none}
  /* the one sheet scroll replaces the panels' inner scroll regions */
  .np-l{max-height:none;overflow:visible}
  .um-body{overflow:visible}
  /* the grab handle, sticky at the top of the sheet; it drags the sheet down */
  .sh-grab{display:flex;justify-content:center;position:sticky;top:0;z-index:2;
    padding:9px 0 7px;background:var(--float);touch-action:none;cursor:grab}
  .sh-grab::before{content:"";width:36px;height:5px;border-radius:99px;background:var(--edge)}
}

/* ---- mobile UX round A: tap feedback, scroll-lock, 44px hit areas (<=1080) ----
   Phone + tablet only, so the desktop header/dropdowns are untouched. */
@media(max-width:1080px){
  /* (3) lock the background scroller while any sheet is open; scrollTop is kept,
     so closing restores the position with no jump */
  #app.sheet-open #view{overflow:hidden}

  /* (1) pressed feedback on touch, matching .btn / .ms-item: rows tint, controls dip */
  .np-i:active,.um-item:active,.dl-i:active,.lfc:active,.lfx:active{background:var(--tint-2)}
  .bell:active,.uav:active,.daybtn:active,.pick-btn:active,.hwc:active{transform:translateY(1px)}

  /* (4) a >=44px finger target without changing the visible control: an invisible
     ::before hit layer, bounded by each row's gap so expanders never overlap */
  .tab,.lfc,.lfx,.uav,.daybtn,.xboard{position:relative}
  .tab::before,.lfc::before,.lfx::before,.xboard::before,
  .uav::before,.bell::before,.daybtn::before{
    content:"";position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);height:44px}
  /* the slim-header icons sit in a 6px-gap row: grow 3px each side (fills the gap, no overlap) */
  .uav::before,.bell::before,.daybtn::before{left:-3px;right:-3px}
  /* the clear button has an 8px gap beside it: grow 4px each side */
  .lfx::before{left:-4px;right:-4px}
  /* the bottom tab bar is already 56px tall - it keeps no expander */
  .tabbar .tab::before{content:none}
}

/* =====================================================================
   AN UNAPPROVED DEVICE (2026-10-13) — one dismissible card on Home and a
   dot on Settings → Security → this device; never a band on every screen
   ===================================================================== */
.sec-card{display:flex;align-items:center;gap:14px;padding:14px 16px;margin:0 0 16px;border-radius:var(--r);
  background:var(--brass-tint);border:1px solid var(--brass-line)}
.sec-card .secban-t{flex:1;min-width:0}
.sec-card-a{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sec-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--brass-t);flex:none;vertical-align:middle}
.rlink .rl-dot{margin-inline-start:auto}
.setnav button .sn-dot{margin-inline-start:auto;align-self:center}
.sec-wait{font-size:var(--t-2xs);font-weight:600;color:var(--brass-t);margin-inline-start:6px}
tr.sec-waiting td{background:var(--brass-tint)}
/* =====================================================================
   THE HAWALA TOP (2026-10-13) — the mode segment and, on the same line,
   the needs as compact clickable counts; no strip of cards, no network
   band. The requests panel below it stays folded to its header until
   opened, and is not drawn at all when nothing is waiting.
   ===================================================================== */
/* The status filter chips: a squared control in the app's shape language (the
   8px radius of the inputs, buttons and the filter segments), with the COUNT as
   the hero on top and the status (icon + quiet caps label) under it. Still a
   button: it filters the list on tap, with hover, focus and a clear applied
   state. */
.hwcnt{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;min-width:0}
.hwc{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"count count" "ic label";
  align-items:center;gap:2px 6px;min-height:50px;padding:8px 13px;border-radius:8px;
  border:1px solid var(--line);background:var(--panel);color:var(--text);white-space:nowrap;
  cursor:pointer;text-align:start;transition:border-color .12s,background .12s,box-shadow .12s}
.hwc b{grid-area:count;font-size:var(--t-l);font-weight:700;line-height:1;letter-spacing:var(--track-3);
  font-variant-numeric:tabular-nums}
.hwc .ic{grid-area:ic;width:13px;height:13px;flex:none;opacity:.7}
.hwc span{grid-area:label;font-size:var(--t-2xs);font-weight:600;letter-spacing:var(--track-caps);
  text-transform:uppercase;color:var(--muted);line-height:1.2}
/* the status colour rides the count and its icon, quietly */
.hwc.brass .ic,.hwc.brass b,.hwc.warn .ic,.hwc.warn b{color:var(--brass-t)}
.hwc.pos .ic,.hwc.pos b{color:var(--pos)}
.hwc.neg .ic,.hwc.neg b{color:var(--neg)}
/* nothing waiting: the whole chip goes quiet (still a filter) */
.hwc.nil .ic,.hwc.nil b,.hwc.nil span{color:var(--faint)}
.hwc:hover{border-color:var(--ctl-line);background:var(--tint-2)}
.hwc:focus-visible{outline:2px solid var(--brass);outline-offset:1px}
/* the applied filter: understated but unmistakable */
.hwc.on{border-color:var(--text);background:var(--tint);box-shadow:inset 0 0 0 1px var(--text)}
@media(max-width:720px){
  /* a tidy horizontal-scroll row on a phone, with the same right-edge fade the
     filter segments use */
  .hwcnt{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent);
    mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent)}
  /* RTL scrolls the other way, so the fade follows reading direction */
  html[dir="rtl"] .hwcnt{
    -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 18px),transparent);
    mask-image:linear-gradient(to left,#000 calc(100% - 18px),transparent)}
  .hwcnt::-webkit-scrollbar{display:none}
  .hwc{flex:none}
}
.hwreq:not(.open)+.hwdiv{display:none}

/* =====================================================================
   THE PLATFORM CONSOLE (2026-10-13) — the super-admin's one page.
   ===================================================================== */
/* no book while the super-admin is in: the book's header controls go */
#app.pa .gsearch,#app.pa .kbtn,#app.pa .bwrap:has(#bell),#app.pa .bwrap:has(#dayBtn),#app.pa #secBanner{display:none!important}
.pa-foot{cursor:default}.pa-foot:hover{background:transparent}
.pa-stats .pa-tile{cursor:pointer}
.pa-stats .pa-tile.on{border-color:var(--brass-t);box-shadow:inset 0 0 0 1px var(--brass-t)}
.pa-stats .pa-tile.on:hover{box-shadow:inset 0 0 0 1px var(--brass-t),var(--e-1)}
.pa-stats .pa-tile:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
#paTable tr.pa-off td{opacity:.72}
.pa-new{display:inline-block;font-size:var(--t-2xs);color:var(--brass-t);font-weight:600}
.pa-soon{color:var(--brass-t);font-weight:600}
.pa-audit{display:flex;flex-direction:column}
.pa-al{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center;padding:10px 18px;border-top:1px solid var(--line);font-size:var(--t-xs)}
.pa-al:first-child{border-top:0}
.pa-al>.pa-d{color:var(--muted);font-size:var(--t-2xs)}
.pa-d{font-variant-numeric:tabular-nums;white-space:nowrap}
.pa-al b{display:block;font-weight:500;color:var(--text)}
.pa-al small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:2px}
.pa-lvl{font-size:var(--t-2xs);color:var(--muted);white-space:nowrap}
.pa-lvl.crit{color:var(--neg-deep);font-weight:600}
.pa-exp{margin-top:4px}
.pa-cred{display:grid;gap:10px;padding:14px 16px;border-radius:12px;background:var(--tint);border:1px solid var(--line)}
.pa-cred>div{display:flex;justify-content:space-between;gap:16px;align-items:baseline;flex-wrap:wrap}
.pa-cred span{color:var(--muted);font-size:var(--t-xs)}
.pa-cred b{font-size:var(--t-m);color:var(--text);user-select:all;overflow-wrap:anywhere}
.pa-sum{display:grid;gap:2px;margin-bottom:16px}
.pa-kv{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:7px 0;border-bottom:1px solid var(--line);font-size:var(--t-xs)}
.pa-kv>span{color:var(--muted)}
.pa-kv>b{font-weight:500;color:var(--text);text-align:end;min-width:0;overflow-wrap:anywhere}
.pa-kv>b .sec{display:inline;margin-inline-start:6px}
.pa-acts{display:flex;flex-direction:column;gap:6px}
.pa-act{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 12px;border:1px solid var(--ctl-line);border-radius:12px;background:var(--panel);text-align:start;transition:.11s}
.pa-act:hover:not([disabled]){background:var(--line-2)}
.pa-act:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.pa-act[disabled]{opacity:.55;cursor:not-allowed}
.pa-act>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;background:var(--line-2);color:var(--muted)}
.pa-act>i .ic{width:16px;height:16px}
.pa-act>span{flex:1;min-width:0}
.pa-act b{display:block;font-size:var(--t-xs);font-weight:600;color:var(--text)}
.pa-act small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-top:2px}
.pa-act>.ic{width:16px;height:16px;color:var(--faint);flex:none}
.pa-act.warn>i{background:var(--brass-tint);color:var(--brass-t)}
.pa-act.neg>i{background:var(--neg-tint);color:var(--neg)}
.pa-act.neg b{color:var(--neg-deep)}
.pa-act.pos>i{background:var(--pos-bg);color:var(--pos)}

/* =====================================================================
   THE ROLL PRINTER (2026-10-15, js/printer.js). The print sheet shows the
   80mm receipt exactly as it goes to this device's printer, with a
   progress tick (// SIM: the hardware); the connect sheet lists the
   printers a search finds. Both ride the one modal shell (.mod, --r-modal)
   above an open receipt (#prnRoot comes after #modalRoot).
   ===================================================================== */
#prnRoot .ovl{z-index:75}   /* above a receipt (.ovl 70), below the toasts */
.prn-sheet{width:min(460px,calc(100vw - 32px))}
.prn-sheet.prn-menu{width:min(620px,calc(100vw - 32px))}
.prn-sheet .mb{display:flex;flex-direction:column;gap:14px}
.prn-st,.prn-find{display:flex;align-items:center;gap:12px}
.prn-st b,.prn-find b{display:block;font-size:var(--t-s);font-weight:600}
.prn-st small,.prn-find small{display:block;font-size:var(--t-xs);color:var(--muted);margin-top:2px}
.prn-tick{width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex:none;
  background:var(--tint);color:var(--text);border:1px solid var(--line)}
.prn-done .prn-tick,.prn-find.done>.ic{background:var(--pos-bg);color:var(--pos);border-color:var(--pos-line)}
.prn-find.done>.ic{width:36px;height:36px;padding:8px;border-radius:10px;border:1px solid var(--pos-line);flex:none}
.prn-bar{height:6px;border-radius:99px;background:var(--wash);overflow:hidden}
.prn-bar i{display:block;height:100%;width:0;border-radius:99px;background:var(--brass);transition:width var(--dur-3) var(--ease-out)}
.prn-done .prn-bar i{background:var(--pos)}
.prn-roll{display:flex;justify-content:center;padding:14px 0 18px;background:var(--wash);border-radius:12px;max-height:46vh;overflow:auto}
/* the paper: 72mm of printable width, white in both themes, the roll's own cuts */
.prn-paper{width:72mm;max-width:100%;background:#fff;color:#111;box-shadow:0 2px 10px rgba(var(--sh),.18);border-radius:2px;
  --text:#111;--muted:#444;--faint:#555;--line:#ddd;--line-2:#eee;--panel:#fff;--paper:#fff;--tint:#f6f6f6}
.prn-paper .slip,.prn-paper .rc{width:100%;max-width:100%;margin:0;box-shadow:none;border:0;border-radius:0}
/* the 80mm roll drops what it always drops (as body.print-80 does) */
.print-80-sim .sl-x,.print-80-sim .sl-fl,.print-80-sim .sl-ar,.print-80-sim .sl-sig,.print-80-sim .sig{display:none!important}
.print-80-sim .sl-fs{display:inline}
.prn-src{display:flex;align-items:center;gap:8px;font-size:var(--t-xs);color:var(--muted)}
.prn-src .ic{width:14px;height:14px}
.prn-list{display:flex;flex-direction:column;gap:8px}
.prn-pick{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--ctl-line);border-radius:12px;
  background:var(--panel);text-align:start;cursor:pointer;transition:background var(--dur-1),border-color var(--dur-1)}
.prn-pick:hover{background:var(--tint);border-color:var(--text)}
.prn-pick:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.prn-pick>i{width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--tint);flex:none}
.prn-pick span{flex:1;min-width:0}
.prn-pick b{display:block;font-size:var(--t-s);font-weight:600}
.prn-pick small{display:block;font-size:var(--t-xs);color:var(--muted)}
.prn-panel .setrow-t em{font-style:normal}
.prn-ok{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--pos)}
.prn-sheet .mh h3{display:flex;align-items:center;gap:8px}
.prn-ok::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--pos-ic)}
.prn-sim{margin-top:12px}
.prn-sheet .spin{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--text);flex:none;margin:8px;
  animation:prnspin .8s linear infinite}
@keyframes prnspin{to{transform:rotate(360deg)}}
/* the auto-print status pill: bottom corner, apart from the centred toasts */
.prn-pill{position:fixed;bottom:16px;inset-inline-end:16px;z-index:390;display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:99px;background:var(--float);border:1px solid var(--float-line);box-shadow:var(--e-2);
  font-size:var(--t-xs);font-weight:500;color:var(--text);animation:u var(--dur-2) var(--ease-out)}
.prn-pill .ic{width:15px;height:15px}
.prn-pill.done .ic{color:var(--pos)}
@media print{#prnRoot,.prn-pill{display:none!important}}

/* =====================================================================
   COMMISSION TOTALS (2026-10-16, commTotal in helpers.js): one quiet line
   under the amount — on top, the total the payer hands over; from the
   amount, what the receiver collects. The figure is in the text colour and
   the mono face; what it is made of follows, muted. Never an input.
   ===================================================================== */
.ctot-host:empty{display:none}
.ctot{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:6px;font-size:var(--t-xs);color:var(--muted);line-height:1.45}
.ctot>.ic{width:14px;height:14px;align-self:center;color:var(--muted);flex:none}
.ctot b{color:var(--text);font-weight:600;font-size:var(--t-s)}
.ctot.compact{margin-top:4px;flex-wrap:nowrap;white-space:nowrap}
/* beside the field's label, right-aligned, no height of its own (the transfer dialog) */
label.tlab{display:flex;align-items:center;gap:4px}
label.tlab .ctot-host{margin-inline-start:auto;min-width:0}
label.tlab .ctot.compact{margin-top:0;font-weight:400;letter-spacing:0;text-transform:none}
.ctot.compact b{font-size:var(--t-xs)}
.ctot-m{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ctot-in b{font-weight:600}
.ctot-in em{font-style:normal;color:var(--muted)}
.ctot[data-ctot="ontop"] b{color:var(--text)}
.ctot em{font-style:normal;color:var(--muted)}
.ctot-f{display:inline-flex;gap:4px;align-items:baseline;flex-wrap:wrap}
/* ITEM 4 (2026-10-30): the Activity record — plain lines by day, a dot per kind, the seal at the foot */
.act-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 20px 12px}
.act-bar .lfwrap{margin:0}
/* ITEM 3 (2026-10-31): the Activity filter bar is one tidy row — the day control sheds the
   full-bar chrome (padding / tint / divider) so it sits at the kind segment's and the search's
   height, and the search is the standard field box, not an unstyled container */
.act-bar .lfbar{padding:0;background:none;border-bottom:none}
.act-q{flex:1 1 220px;min-width:200px}
.act-list{display:flex;flex-direction:column;padding:0 20px}
.act-day{font-size:var(--t-xs);font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:12px 0 6px;border-bottom:1px solid var(--line-2)}
.act-row{display:grid;grid-template-columns:14px 1fr auto;gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid var(--line-2)}
.act-row:last-child{border-bottom:0}
.act-dot{width:10px;height:10px;border-radius:50%;margin-top:6px;background:var(--line-2)}
.act-dot.k-money{background:var(--pos)}.act-dot.k-people{background:var(--ser1,var(--brass-t))}.act-dot.k-signin{background:var(--ser6,var(--muted))}.act-dot.k-settings{background:var(--muted)}
.act-row.serious .act-dot{box-shadow:0 0 0 3px var(--brass-tint)}.act-row.critical .act-dot{background:var(--neg);box-shadow:0 0 0 3px var(--neg-tint,var(--brass-tint))}
.act-t{font-size:var(--t-s);line-height:1.35}.act-t b{font-weight:600}
.act-s{font-size:var(--t-xs);color:var(--muted);margin-top:2px}.act-s em{font-style:normal;color:var(--brass-t);font-weight:600}
.act-d{font-size:var(--t-xs);color:var(--muted)}.act-d summary{cursor:pointer;list-style:none;padding:2px 8px;border-radius:8px;border:1px solid var(--line-2)}.act-d summary::-webkit-details-marker{display:none}.act-d[open] summary{background:var(--bg-2,var(--line-2))}
.act-d .sec{padding:6px 2px 0}
.act-foot{display:flex;align-items:center;gap:10px;padding:14px 20px 16px;font-size:var(--t-xs);color:var(--muted);border-top:1px solid var(--line-2);margin-top:8px}
.act-foot.ok .ic{color:var(--pos)}.act-foot.bad{color:var(--neg)}.act-foot.bad .ic{color:var(--neg)}
.act-worth .watch-item{margin-bottom:10px}
/* ITEM 3 (2026-10-30): the reports' two-up pots and the section heads */
.rep-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:14px}
/* A figure per currency wraps inside its cell rather than pushing the second table out of the
   dialog (round 33, B1: the whole book holds three currencies a row). */
.rep-pots .pots{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 10px}
.rep-pots .pot-sep{display:none}
@media (max-width:900px){.rep-two{grid-template-columns:1fr}}
.rep-h4{display:flex;align-items:center;gap:8px;margin:14px 0 8px;font-size:var(--t-s);font-weight:600}
.rep-h4 em{font-style:normal;color:var(--muted);font-weight:500}
.rep-pots td,.jrr-src td{padding:8px 10px}
.jrr-src .num .mono{display:block}
/* ITEM 2 (2026-10-30): the "…" on every transaction row, quiet until hovered or focused */
.ldg-d.has-more{position:relative}
.ldg-d.has-more>.ct-h,.ldg-d.has-more>.sec,.ldg-d.has-more>.ldg-meta{padding-inline-end:32px}
.ldg-d>.rowmore{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);opacity:.55}
tr:hover .ldg-d>.rowmore,tr:focus-within .ldg-d>.rowmore,.ldg-d>.rowmore[aria-expanded="true"]{opacity:1}
.txd .kv>b{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.txe .frow{gap:10px 18px;margin-bottom:10px}
/* ITEM 1 (2026-10-30): the partner's answer — three plain choices, stacked */
.hwans{display:grid;gap:8px}
.hwans .btn{justify-content:flex-start}

/* =====================================================================
   POINT 1: a partner's direct line. The line the partner recorded on its
   account for this business, the entries this book shared as lines, the
   figure between the two in the account's head, and the reports' note.
   ===================================================================== */
.dl-chip{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 8px;border-radius:99px;
  font-size:var(--t-2xs);font-weight:600;line-height:16px;white-space:nowrap;background:var(--wash);color:var(--muted)}
.dl-chip .ic{width:12px;height:12px}
.dl-chip.dl-by{background:var(--panel);color:var(--text);border:1px solid var(--line)}
.dl-chip.dl-ok{background:var(--pos-bg);color:var(--pos)}
.dl-chip.dl-gone{background:var(--neg-tint);color:var(--neg)}
/* the title and its chips wrap as one line of words: on a phone the chips
   go under the title instead of pushing it off the row */
.ldgw table.ldg .ct-k .ct-h.dl-h{flex-wrap:wrap;row-gap:4px}
.ldgw table.ldg .ct-k .ct-h.dl-h>.ct-t{flex:0 1 auto;max-width:100%}
.ldgw table.ldg .ct-k .ct-h.dl-h>.dl-chip{flex:none}
.dl-fig{unicode-bidi:isolate}
/* a withdrawn line: its figure struck through, beside the word that says so */
tr.dl-withdrawn .ct-t .dl-fig{text-decoration:line-through}
/* the partner changed the line: the warning colour, the warning mark and
   the words, so the change is never told by colour alone */
tr.dl-warn>td{background:var(--brass-tint)}
tr.dl-warn>td:first-child{border-inline-start:3px solid var(--brass)}
tr.dl-warn:hover>td{background:var(--brass-wash)}
.ldgw table.ldg .sec.dl-say{display:flex;align-items:center;gap:6px;color:var(--brass-t);font-weight:600}
.dl-say .ic{width:14px;height:14px;flex:none;color:var(--brass-t)}
.dl-say>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* a booked or a withdrawn line moved nothing here: on the card it shows no
   empty Credit, Debit or Balance lane, only its words */
@container ldg (max-width:599px){
  .ldgw table.ldg tr.dl-row td.ldg-0{display:none!important}
  .ldgw table.ldg tbody tr.dl-warn{background:var(--brass-tint)!important;border-inline-start:3px solid var(--brass)!important}
}
@media(max-width:720px){
  .ldgw table.ldg tbody tr.dl-warn{background:var(--brass-tint)!important;border-inline-start:3px solid var(--brass)!important}
  .ldgw table.ldg tr.dl-row td.ldg-0{display:none!important}
}
/* the account's head: what of the figure the partner recorded and this book has not booked */
.acc-unb{display:flex;align-items:flex-start;justify-content:flex-end;gap:6px;max-width:340px;margin-block-start:6px;margin-inline-start:auto;
  font-size:var(--t-2xs);color:var(--muted);line-height:1.5;text-align:start}
.acc-unb .ic{width:13px;height:13px;flex:none;margin-block-start:2px;color:var(--cat-net)}
@media(max-width:900px){.acc-unb{justify-content:flex-start;margin-inline-start:0}}
/* the ledger's footer when partner lines are in range: their count beside the
   movements, and the net named as the book's */
.ts-pl{display:inline-flex;align-items:center;gap:4px;color:var(--muted);white-space:nowrap}
.ts-pl .ic{width:12px;height:12px;color:var(--cat-net)}
/* a box of its own, so its gap from "net" holds when English words run together under right-to-left */
.ts-v .ts-bk{display:inline-block;font-style:normal;margin-inline-start:6px;color:var(--muted)}
/* the reports' note: per partner and currency */
.dl-rec{margin-block-start:16px}
.dl-rec-l{list-style:none;margin:6px 0 8px;padding:0;display:grid;gap:4px}
.dl-rec-l li{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--text)}
.dl-rec-p{font-weight:600}
/* Book it: the button on a line not in this book yet, and its dialog */
.ldgw table.ldg .dl-act{display:flex;margin-block:6px 2px}
.bk-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-block-end:12px}
.bk-fig{flex:0 1 auto;max-width:100%;font-size:var(--t-l);font-weight:600;color:var(--text);margin-inline-end:4px}
.bk-fig.gone .dl-fig{text-decoration:line-through}
/* an edit by the partner, in the warning colour of the line's row, with its mark and its words */
.bk-say{display:flex;align-items:center;gap:6px;margin-block-end:12px;padding:8px 10px;border-radius:6px;
  background:var(--brass-tint);border-inline-start:3px solid var(--brass);color:var(--brass-t);font-size:var(--t-xs);font-weight:600}
.bk-say .ic{width:14px;height:14px;flex:none}
.bk-intro{margin-block:14px 16px}
.bk-what{display:flex;align-items:flex-start;gap:8px;font-size:var(--t-s);font-weight:600;color:var(--text);line-height:1.5}
.bk-what .ic{width:16px;height:16px;flex:none;margin-block-start:2px;color:var(--muted)}
.bk-no{margin-block-start:16px}
.dl-unbook{margin-block-end:16px}
.dl-unbook .ic{color:var(--cat-net)}
.bk-mod .mf .btn-ink:disabled{opacity:.6;cursor:progress}
/* W3: the author's hint under an account field, a refusal inside a dialog,
   and the line a notice leads to, marked a moment */
.fhint.dl-hint{display:flex;align-items:flex-start;gap:6px;margin-block-start:6px;color:var(--muted)}
.fhint.dl-hint .ic{width:13px;height:13px;flex:none;margin-block-start:2px;color:var(--cat-net)}
.note.dl-refused{margin-block-start:14px}
/* the row's top and bottom edge and a wash, never a box per cell */
@keyframes dlFlash{0%,35%{background:var(--brass-wash);box-shadow:inset 0 2px 0 var(--brass),inset 0 -2px 0 var(--brass)}100%{background:transparent;box-shadow:inset 0 0 0 transparent,inset 0 0 0 transparent}}
tr.dl-flash>td{animation:dlFlash 2.6s ease-out}
@media (prefers-reduced-motion:reduce){tr.dl-flash>td{animation:none;box-shadow:inset 0 2px 0 var(--brass),inset 0 -2px 0 var(--brass)}}
/* where a row is a card, its cells carry the wash only and the row alone the outline */
@keyframes dlWash{0%,35%{background:var(--brass-wash)}100%{background:transparent}}
/* an outline inside the card, above its cells, so the frame around the list never clips it */
@keyframes dlRing{0%,35%{outline-color:var(--brass)}100%{outline-color:transparent}}
@container ldg (max-width:599px){
  .ldgw table.ldg tbody tr.dl-flash>td{animation:dlWash 2.6s ease-out;box-shadow:none}
  .ldgw table.ldg tbody tr.dl-flash{outline:2px solid transparent;outline-offset:-2px;animation:dlRing 2.6s ease-out}
}
@media(max-width:720px){
  .ldgw table.ldg tbody tr.dl-flash>td{animation:dlWash 2.6s ease-out;box-shadow:none}
  .ldgw table.ldg tbody tr.dl-flash{outline:2px solid transparent;outline-offset:-2px;animation:dlRing 2.6s ease-out}
}
@media (prefers-reduced-motion:reduce){
  @container ldg (max-width:599px){
    .ldgw table.ldg tbody tr.dl-flash>td{animation:none;box-shadow:none;background:var(--brass-wash)}
    .ldgw table.ldg tbody tr.dl-flash{animation:none;outline:2px solid var(--brass);outline-offset:-2px}
  }
  @media(max-width:720px){
    .ldgw table.ldg tbody tr.dl-flash>td{animation:none;box-shadow:none;background:var(--brass-wash)}
    .ldgw table.ldg tbody tr.dl-flash{animation:none;outline:2px solid var(--brass);outline-offset:-2px}
  }
}
/* a shared entry's edit: what the server keeps as it is reads as held */
.txe .pick-btn:disabled,.txe input:disabled{opacity:.6;cursor:not-allowed}
/* W4: what of the figure the partner recorded, under "Where the relationship stands" */
.acc-unb.acc-unb-rel{justify-content:flex-start;max-width:none;margin:0;padding:2px 18px 14px;text-align:start}
/* the okay of a partner that keeps its own book: what makes each currency's figure */
.okc-parts{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:2px 12px 10px;font-size:var(--t-2xs);color:var(--muted)}
.okc-parts b{font-weight:600;color:var(--text);text-align:end}
.note.dl-okay{margin-block:0 14px}
/* the okay and undo rows on a phone: the currency and its figure, then what the figure is and the tick */
@media(max-width:560px){
  .okc-r{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .okc-r b{justify-self:end}
  .okc-r>span{width:auto;text-align:start}
  .okc-r>span.okc-ag{justify-self:end}
}

/* Joining (21 Nov 2026): what accepting a request brings in, one line per currency */
.netreq .brings{margin-block-start:8px}
/* Round 33, D2: what accepting switches on, under what it brings in */
.netreq .brings-on,.brings + .brings-on{margin-block-start:8px}
.brings-l + .brings-l{margin-block-start:4px}
/* A line carried at the link: read only, its starting line names whose okay it is */
.dl-hist{background:var(--tint-2);color:var(--muted)}
.dl-start{display:block;font-weight:600;color:var(--text);margin-block-end:2px}
/* The account notes: its history shared at the link, a currency not on the board */
.acc-hist .ic{color:var(--muted)}
.acc-offb .ic{color:var(--brass, var(--muted))}

/* Credit and Debit lead; the plain sentence is the small helper under them (21 Nov 2026) */
.acc-help{display:block;font-size:var(--t-xs);font-weight:400;color:var(--muted);line-height:1.4}
.acc-stand .acc-help{margin-block-end:2px}
.ts-v .acc-help{display:inline;margin-inline-start:4px}
.acc-headside b{display:block;color:var(--text);font-weight:600}
.balc-h .acc-help{display:inline;margin-inline-start:4px}
/* A partner's line: whose favour it is in (neutral, no new colour meaning), its note and reference */
.dl-chip.dl-fav-us,.dl-chip.dl-fav-them{background:var(--tint-2);color:var(--text);border:1px solid var(--line)}
.dl-note,.dl-ref{display:flex;align-items:flex-start;gap:6px}
.dl-note .ic{width:13px;height:13px;flex:none;margin-block-start:2px}
/* An okay confirmed with a difference and its balance correction name each other (round 34, A5) */
.ldgw table.ldg .sec.okd-fix{display:flex;align-items:flex-start;gap:6px}
.okd-fix .ic{width:13px;height:13px;flex:none;margin-block-start:2px}
/* A partner's line is read in full: its sentence and the words under it wrap, never cut */
.ldgw table.ldg tr.dl-row .ct-k .ct-t,.ldgw table.ldg tr.dl-row .sec{white-space:normal}
/* The helper is words, not a figure: the body face even inside a figure cell */
.num .acc-help{font-family:'Inter',system-ui,-apple-system,sans-serif;letter-spacing:0}
[lang="fa"] .num .acc-help,[lang="ps"] .num .acc-help{font-family:'Vazirmatn','Inter',system-ui,-apple-system,sans-serif}

/* The list bar on account pages (21 Nov 2026): one order and one look on every
   list there - the days, the kind, the currency, Since last okay, Not agreed
   yet, Show cancelled, the search, Reset filters - and newest or oldest first
   on the result line. */
.lbar .lfbar>.lfc{border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.lbar .lfbar>.lfc.on{background:var(--solid);color:var(--on-solid);border-color:var(--solid)}
.lbar .lfbar>.lfc:disabled{opacity:.55;cursor:not-allowed}
.lbar .lfbar>.lfc:disabled:hover{background:var(--panel);color:var(--muted)}
.lbar .lfbar>.lfc:focus-visible,.lb-order .lfc:focus-visible{outline:2px solid var(--text);outline-offset:1px}
.lbar .lfbar .sbox{flex:1 1 200px}
.lbar .lb-curs{flex-wrap:wrap}
.lb-reset{margin-inline-start:auto}
.lb-reset:disabled{opacity:.5;cursor:default}
/* the cancelled switch: a small track and knob, never the solid fill */
.lbar .lfbar>.lb-sw.on{background:var(--panel);color:var(--text);border-color:var(--line)}
.lb-sw-t{position:relative;display:inline-block;width:24px;height:14px;border-radius:99px;background:var(--line);flex:none;transition:background .12s}
.lb-sw-t>i{position:absolute;inset-block-start:2px;inset-inline-start:2px;width:10px;height:10px;border-radius:50%;background:var(--panel);box-shadow:0 0 0 1px rgba(var(--sh),.12);transition:inset-inline-start .12s}
.lb-sw.on .lb-sw-t{background:var(--solid)}
.lb-sw.on .lb-sw-t>i{inset-inline-start:12px;background:var(--on-solid)}
.lb-res .lb-order{margin-inline-start:auto}
.lb-order{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}
.lb-order .lfc{height:26px;font-size:var(--t-2xs)}
.lb-order .lfc:last-child{border-inline-end:none}
.ph2 .lb-order{margin-inline-end:6px}
@media (prefers-reduced-motion: reduce){.lb-sw-t,.lb-sw-t>i{transition:none}}

/* The range at a glance, over a statement's rows (21 Nov 2026): the server's
   opening, credits, debits and closing per currency, in place of the old
   subtotal and closing rows under them */
.ldg-sum{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px 12px;padding:10px 15px;border-bottom:1px solid var(--line-2);background:var(--panel)}
.ldg-sum-h{flex:1 1 100%;font-size:var(--t-2xs);color:var(--muted);font-weight:600}
.ldg-sum-c{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:8px 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--tint-2);min-width:0}
.ldg-sum-i{display:inline-flex;flex-direction:column;gap:1px;min-width:0}
.ldg-sum-i small{font-size:var(--t-2xs);color:var(--muted);line-height:1.3}
.ldg-sum-i b{font-size:var(--t-s);font-weight:600;color:var(--text)}
.ldg-sum-i b.pos{color:var(--pos)}
.ldg-sum-i b.neg{color:var(--neg)}
.ldg-sum-close b{font-size:var(--t-m)}
.ldg-sum-side{font-style:normal;font-size:var(--t-2xs);font-weight:600;color:var(--muted)}
.ldg-sum-side.pos{color:var(--pos)}
.ldg-sum-side.neg{color:var(--neg)}
@media(max-width:720px){.ldg-sum{padding:10px 12px}.ldg-sum-c{flex:1 1 100%;gap:6px 14px}}

/* The Profit page's one date filter (21 Nov 2026): the four days fit a phone */
.pf-span .lfg{max-width:100%;flex-wrap:wrap}
@media(max-width:420px){.pf-span .lfg .lfc{padding:0 8px}}

/* Stage 6 (21 Nov 2026): the round chips wear the filter bar's chip - 30px high,
   the 8px corner, 0 10px inside, the small type, muted on the card, the hover,
   the focus ring - in both themes. The Overview's three header chips (the day,
   whether it is open, the currencies held) and the board rate chip by the rate
   field (Exchange, Send a transfer). A chip that says a status keeps its colour. */
.hi>span,.xboard{display:inline-flex;align-items:center;gap:6px;height:30px;min-height:30px;padding:0 10px;margin:0;
  border:1px solid var(--line);border-radius:8px;background:var(--panel);
  font-size:var(--t-xs);font-weight:400;color:var(--muted);line-height:1;white-space:nowrap;box-sizing:border-box}
.hi .hi-s{font-weight:400}
.hi .hi-s.on{color:var(--pos);background:var(--pos-bg);border-color:transparent}
/* it sits in a field's label line: its extra height reaches over and under the line, never taller than it */
.xboard{cursor:pointer;flex:none;margin-inline-start:auto;margin-block:-6px;transition:background .12s,color .12s}
.xboard:hover{border-style:solid;border-color:var(--line);background:var(--tint-2);color:var(--text)}
.xboard:active{background:var(--solid);color:var(--on-solid);border-color:var(--solid)}
.xboard:focus-visible{outline:2px solid var(--text);outline-offset:1px}
.xboard .ic{width:13px;height:13px;opacity:.8}
@media (prefers-reduced-motion: reduce){.xboard{transition:none}}

/* Stage 8 (21 Nov 2026): on a phone, a list row becomes a card of label and
   value lines. In RTL a figure cell kept the page's left-to-right figure
   direction for the whole line, so its label sat on the other side from every
   other line ("Standing" on the left). The line follows the page; the figure
   inside it stays left to right (html[dir=rtl] .mono). */
@media(max-width:720px){
  html[dir="rtl"] .tw table:not(.t3) td.num{direction:rtl}
}

/* Stage 8 (21 Nov 2026): on a phone a partner's row puts its actions under it,
   so the name, the place and the Business ID keep the width; the ID never
   breaks in the middle */
.netreq-card .mono{white-space:nowrap}
@media(max-width:720px){
  .netreq{flex-wrap:wrap;align-items:flex-start}
  .netreq-act{flex:1 1 100%;padding-inline-start:47px}
}

/* Stage 8 (21 Nov 2026): "On Balanceko" read 4.44 against its 12% green wash
   on the card; at 8% it reads 4.70 (WCAG AA 4.5) */
.pick-tag.net,.reach-tag.net{background:color-mix(in srgb,var(--pos) 8%,transparent)}

/* The two-sided okay (okay-plan.md, steps O9 to O11): the band while a proposal
   waits, the dialogs' figures with their leading word, the shared-note line,
   what is still on the way, a difference, and an okay agreed by both shops. */
.okb-band{display:grid;gap:10px;margin-block:12px;padding:12px 16px;border:1px solid var(--line);border-inline-start:3px solid var(--brass);border-radius:12px;background:var(--panel)}
.okb-band.theirs{border-inline-start-color:var(--pos);background:var(--brass-tint)}
.okb-head{display:flex;gap:10px;align-items:flex-start}
.okb-head b{display:block;font-weight:600;color:var(--text)}
.okb-head small{display:block;color:var(--muted);font-size:var(--t-xs);margin-block-start:2px}
.okb-figs{display:flex;flex-wrap:wrap;gap:8px 18px}
.okb-cur{display:inline-flex;align-items:center;gap:8px}
.okb-fig{display:inline-flex;align-items:baseline;gap:8px}
.okb-fig b{white-space:nowrap}
.okb-side{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}
/* In a row of the okay's currencies the figure is not the row's small grey label. */
.okc-r>span.okb-fig{flex:none;width:auto;margin-inline-start:auto;font-size:inherit;color:inherit;text-align:end}
.okb-side em{font-style:normal;font-weight:600}
.okb-side small{color:var(--muted);font-size:var(--t-xs)}
.okb-fig.credit .okb-side em{color:var(--pos)}
.okb-fig.debit .okb-side em{color:var(--neg)}
.okb-acts{display:flex;flex-wrap:wrap;gap:8px}
.okb-note{display:flex;gap:6px;align-items:center}
.okb-lead{margin:0 0 14px}
.okb-shared{display:flex;gap:6px;align-items:center;margin-block-start:4px;color:var(--muted);font-size:var(--t-xs)}
.okb-way-note{display:flex;gap:6px;align-items:center;margin-block:10px 0}
.okb-way{margin-block-start:14px}
.okb-way h4{display:flex;gap:6px;align-items:center;margin:0 0 4px;font-size:var(--t-s)}
.okb-way .fine{margin:0 0 8px}
.okb-diff{display:grid;gap:10px;margin-block-start:14px}
.okb-diff ul{margin:6px 0;padding-inline-start:18px}
.okb-open{display:flex;flex-wrap:wrap;gap:6px 14px;margin-block-start:10px}
.okb-open span{display:inline-flex;gap:6px}
.okb-t td{vertical-align:middle}
.okl-both{display:flex;gap:6px;align-items:center;margin-block-end:4px;color:var(--pos);font-size:var(--t-xs);font-weight:600}
.okl-o{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;min-width:0;max-width:100%}
.okl-o .okl-y{min-width:0;overflow-wrap:anywhere}
@media (max-width:640px){
  .okb-band{padding:10px 12px}
  .okb-fig{flex-direction:column;align-items:flex-start;gap:2px}
  .okb-side{flex-direction:column;align-items:flex-start;gap:0}
  .okb-acts .btn{flex:1 1 auto}
  .okb-t th:nth-child(1),.okb-t td:nth-child(1){width:1%}
  /* The currency's code is enough beside two figures on a phone. */
  .okb-t .cn>span:not(.cc){display:none}
}
/* Why a row is locked, in the server's words (round 10, item b): a hold by a
   proposal that waits, and an agreement by both shops, read as sentences. */
.oklock.okheld,.oklock.okboth{text-transform:none;letter-spacing:0;white-space:normal;max-width:100%}
.oklock.okboth{background:var(--pos-bg);color:var(--pos)}
.ldgw table.ldg .ct-k .ct-h>.oklock.okheld,.ldgw table.ldg .ct-k .ct-h>.oklock.okboth{flex:0 1 auto;min-width:0}
/* Where the narrow statement keeps only the plain mark's padlock (@container ldg),
   a hold or an agreement keeps its words. */
.ldgw table.ldg .ct-h .oklock.okheld,.ldgw table.ldg .ct-h .oklock.okboth{font-size:var(--t-2xs);padding:1px 6px;gap:4px}

/* A figure still being worked out on the server, or not worked out (WaitMark, Round 13). */
.wmark{display:inline-flex;align-items:center;gap:3px;min-inline-size:1.6em;vertical-align:middle;color:var(--muted)}
.wmark i{inline-size:5px;block-size:5px;border-radius:50%;background:currentColor;opacity:.3;animation:wmark 1.2s ease-in-out infinite}
.wmark i:nth-child(2){animation-delay:.2s}
.wmark i:nth-child(3){animation-delay:.4s}
.wmark.failed i{animation:none;opacity:.6}
@keyframes wmark{0%,100%{opacity:.3}50%{opacity:1}}

/* The sender's one step on a transfer cancelled by agreement (Round 13): large and yellow, with the amount. */
.hw-take{gap:8px;font-weight:600}
.hw-take b{font-weight:700}

/* ---- Round 14, the approved design changes (overnight 2's taste questions) ---- */
/* 1. Between 1024 and 1360 wide the greeting, like every page title, stays on one line. */
@media(min-width:1024px) and (max-width:1360px){.phead h1{font-size:26px}}
/* 2. "Paid out today": the phrase and the change against yesterday stay on one line, the dot between
   them. Where a card is too narrow for both (a phone), the change takes its own line, whole, and the
   dot goes, so no dot is left alone at a line's end. */
.stat .st-s{white-space:nowrap;overflow-wrap:normal}
.stat .st-s .dsep{margin-inline:4px}
.stat .st-s .st-d{white-space:nowrap}
@media(max-width:560px){
  .stat .st-s{white-space:normal}
  .stat .st-s .st-d{display:block}
  .stat .st-s .st-d .dsep{display:none}
}
/* 3. Accounts, 721 to 1080 wide: the business's own four sit two by two. */
@media(min-width:721px) and (max-width:1080px){#sysGrid{grid-template-columns:repeat(2,1fr)}}
/* 4. Reports under 1100 wide: each card's figure sits below its words. */
@media(max-width:1099px){
  .rep-card{grid-template-columns:1fr}
  .rep-card>.rep-fig{grid-column:1;grid-row:auto;flex-direction:row;align-items:baseline;gap:8px;text-align:start}
}
/* 8. Accounts, 721 to 1080 wide: the three summary cards sit in one row. */
@media(min-width:721px) and (max-width:1080px){
  .figs.f3{grid-template-columns:repeat(3,1fr)}
  .figs.f3>div:nth-child(3){grid-column:auto}
  .figs.f3>div{border-top:none;border-inline-start:1px solid var(--line)}
  .figs.f3>div:first-child{border-inline-start:none}
}
/* 9. Every list's titles and notes wrap onto a second line instead of being cut, and the lock
   reason keeps its words at every width (the rules above, at their own places). */
.ldgw table.ldg .ct-h .oklock{white-space:normal;text-align:start}

/* 9. A chip inside a wrapping title breaks only between words: the watch flag keeps its one word, the
   lock its words whole. */
.ldgw table.ldg .ct-h .watch-chip,.ct-k .ct-t .watch-chip{white-space:nowrap;overflow-wrap:normal}
.ldgw table.ldg .ct-h .oklock,.ct-k .ct-t .oklock{overflow-wrap:normal;word-break:normal}

/* ---- Round 14, D: the Hawala rows made compact ---- */
/* D1. One status label: one short line, one style, at every width; finished reads quiet grey, a step
   still to take reads strong. Worn by every list that shows a transfer's standing. */
.stc{height:22px;max-width:100%;white-space:nowrap;line-height:22px}
.stc.sq{background:var(--wash);color:var(--muted)}
.stc.act{background:var(--brass);color:var(--on-brass)}
.hw-take{gap:8px;font-weight:600;white-space:nowrap}
.hw-take b{font-weight:700}
.hw-tb{white-space:nowrap}
/* D4. A name in a transfer row is never cut: an account's name wraps like any other; and the number
   column holds the shop's own long numbers (HW-2026-88215) whole */
.hwt .hwwho .acc-link>span{white-space:normal;overflow:visible;text-overflow:clip}
.hwt .hwwho .acc-link{max-width:100%}

/* ---- Round 14, B: the copy step beside a number (components/CopyNumber.tsx) ---- */
.cpy{display:inline-flex;align-items:center;vertical-align:middle;margin-inline-start:3px;flex:none;line-height:0}
.cpy-n{display:inline-flex;align-items:center;white-space:nowrap;max-width:100%}
.cpy-b{display:inline-grid;place-items:center;inline-size:24px;block-size:24px;margin-block:-4px;padding:0;border:0;border-radius:6px;
  background:none;color:var(--muted);cursor:pointer;flex:none}
.cpy-b .ic{inline-size:13px;block-size:13px}
.cpy-b:hover{background:var(--tint);color:var(--text)}
.cpy-b:focus-visible{outline:2px solid var(--text);outline-offset:0}
.cpy-b.done{color:var(--pos)}
/* the screen's controls (the copy step, anything marked data-screen-only) never reach paper: not in print,
   and not while a paper is drawn into its PDF or picture (data-paper, lib/screenOnly.ts), so the number closes up */
@media print{.cpy,[data-screen-only]{display:none!important}}
[data-paper] .cpy,[data-paper] [data-screen-only]{display:none!important}
/* the bell: a notice and the numbers it names, each with its copy step, under it */
.np-row{border-bottom:1px solid var(--line-2)}
.np-row:last-child{border-bottom:none}
.np-row>.np-i{border-bottom:none}
.np-row.seen .np-cp{opacity:.55}
.np-cp{display:flex;flex-wrap:wrap;gap:4px 12px;padding-block:0 10px;padding-inline:56px 15px;font-size:var(--t-2xs);color:var(--muted)}
/* the lock's words flow as one line of text, its number and copy step inline with them */
.oklock .okl-t{display:inline;min-width:0}
/* in a narrow lock chip the copy step may drop under its number; the number itself never breaks */
.oklock .cpy-n{flex-wrap:wrap;white-space:normal}
.cpy-n>.mono,.cpy-n>[dir="ltr"]{white-space:nowrap}
/* a transfer's number keeps to one piece; where its cell is narrow the copy step goes under it */
.hwt td.hc .cpy-n{flex-wrap:wrap;row-gap:2px}

/* ---- Round 15, A: the shared pieces of every transaction list ---- */
/* A1. The one label (components/Label.tsx): small corners, 22px high, one line, never wrapping. */
.lbl{display:inline-flex;align-items:center;gap:5px;block-size:22px;max-inline-size:100%;padding-block:0;padding-inline:7px 8px;
  border-radius:6px;border:0;font-size:var(--t-2xs);font-weight:600;line-height:22px;white-space:nowrap;letter-spacing:.01em;
  vertical-align:middle;flex:none;text-transform:none}
.lbl::before{display:none}
.lbl-t{white-space:nowrap}
.lbl-i,.lbl .ic{inline-size:12px;block-size:12px;flex:none}
.lbl-pos{background:var(--pos-bg);color:var(--pos)}
.lbl-warn{background:var(--brass-tint);color:var(--brass-t)}
.lbl-neg{background:var(--neg-bg);color:var(--neg)}
.lbl-act{background:var(--brass);color:var(--on-brass)}
.lbl-sq{background:var(--wash);color:var(--muted)}
.lbl-info{background:var(--wash);color:var(--text)}
/* A2. A type label: the kind's icon in its own colour on a quiet ground */
.lbl-kind{background:var(--wash);color:var(--text)}
.lbl-kind .lbl-i{color:var(--ki-other)}
.lbl-kind.kc-deposit .lbl-i{color:var(--ki-deposit)}
.lbl-kind.kc-withdraw .lbl-i{color:var(--ki-withdraw)}
.lbl-kind.kc-exchange .lbl-i{color:var(--ki-exchange)}
.lbl-kind.kc-hawala .lbl-i{color:var(--ki-hawala)}
.lbl-kind.kc-transfer .lbl-i{color:var(--ki-transfer)}
.lbl-kind.kc-partner .lbl-i{color:var(--ki-partner)}
.lbl-kind.kc-expense .lbl-i{color:var(--ki-expense)}
.lbl-kind.kc-bank .lbl-i{color:var(--ki-bank)}
.lbl-kind.kc-profit .lbl-i{color:var(--ki-profit)}
.lbl-kind.kc-okay .lbl-i{color:var(--brass-t)}
/* the other chips and tags that were round: small corners too */
.lfpill,.lfc em,.pick-tag,.reach-tag,.np-c,.hwreq-n,.scan-conf,.okl-now,.dl-chip,.watch-chip,.tag,.dstat,.okchip,.oklock{border-radius:6px}
/* A3. The money figure (components/Money.tsx) */
.fig{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap;vertical-align:middle}
.fig b{font-size:var(--t-s);font-weight:500;color:var(--text)}
.fig .cc{font-size:10.5px;height:16px;min-width:26px}
.fig-cr b{color:var(--pos)}
.fig-db b{color:var(--neg)}
.fig-bal b{font-size:15px;font-weight:700;color:var(--text)}
.fig-bal.fig-neg b{color:var(--neg)}
.fig-none{color:var(--faint)}
/* A4. One background per row, at rest, on hover and when selected; a thin divider before Balance after */
td.bal-c,th.bal-h,tr.click:hover td.bal-c,.hwt tr.hwr:hover td.bal-c{background:transparent}
td.bal-c,th.bal-h{border-inline-start:1px solid var(--line-2)}
tr.dgrp td.bal-g,.tw table.t3 tr.dgrp td.bal-g{background:var(--tint-2)}
.hwt tr.hwr.sel{background:var(--brass-tint)}
.hwt tr.hwr.sel td,html[dir="rtl"] .hwt tr.hwr.sel td{background:transparent;box-shadow:none}
.hwt tr.hwr.sel>td:first-child{box-shadow:inset 3px 0 0 var(--brass)}
html[dir="rtl"] .hwt tr.hwr.sel>td:first-child{box-shadow:inset -3px 0 0 var(--brass)}
.hwt tr.hwr:focus-visible td{box-shadow:none}
.hwt tr.hwr:focus-visible>td:first-child{box-shadow:inset 3px 0 0 var(--text)}
/* the phone statement's balance keeps the row's ground: no box of its own */
@container ldg (max-width:599px){.ldgw table.ldg td.ldg-bal{background:none!important;padding-inline:0!important}}
@media(max-width:720px){.ldgw table.ldg td.ldg-bal{background:none!important;padding-inline:0!important}}

/* ---- Round 15, B: the Hawala Sent and Incoming lists ---- */
.vh{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* B4. a row's steps: 30px, one line, the words alone; the menu a 30px square at the end */
.tw table.hwt td.hx .btn.hwb{block-size:30px;min-block-size:30px;padding-block:0;padding-inline:11px;line-height:28px;white-space:nowrap;gap:0;font-weight:600}
.tw table.hwt td.hx .btn.rowmore{inline-size:30px;block-size:30px;padding:0;justify-content:center}
.tw table.hwt td.hx .btn.rowmore .ic{margin:0}
/* B2. the names on two lines: the sender and the arrow, then the receiver; one grey line under */
.tw table.hwt .hwwho{display:block;line-height:18px}
.tw table.hwt .hwwho .hwp{display:block;overflow-wrap:anywhere}
.tw table.hwt .hwwho .hwp-from i{display:inline-grid;vertical-align:-2px;margin-inline-start:6px;color:var(--faint)}
.tw table.hwt .hwwho .acc-link{display:inline;vertical-align:baseline}
.tw table.hwt td .sec{margin-top:3px}
/* the When cell's one-line form, for the tablet and the phone */
.hww-l{display:none;white-space:nowrap}
.tw table.hwt td.ha .fig{flex-wrap:wrap;row-gap:2px}
.tw table.hwt td.ha .sec{display:block;white-space:nowrap}
/* round 33, A3: a commission paid in another currency, the agreed figure on its own line under it */
.tw table.hwt td.ha .sec .fee-agreed{display:block}
/* B5. 1024 and wider: a table with a header, every column a fixed width but the names */
@media(min-width:1024px){
  .tw table.hwt{min-width:0}
  /* measured: the widest status 96px, a five-digit amount or balance at 14px 120px, "Yesterday" 70px,
     Move + Cancel + the menu 148px; a long number's copy step drops under it at these widths */
  .tw table.hwt col.c-st{width:112px}.tw table.hwt col.c-code{width:120px}.tw table.hwt col.c-amt{width:144px}
  .tw table.hwt col.c-when{width:84px}.tw table.hwt col.c-act{width:168px}.tw table.hwt col.c-bal{width:140px}
  .tw table.hwt tbody tr.hwr>td.hs{padding-inline:8px}
  .tw table.hwt tbody tr.hwr>td.hw{padding-inline:7px}
  .tw table.hwt td.ha>.fig b,.tw table.hwt td.hb .fig-bal b{font-size:14px}
  .tw table.hwt thead th{padding-inline:10px;white-space:nowrap;font-family:inherit}
  .tw table.hwt td.hx .btn.hwb{padding-inline:10px}
  .tw table.hwt thead th.ha,.tw table.hwt thead th.hx,.tw table.hwt thead th.hb{text-align:end}
  .tw table.hwt tbody tr.hwr>td{height:auto;padding-block:10px;padding-inline:10px;vertical-align:middle}
  .tw table.hwt tbody tr.hwr>td.hx{display:table-cell;text-align:end;white-space:nowrap;padding-inline-end:12px;width:auto}
  .tw table.hwt tbody tr.hwr>td.hx>*{margin-inline-start:6px}
  .tw table.hwt tbody tr.hwr>td.hb{display:table-cell}
  .tw table.hwt tbody tr.hwr .sec{display:block}
}
@media(min-width:1441px){
  .tw table.hwt col.c-st{width:128px}.tw table.hwt col.c-code{width:160px}.tw table.hwt col.c-amt{width:156px}
  .tw table.hwt col.c-when{width:92px}.tw table.hwt col.c-act{width:184px}.tw table.hwt col.c-bal{width:156px}
  .tw table.hwt td.ha>.fig b,.tw table.hwt td.hb .fig-bal b{font-size:15px}
  .tw table.hwt td.hx .btn.hwb{padding-inline:11px}
  .tw table.hwt tbody tr.hwr>td{padding-inline:12px}
}
/* under 1024 the list is not a table: no header, no column widths, the day rows and the end row whole */
@media(max-width:1023px){
  .tw table.hwt,.tw table.hwt tbody{display:block;min-width:0;width:100%}
  .tw table.hwt colgroup,.tw table.hwt thead{display:none}
  .tw table.hwt tbody tr.hwday,.tw table.hwt tbody tr.hwend,.tw table.hwt tbody tr.hwday td,.tw table.hwt tbody tr.hwend td{display:block}
  .tw table.hwt tbody tr.hwr>td{display:block;height:auto;padding:0;border:none;min-width:0;text-align:start}
  .tw table.hwt tbody tr.hwr>td::before{display:none}
  .tw table.hwt tbody tr.hwr>td.hb{display:none}
  .tw table.hwt .hww-1,.tw table.hwt .hww-2{display:none}
  .tw table.hwt .hww-l{display:inline;font-size:var(--t-xs);color:var(--muted)}
  .tw table.hwt tbody tr.hwr .sec{display:block}
  .tw table.hwt tbody tr.hwr>td.hx{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px;width:auto;max-width:none;overflow:visible}
}
/* B6. 721 to 1023: one grid, the same columns in every row. Status with the number under it; the
   names and the grey line; the amount with the fee and the date under it; the steps at the end. */
@media(min-width:721px) and (max-width:1023px){
  .tw table.hwt tbody tr.hwr{display:grid;grid-template-columns:128px minmax(0,1fr) 140px 176px;grid-template-rows:auto auto 1fr;
    column-gap:12px;row-gap:3px;align-items:start;padding:11px 14px;border-bottom:1px solid var(--line-2)}
  .tw table.hwt tbody tr.hwr>td.hs{grid-column:1;grid-row:1}
  .tw table.hwt tbody tr.hwr>td.hc{grid-column:1;grid-row:2}
  .tw table.hwt tbody tr.hwr>td.ht{grid-column:2;grid-row:1/4}
  .tw table.hwt tbody tr.hwr>td.ha{grid-column:3;grid-row:1/3;text-align:end}
  .tw table.hwt tbody tr.hwr>td.ha .fig{justify-content:flex-end}
  .tw table.hwt tbody tr.hwr>td.hw{grid-column:3;grid-row:3;text-align:end}
  .tw table.hwt tbody tr.hwr>td.hx{grid-column:4;grid-row:1/4;align-self:center}
}
/* B7. 720 and narrower: a card. Status, number, date and time at the end; the names and the grey
   line; the amount with its fee under it at the start, the steps at the end. */
@media(max-width:720px){
  .tw table.hwt tbody tr.hwr{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:8px;padding:12px 14px;
    margin:0 0 8px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
  .tw table.hwt tbody tr.hwr>td{text-align:start!important}
  .tw table.hwt tbody tr.hwr>td.hs{order:1;flex:none}
  .tw table.hwt tbody tr.hwr>td.hc{order:2;flex:1 1 auto}
  .tw table.hwt tbody tr.hwr>td.hw{order:3;flex:none;text-align:end!important}
  .tw table.hwt tbody tr.hwr>td.ht{order:4;flex:1 1 100%}
  .tw table.hwt tbody tr.hwr>td.ha{order:5;flex:1 1 auto}
  .tw table.hwt tbody tr.hwr>td.ha .fig{justify-content:flex-start}
  .tw table.hwt tbody tr.hwr>td.hx{order:6;flex:none;margin-inline-start:auto}
  .tw table.hwt tbody tr.hwr.sel{background:var(--brass-tint)}
  /* the day between the cards is a plain line, not a card of its own */
  .tw table.hwt tbody tr.hwday{margin:4px 0 8px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  .tw table.hwt tbody tr.hwday td{text-align:start!important;border:0!important;background:none!important;padding:0 2px!important;height:auto!important;position:static}
}

/* ---- Round 15, C: the journal, the day book and every statement ---- */
/* a transfer's own number under the entry's: its copy step drops under it where the column is narrow */
table.ldg td.ldg-no .cpy-n{flex-wrap:wrap;row-gap:1px}
table.ldg td.ldg-no .ldg-id2{white-space:normal}
/* the day book's balance column holds the range's net with its word */
table.ldg.jrbook th.l-bal{width:184px}
@container ldg (min-width:1100px){table.ldg.jrbook th.l-bal{width:196px}}
/* a mixed statement's balance names whose it is: the grid gives it the room */
@container ldg (max-width:899px){
  .ldgw table.ldg.ldg-mixed tbody tr.stmr,.ldgw table.ldg.jrbook tbody tr.stmr{grid-template-columns:160px minmax(0,1fr) 132px 196px}
}
/* the okay row keeps its own tint across the whole row, under the pointer too */
table.ldg tr.okdiv.click:hover>td,table.ldg tr.okdiv.click:hover>td.bal-c{background:var(--brass-tint)}
.okd-now.lbl{margin-inline-start:8px;block-size:22px;line-height:22px}

/* ---- Round 15, D: the other lists ---- */
/* a report's figure is inline, so its export reads the figure and the currency as one line */
.fig.fig-inl{display:inline;white-space:nowrap}
.fig.fig-inl .cc{display:inline-flex;vertical-align:1px}
/* an account's name in any list wraps instead of being cut */
.tw table td .acc-link>span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.tw table td .acc-link{max-width:100%}
/* a locked row keeps its one ground under the pointer, the balance cell with it */
table tr.lok.click:hover>td,table tr.lok.click:hover>td.bal-c{background:var(--tint-2)}
@container ldg (max-width:899px){.ldgw table.ldg tbody tr.stmr.lok{background:var(--tint)}}
@media(max-width:720px){.ldgw table.ldg tbody tr.stmr.lok{background:var(--tint)!important}}

/* ---- Round 15, F: forms open empty ---- */
/* the send form says, on every width, that the number comes with the save */
.hws-no{display:flex}
/* a save button that is off looks off; the reason is said beside it */
.hws-act .btn:disabled,.ebar .btn-ink:disabled{opacity:.5;cursor:not-allowed}
.hws-why,.ewhy,.fhint.phone-in-line{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--muted);font-size:var(--t-xs)}
.hws-why .ic,.ewhy .ic,.fhint.phone-in-line .ic{inline-size:13px;block-size:13px;flex:none}
.ebar .ewhy{margin-top:0}
/* Round 15b: right to left, a ledger row's number and time follow the page, so they sit under
   their headings and a card's time sits at its end; on a card the money and the balance follow
   it too, so each word sits at the start and its figure after it. A figure and a date keep their
   own left-to-right order inside. */
html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td:is(.ldg-no,.ldg-when){direction:rtl}
html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td .fig{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.ldg-when :is(.cw-1,.cw-2){direction:ltr;unicode-bidi:isolate;text-align:end}
@container ldg (max-width:899px){
  html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.ldg-when .cw-2::before{content:none}
  html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.ldg-when .cw-2{margin-inline-end:1ch}
}
@container ldg (max-width:599px){
  html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.cm{direction:rtl}
}
@media(max-width:720px){
  html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.cm{direction:rtl}
  html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.ldg-when .cw-2::before{content:none}
  html[dir="rtl"] .ldgw table.ldg tbody tr.stmr>td.ldg-when .cw-2{margin-inline-end:1ch}
}
/* Round 17: on a phone a list row is a card. The even 64px height and padding the table
   gives a row it can open never reach the card, so no line of it stands in an empty band. */
@media(max-width:720px){
  .tw table.t3 tbody tr.click>td{height:auto;padding:0}
  /* an account's transfers carry two money lines: each on its own line, with its word */
  .tw table.t3.t3-words td.cm{flex-basis:100%;justify-content:space-between;margin-inline-end:0;margin-block-end:4px}
  .tw table.t3.t3-words td.cm::before{content:attr(data-l);display:inline;color:var(--faint);
    font-family:'Inter',sans-serif;font-size:var(--t-2xs);font-weight:600;text-transform:uppercase;letter-spacing:.08em}
  html[dir="rtl"] .tw table.t3.t3-words td.cm{direction:rtl}
  html[dir="rtl"] .tw table.t3.t3-words td.cm .fig{direction:ltr;unicode-bidi:isolate}
  /* a day's row is a plain band between the cards, as the ledger lists draw it, not a card of its own */
  .tw table.t3 tbody tr.dgrp{display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:8px 14px;margin:0 0 9px;background:var(--tint-2);border:none;border-radius:8px}
  .tw table.t3 tbody tr.dgrp>td,.tw table.t3 tbody tr.dgrp>td[colspan]{display:block;position:static;height:auto;
    padding:0;border:none;background:none;text-align:start!important}
  .tw table.t3 tbody tr.dgrp>td.bal-g{height:auto;padding:0;line-height:18px;text-align:end!important;font-size:var(--t-xs)}
  .tw table.t3 tbody tr.dgrp{flex-wrap:nowrap}
  .tw table.t3 tbody tr.dgrp::before,.tw table.t3 tbody tr.dgrp::after{display:none}
}
/* Round 17: right to left, a Reports figure keeps its currency tag after it ("220.00 USD"),
   as the ledger lists do; the cell around it follows the page. */
html[dir="rtl"] .rep-tw .fig{direction:ltr;unicode-bidi:isolate}
/* the totals a day's row carries ("⇢ 0 AFN · 350k USD") read left to right as one run */
html[dir="rtl"] tr.dgrp td.bal-g .bal-st{direction:ltr;unicode-bidi:isolate}
/* Round 17: the first screen after a temporary password, a password of one's own */
.np-wrap{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:var(--bg)}
.np-card{width:100%;max-width:420px;display:flex;flex-direction:column;gap:14px;padding:28px 24px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--e-1)}
.np-card h1{margin:0;font-size:var(--t-l);font-weight:600;color:var(--text)}
.np-mark{display:inline-grid;place-items:center;inline-size:40px;block-size:40px;border-radius:12px;background:var(--brass-tint);color:var(--brass-t)}
.np-mark .ic{inline-size:20px;block-size:20px}
.np-lead{margin:0;color:var(--muted);font-size:var(--t-s);line-height:1.5}
.np-who{margin:0;font-size:var(--t-xs);color:var(--muted)}
.np-err{color:var(--neg-deep)}
.np-why{margin:0}
.np-go{justify-content:center}
.np-out{justify-content:center}
/* Round 17: the console on a company, its tabs and panels */
.pa-tabs{margin-bottom:16px}
.pa-tabs .tab{display:inline-flex;align-items:center;gap:6px}
.pa-tabs .tab .ic{inline-size:14px;block-size:14px}
.pa-panel{display:flex;flex-direction:column;gap:10px}
.pa-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
.pa-form .field{margin:0}
.pa-row-end{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-block-start:6px}
.pa-people{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.pa-person{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px 14px;align-items:center;padding:12px 14px;border-block-start:1px solid var(--line);background:var(--panel)}
.pa-person:first-child{border-block-start:0}
.pa-person.off .pa-p-who b{color:var(--muted)}
.pa-p-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.pa-p-who b{font-weight:600;color:var(--text);overflow-wrap:anywhere}
.pa-p-who .mono{align-self:flex-start;font-size:var(--t-xs);color:var(--muted);overflow-wrap:anywhere}
.pa-p-who small{font-size:var(--t-2xs);color:var(--faint)}
.pa-p-state{display:flex;align-items:center;gap:8px}
.pa-p-role{min-inline-size:132px}
.pa-p-acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pa-add{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px dashed var(--ctl-line);border-radius:12px}
.pa-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-block-end:1px solid var(--line)}
.pa-line>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.pa-line b{font-weight:600;color:var(--text)}
.pa-line small{font-size:var(--t-2xs);color:var(--muted);line-height:1.5}
.pa-seg{flex:none}
.pa-block{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-block-end:1px solid var(--line)}
.pa-block>b{font-weight:600;color:var(--text)}
.pa-pay{padding:8px 0}
.pa-why{margin-block-start:10px}
@media(max-width:720px){
  .pa-form{grid-template-columns:minmax(0,1fr)}
  .pa-person{grid-template-columns:minmax(0,1fr)}
  .pa-p-state,.pa-p-acts{justify-content:flex-start}
  .pa-line{flex-direction:column;align-items:stretch}
  .pa-line .curseg,.pa-line>.btn{align-self:flex-start}
}


/* Round 21: the operator's My account in the console */
.ma-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;max-inline-size:1100px}
.ma-wide{grid-column:1/-1}
.ma-panel .pb{display:flex;flex-direction:column;gap:6px}
.ma-fine{margin-block:8px 0}
.ma-sess{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ma-sess>li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-block:10px;border-block-end:1px solid var(--line)}
.ma-sess>li:last-child{border-block-end:0}
.ma-s-who{display:flex;flex-direction:column;gap:3px;min-inline-size:0}
.ma-s-who b{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:600}
.ma-s-who small{color:var(--muted);font-size:var(--t-xs);display:flex;gap:6px;flex-wrap:wrap}
.ma-s-seen{display:flex;align-items:center;gap:10px;font-size:var(--t-xs)}
.ma-this{background:var(--brass-tint);color:var(--brass-t)}
@media(max-width:760px){
  .ma-grid{grid-template-columns:minmax(0,1fr)}
}

/* the shop's logo and its partners' (round 23): the picture is fit inside the mark,
   never stretched or cut, on a white ground in both themes. It is placed absolutely
   inside its box, so its height resolves whatever the box's own layout is. */
.bmark.logo,.ph-biz.logo,.ms-switch .bmark.logo,.bizlogo-c .bmark.logo,.net-logo.logo,.acc-avatar.logo,.pick-ic.logo,.logo-sm{
  position:relative;overflow:hidden;background:var(--logo-ground);border:1px solid var(--logo-edge)}
.bmark.logo img,.ph-biz.logo img,.net-logo.logo img,.acc-avatar.logo img,.pick-ic.logo img,.logo-sm img{
  position:absolute;inset-block-start:2px;inset-inline-start:2px;inline-size:calc(100% - 4px);block-size:calc(100% - 4px);
  object-fit:contain;display:block}
.acc-avatar.logo img{inset-block-start:5px;inset-inline-start:5px;inline-size:calc(100% - 10px);block-size:calc(100% - 10px)}
.logo-sm{display:inline-flex;inline-size:18px;block-size:18px;border-radius:5px;flex:none;vertical-align:middle;margin-inline-end:6px}
.logo-sm img{inset-block-start:1px;inset-inline-start:1px;inline-size:calc(100% - 2px);block-size:calc(100% - 2px)}
/* the upload in Business profile and Settings */
.logo-field{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-inline-size:0;max-inline-size:100%}
.logo-acts{display:inline-flex;flex-wrap:wrap;gap:6px}
.logo-limits{margin:0;font-size:var(--t-2xs);color:var(--muted);text-align:end;max-inline-size:34ch}
.logo-ask{display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:var(--t-xs);text-align:end}
.logo-pv{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;
  background:var(--tint);max-inline-size:100%}
.logo-pv-big{inline-size:96px;block-size:96px;flex:none;display:grid;place-items:center;border-radius:12px;
  background:var(--logo-ground);border:1px solid var(--logo-edge);padding:6px}
.logo-pv-big img{max-inline-size:84px;max-block-size:84px;object-fit:contain;display:block}
.logo-pv-side{display:flex;flex-direction:column;gap:6px;min-inline-size:0;font-size:var(--t-xs)}
.logo-pv-at{display:inline-flex;align-items:center;gap:8px;color:var(--muted)}
.logo-pv-size{color:var(--muted);font-size:var(--t-2xs)}
.logo-pv-warn,.logo-no{color:var(--neg);font-size:var(--t-xs)}
.logo-no{margin:0;text-align:end;max-inline-size:40ch}
@media(max-width:560px){
  .logo-field,.logo-ask{align-items:stretch}
  .logo-limits,.logo-no,.logo-ask{text-align:start;max-inline-size:none}
  .logo-pv{align-items:flex-start}
  .logo-pv-big{inline-size:72px;block-size:72px}
  .logo-pv-big img{max-inline-size:60px;max-block-size:60px}
}

/* Round 26: the drawer count at the close (components/journal/DrawerCount.tsx). The count is a
   field like every other, its figure left to right and lined up with the Evening column; "Same
   as the book" sits between the two. On a phone each currency is a card and its controls follow
   its lines in order. A closed day whose count an earlier change has overtaken says so under it. */
.dc-fill{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin:0 0 10px}
.dc-fill .fine{margin:0;min-inline-size:0;flex:1 1 24ch}
.dc-tw{border:1px solid var(--line);border-radius:9px}
.mod:has(.dc-tbl){max-width:1040px}
.dc-tbl th.dc-s,.dc-tbl td.dc-s{inline-size:1%;padding-inline:6px}
.dc-same{white-space:nowrap}
.dc-same:disabled{opacity:.45;cursor:not-allowed}
.dc-field{display:block;margin:0}
.dc-field input.dc-count{inline-size:10em;max-inline-size:100%;text-align:end;font-variant-numeric:tabular-nums;letter-spacing:var(--track-2)}
/* Between the phone's cards and a wide screen the day's morning, credit and debit step aside (the export
   keeps them): the evening, its control and the count stay whole. */
@media(min-width:721px) and (max-width:1060px){.dc-tbl .dc-o{display:none}}
@media(min-width:1061px) and (max-width:1120px){.dc-tbl .cn>span:not(.cc){display:none}}
.dc-stale{margin-block-start:10px}
@media(max-width:720px){
  .dc-tw{border:none;border-radius:0}
  .dc-tbl td.dc-s{justify-content:flex-end;padding-inline:0}
  .dc-field input.dc-count{inline-size:12em}
}

/* Round 27: the line under every shop's papers, set in the console (components/platform/CompanyPanels.tsx). */
.pa-paperline{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:4px 16px;align-items:start;padding:4px 18px 16px}
.pa-paperline .field{margin:0}
.pa-paperline-go{padding-block-start:22px}
@media(max-width:720px){.pa-paperline{grid-template-columns:minmax(0,1fr);padding-inline:14px}.pa-paperline-go{padding-block-start:0}}

/* A shop's standing (round 31): the banner on every page, and the red ring round its mark
   while view-only, in the rail and in Business profile. */
.st-banner{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--tint);font-size:var(--t-sm)}
.st-banner p{margin:0}.st-banner p+p{margin-block-start:4px}
.st-banner.neg{border-color:var(--neg);background:color-mix(in srgb,var(--neg) 10%,transparent)}
.st-banner.warn{border-color:var(--brass-line);background:var(--brass-tint)}
html[data-view-only] .bizbtn .bmark,html[data-view-only] .bizlogo-c .bmark{box-shadow:0 0 0 2px var(--neg),0 0 0 4px color-mix(in srgb,var(--neg) 25%,transparent)}
.pa-tag.st-view_only,.pa-tag.st-closed{color:var(--neg)}.pa-tag.st-in_grace,.pa-tag.st-due_soon{color:var(--brass-t)}
.pa-bal{font-size:var(--t-xs)}.pa-bal.neg{color:var(--neg)}
.pa-pay.rev{opacity:.7}
.pa-fin{display:flex;flex-direction:column;gap:12px}.pa-fin-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pa-fin-t{inline-size:100%;margin-block-end:12px}.pa-fin-all td{border-block-start:1px solid var(--line)}
.pa-fin-states{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:8px}
.pa-check{display:flex;gap:8px;align-items:center;margin-block:8px}
/* Round 32 (A4): while view-only the shop's own write controls, and its exports and prints while downloads are off, are greyed; pressed, they say the banner's sentence */
html[data-view-only] [data-write],html[data-downloads-off] [data-download]{opacity:.45;filter:grayscale(1);cursor:not-allowed}
html[data-view-only] [data-write] *,html[data-downloads-off] [data-download] *{cursor:not-allowed}
.vo-pb{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.vo-pb>svg{color:var(--neg);flex:none}.vo-w{flex:1;min-inline-size:220px}.vo-w b{font-weight:600}.vo-w .sec{font-size:var(--t-xs);margin-block-start:2px}

/* Round 32: two-step login. The second step on the sign-in card, and the set-up (components/twostep). */
.ts-step .lg-head p{max-inline-size:34em}
input.ts-code{font-size:var(--t-l);letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums}
.ts-alt{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;margin-block-start:10px}
.ts-panel{margin-block-end:16px}
.ts-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ts-lead{margin-block:0 14px}
.ts-how{margin-block:0 14px;padding-inline-start:20px;font-size:var(--t-sm);line-height:1.6}
.ts-how li+li{margin-block-start:4px}
.ts-scan{display:flex;gap:18px;align-items:flex-start;margin-block-end:14px}
.ts-qr{inline-size:184px;block-size:184px;flex:none;border-radius:8px;border:1px solid var(--line)}
.ts-keybox{display:flex;flex-direction:column;gap:4px;min-inline-size:0}
.ts-keybox .fine{margin-block:8px 0}
.ts-l{font-size:var(--t-2xs);color:var(--muted);text-transform:uppercase;letter-spacing:var(--track-2)}
.ts-key{font-size:var(--t-sm);line-height:1.7;word-break:break-all;user-select:all;background:var(--tint);border:1px solid var(--line);border-radius:8px;padding:6px 10px}
.ts-acct{font-size:var(--t-xs);word-break:break-all}
@media(max-width:560px){
  .ts-scan{flex-direction:column;align-items:center}
  .ts-keybox{inline-size:100%}
  .ts-btns{justify-content:flex-start}
}
input.ts-code.ts-backup{letter-spacing:.12em;font-size:var(--t-m)}
.ts-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;margin:0;padding-block:12px;padding-inline:34px 16px;border:1px solid var(--line);border-radius:10px;background:var(--tint);font-size:var(--t-sm)}
.ts-few{color:var(--brass-t)}
.ts-codes-do{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:12px}
@media(max-width:560px){.ts-codes{grid-template-columns:minmax(0,1fr)}}
.ts-remember{display:flex;gap:10px;align-items:flex-start;margin-block:2px 14px;cursor:pointer;font-size:var(--t-xs);color:var(--text)}
.ts-remember input{inline-size:18px;block-size:18px;margin-block-start:1px;flex:none;accent-color:var(--brass)}
.ts-remember small{display:block;color:var(--muted);font-size:var(--t-2xs);margin-block-start:2px}
.ts-devices{margin-block-end:16px}
.ts-required{margin-block:4px 0}
.ts-scan-card{justify-content:center;flex-wrap:wrap}
.ts-scan-card .ts-qr{inline-size:168px;block-size:168px}
.ts-step .ts-codes{margin-block-end:4px}
.ts-step .ts-codes-do{margin-block-end:14px}
.st-banner.ts-notice{align-items:center;flex-wrap:wrap;background:var(--brass-tint);border-color:var(--brass-line)}
.ts-notice>div{flex:1;min-inline-size:200px}
.ts-notice>svg{color:var(--brass-t)}
.ts-lost{margin-block:12px 0}
/* The Verified mark beside a shop's name (round 32, E1): a small shield; pressed, the day of the
   check and what was checked. A shop without it shows nothing. */
.vmark{position:relative;display:inline-flex;align-items:center;vertical-align:middle;margin-inline-start:6px}
.vmark-b{display:inline-flex;align-items:center;gap:4px;padding:2px;border:0;border-radius:6px;background:transparent;color:var(--pos);cursor:pointer;line-height:1;min-block-size:24px;min-inline-size:24px;justify-content:center}
.vmark-b .ic{inline-size:15px;block-size:15px}
.vmark-b:hover{background:var(--pos-bg)}
.vmark-b:focus-visible{outline:2px solid var(--pos);outline-offset:1px}
.vmark.big .vmark-b{padding-block:3px;padding-inline:6px 8px;background:var(--pos-bg);font-size:var(--t-xs);font-weight:600}
.vmark-n{position:absolute;inset-block-start:calc(100% + 6px);inset-inline-start:-6px;z-index:30;display:flex;flex-direction:column;gap:4px;inline-size:max-content;max-inline-size:min(280px,80vw);padding:10px 12px;border:1px solid var(--float-line);border-radius:10px;background:var(--float);box-shadow:var(--e-2);color:var(--text);font-weight:400;text-align:start;white-space:normal}
.vmark-n b{font-size:var(--t-xs);font-weight:600}
.vmark-n small{font-size:var(--t-2xs);color:var(--muted);line-height:1.45}
/* The console's side of the mark (round 32, E1): the tag in the list, the Verified tab, the notice. */
.pa-vm-tag{display:inline-flex;vertical-align:middle;margin-inline-start:6px;color:var(--pos)}
.pa-vm-tag .ic{inline-size:14px;block-size:14px}
.note.pa-vm-on{background:var(--pos-bg);border-color:transparent}
.note.pa-vm-on>svg{color:var(--pos)}
.pa-vm-list{margin-block-start:18px;border-block-start:1px solid var(--line-2);padding-block-start:12px}
.pa-vm-list h4{margin:0 0 8px;font-size:var(--t-xs);color:var(--muted);text-transform:uppercase;letter-spacing:var(--track-2)}
.pa-vm-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding-block:8px;border-block-end:1px solid var(--line-2)}
.pa-vm-row:last-child{border-block-end:0}
.pa-vm-row>div:first-child{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
.pa-vm-row small{color:var(--muted);font-size:var(--t-2xs)}
/* round 33, A9: Manage and Dismiss side by side on a lapse notice */
.pa-vm-acts{display:flex;flex-wrap:wrap;gap:6px}
.pa-vm-list .pa-vm-row{flex-direction:column;align-items:stretch}
.pa-vm-row .pre{text-align:start}
/* Round 32, E4: on a narrow screen a tall card (the two-step set-up) starts near the top, where
   the language switch sits; the stage keeps the switch's height clear above it. */
@media(max-width:560px){.lg-stage{padding-block-start:72px}}
.np-go:disabled{opacity:.55;cursor:not-allowed}
/* The operator's passkeys in My account (round 32, E5), laid out as the sessions beside them. */
.ma-keys{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ma-keys li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-block:10px;border-block-end:1px solid var(--line-2)}
.ma-keys li:last-child{border-block-end:0}
.ma-k-who{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
.ma-k-who small{color:var(--muted);font-size:var(--t-2xs)}
.ma-k-acts{display:flex;gap:6px;flex-wrap:wrap}
/* ---- the phone field (round 33, E1, E2, E5): the country's flag and dialling code, then the number.
   The frame reads left to right on every page, so "+93 700 123 456" never turns into "93+"; the
   list of countries takes the page's own direction. A flag is a picture and is never mirrored. */
.phf{position:relative;min-inline-size:0;inline-size:100%}
.phf-frame{display:flex;align-items:center;block-size:var(--ctl);border:1px solid var(--field);border-radius:8px;
  background:var(--panel);padding:4px;gap:4px;transition:border-color .13s,box-shadow .13s}
.phf-frame:hover{border-color:var(--line)}
.phf-frame:focus-within{border-color:var(--text);box-shadow:0 0 0 3px rgba(var(--sh),.07)}
.field.bad .phf-frame{border-color:var(--neg)}
.phf.off .phf-frame{background:var(--tint-2);cursor:not-allowed}
.phf-cc{flex:none;display:inline-flex;align-items:center;gap:6px;block-size:var(--ctl-in);padding-inline:8px 6px;
  border:1px solid var(--ctl-line);border-radius:6px;background:var(--line-2);color:var(--text);font-size:var(--t-xs);cursor:pointer}
.phf-cc:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.phf-cc:disabled{cursor:not-allowed;opacity:.6}
.phf-cc .ic{inline-size:12px;block-size:12px;color:var(--muted)}
.phf.open .phf-cc .ic{transform:rotate(180deg)}
.phf-dial{font-weight:600;letter-spacing:.01em}
.phf-flag{flex:none;display:inline-block;inline-size:20px;block-size:15px;border-radius:2px;object-fit:cover;
  box-shadow:0 0 0 1px rgba(var(--sh),.14)}
.phf-af{display:inline-flex;align-items:center;justify-content:center;background:var(--tint-2);color:var(--muted);
  font-family:'IBM Plex Mono',monospace;font-size:9px;font-weight:700;letter-spacing:.04em;line-height:1}
.phf input.phf-num{flex:1 1 auto;min-inline-size:0;inline-size:100%;max-inline-size:none;block-size:var(--ctl-in);
  padding-inline:8px;border:0!important;background:none!important;box-shadow:none!important;font-size:var(--t-m);text-align:start}
.phf input.phf-num:focus{outline:none}
.phf-help{color:var(--neg)}
.phf .phf-pop{inset-inline-start:0;inset-inline-end:0}
/* the list's search box reads as the picker's own, even inside a form's field */
.phf .pick-search input{block-size:auto;padding:0;border:0!important;box-shadow:none!important;background:none;border-radius:0}
.phf.open .phf-pop{display:block;animation:u .14s}
.phf-list{max-block-size:280px}
.phf-opt{cursor:pointer}
.phf-opt.act{background:var(--line-2)}
.phf-opt.sel{background:var(--tint)}
.phf-opt .phf-code{flex:none;color:var(--muted);font-size:var(--t-2xs)}
.phf-opt.phf-last-first{box-shadow:0 1px 0 var(--line);margin-block-end:4px}
/* a kept number on a screen: one unit, never broken across two lines */
.phn{white-space:nowrap;unicode-bidi:isolate}
/* in a settings row the field keeps the row's own height and width */
.setrow-c .phf{max-inline-size:280px}
.setrow-c .phf-frame{block-size:36px;padding:3px}
.setrow-c .phf-cc,.setrow-c .phf input.phf-num{block-size:28px}
/* ---- the place field (round 33, F1 and F3): a text box with the places under it, country first,
   then a province or a city. The box takes the direction of what is typed in it; the list takes
   the page's own. A flag is a picture and is never mirrored; the arrows of the list are. */
.plf{position:relative;min-inline-size:0;inline-size:100%}
.plf-frame{display:flex;align-items:center;gap:8px;block-size:var(--ctl);border:1px solid var(--field);border-radius:8px;
  background:var(--panel);padding-inline:12px 4px;transition:border-color .13s,box-shadow .13s}
.plf-frame:hover{border-color:var(--line)}
.plf-frame:focus-within{border-color:var(--brass);box-shadow:0 0 0 3px rgba(252,213,53,.28)}
.field.bad .plf-frame{border-color:var(--neg)}
.plf.off .plf-frame{background:var(--tint-2);cursor:not-allowed}
.plf-pin{flex:none;display:flex;color:var(--faint)}.plf-pin .ic{inline-size:14px;block-size:14px}
.plf input.plf-in,.setrow-c .plf input.plf-in{flex:1 1 auto;min-inline-size:0;inline-size:100%;max-inline-size:none;block-size:100%;
  padding:0;border:0!important;background:none!important;box-shadow:none!important;border-radius:0;text-align:start}
.plf input.plf-in:focus,.plf input.plf-in:focus-visible{outline:none;box-shadow:none!important}
.plf input.plf-in:disabled{background:none;color:var(--muted)}
.plf-cv{flex:none;display:inline-flex;align-items:center;justify-content:center;inline-size:32px;block-size:32px;border:0;
  border-radius:6px;background:none;color:var(--faint);cursor:pointer}
.plf-cv:hover{background:var(--line-2);color:var(--muted)}
.plf-cv:disabled{cursor:not-allowed;opacity:.6}
.plf-cv .ic{inline-size:13px;block-size:13px}
.plf.open .plf-cv .ic{transform:rotate(180deg)}
.plf .plf-pop{inset-inline-start:0;inset-inline-end:0}
.plf.open .plf-pop{display:block;animation:u .14s}
.plf-list{max-block-size:300px}
.plf-opt{cursor:pointer}
.plf-opt.act{background:var(--line-2)}
.plf-opt.sel{background:var(--tint)}
.plf-opt.plf-under{padding-inline-start:28px}
.plf-opt.plf-last-first{box-shadow:0 1px 0 var(--line);margin-block-end:4px}
.plf-opt.plf-keep{border-block-start:1px solid var(--line-2);border-radius:0 0 8px 8px}
.plf-ic{background:var(--tint-2);color:var(--muted)}
.plf-ic.city{background:color-mix(in srgb,var(--cat-biz) 8%,transparent);color:var(--cat-biz)}
.plf-go{flex:none;display:flex;color:var(--faint)}.plf-go .ic{inline-size:12px;block-size:12px}
/* a Pashto or Dari name found by a search reads right to left inside its line */
.plf-nat{unicode-bidi:isolate}
.plf-nat+.plf-nat::before{content:" · "}
/* in a settings row the field keeps the row's own height and width */
.setrow-c .plf{max-inline-size:280px}
.setrow-c .plf-frame{block-size:36px;padding-inline:10px 2px}
.setrow-c .plf-cv{inline-size:28px;block-size:28px}

/* =====================================================================
   A PAPER IN ITS OWN LANGUAGE (round 33, H5 and H6). A receipt or slip
   (.rcpt) and a document (.stmt) carry dir and lang on their own root,
   from the paper's language, whatever the screen's: Pashto and Dari read
   right to left. Only the words and their direction change. Every figure
   stays a left-to-right island (components/print/Runs, .mono, .num) in
   Latin digits, and a logo is never mirrored or turned: only its place
   follows the direction. Arabic-script words lose the caps' tracking
   (letter-spacing breaks their joining) and read in Vazirmatn.
   ===================================================================== */
.rcpt[dir="rtl"],.stmt[dir="rtl"]{font-family:'Vazirmatn','Inter',system-ui,-apple-system,'Segoe UI',sans-serif}
.rcpt[dir="rtl"],.rcpt[dir="rtl"] *,.stmt[dir="rtl"],.stmt[dir="rtl"] *{letter-spacing:0}
.rcpt[dir="rtl"] :is(.rp-logo,.rp-qr svg),.stmt[dir="rtl"] .stmt-logo{transform:none}
/* a party's line under its name (a code, a phone) sits under the name, its figures islands of their own */
.rcpt[dir="rtl"] .rp-p em{direction:rtl}
/* the arrow between the two parties points the way the paper reads */
.rcpt[dir="rtl"] .rp-ar{transform:scaleX(-1)}
/* the amount's line under it mixes a figure and words: the words take the paper's direction,
   the figure inside stays its own island */
.rcpt[dir="rtl"] .rp-amt em.rp-fig{direction:rtl;unicode-bidi:plaintext}
/* what a person typed (a note, the shop's own footer) reads in the direction it was written */
.rcpt .rp-typed{unicode-bidi:plaintext}

/* the switch beside the paper in the receipt sheet, and in the export dialog */
.rs-langset{display:flex;flex-direction:column;gap:8px;margin-block-end:14px}
.rs-langset .fine{margin:0}
.paper-lang{align-self:flex-start}
.xd-fs .paper-lang{margin-block-end:6px}

/* =====================================================================
   WHAT A FIGURE LEAVES OUT (round 34, A2): the amounts in currencies with
   no rate set, beside or under the figure in the base that leaves them
   out, each a chip of its own read left to right in either direction.
   Quiet, in the figure's own colour family; nothing at all when nothing
   is left out. Here at the end, and on span, so a container's own span
   rule (the flow's footer) does not turn the chips into capitals.
   ===================================================================== */
span.lo{display:inline;font-size:var(--t-2xs);font-weight:400;color:var(--faint);letter-spacing:0;text-transform:none;line-height:1.6;font-family:'Inter',sans-serif;margin:0;white-space:normal}
span.lo.lo-b{display:block;margin-block-start:5px;min-width:0}
span.lo .lo-l,.lo-l{display:inline-flex;flex-wrap:wrap;gap:3px 4px;vertical-align:baseline;max-inline-size:100%;margin:0;text-transform:none;letter-spacing:0}
span.lo .lo-x,.lo-x{display:inline-block;padding-inline:5px;border:1px solid color-mix(in srgb,currentColor 30%,transparent);border-radius:6px;
  white-space:nowrap;font-size:var(--t-2xs);font-weight:500;letter-spacing:0;text-transform:none;line-height:1.5;margin:0}
.board span.lo{color:var(--dk-mut)}
.st-f+span.lo{margin-block-start:6px}
.lo-n{display:block;font-size:var(--t-2xs);color:var(--muted);margin-block-start:3px;text-transform:none;letter-spacing:0}
.asec tr.lo-h td{padding-block:12px 6px;font-size:var(--t-2xs);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--faint);border-bottom:none}

/* An entry whose size was not checked for want of a rate (round 34, A7): a plain, quiet mark,
   never the watch's warning colour. */
.lbl.size-unchecked{font-weight:500}
.watch-box.wb-plain{background:var(--tint-2);border-color:var(--line)}
.watch-box.wb-plain .watch-box-h{color:var(--muted)}
.watch-box.wb-plain .fine{margin:6px 0 0}
