/* Al Waad client portal — v4 (PLATFORM, 2026-11-12; docs/web-v4/brief.md 4.5, docs/web-v4/system.md).
   The working app lives in the website's ONE world: the luminous emerald field under everything (the aurora of --ground-band on
   the top block only), a floating glass bar with the mark alone, white cards (hairline, radius 20, the emerald lift), deep
   emerald for every solid (the primary pill, a pressed chip, the active tile, the one deep anchor of a screen), the logo red
   only as a small dot, a counter, the active-nav mark and the stamp. No red button, rule, rail, border or field; no ink
   outline for «chosen»; black fills nothing.
   /assets/tokens.css is linked first (src/css/00-tokens.css with the Dubai faces): every colour, radius, shadow and curve here
   is one of its tokens. This sheet keeps its own short names for them (the block below) so the rules stay readable; it holds no
   colour of its own and reads none of the legacy aliases of system.md section 10 (so FOUNDATION may delete them).
   Rules are in two layers: the structure (layout, sizes, the screens) and, at the end, «the v4 look», which settles every fill,
   ring, radius and shadow in one place. Every id and class portal.js writes stays. Logical properties only, so one sheet serves
   RTL and LTR; the chat is the one exception (own messages keep their side). Every large size follows --u, the smaller of
   width and height, so a short screen (1536x700) never looks zoomed in. Motion is on for everyone, on purpose (brief 4.6);
   what loops animates transform and opacity only. */

:root{
  color-scheme:light;
  /* surfaces */
  --paper:var(--white);--surface:var(--white);--canvas:var(--page);
  --desk:var(--field);                 /* a soft fill INSIDE a white card (an idle row, a tile): never the page */
  --soft:var(--field);--soft-2:var(--field-2);
  --rule:var(--line);--rule-2:var(--line-2);
  /* the solid: deep emerald */
  --brand:var(--emerald);--brand-hi:var(--emerald-hi);
  --e600:var(--emerald);--e600-hi:var(--emerald-hi);--e700:var(--emerald);--e900:var(--ink);
  --e-tint:var(--emerald-soft);--e-tint-2:var(--field-2);--eink:var(--emerald);
  --sel:var(--emerald);--sel-hi:var(--emerald-hi);--sel-ring:var(--vivid-a22);
  --on-1:var(--white);--on-2:var(--ink-2);--on-3:var(--muted);--on-fill:var(--field);--on-fill-2:var(--field-2);--on-line:var(--line);--on-ring:var(--line);--on-hair:var(--glass-60);
  /* states: «needs you» is white with a red dot and ink words (never a red field); «done» is the green tick's soft disc */
  --attn:var(--white);--attn-tint:var(--white);--red-wash:var(--white);--red-line:var(--line);
  --done-tint:var(--green-soft);--green-wash:var(--green-soft);--green-line:var(--emerald-line);
  /* shadows */
  --film:var(--sh-card);--sheet:var(--sh-card);--raise:var(--sh-seg);--lift:var(--sh-primary);
  --d1:var(--sh-seg);
  --d2:var(--sh-card);
  --d3:var(--sh-pop);
  --glow:var(--sh-primary);
  --sh-under:0 -14px 30px -22px var(--emerald-a45);   /* the phone's bottom bar: the lift, upward */
  --overlay:var(--ink-a45);
  --bloom:transparent;--grain-a:0;--gold:var(--field-2);
  /* radius */
  --r-xs:var(--r-ic-sm);               /* 8: a small plate (an icon box, a step number) */
  --r-sm:var(--r-tile);                /* 13: a tile or a row inside a card */
  --r-md:var(--r);                     /* 20: a card */
  --r-ctl:var(--r-pill);--r-paper:var(--r-ic-sm);
  /* sizes */
  --u:min(1vw,1.78vh);
  --g:clamp(16px,3.2vw,56px);
  --bar:clamp(56px,9vh,64px);
  --bar-top:clamp(8px,1.6vh,12px);     /* the floating bar's distance from the top edge */
  --t:clamp(14.5px,calc(var(--u)*1.2),16.5px);
  --t-s:clamp(13.5px,calc(var(--u)*1.04),14.5px);
  --t-h1:clamp(25px,calc(var(--u)*2.75),42px);
  --tp-h2:clamp(19px,calc(var(--u)*1.75),26px);
  --tp-h3:clamp(16px,calc(var(--u)*1.34),19px);
  --f-h:clamp(42px,6.6vh,48px);
  --gap:clamp(12px,calc(var(--u)*1.35),20px);
  --ease:var(--e-lift);
  --press:cubic-bezier(.3,1.5,.4,1);
  --track:repeating-linear-gradient(90deg,var(--line-2) 0 6px,transparent 6px 12px);   /* the dashed path of the sign-in scene */
  --room:transparent;--star:none;--scrim:transparent;--shade:transparent;
  --mark:url(/assets/img/alwaad-mark.svg);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--desk);accent-color:var(--sel)}
body{margin:0;min-height:100svh;background:var(--desk);color:var(--ink);font:400 var(--t)/1.65 var(--f);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,fieldset{margin:0;padding:0;border:0}
ul,ol{list-style:none}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
button:disabled{cursor:not-allowed}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--emerald);outline-offset:3px;border-radius:var(--r-xs)}
::selection{background:var(--field-2);color:var(--ink)}
bdi{unicode-bidi:isolate}
.ic,.icon-btn svg,.btn svg,.alert svg{width:18px;height:18px;flex:none}
[dir=rtl] .arr,[dir=rtl] .flip{transform:scaleX(-1)}
.wrap{width:min(100% - 2*var(--g),1320px);margin-inline:auto}
.small{font-size:var(--t-s)}.muted{color:var(--muted)}.center-t{text-align:center}
.show-xs{display:none}
.num{font-feature-settings:"tnum";letter-spacing:.01em}
.data{font-weight:500;font-size:max(var(--s-min),12px);line-height:16px;letter-spacing:.08em;color:var(--muted);white-space:nowrap}
[lang=ar] .data{letter-spacing:0;font-size:max(var(--s-min),13px)}
.ref{display:inline-flex;align-items:center;font-weight:500;font-size:max(var(--s-min),12.5px);line-height:18px;letter-spacing:.06em;color:var(--ink-2);white-space:nowrap;font-variant-numeric:tabular-nums lining-nums}
.spinner{width:30px;height:30px;border:3px solid var(--soft-2);border-top-color:var(--sel);border-radius:var(--r-xs);animation:spin .8s linear infinite}
#root.boot{min-height:100svh;display:grid;place-items:center}
.empty{display:grid;place-items:center;min-height:180px;color:var(--muted);text-align:center;padding:24px}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes sheen{to{background-position:-200% 0}}

/* ---------- buttons ---------- */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--f-h);padding:0 clamp(15px,calc(var(--u)*1.6),22px);border-radius:var(--r-sm);font-weight:700;font-size:var(--t);line-height:1.2;white-space:nowrap;transition:background-color .18s,color .18s,box-shadow .18s,transform .18s var(--ease)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn:disabled{opacity:.5}
.btn.wide{width:100%}
.btn-sm{min-height:38px;padding:0 13px;font-size:var(--t-s);gap:6px}
.btn-primary{background:var(--brand);color:var(--on-1);box-shadow:var(--lift)}.btn-primary:hover:not(:disabled){background:var(--brand-hi)}
.btn-primary::before{content:"";position:absolute;inset:4px;border:1px solid var(--on-hair);border-radius:1px;pointer-events:none;transition:border-color .12s}
.btn-primary:active:not(:disabled)::before{border-color:var(--on-1)}
.btn-sm.btn-primary::before{inset:3px}
.btn-primary .arr{transition:transform .25s var(--ease)}
.btn-primary:hover .arr{transform:translateX(4px)}[dir=rtl] .btn-primary:hover .arr{transform:scaleX(-1) translateX(4px)}
.btn-white{background:var(--paper);color:var(--e900);box-shadow:var(--lift)}.btn-white:hover{background:var(--e-tint)}
.btn-line{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-2)}.btn-line:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--ink)}
.btn-ghost{color:var(--muted)}.btn-ghost:hover:not(:disabled){color:var(--ink);background:var(--soft)}
.btn-danger{background:var(--surface);color:var(--red-ink)}
.btn-ok{background:var(--e600);color:var(--on-1)}.btn-ok:hover{background:var(--e600-hi)}
.btn.busy{color:transparent!important}
.btn.busy svg{opacity:0}
.btn.busy::after{content:"";position:absolute;width:18px;height:18px;border:2px solid var(--on-hair);border-top-color:var(--on-1);border-radius:var(--r-xs);animation:spin .7s linear infinite}
.btn-line.busy::after{border-color:var(--soft-2);border-top-color:var(--sel)}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;flex:none;border-radius:var(--r-sm);color:var(--muted);transition:background-color .15s,color .15s}
.icon-btn:hover:not(:disabled){background:var(--soft);color:var(--ink)}
.icon-btn.danger:hover:not(:disabled){background:var(--soft);color:var(--red-ink)}
.icon-btn:disabled{opacity:.45}
.icon-btn.send{background:var(--e600);color:var(--on-1)}.icon-btn.send:hover:not(:disabled){background:var(--e600-hi);color:var(--on-1)}
.link-btn{display:inline-flex;align-items:center;gap:5px;font-weight:500;color:var(--e600);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--e600) 35%,transparent);text-underline-offset:3px}
.link-btn:hover:not(:disabled){text-decoration-color:currentColor}
.link-btn:disabled{color:var(--muted);text-decoration:none}
.link-btn svg{width:16px;height:16px}

/* ---------- fields ---------- */
.field{display:grid;gap:4px;align-content:start;min-width:0}
.field>label,.lab{font-size:var(--t-s);font-weight:500;color:var(--ink-2);line-height:1.4}
.input,.select,.textarea{display:block;width:100%;min-width:0;background:var(--surface);border:1px solid var(--field-line);border-radius:var(--r-sm);color:var(--ink);font-size:16px;transition:border-color .15s,box-shadow .15s}
.input,.select{height:var(--f-h);padding:0 12px}
.textarea{padding:10px 12px;resize:vertical;line-height:1.6;min-height:84px}
.input:hover,.select:hover,.textarea:hover{border-color:var(--green)}
.input:focus,.select:focus,.textarea:focus{outline:0;border-color:var(--sel);box-shadow:0 0 0 3px var(--sel-ring)}
.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:.8}
[dir=rtl] .input[dir=ltr]{text-align:right}
.ctrl{position:relative;display:block}
.ctrl>.ic{position:absolute;inset-block-start:50%;inset-inline-start:12px;transform:translateY(-50%);color:var(--line-2);pointer-events:none}
.ctrl>.input{padding-inline-start:40px}
.pw-wrap>.input{padding-inline-end:44px}
/* an email or a password is typed left to right, but it sits on the page's own side, clear of the icons */
[dir=rtl] .ctrl>.input[dir=ltr]{padding-right:40px;padding-left:12px}
[dir=rtl] .pw-wrap>.input[dir=ltr]{padding-left:44px}
.pw-wrap>.icon-btn{position:absolute;inset-block-start:50%;inset-inline-end:3px;transform:translateY(-50%)}
.hint{font-size:max(var(--s-min),12.5px);color:var(--muted)}
.caps{font-size:max(var(--s-min),12.5px);color:var(--red-ink)}
.suggest{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:var(--t-s);color:var(--muted)}.suggest svg{width:15px;height:15px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
/* integ: on a phone the pairs stack, so an address or a number is never cut inside its field */
@media (max-width:480px){.grid2{grid-template-columns:minmax(0,1fr)}}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.stack{display:grid;gap:var(--gap)}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px}
.check{display:flex;align-items:flex-start;gap:9px;font-size:var(--t-s);color:var(--ink-2);line-height:1.5;cursor:pointer}
.check input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--green);flex:none}
.trap{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%);pointer-events:none}
.meter{height:4px;background:var(--soft-2);overflow:hidden;border-radius:1px}
.meter i{display:block;height:100%;width:0;background:var(--line-2);transition:width .25s var(--ease),background-color .25s}
.meter.s3 i,.meter.s4 i{background:var(--green)}
.rules{display:grid;gap:1px;font-size:max(var(--s-min),12.5px);color:var(--muted);line-height:1.45}
.rules li{position:relative;padding-inline-start:15px}
.rules li::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:.5em;width:7px;height:7px;background:var(--soft-2);border-radius:1px}
.rules li.ok{color:var(--green)}.rules li.ok::before{background:var(--green)}
.seg{display:inline-flex;padding:3px;gap:2px;background:var(--soft);border-radius:var(--r-sm)}
.seg button{min-height:36px;padding:0 14px;border-radius:4px;font-weight:500;font-size:var(--t-s);color:var(--muted);transition:background-color .15s,color .15s}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:var(--d1)}
.switch{display:flex;align-items:center;gap:12px;cursor:pointer}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch .track{position:relative;width:42px;height:24px;flex:none;background:var(--soft-2);border-radius:var(--r-sm);transition:background-color .18s}
.switch .track::after{content:"";position:absolute;inset-block-start:3px;inset-inline-start:3px;width:18px;height:18px;background:var(--paper);border-radius:3px;box-shadow:var(--d1);transition:inset-inline-start .2s var(--ease)}
.switch input:checked+.track{background:var(--green)}
.switch input:checked+.track::after{inset-inline-start:21px}
.switch input:focus-visible+.track{outline:2px solid var(--ink);outline-offset:2px}
.sw-text{display:grid}.sw-text small{color:var(--muted);font-size:var(--t-s)}
.otp6{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(5px,1vw,10px);direction:ltr}
.otp-b{width:100%;height:clamp(46px,8vh,56px);text-align:center;font-size:21px;font-weight:700;background:var(--surface);border:1px solid var(--field-line);border-radius:var(--r-sm);transition:border-color .15s,box-shadow .15s,background-color .15s}
.otp-b:focus{outline:0;border-color:var(--sel);box-shadow:0 0 0 3px var(--sel-ring)}
.otp-b.filled{background:var(--desk);border-color:var(--ink)}
.otp6.bad{animation:shake .4s}
/* FXC-FIX-SERVER: the two-step setup's square code had no size (an SVG with only a viewBox drew 0 x 0): it fills its 200 px box */
.tf-qr{display:block;width:100%;height:auto;aspect-ratio:1}

/* ---------- messages ---------- */
.alert{display:flex;align-items:flex-start;gap:9px;padding:9px 12px;border-radius:var(--r-sm);font-size:var(--t-s);line-height:1.5;border:1px solid transparent}
.alert svg{margin-block-start:1px}
.alert-err{background:var(--soft);color:var(--red-ink);border-color:var(--line)}
.alert-ok{background:var(--green-wash);color:var(--green-hi);border-color:var(--green-line)}
.alert-info,.alert-warn{background:var(--soft);color:var(--ink-2);border-color:var(--line)}
.toasts{position:fixed;inset-block-end:18px;inset-inline-start:50%;transform:translateX(-50%);z-index:90;display:grid;gap:8px;width:min(92vw,440px);pointer-events:none}
[dir=rtl] .toasts{transform:translateX(50%)}
.toast{display:flex;align-items:center;gap:9px;padding:11px 14px;background:var(--surface);border-radius:var(--r-sm);box-shadow:var(--d3);font-weight:500;font-size:var(--t-s);animation:rise .28s var(--ease)}
.toast svg{width:18px;height:18px;color:var(--green);flex:none}
.toast.err{color:var(--red-ink)}.toast.err svg{color:currentColor}
.overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:var(--overlay);overflow:auto;animation:rise .18s var(--ease)}
.dialog{width:min(100%,480px);max-height:calc(100svh - 32px);overflow:auto;background:var(--surface);border-radius:var(--r);padding:clamp(16px,calc(var(--u)*1.8),24px);box-shadow:var(--d3);display:grid;gap:var(--gap);animation:pop .22s var(--ease)}
.dialog.wide{width:min(100%,680px)}
.dialog h3{font-size:var(--tp-h2);line-height:1.3}
.dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.notes{display:grid;gap:5px;font-size:var(--t-s);color:var(--ink-2)}
.notes li{position:relative;padding-inline-start:14px}.notes li::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:.6em;width:6px;height:6px;background:var(--emerald-vivid);border-radius:50%}

/* ---------- sign-in: the sheet with its two tabs, and the side where a document travels its path ---------- */
.au{position:relative;isolation:isolate;min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);color:var(--ink);background:var(--page)}
.au::after{content:none}
.au-l{min-width:0;display:grid;grid-template-rows:var(--bar) minmax(0,1fr);padding-inline:clamp(16px,calc(var(--u)*3),44px)}
.au-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.au-logo{display:block;width:clamp(180px,calc(var(--u)*20),280px)}
.au-logo img{width:100%;height:auto}
.au-tools{display:flex;align-items:center;gap:6px}
.lang-t{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 10px;border-radius:var(--r-sm);font-weight:500;font-size:var(--t-s);color:var(--ink-2);transition:background-color .15s,color .15s}
.au .lang-t,.pp-head .lang-t,.au-tools .btn-ghost{color:var(--ink-2)}.au-tools .btn-ghost:hover:not(:disabled){color:var(--ink);background:var(--field)}
.au .lang-t,.pp-head .lang-t{color:var(--ink-2)}.au .lang-t:hover,.pp-head .lang-t:hover{color:var(--ink);background:var(--field)}
.lang-t:hover{background:var(--soft)}.lang-t svg{width:17px;height:17px}
.au-mid{display:grid;place-items:center;padding-block-end:clamp(10px,2.4vh,22px);min-height:0}
.au-book{position:relative;isolation:isolate;width:min(100%,clamp(410px,calc(var(--u)*37),520px))}
.au-tabs{position:relative;display:flex;gap:3px;padding-inline:12px;height:38px;align-items:flex-end}
.au-tabs[hidden]+.au-sheet{margin-block-start:38px}
.au-tab{position:relative;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 15px;background:var(--field);border:1px solid var(--line);border-bottom:0;border-radius:var(--r-ic) var(--r-ic) 0 0;color:var(--ink-2);font-weight:500;font-size:var(--t-s);transition:height .2s var(--ease),color .15s,background-color .15s}
.au-tab svg{width:16px;height:16px}
.au-tab:hover{color:var(--ink)}
.au-tab[aria-selected=true]{height:38px;background:var(--surface);color:var(--ink);font-weight:700;box-shadow:none;border-color:var(--line)}
.au-sheet{position:relative;height:min(572px,calc(100svh - var(--bar) - 38px - clamp(10px,2.4vh,22px)));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-card);padding:clamp(14px,calc(var(--u)*1.75),24px) clamp(16px,calc(var(--u)*2.2),30px);overflow:auto;scrollbar-width:thin}
.au-book::before,.au-book::after{content:"";position:absolute;z-index:-1;inset:38px 0 0;background:var(--paper);border:1px solid var(--line);border-radius:var(--r);box-shadow:none}
.au-book::before{transform:translateY(6px) scaleX(.975);opacity:.55}
.au-book::after{transform:translateY(12px) scaleX(.95);opacity:.3}
.pa-body{min-height:100%;display:flex;flex-direction:column;gap:clamp(8px,calc(var(--u)*1),13px)}
.pa-body>form,.pa-body>.reg,.pa-body>.reg>form,.pa-body>.stack{display:flex;flex-direction:column;gap:clamp(8px,calc(var(--u)*1),13px)}
.pa-body>.reg,.pa-body>.reg>form{flex:1}
.pa-body.enter{animation:rise .32s var(--ease)}
.pa-h{display:grid;gap:2px}
.pa-h h2{font-size:clamp(21px,calc(var(--u)*2.15),30px);line-height:1.25;font-weight:700}
[lang=en] .pa-h h2{letter-spacing:-.015em}
.pa-h .sub{color:var(--muted);font-size:var(--t-s);line-height:1.55}
.pa-h.center{text-align:center;justify-items:center}
.pa-push{margin-block-start:auto}
.alt{text-align:center;font-size:var(--t-s);color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.dot-sep{width:3px;height:3px;background:var(--line-2);display:inline-block;border-radius:1px}
.or-line{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:max(var(--s-min),12.5px)}
.or-line::before,.or-line::after{content:"";flex:1;height:1px;background:var(--line)}
.social-auth{display:grid;grid-template-columns:1fr 1fr;gap:8px}.social-auth.one{grid-template-columns:1fr}
.soc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 10px;background:var(--surface);border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px var(--line-2);font-weight:500;font-size:var(--t-s);transition:box-shadow .15s}
.soc-btn:hover{box-shadow:inset 0 0 0 1px var(--ink)}.soc-btn.busy{opacity:.6}
.brand-ic{width:18px;height:18px;flex:none}
.newbie{display:flex;align-items:center;gap:11px;width:100%;padding:9px 12px;background:var(--desk);border-radius:var(--r-sm);text-align:start;transition:background-color .15s}
.newbie:hover{background:var(--soft)}
.newbie .nic{display:grid;place-items:center;width:32px;height:32px;background:var(--e600);color:var(--on-1);border-radius:var(--r-xs);flex:none}.newbie .nic svg{width:17px;height:17px}
.newbie .tx{display:grid;flex:1;min-width:0;line-height:1.35}
.newbie b{font-size:var(--t-s)}.newbie small{color:var(--muted);font-size:max(var(--s-min),12.5px)}
.newbie .arr{width:17px;height:17px;color:var(--muted)}
.staff-card{display:flex;gap:10px;padding:9px 12px;background:var(--desk);border-radius:var(--r-sm);font-size:var(--t-s)}
.staff-card i{color:var(--e600)}.staff-card svg{width:18px;height:18px}
.staff-card>div{display:grid;line-height:1.4}.staff-card span{color:var(--muted);font-size:max(var(--s-min),12.5px)}
.mail-ic{display:grid;place-items:center;width:46px;height:46px;margin-inline:auto;background:var(--e-tint);color:var(--e600);border-radius:var(--r-sm)}
.mail-ic.ok{background:var(--green-wash);color:var(--green)}.mail-ic svg{width:22px;height:22px}
.email-chip{display:inline-block;font-weight:500;color:var(--ink);unicode-bidi:isolate;direction:ltr}
.acct-chip{display:flex;align-items:center;gap:8px;padding:8px 11px;background:var(--desk);border-radius:var(--r-sm);font-size:var(--t-s)}
.acct-chip svg{width:16px;height:16px;color:var(--muted)}.acct-chip .link-btn{margin-inline-start:auto}
.dev-note{display:grid;gap:5px;padding:9px 11px;background:var(--soft);border-radius:var(--r-sm);font-size:max(var(--s-min),12.5px);color:var(--ink-2)}
.dev-note>b{display:flex;align-items:center;gap:5px}.dev-note svg{width:15px;height:15px}
.help{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
/* account type: two index cards */
.type-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.type-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;align-items:center;padding:8px 11px;text-align:start;background:var(--surface);border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px var(--line-2);transition:box-shadow .15s,background-color .15s}
.type-card i{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;background:var(--soft);border-radius:var(--r-xs);color:var(--muted);transition:background-color .15s,color .15s}.type-card i svg{width:17px;height:17px}
.type-card b{font-size:var(--t-s);line-height:1.3}.type-card small{font-size:max(var(--s-min),12px);color:var(--muted);line-height:1.3}
.type-card .tick{position:absolute;inset-block-start:6px;inset-inline-end:6px;display:none;color:var(--e600)}.type-card .tick svg{width:14px;height:14px}
.type-card[aria-checked=true]{box-shadow:inset 0 0 0 2px var(--e600);background:var(--e-tint)}
.type-card[aria-checked=true] i{background:var(--e600);color:var(--on-1)}
.type-card[aria-checked=true] .tick{display:block}
.type-card.slim{grid-template-columns:auto minmax(0,1fr)}
.mini-steps{display:flex;gap:14px;font-size:max(var(--s-min),12.5px);color:var(--muted)}
.mini-steps span{display:inline-flex;align-items:center;gap:5px}
.mini-steps b{display:grid;place-items:center;width:19px;height:19px;background:var(--soft-2);color:var(--muted);font-size:max(var(--s-min),11.5px);border-radius:var(--r-xs)}
.mini-steps b svg{width:12px;height:12px}
.mini-steps .now{color:var(--ink);font-weight:500}.mini-steps .now b{background:var(--e600);color:var(--on-1)}
.mini-steps .done b{background:var(--green);color:var(--on-1)}
.reg-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
.reg-slot{height:calc(var(--f-h) + 24px);min-height:0}
.reg-slot .note{display:flex;align-items:center;gap:9px;height:100%;padding:0 12px;background:var(--desk);border-radius:var(--r-sm);color:var(--muted);font-size:var(--t-s);line-height:1.45}
.reg-slot .note svg{width:18px;height:18px;flex:none;color:var(--line-2)}
.who-sum{display:flex;align-items:center;gap:10px;padding:8px 11px;background:var(--desk);border-radius:var(--r-sm)}
.who-sum>div{flex:1;min-width:0;display:grid;line-height:1.35}
.who-sum b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-s)}.who-sum small{color:var(--muted);font-size:max(var(--s-min),12.5px)}
.avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;background:var(--e600);color:var(--on-1);font-weight:700;border-radius:var(--r-sm)}

/* the side panel */
.au-r{position:relative;margin:0;min-width:0;min-height:100svh;border-radius:0;overflow:hidden;color:var(--ink);background:var(--field);border-inline-start:1px solid var(--line);box-shadow:none;display:grid;grid-template-rows:auto minmax(0,1fr);padding:clamp(18px,calc(var(--u)*3),44px) clamp(18px,calc(var(--u)*3.2),48px) clamp(14px,calc(var(--u)*2),30px)}
.au-r::before{content:none}
[lang=en] .au-r{background-image:none}
.au-r>*{position:relative}
.au-beams{display:none}
.au-r h1{font-size:clamp(28px,calc(var(--u)*3.5),54px);line-height:1.2;font-weight:700}
[lang=en] .au-r h1{letter-spacing:-.02em;line-height:1.08}
.au-r .lede{margin-block-start:clamp(4px,1vh,10px);max-width:46ch;font-size:clamp(14.5px,calc(var(--u)*1.28),18px);line-height:1.6;color:var(--ink-2)}
.jr{min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:clamp(10px,2vh,20px);margin-block-start:clamp(10px,2vh,20px)}
.au-r .sc{display:none}
.au-foot{display:flex;align-items:center;gap:7px;font-size:max(var(--s-min),12.5px);color:var(--ink-2);margin-block-start:clamp(6px,1.2vh,12px)}
.au-foot svg{width:15px;height:15px;flex:none}

/* ---------- app shell ---------- */
.pp{min-height:100svh;padding-block-start:var(--bar);background:var(--desk);display:flex;flex-direction:column}
.pp-head{position:fixed;inset-block-start:0;inset-inline:0;z-index:50;height:var(--bar);color:var(--ink);background:var(--glass-92);border-bottom:1px solid var(--line);backdrop-filter:blur(18px) saturate(1.5);box-shadow:var(--sh-card)}
[dir=rtl] .pp-head{--mx:92%}
.gbar{display:flex;align-items:center;gap:clamp(10px,1.6vw,26px);height:var(--bar)}
.gbar .logo{flex:none;display:block;width:calc(var(--bar)*.62);height:calc(var(--bar)*.7);background:var(--mark) no-repeat 50% 50%/contain}.gbar .logo img{width:100%;height:100%;opacity:0}
.pp-nav{position:relative;display:flex;align-self:stretch;gap:clamp(8px,1.2vw,18px);margin-inline-start:clamp(4px,1vw,16px)}
.pp-nav a{position:relative;display:inline-flex;align-items:center;gap:7px;padding-inline:8px;font-weight:500;color:var(--ink-2);transition:color .15s}
.pp-nav a svg{width:18px;height:18px}
.pp-nav a:hover,.pp-nav a[aria-current=page]{color:var(--ink)}.pp-nav a[aria-current=page]{font-weight:700}
.pp-nav .thumb{position:absolute;inset-block-end:-1px;height:2px;width:0;left:0;background:var(--red);opacity:0;transition:left .3s var(--ease),width .3s var(--ease),opacity .2s}
.pp-nav .thumb.on{opacity:1}
.dot{display:inline-block;width:8px;height:8px;background:var(--red);border-radius:1px}
.gbar .tools{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.menu{position:relative}
.who-btn{display:inline-flex;align-items:center;gap:8px;padding:3px;padding-inline-end:9px;border-radius:var(--r-sm);font-weight:500;font-size:var(--t-s);transition:background-color .15s}
.who-btn:hover{background:var(--soft)}
.pp-head .who-btn{color:var(--ink)}.pp-head .who-btn:hover{background:var(--field)}
.pp-head .icon-btn{color:var(--ink-2)}.pp-head .icon-btn:hover:not(:disabled){background:var(--field);color:var(--ink)}
.menu-pop{position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:0;width:262px;background:var(--surface);border-radius:var(--r);box-shadow:var(--d3);padding:6px;z-index:60;color:var(--ink);animation:pop .16s var(--ease)}
.pop-head{display:flex;align-items:center;gap:10px;padding:8px;border-block-end:1px solid var(--line);margin-block-end:4px}
.pop-head>div{display:grid;min-width:0;line-height:1.35}
.pop-head b{font-size:var(--t-s);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pop-head small{font-size:max(var(--s-min),12px);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-pop a,.menu-pop>button{display:flex;align-items:center;gap:9px;width:100%;padding:8px;border-radius:var(--r-sm);font-size:var(--t-s);text-align:start}
.menu-pop a:hover,.menu-pop>button:hover{background:var(--soft)}.menu-pop svg{width:17px;height:17px;color:var(--muted)}
.lockbar{margin-block-start:10px}
.lb{display:flex;align-items:center;gap:9px;padding:8px 12px;background:var(--surface);font-size:var(--t-s)}
.lb svg{width:17px;height:17px}
.lockdown .cta-new{display:none!important}
.pp-main{flex:1;padding-block:clamp(14px,calc(var(--u)*2),28px) clamp(26px,5vh,44px)}
.view-in{animation:rise .34s var(--ease)}
.bn{display:none}
.crumb{display:inline-flex;align-items:center;gap:5px;font-size:var(--t-s);color:var(--muted);font-weight:500}
.crumb:hover{color:var(--ink)}.crumb svg{width:16px;height:16px}
.p-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.p-head h1{font-size:var(--t-h1);line-height:1.25;font-weight:700}
/* integ: on a phone the new-transaction steps take their own full row under the title (they were squeezed beside it and cut) */
@media (max-width:640px){.p-head:has(>.nw-steps){flex-direction:column;align-items:stretch;gap:10px}}
[lang=en] .p-head h1{letter-spacing:-.015em}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-block:clamp(14px,3vh,26px) 8px}
.sec-h h2{font-size:var(--tp-h2);line-height:1.3}
/* cards */
.card{background:var(--surface);border-radius:var(--r-md);box-shadow:var(--d2);padding:clamp(14px,calc(var(--u)*1.6),22px);display:grid;gap:var(--gap);align-content:start;min-width:0}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.card-head h3{font-size:var(--tp-h3);line-height:1.35}
.card-head p{color:var(--muted);font-size:var(--t-s);line-height:1.5}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 16px;font-size:var(--t-s)}
.kv dt{color:var(--muted)}.kv dd{font-weight:500;min-width:0;overflow-wrap:anywhere}
/* tags */
.st{display:inline-flex;align-items:center;gap:6px;height:25px;padding:0 9px;font-weight:500;font-size:max(var(--s-min),12.5px);line-height:1;background:var(--e-tint);color:var(--eink);border-radius:var(--r-xs);white-space:nowrap}
.st::before{content:"";width:7px;height:7px;background:currentColor;border-radius:1px}
.st.ok{background:var(--done-tint);color:var(--green)}
.st.off{color:var(--muted)}
.badge-ok,.badge-no{display:inline-flex;align-items:center;gap:4px;height:23px;padding:0 7px;border-radius:var(--r-xs);font-size:max(var(--s-min),12.5px);font-weight:500}
.badge-ok{background:var(--done-tint);color:var(--green)}.badge-no{background:var(--e-tint);color:var(--eink)}
.badge-ok svg{width:13px;height:13px}

/* ---------- home ---------- */
.hm{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(14px,calc(var(--u)*2),30px);align-items:stretch}
.hm-l{display:flex;flex-direction:column;justify-content:space-between;gap:var(--gap);padding-block:4px}
.hm-l h1{font-size:clamp(28px,calc(var(--u)*3.5),52px);line-height:1.2;font-weight:700}
[lang=en] .hm-l h1{letter-spacing:-.02em;line-height:1.1}
.hm-l h1 em{font-style:normal;color:var(--e600)}
.hm-l .sub{color:var(--ink-2);max-width:54ch;margin-block-start:4px}
.hm-cta{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:10px}
.hm-n{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line-2)}
.hm-n>div{padding:8px 0;padding-inline-start:14px;border-inline-start:1px solid var(--line-2);display:grid;line-height:1.25}
.hm-n>div:first-child{border-inline-start:0;padding-inline-start:0}
.hm-n b{font-size:clamp(24px,calc(var(--u)*2.7),38px);font-weight:700;line-height:1.15}
.hm-n span{font-size:var(--t-s);color:var(--muted)}
.hm-n .warn b{color:var(--red)}
.next{position:relative;overflow:hidden;min-height:clamp(212px,34vh,268px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:clamp(14px,calc(var(--u)*1.7),24px);border-radius:var(--r-md);background:var(--surface);box-shadow:var(--d2)}
.next>*{position:relative}
.next-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.next-top .data{display:inline-flex;align-items:center;gap:7px}
.next-top .data i{width:8px;height:8px;background:var(--e600);border-radius:1px}
.next.hot .data{color:var(--brand)}
.next.hot .next-top .data i{background:var(--brand)}

.next-body{align-self:center;display:grid;gap:3px}
.next-body b{font-size:clamp(20px,calc(var(--u)*2.15),30px);line-height:1.25}
.next-body span{font-size:var(--t-s);opacity:.86}
.next-go{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.next .btn-white{background:var(--e600);color:var(--on-1);box-shadow:none}.next .btn-white:hover{background:var(--e600-hi)}
.next-go .fig{font-size:clamp(20px,calc(var(--u)*2.1),28px);font-weight:700}
/* the register: one hairline row per transaction */
.led-t{display:grid;min-width:0;line-height:1.35}
.led-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.led-t small{color:var(--muted);font-size:max(var(--s-min),12.5px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.led-m{font-size:max(var(--s-min),12.5px);color:var(--muted);line-height:1.35}
.ticks{display:grid;grid-template-columns:repeat(9,minmax(0,16px));gap:2px;width:100%}
.ticks i{height:4px;background:var(--soft-2);border-radius:1px}
.ticks i.on{background:var(--e600)}
.ticks.done i.on{background:var(--green)}
.ticks.off i{background:var(--line)}
.new-msg{display:inline-flex;align-items:center;gap:5px;color:var(--ink);font-size:max(var(--s-min),12.5px);font-weight:500}
.empty-state{display:grid;justify-items:center;gap:8px;text-align:center;padding:clamp(22px,5vh,44px) 16px;background:var(--surface);border-radius:var(--r-xs);box-shadow:var(--d2)}
.empty-state .ill{display:grid;place-items:center;width:52px;height:52px;background:var(--e-tint);color:var(--e600);border-radius:var(--r-sm)}.empty-state .ill svg{width:25px;height:25px}
.empty-state h2{font-size:var(--tp-h2)}.empty-state p{max-width:56ch;color:var(--muted);font-size:var(--t-s)}

/* ---------- a transaction ---------- */
.tx-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-block-start:4px}
.tx-top h1{font-size:var(--t-h1);line-height:1.25;font-weight:700}
.tx-sub{font-size:var(--t-s);color:var(--muted)}
.trk{position:relative;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));margin-block-start:clamp(10px,2vh,18px);padding:clamp(12px,1.8vh,16px) 6px clamp(8px,1.2vh,12px);background:var(--surface);border-radius:var(--r-xs);box-shadow:var(--d2)}
.trk-s{position:relative;display:grid;justify-items:center;gap:5px;text-align:center;min-width:0;padding-inline:2px}
.trk-s::before{content:"";position:absolute;inset-block-start:10px;inset-inline-start:-50%;width:100%;height:2px;background:var(--line)}
.trk-s:first-child::before{display:none}
.trk-s.done::before,.trk-s.now::before{background:var(--green)}
.trk-d{position:relative;z-index:1;display:grid;place-items:center;width:22px;height:22px;background:var(--surface);border:2px solid var(--line-2);border-radius:var(--r-xs);font-size:max(var(--s-min),11.5px);font-weight:700;color:var(--muted);transition:background-color .3s,border-color .3s}
.trk-d svg{width:13px;height:13px;stroke-width:3}
.trk-s.done .trk-d{background:var(--green);border-color:var(--green);color:var(--on-1)}
.trk-s.now .trk-d{background:var(--surface);border-color:var(--e600);color:var(--e600)}
.trk.finished .trk-s::before{background:var(--green)}
.trk.finished .trk-d{background:var(--green);border-color:var(--green);color:var(--on-1);animation:none}
.trk-n{font-size:max(var(--s-min),clamp(12px,calc(var(--u)*1),13.5px));line-height:1.3;color:var(--muted);font-weight:500}
.trk-s.done .trk-n{color:var(--ink-2)}.trk-s.now .trk-n{color:var(--ink);font-weight:700}
.trk-t{font-size:max(var(--s-min),11.5px);color:var(--muted);line-height:1.2;min-height:1.2em}
.trk-m{display:none}
.tabs{display:flex;gap:clamp(6px,1vw,14px);margin-block-start:clamp(10px,1.8vh,16px);border-block-end:1px solid var(--line-2);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 8px;font-weight:500;color:var(--muted);transition:color .15s}
.tabs button:hover{color:var(--ink)}
.tabs button svg{width:17px;height:17px}
.tabs button[aria-selected=true]{color:var(--ink);font-weight:700}
.tabs button[aria-selected=true]::after{content:"";position:absolute;inset-inline:0;inset-block-end:-1px;height:2px;background:var(--e600)}
.tabs em{font-style:normal;font-size:12px;color:var(--muted);font-weight:400}
.pane{margin-block-start:var(--gap);animation:rise .26s var(--ease)}
.ov{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);gap:var(--gap);align-items:start}
.ov>div{display:grid;gap:var(--gap);min-width:0}
/* what to do now */
.act{position:relative;background:var(--surface);border-radius:var(--r-xs);box-shadow:var(--d2);padding:clamp(14px,calc(var(--u)*1.7),24px);display:grid;gap:var(--gap)}
.act-h{display:flex;gap:11px;align-items:flex-start}
.act-h>i{display:grid;place-items:center;width:38px;height:38px;flex:none;background:var(--soft);color:var(--ink-2);border-radius:var(--r-sm)}.act-h>i svg{width:20px;height:20px}
.act.hi .act-h>i{background:var(--brand);color:var(--on-1)}.act.ok .act-h>i{background:var(--green);color:var(--on-1)}
.act-h>div{display:grid;gap:1px;min-width:0}
.act-h .act-k{font-size:max(var(--s-min),12.5px);font-weight:500;color:var(--emerald)}.act.ok .act-h .act-k{color:var(--green)}
.act-h b{font-size:var(--tp-h3);line-height:1.35}.act-h span{color:var(--muted);font-size:var(--t-s);line-height:1.55}
.btn-row{display:flex;flex-wrap:wrap;gap:8px}
.act-q{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(14px,calc(var(--u)*2),28px);align-items:end}
.act-go{display:grid;gap:8px}.act-go .btn-row{display:grid}.act-go .btn{width:100%}
.due-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 12px;background:var(--surface);border-radius:var(--r-sm)}
.due-t{display:inline-flex;align-items:center;gap:7px;font-weight:500;font-size:var(--t-s);color:var(--ink)}.due-t svg{width:17px;height:17px}
.paynote{font-size:var(--t-s);color:var(--ink-2);background:var(--desk);padding:8px 11px;border-radius:var(--r-sm);white-space:pre-wrap}
/* fee statement */
.fee{display:grid;font-size:var(--t-s)}
.fee-r{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:baseline;padding:6px 0;border-block-end:1px solid var(--line)}
.fee-r small{margin-inline-start:8px;font-size:max(var(--s-min),12px);color:var(--muted);white-space:nowrap}
.fee-r b{font-weight:500;white-space:nowrap}
.fee-r.vat{color:var(--muted)}
.fee-t{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-block-start:9px}
.fee-t span{font-weight:700}
.fee-t b{font-size:clamp(23px,calc(var(--u)*2.5),34px);font-weight:700;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums lining-nums}
.qmeta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:var(--t-s);color:var(--muted)}
.qmeta span{display:inline-flex;align-items:center;gap:5px}.qmeta svg{width:15px;height:15px}
/* appointment */
.apt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
.apt-d{display:grid;justify-items:center;align-content:center;width:68px;height:74px;background:var(--e600);color:var(--on-1);border-radius:var(--r-xs);line-height:1.1;box-shadow:var(--lift)}
.apt-d b{font-size:29px}.apt-d span{font-size:max(var(--s-min),12.5px);font-weight:500}
.apt-d.ok{background:var(--green);box-shadow:none}.apt-d.off{background:var(--soft-2);color:var(--muted);box-shadow:none}
.apt-t{display:grid;gap:2px;justify-items:start;min-width:0}
.apt-t b{font-size:var(--tp-h3);line-height:1.3}.apt-t span{font-size:var(--t-s);color:var(--muted)}
.hist{font-size:var(--t-s);color:var(--muted)}
.hist summary{cursor:pointer;font-weight:500;color:var(--ink-2)}
.hist ul{display:grid;gap:3px;margin-block-start:6px}
.bk{display:grid;gap:var(--gap)}
.bk-days{display:grid;grid-auto-flow:column;grid-auto-columns:64px;gap:6px;overflow-x:auto;padding-block-end:4px;scrollbar-width:thin}
.bk-day{display:grid;justify-items:center;gap:0;padding:6px 2px;background:var(--desk);border-radius:var(--r-sm);line-height:1.25;font-size:max(var(--s-min),12px);color:var(--muted);transition:background-color .15s,color .15s}
.bk-day b{font-size:19px;color:var(--ink)}
.bk-day:hover{background:var(--soft)}
.bk-day[aria-pressed=true]{background:var(--e600);color:var(--on-1);box-shadow:var(--lift)}.bk-day[aria-pressed=true] b{color:var(--on-1)}
.bk-slots{height:152px;overflow:auto;align-content:start;display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px;padding:2px}
.bk-slot{height:40px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);border-radius:var(--r-sm);font-weight:500;transition:box-shadow .15s,background-color .15s,color .15s}
.bk-slot:hover{box-shadow:inset 0 0 0 1px var(--ink)}
.bk-slot[aria-pressed=true]{background:var(--e600);color:var(--on-1);box-shadow:var(--lift)}
.bk-none{grid-column:1/-1;align-self:center;text-align:center;color:var(--muted);font-size:var(--t-s);padding:10px}
/* released document */
.rel{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;padding:13px 15px;background:var(--green-wash);border-radius:var(--r-xs);box-shadow:var(--d1)}
.rel>i{display:grid;place-items:center;width:42px;height:50px;background:var(--surface);color:var(--green);border-radius:var(--r-xs);box-shadow:var(--d1)}.rel>i svg{width:22px;height:22px}
.rel>div{display:grid;min-width:0;line-height:1.4}
.rel b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rel small{font-size:max(var(--s-min),12.5px);color:var(--green-hi)}
/* parties */
.pts{display:grid}
.pt{display:grid;grid-template-columns:30px minmax(0,1.3fr) minmax(0,1fr) auto;gap:12px;align-items:center;min-height:56px;padding-block:8px;border-block-end:1px solid var(--line)}
.pt:last-child{border-block-end:0}
.pt-n{display:grid;place-items:center;width:30px;height:30px;background:var(--soft);border-radius:var(--r-xs);font-weight:700;font-size:13px;color:var(--ink-2)}
.pt-t{display:grid;min-width:0;line-height:1.35}
.pt-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-t small{font-size:max(var(--s-min),12.5px);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-a{display:flex;align-items:center;gap:4px}
.pe{display:grid;gap:6px;padding:9px 10px;background:var(--desk);border-radius:var(--r-sm);position:relative}
.pe-row{display:grid;grid-template-columns:26px minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr) 38px;gap:8px;align-items:end}
.pe-n{display:grid;place-items:center;width:26px;height:var(--f-h);font-weight:700;font-size:13px;color:var(--muted)}
.pe-x{height:var(--f-h)}
.pe-id{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px;padding-inline-start:34px}
.pe-more{justify-self:start;margin-inline-start:34px;font-size:max(var(--s-min),12.5px)}.pe-more svg{width:13px;height:13px}
/* documents by category */
.lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);align-items:start}
.lanes:has(>.lane:only-child){grid-template-columns:minmax(0,1fr)}   /* FXH-B (B-11): one shelf takes the row's width */
.lane{background:var(--surface);border-radius:var(--r-md);box-shadow:var(--d2);padding:clamp(12px,calc(var(--u)*1.4),18px);display:grid;gap:10px;min-width:0}
.lane-h{display:flex;gap:9px;align-items:flex-start}
.lane-h i{display:grid;place-items:center;width:32px;height:32px;flex:none;background:var(--soft);color:var(--ink-2);border-radius:var(--r-xs)}.lane-h i svg{width:18px;height:18px}
.lane-h div{display:grid;line-height:1.4}.lane-h b{font-size:var(--t)}.lane-h small{font-size:max(var(--s-min),12.5px);color:var(--muted);line-height:1.4}
.id-note{display:flex;gap:8px;padding:8px 10px;background:var(--soft);color:var(--ink-2);border-radius:var(--r-sm);font-size:max(var(--s-min),12.5px);line-height:1.5}.id-note svg{width:16px;height:16px;flex:none;margin-block-start:1px}
.flist{display:grid;gap:6px}
.fitem{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:6px 8px;background:var(--desk);border-radius:var(--r-sm);min-width:0}
.plink{transition:background-color .15s}.plink:hover{background:var(--soft)}
.fic{display:grid;place-items:center;width:34px;height:38px;flex:none;background:var(--surface);border-radius:var(--r-xs);box-shadow:var(--d1);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);overflow:hidden}
.fic.pdf,.fic.img{color:var(--emerald)}
.fic.brandbox svg{width:18px;height:18px}.fic.brandbox.ok{color:var(--green)}.fic.brandbox.red{color:var(--muted)}
.nm{display:grid;min-width:0;line-height:1.35}
.nm b{font-weight:500;font-size:var(--t-s);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nm small{font-size:max(var(--s-min),12px);color:var(--muted)}
.acts{display:flex;align-items:center;gap:2px}
.fitem .bar{height:4px;margin-block-start:3px;background:var(--soft-2);overflow:hidden}
.fitem .bar i{display:block;height:100%;width:0;background:var(--e600);transition:width .2s}
.prog-list{display:grid;gap:6px;max-height:46vh;overflow:auto}
.drop{display:flex;align-items:center;gap:10px;padding:12px;border:1.5px dashed var(--line-2);border-radius:var(--r-sm);cursor:pointer;background:var(--desk);transition:border-color .15s,background-color .15s}
.drop:hover,.drop.over{border-color:var(--e600);background:var(--e-tint)}
.drop .ill{display:grid;place-items:center;width:32px;height:32px;flex:none;background:var(--surface);color:var(--e600);border-radius:var(--r-xs);box-shadow:var(--d1)}.drop .ill svg{width:17px;height:17px}
.drop b{font-size:var(--t-s);font-weight:500}.drop small{display:block;font-size:max(var(--s-min),12px);color:var(--muted);line-height:1.4}
/* conversation */
.chat-card{padding:0;gap:0;overflow:hidden}
.chat-card .card-head{padding:clamp(11px,1.8vh,16px) clamp(14px,1.6vw,20px);border-block-end:1px solid var(--line)}
.chat{height:clamp(220px,calc(100svh - 478px),560px);overflow-y:auto;padding:12px clamp(12px,1.6vw,20px);display:flex;flex-direction:column;gap:9px;background:var(--paper);scrollbar-width:thin}
.msg{max-width:min(76%,540px);display:grid;gap:2px;margin-right:auto;justify-items:start}
.msg.me{margin-left:auto;margin-right:0;justify-items:end}
.msg .who{display:flex;gap:7px;font-size:max(var(--s-min),12px);color:var(--muted)}
.bub{padding:7px 11px;background:var(--paper);border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px var(--e-tint-2);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:var(--t-s)}
.msg.me .bub{background:var(--e-tint);color:var(--ink);box-shadow:none}
.fbub{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 7px;background:var(--surface);border-radius:var(--r-sm);box-shadow:var(--d1);min-width:210px}
.day{align-self:center;font-size:max(var(--s-min),12px);color:var(--muted);padding:1px 8px;background:var(--soft);border-radius:var(--r-xs)}
.sys{align-self:center;display:grid;justify-items:center;gap:2px;max-width:90%;text-align:center;font-size:max(var(--s-min),12.5px);color:var(--muted)}
.sys>span{display:inline-flex;align-items:center;gap:5px}.sys svg{width:14px;height:14px}
.sys q{quotes:none;color:var(--ink-2)}
.composer{display:flex;align-items:flex-end;gap:6px;padding:8px clamp(10px,1.4vw,16px);background:var(--surface);border-block-start:1px solid var(--line)}
.composer .textarea{min-height:40px;height:40px;resize:none;padding:7px 11px;font-size:15px}
/* payment */
.pay-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pstep{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;padding:8px 9px;background:var(--desk);border-radius:var(--r-sm);line-height:1.35}
.pstep i{grid-row:span 2;display:grid;place-items:center;width:24px;height:24px;background:var(--soft-2);color:var(--muted);font-style:normal;font-weight:700;font-size:max(var(--s-min),12.5px);border-radius:var(--r-xs)}.pstep i svg{width:13px;height:13px}
.pstep b{font-size:var(--t-s)}.pstep small{font-size:max(var(--s-min),12px);color:var(--muted)}
.pstep.now i{background:var(--e600);color:var(--on-1)}.pstep.done i{background:var(--green);color:var(--on-1)}
.pay-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pay-sum>div{display:grid;padding:8px 11px;background:var(--desk);border-radius:var(--r-sm);line-height:1.35}
.pay-sum small{font-size:max(var(--s-min),12.5px);color:var(--muted)}.pay-sum b{font-size:var(--tp-h3)}
.pay-sum .due{background:var(--surface)}.pay-sum .due b{color:var(--red-ink)}
.pay-due{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-weight:500}
.pay-due b{font-size:var(--tp-h2)}
.pay-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.pay-opt{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;padding:8px 10px;text-align:start;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);border-radius:var(--r-sm);line-height:1.35;transition:box-shadow .15s,background-color .15s}
.pay-opt i{grid-row:span 2;color:var(--muted);align-self:center}.pay-opt i svg{width:19px;height:19px}
.pay-opt b{font-size:var(--t-s)}.pay-opt small{font-size:max(var(--s-min),12px);color:var(--muted)}
.pay-opt[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--e600);background:var(--e-tint)}.pay-opt[aria-pressed=true] i{color:var(--e600)}
.pay-detail{display:grid;gap:9px}
.bank{display:grid;gap:1px;background:var(--line);border-radius:var(--r-sm);overflow:hidden}
.bank-row{display:grid;grid-template-columns:minmax(90px,.5fr) minmax(0,1fr) auto;gap:8px;align-items:center;padding:3px 9px;background:var(--desk);font-size:var(--t-s)}
.bank-row small{color:var(--muted)}.bank-row b{font-weight:500;overflow-wrap:anywhere}
.inv-st.ok{color:var(--green-hi)}.inv-st.due{color:var(--red-ink)}.inv-st.off{color:var(--muted)}
.pay-hist summary{cursor:pointer;font-weight:500;font-size:var(--t-s)}.pay-hist .flist{margin-block-start:7px}

/* ---------- new request ---------- */
.nw{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr);gap:var(--gap);align-items:start;margin-block-start:10px}
.nw-steps{display:flex;gap:clamp(8px,1.5vw,20px);overflow-x:auto;scrollbar-width:none}
.nw-steps span{flex:none;display:inline-flex;align-items:center;gap:7px;font-size:var(--t-s);color:var(--muted);font-weight:500}
.nw-steps b{display:grid;place-items:center;width:23px;height:23px;background:var(--soft-2);font-size:max(var(--s-min),12.5px);border-radius:var(--r-xs);transition:background-color .2s,color .2s}.nw-steps b svg{width:13px;height:13px}
.nw-steps .now{color:var(--ink);font-weight:700}.nw-steps .now b{background:var(--e600);color:var(--on-1)}
.nw-steps .done b{background:var(--green);color:var(--on-1)}
.nw-card{background:var(--surface);border-radius:var(--r-xs);box-shadow:var(--d3);padding:clamp(14px,calc(var(--u)*1.7),24px);display:flex;flex-direction:column;gap:var(--gap);min-height:clamp(400px,calc(100svh - var(--bar) - 150px),600px)}
.nw-body{flex:1;display:grid;gap:var(--gap);align-content:start;animation:rise .26s var(--ease);min-width:0}
.nw-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-block-start:10px;border-block-start:1px solid var(--line)}
.nw-q{font-size:var(--tp-h2);font-weight:700;line-height:1.3}
.nw-body .seg{justify-self:start}
.docs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.doc{position:relative;display:grid;gap:3px;align-content:start;min-height:clamp(92px,15vh,112px);padding:10px 11px;text-align:start;background:var(--desk);border-radius:var(--r-xs);box-shadow:var(--d1);transition:transform .2s var(--ease),box-shadow .2s,background-color .15s}
.doc:hover{transform:translateY(-2px);box-shadow:var(--d2)}
.doc i{display:grid;place-items:center;width:30px;height:30px;background:var(--surface);color:var(--eink);border-radius:var(--r-xs);box-shadow:var(--d1)}.doc i svg{width:17px;height:17px}
.doc b{font-size:var(--t-s);line-height:1.35}.doc small{font-size:max(var(--s-min),12px);color:var(--muted);line-height:1.35}
.doc[aria-pressed=true]{background:var(--e-tint);color:var(--ink);box-shadow:inset 0 0 0 2px var(--e600)}
.doc[aria-pressed=true] small{color:var(--ink-2)}
.est{position:sticky;inset-block-start:calc(var(--bar) + 12px);background:var(--surface);border-radius:var(--r-md);box-shadow:var(--d2);padding:clamp(14px,calc(var(--u)*1.5),20px);display:grid;gap:9px}
.est-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.est-h b{font-size:var(--tp-h3)}
.est-lines{height:188px;overflow:auto;display:block;scrollbar-width:thin}
.est-wait{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:var(--t-s);padding:10px}
.sk{display:block;height:13px;margin-block:13px;background:linear-gradient(90deg,var(--soft) 25%,var(--desk) 50%,var(--soft) 75%);background-size:200% 100%;animation:sheen 1.2s linear infinite;border-radius:1px}
.est-note{font-size:max(var(--s-min),12.5px);color:var(--muted);line-height:1.5}
.rv{display:grid;gap:var(--gap)}
.form-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
/* account */
.prof-head{display:flex;align-items:center;gap:12px}
.prof-head .avatar{width:50px;height:50px;font-size:22px}
.acc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);margin-block-start:var(--gap);align-items:start}
.acc>div{display:grid;gap:var(--gap);min-width:0}
.data-rows{display:grid;gap:8px}
.data-row{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--desk);border-radius:var(--r-sm)}
.data-row .tx{flex:1;display:grid;min-width:0;line-height:1.4}.data-row .tx b{font-size:var(--t-s)}.data-row .tx small{font-size:max(var(--s-min),12.5px);color:var(--muted)}

/* ---------- screens narrower than a laptop ---------- */
@media (max-width:1100px){
  .ov,.nw{grid-template-columns:minmax(0,1fr)}
  .est{position:static}.est-lines{height:auto;min-height:150px}
  .docs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  body{overflow-x:clip}
  .au{display:flex;flex-direction:column;min-height:100svh}
  .au-l{display:contents}
  .au-bar{order:1;min-height:58px;padding-inline:16px}
  .au-r{order:2;margin:0;min-height:168px;padding:18px 16px 46px;grid-template-rows:auto;background-position:50% 64%}
  .au-r .jr{display:none}
  .au-r::before{background:radial-gradient(90% 70% at 50% 18%,var(--scrim) 0%,transparent 80%)}
  .au-r h1{font-size:clamp(23px,6.6vw,34px)}
  .au-r .lede,.au-foot,.sc{display:none}
  .jr{margin-block-start:12px;display:block}
  .au-mid{order:3;padding:0 16px 26px;margin-block-start:-30px;position:relative;z-index:2}
  .au-book{width:min(100%,520px)}
  .au-sheet{height:auto;min-height:0;overflow:visible}
  .reg-slot{height:auto}.reg-slot>*{min-height:calc(var(--f-h) + 24px)}
  .pp{padding-block-end:66px}
  .pp-nav,.gbar .tools .cta-new,.who-btn .nm{display:none}
  .gbar .logo{width:clamp(150px,44vw,190px)}
  .bn{position:fixed;inset-block-end:0;inset-inline:0;z-index:50;display:grid;grid-template-columns:1fr 1fr 1fr;height:60px;background:var(--glass-92);backdrop-filter:blur(14px);border-top:1px solid var(--line);box-shadow:var(--sh-under)}
  .bn a{position:relative;display:grid;justify-items:center;align-content:center;gap:1px;font-size:max(var(--s-min),12px);font-weight:500;color:var(--ink-2)}
  .bn a svg{width:20px;height:20px}
  .bn a[aria-current=page]{color:var(--ink);font-weight:700}.bn a[aria-current=page]::after{content:"";position:absolute;inset-block-start:-1px;inset-inline:28%;height:2px;background:var(--red)}
  .bn .dot{position:absolute;inset-block-start:8px;inset-inline-start:calc(50% + 9px)}
  .bn .mid .bic{display:grid;place-items:center;width:28px;height:28px;background:var(--brand);color:var(--on-1);border-radius:var(--r-sm)}
  .hm{grid-template-columns:minmax(0,1fr)}
  .acc{grid-template-columns:minmax(0,1fr)}
  .lanes{grid-template-columns:minmax(0,1fr)}.lane-h{min-height:0}
  .trk{display:none}
  .trk-m{display:grid;gap:7px;margin-block-start:10px;padding:11px 12px;background:var(--surface);border-radius:var(--r-xs);box-shadow:var(--d2)}
  .trk-m .ticks{grid-template-columns:repeat(9,minmax(0,1fr))}.trk-m .ticks i{height:5px}
  .trk-m-t{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
  .trk-m-t b{font-size:var(--tp-h3)}.trk-m-t span{font-size:max(var(--s-min),12.5px);color:var(--muted)}
  .trk-m details{font-size:var(--t-s)}.trk-m summary{cursor:pointer;color:var(--muted);font-weight:500}
  .trk-m ol{display:grid;gap:3px;margin-block-start:6px}
  .trk-m li{display:flex;gap:8px;align-items:center;color:var(--muted)}.trk-m li i{width:8px;height:8px;background:var(--soft-2);border-radius:1px}
  .trk-m li.done{color:var(--ink-2)}.trk-m li.done i{background:var(--green)}.trk-m li.now{color:var(--ink);font-weight:700}.trk-m li.now i{background:var(--e600)}
  .chat{height:58svh}
}
@media (max-width:640px){
  .hide-xs{display:none}.show-xs{display:inline}
  .grid3{grid-template-columns:minmax(0,1fr)}
  .docs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pay-sum,.pay-path{grid-template-columns:minmax(0,1fr)}
  .pe-row{grid-template-columns:26px minmax(0,1fr) 38px}.pe-row>.field{grid-column:1/-1;order:2}.pe-x{grid-column:3;order:1}.pe-n{height:30px}
  .pe-id{grid-template-columns:minmax(0,1fr);padding-inline-start:0}.pe-more{margin-inline-start:0}
  .act-q{grid-template-columns:minmax(0,1fr)}
  .fee-r small{display:block;margin-inline-start:0}
  .pay-sum{grid-template-columns:repeat(3,minmax(0,1fr))}.pay-sum b{font-size:var(--t-s)}
  .pt{grid-template-columns:30px minmax(0,1fr) auto}.pt>.pt-t.id{display:none}
  .nw-card{min-height:0}
  .nw-body .grid2{grid-template-columns:minmax(0,1fr)}
  .tabs button svg{display:none}.tabs{gap:2px}
  .nw-steps span:not(.now){font-size:0;gap:0}
  .msg{max-width:88%}
  .tx-top{flex-direction:column;gap:6px}
  .bank-row{grid-template-columns:minmax(0,1fr) auto}.bank-row small{grid-column:1/-1}
  .dialog-actions .btn{flex:1}
}
@media (max-width:400px){
  .au-tab{padding:0 11px}
  .social-auth{grid-template-columns:1fr}
  .gbar{gap:6px}.lang-t{padding:0 6px}
  .docs{gap:7px}.doc{padding:8px}
  .hm-n>div{padding-inline-start:9px}
}
/* short screens last, so they win (lesson UX-3) */
@media (min-width:901px) and (max-height:760px){
  .au-r .lede{font-size:clamp(14px,calc(var(--u)*1.2),16px)}
  .au-foot{margin-block-start:6px}
}
@media (min-width:901px) and (max-height:640px){
  :root{--f-h:38px;--bar:52px}
  .field{gap:2px}
  .au-r .lede{display:none}
  .pa-body,.pa-body>form,.pa-body>.reg,.pa-body>.reg>form,.pa-body>.stack{gap:7px}
  .au-sheet{padding-block:11px}
  .type-card{padding:5px 9px}.type-card small{display:none}.type-card i{grid-row:auto;width:26px;height:26px}
  .soc-btn{min-height:36px}
  .newbie{padding:6px 10px}
  .rules{font-size:max(var(--s-min),12px)}
  .btn-sm{min-height:34px}
}

/* ================= THE v4 LOOK (PLATFORM, 2026-11-12; docs/web-v4/system.md) =================
   Later in the cascade than every rule above, same selectors, so these win. One place for every fill, ring, radius and shadow:
   the field, white cards, deep emerald for what is solid, pressed or current, green for what is done, the red only small. */

/* ---------- the field and the top block's aurora ---------- */
html,body{background:var(--page)}
body{background-image:var(--tex);background-size:var(--tex-size)}   /* the studio's texture over the field, as the site's body has it (D54); none/auto paint nothing; the grounds above it are lights only, so it shows through */
html{accent-color:var(--emerald)}
:focus-visible{outline:2px solid var(--emerald);outline-offset:3px;border-radius:var(--r-ic-sm)}
::selection{background:var(--field-2);color:var(--ink)}
.spinner{border-color:var(--field-2);border-top-color:var(--emerald);border-radius:50%}
@keyframes ping{from{transform:scale(1);opacity:.75}to{transform:scale(2.4);opacity:0}}
@keyframes ping-ring{from{transform:scale(1);opacity:.7}to{transform:scale(1.75);opacity:0}}

/* ---------- buttons: every one a pill; ONE solid per view ---------- */
.btn{border-radius:var(--r-pill);border:1px solid transparent;transition:transform var(--d-press) var(--e-snap),background-color var(--d-press),box-shadow var(--d-fast),border-color var(--d-press),color var(--d-press)}
.btn:active:not(:disabled){transform:scale(.97)}
.btn-primary{background:var(--g-primary);color:var(--white);box-shadow:var(--sh-primary)}.btn-primary:hover:not(:disabled){background:var(--emerald-hi)}
.btn-primary::before{content:none}
.btn-white{background:var(--white);color:var(--emerald);box-shadow:var(--sh-card)}.btn-white:hover{background:var(--emerald-soft)}
.btn-line{background:var(--white);color:var(--ink);border-color:var(--keyline);box-shadow:var(--sh-card)}   /* the secondary button: the 1 px keyline (brief 14) */.btn-line:hover:not(:disabled){border-color:var(--emerald);color:var(--emerald);box-shadow:var(--sh-card)}
.btn-ghost{color:var(--ink-2)}.btn-ghost:hover:not(:disabled){color:var(--emerald);background:var(--emerald-soft)}
.btn-ok{background:var(--green);color:var(--white)}.btn-ok:hover{background:var(--green-hi)}
.btn-danger{background:var(--white);color:var(--red-ink);border-color:var(--line);box-shadow:none}.btn-danger:hover:not(:disabled){background:var(--field);border-color:var(--line-2);box-shadow:none}
.btn.busy::after{border-color:var(--glass-60);border-top-color:var(--white);border-radius:50%}
.btn-line.busy::after,.btn-white.busy::after{border-color:var(--field-2);border-top-color:var(--emerald)}
.icon-btn{border-radius:50%}
.icon-btn:hover:not(:disabled){background:var(--emerald-soft);color:var(--emerald)}
.icon-btn.danger:hover:not(:disabled){background:var(--field);color:var(--red-ink)}
.icon-btn.send{background:var(--g-primary);color:var(--white);box-shadow:var(--sh-chip-on)}.icon-btn.send:hover:not(:disabled){background:var(--emerald-hi);color:var(--white)}
.link-btn{color:var(--emerald);font-weight:700;text-decoration-color:transparent}.link-btn:hover:not(:disabled){text-decoration-color:var(--emerald-vivid)}
.lang-t,.who-btn,.soc-btn{border-radius:var(--r-pill)}
.lang-t:hover,.au .lang-t:hover,.pp-head .lang-t:hover{background:var(--emerald-soft);color:var(--emerald)}
.soc-btn{box-shadow:inset 0 0 0 1px var(--keyline)}.soc-btn:hover{box-shadow:inset 0 0 0 1px var(--emerald);color:var(--emerald)}

/* ---------- fields ---------- */
.input,.select,.textarea,.otp-b{border-color:var(--field-line);border-radius:var(--r-input)}   /* D18: the edge of a text field, 3:1 or more on every surface it stands on */
.input:hover,.select:hover,.textarea:hover{border-color:var(--green)}
.input:focus,.select:focus,.textarea:focus,.otp-b:focus{border-color:var(--emerald);box-shadow:var(--sh-focus)}
.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:1}
.ctrl>.ic{color:var(--emerald)}
.caps{color:var(--red-ink)}
.check input{accent-color:var(--emerald)}
.meter{border-radius:var(--r-pill);background:var(--field-2)}.meter i{background:var(--line-2);border-radius:var(--r-pill)}.meter.s3 i,.meter.s4 i{background:var(--green)}
.rules li::before{background:var(--white);border:1px solid var(--line-2);border-radius:50%;box-sizing:border-box}.rules li.ok{color:var(--green-text)}.rules li.ok::before{background:var(--green);border-color:var(--green)}
.seg{background:var(--field);border:1px solid var(--line);border-radius:var(--r-input)}
.seg button{border-radius:9px;color:var(--ink-2)}
.seg button[aria-pressed=true]{background:var(--white);color:var(--emerald);font-weight:700;box-shadow:var(--sh-seg)}
.switch .track{border-radius:var(--r-pill)}.switch .track::after{border-radius:50%}
.switch input:checked+.track{background:var(--emerald)}
.switch input:focus-visible+.track{outline:2px solid var(--emerald);outline-offset:2px}
.otp-b.filled{background:var(--field);border-color:var(--emerald)}

/* ---------- messages ---------- */
.alert{border-radius:var(--r-tile)}
.alert-err{background:var(--field);color:var(--red-ink);border-color:var(--line)}
.alert-ok{background:var(--green-soft);color:var(--green-text);border-color:var(--emerald-line)}
.alert-info,.alert-warn{background:var(--field);color:var(--ink-2);border-color:var(--line)}
.toast{border:1px solid var(--line);border-radius:var(--r-opt);box-shadow:var(--sh-pop)}
.toast.err{color:var(--red-ink)}.toast.err svg{color:currentColor}
.dialog{border:1px solid var(--line);border-radius:var(--r-panel);box-shadow:var(--sh-pop)}
.notes li::before{width:6px;height:6px;border-radius:50%;background:var(--emerald-vivid);inset-block-start:.62em}

/* ---------- sign-in: the field with the aurora, the sheet as a white panel, the document's path ---------- */
.au{background:var(--ground-band)}
.au-logo{width:clamp(40px,calc(var(--u)*3.6),52px);height:clamp(45px,calc(var(--u)*4),58px)}
.au-book{--tabs-h:50px}
.au-tabs{display:inline-flex;align-items:center;gap:4px;height:auto;margin-block-end:10px;padding:4px;background:var(--glass-66);border:1px solid var(--line);border-radius:var(--r-pill)}
.au-tabs[hidden]+.au-sheet{margin-block-start:var(--tabs-h)}
.au-tab{height:36px;padding:0 16px;border:0;border-radius:var(--r-pill);background:none;color:var(--ink-2)}
.au-tab:hover{color:var(--emerald)}
.au-tab[aria-selected=true]{height:36px;background:var(--g-primary);color:var(--white);box-shadow:var(--sh-chip-on)}
.au-tab[aria-selected=true]::before{content:none}
.au-sheet{height:min(572px,calc(100svh - var(--bar) - var(--tabs-h) - clamp(10px,2.4vh,22px)));background:var(--white) var(--face);border:1px solid var(--line);border-radius:var(--r-panel);box-shadow:var(--sh-lift)}
.au-book::before,.au-book::after{content:none}
.or-line::before,.or-line::after{background:var(--line)}
.dot-sep{background:var(--line-2);border-radius:50%}
.newbie{background:var(--emerald-soft);border:1px solid var(--emerald-line);border-radius:var(--r-opt)}.newbie:hover{background:var(--field-2)}
.newbie .nic,.mail-ic,.empty-state .ill,.act-h>i,.lane-h i,.drop .ill,.doc i,.type-card i{background:var(--emerald-soft);border:1px solid var(--emerald-line);color:var(--emerald);border-radius:var(--r-ic);box-shadow:none}
.newbie .nic{background:var(--white)}
.newbie .arr{color:var(--emerald)}
.staff-card i{color:var(--emerald)}
.mail-ic{border-radius:var(--r-ic-md)}.mail-ic.ok{background:var(--green);border-color:var(--green);color:var(--white)}
.type-card{border-radius:var(--r-opt);box-shadow:inset 0 0 0 1px var(--line)}
.type-card .tick{color:var(--emerald)}
.type-card[aria-checked=true]{background:var(--white) var(--face-on);box-shadow:inset 0 0 0 1px var(--keyline),var(--sh-card)}
.type-card[aria-checked=true]::before,.doc[aria-pressed=true]::before,.pay-opt[aria-pressed=true]::before,.bk-day[aria-pressed=true]::before,.bk-slot[aria-pressed=true]::before{content:"";position:absolute;inset-inline-start:-1px;top:50%;width:3px;height:22px;margin-top:-11px;border-radius:2px;background:var(--red);pointer-events:none}   /* red-ok: the logo trio (brief 15.1): the 3 px mark of a chosen option (system.md 4.6) */
.type-card[aria-checked=true] i{background:var(--g-deep);border-color:var(--emerald);color:var(--white)}
.mini-steps b,.nw-steps b,.pstep i{border-radius:50%}
.mini-steps .now b,.nw-steps .now b,.pstep.now i{background:var(--black);border:0;color:var(--white)}   /* the current step: a black number chip of 36 px or less (brief 15.1) */
.mini-steps .done b,.nw-steps .done b,.pstep.done i{background:var(--green);color:var(--white)}
.avatar{background:var(--emerald-soft);border:1px solid var(--emerald-line);color:var(--emerald);border-radius:50%}
/* the side panel: no panel at all, the words and the travelling document on the field */
.au-r{background:none;border:0}
.au-r h1::after{content:none}
.au-r .sc{display:grid;flex:1}
.jr{justify-content:space-between}

/* ---------- the app shell: a floating glass bar, the mark alone ---------- */
.pp{position:relative;isolation:isolate;background:none;padding-block-start:calc(var(--bar) + var(--bar-top) + 6px)}
.pp::before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:min(460px,64svh);background:var(--ground-band);pointer-events:none}
.pp-head{height:calc(var(--bar) + var(--bar-top));padding-block-start:var(--bar-top);background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* what scrolls under the floating bar fades into the field (the site's veil). It shows only once the page has moved, so the
   aurora behind the bar is whole at the top; a browser without scroll-driven animations gets no veil (the glass bar alone) */
.pp-head::before{content:"";position:absolute;z-index:-1;inset:0 0 -22px;pointer-events:none;opacity:0;background:linear-gradient(180deg,var(--page) 0%,var(--page) 58%,var(--page-a72) 78%,var(--page-a0) 100%)}
@keyframes veil-in{from{opacity:0}to{opacity:1}}
@supports (animation-timeline:scroll()){.pp-head::before{animation:veil-in linear both;animation-timeline:scroll(root block);animation-range:0 56px}}
.gbar{position:relative;padding-inline:16px 10px;border:1px solid transparent;border-radius:var(--r-bar);background:linear-gradient(var(--glass-90),var(--glass-90)) padding-box,var(--g-frame) border-box;-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);box-shadow:inset 0 1px 0 var(--white),var(--sh-card)}
[dir=rtl] .gbar{background:linear-gradient(var(--glass-90),var(--glass-90)) padding-box,var(--g-frame-rtl) border-box}
.pp-nav a{border-radius:var(--r-pill)}
.pp-nav a:hover{color:var(--emerald)}.pp-nav a[aria-current=page]{color:var(--ink)}
.pp-nav .thumb{inset-block-end:5px;height:3px;border-radius:3px;background:var(--red)}   /* the active-nav mark (brief 4.4) */
.dot{position:relative;border-radius:50%;animation:none}
.dot::after,.next-top .data i::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:ping 1.8s var(--e-out) infinite}
.who-btn:hover,.pp-head .who-btn:hover{background:var(--emerald-soft)}
.pp-head .icon-btn:hover:not(:disabled){background:var(--emerald-soft);color:var(--emerald)}
.menu-pop{border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-pop)}
.menu-pop a,.menu-pop>button{border-radius:var(--r-opt)}
.menu-pop a:hover,.menu-pop>button:hover{background:var(--field);color:var(--emerald)}.menu-pop svg{color:var(--emerald)}
.lb{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-opt)}
.lb::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--red)}
.crumb:hover{color:var(--emerald)}

/* ---------- cards, tags ---------- */
.card,.next,.led,.empty-state,.act,.trk,.lane,.nw-card,.est,.trk-m{background:var(--white) var(--face);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-card)}
.st{height:26px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--white);color:var(--ink-2)}
.st::before{border-radius:50%;background:var(--emerald-vivid)}
.st.me{background:var(--white);color:var(--ink)}.st.me::before{background:var(--red)}
.st.ok{background:var(--green-soft);border-color:var(--emerald-line);color:var(--green-text)}.st.ok::before{background:var(--green)}
.st.off{color:var(--muted)}.st.off::before{background:var(--line-2)}
.badge-ok,.badge-no{border-radius:var(--r-pill)}.act>.badge-ok,.act>.badge-no{justify-self:start}.badge-ok{background:var(--green-soft);color:var(--green-text)}.badge-no{background:var(--field);color:var(--ink-2)}

/* ---------- home: the greeting on the field, three fact tiles, the next step as the screen's deep anchor ---------- */
.hm-l h1 em{color:var(--emerald);box-shadow:none}
.hm-n{border:0;gap:var(--gap)}
.hm-n>div,.hm-n>div:first-child{padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-tile);background:var(--white) var(--face)}
.hm-n span{color:var(--ink-2)}
.hm-n .warn b{color:var(--red)}   /* a counter: what waits for the client */
.next{overflow:hidden}
.next .btn-white{background:var(--g-primary);color:var(--white);box-shadow:var(--sh-primary)}.next .btn-white:hover{background:var(--emerald-hi)}
.next-top .data i{position:relative;border-radius:50%;background:var(--emerald-vivid);animation:none}
.next.hot{background:var(--g-deep);border-color:transparent;color:var(--white);box-shadow:var(--sh-deep)}
.next.hot::before{content:"";position:absolute;z-index:0;inset:0;background:radial-gradient(ellipse 60% 110% at var(--edge-end) 0%,var(--vivid-a45),transparent 70%);pointer-events:none}
.next.hot .data,.next.hot .ref,.next.hot .next-body span{color:var(--emerald-mint);opacity:1}
.next.hot .next-top .data i{background:var(--emerald-lit)}
.next.hot .next-go .fig{color:var(--white)}
.next.hot .btn-white{background:var(--white);color:var(--emerald);box-shadow:none}.next.hot .btn-white:hover{background:var(--emerald-soft)}
.next.hot :focus-visible{outline-color:var(--white)}
/* fix round: the stage of the transaction fills the card's middle (it was a tall empty face at 1536x700) */
.next:has(>.next-path){grid-template-rows:auto minmax(0,1fr) auto auto}
.next-path{position:relative;display:grid;gap:7px;padding:10px 12px;background:var(--field);border-radius:var(--r-tile)}
.next-st{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:var(--t-s);line-height:1.4}.next-st b{font-weight:700;color:var(--ink)}.next-st span{color:var(--muted)}
.next-path .ticks{grid-template-columns:repeat(9,minmax(0,40px))}   /* each dash at most 40 px: red stays a dash, never a bar */
.next.hot .next-path{background:var(--glass-12)}.next.hot .next-st b{color:var(--white)}.next.hot .next-st span{color:var(--emerald-mint)}
.next.hot .ticks i{background:var(--glass-32)}.next.hot .ticks i.on{background:var(--emerald-lit)}.next.hot .ticks i.on:not(:has(+i.on)){background:var(--white)}   /* on the deep anchor: no red, no black (the lit side and white) */
.ticks i{height:3px;background:var(--field-2);border-radius:2px}.ticks i.on{background:var(--red)}   /* red-ok: the logo trio (brief 15.1): the part of the path done so far, 3 x 16 px dashes */
.ticks i.on:not(:has(+i.on)){background:var(--black)}.ticks.done i.on{background:var(--green)}.ticks.off i{background:var(--line)}
.new-msg{color:var(--ink)}

/* ---------- a transaction ---------- */
.trk-s::before{inset-block-start:15px;height:1px;background:var(--keyline)}   /* between the numbers: the 1 px keyline (brief 15.1) */
.trk-s.done::before,.trk-s.now::before{inset-block-start:14px;height:2px;background:var(--red)}   /* red-ok: the logo trio (brief 15.1): the part done so far, the 2 px progress line */
.trk.finished .trk-s::before{background:var(--green)}   /* a finished path: done is green */
.trk-d{width:30px;height:30px;background:var(--white);border-radius:50%;border:1.5px solid var(--line-2);font-size:max(var(--s-min),12.5px)}
.trk-s.done .trk-d{background:var(--green);border-color:var(--green);color:var(--white)}
.trk-s.now .trk-d{background:var(--black);border-color:var(--black);color:var(--white);animation:none}   /* the current stage: the black number chip, 30 px */
.trk-s.now .trk-d::after{content:"";position:absolute;inset:-1.5px;border-radius:50%;border:1.5px solid var(--black);animation:ping-ring 1.9s var(--e-out) infinite;pointer-events:none}
.tabs{gap:6px;border:0;padding-block-end:2px}
.tabs button{min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--white);color:var(--ink-2);transition:background-color var(--d-press),border-color var(--d-press),color var(--d-press)}
.tabs button:hover{border-color:var(--emerald);color:var(--emerald)}
.tabs button[aria-selected=true]{background:var(--g-primary);border-color:var(--emerald);color:var(--white);box-shadow:var(--sh-chip-on)}
.tabs button[aria-selected=true]::after{content:none}
.tabs button[aria-selected=true] em{color:var(--emerald-mint)}
.act.hi{border-block-start:1px solid var(--keyline);border-color:var(--keyline);background:var(--white) var(--face-on);box-shadow:var(--sh-lift)}   /* the key card of the screen: the keyline (brief 14) */
.act.ok{border-block-start:1px solid var(--line)}
.act.hi .act-h>i{background:var(--g-deep);border-color:var(--emerald);color:var(--white);box-shadow:var(--sh-chip-on)}
.act.ok .act-h>i{background:var(--green);border-color:var(--green);color:var(--white)}
.act-h .act-k{display:inline-flex;align-items:center;gap:6px;color:var(--emerald);font-weight:700}.act.ok .act-h .act-k{color:var(--green-text)}
.act.hi .act-h .act-k::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--red)}
.due-row{background:var(--white);border:1px solid var(--line);border-radius:var(--r-tile)}.due-t{color:var(--ink)}.due-t svg{color:var(--emerald)}
.paynote{border-radius:var(--r-tile)}
.fee-r{border-color:var(--line)}
.apt-d{background:var(--g-deep);border:0;color:var(--white);border-radius:var(--r-ic-md);box-shadow:var(--sh-chip-on)}
.apt-d.ok{background:var(--green);box-shadow:none}.apt-d.off{background:var(--field);border:1px solid var(--line);color:var(--muted);box-shadow:none}
.bk-day{border-radius:var(--r-tile)}
.bk-day,.bk-slot{position:relative}
.bk-day[aria-pressed=true],.bk-slot[aria-pressed=true]{background:var(--white) var(--face-on);color:var(--ink);font-weight:700;box-shadow:inset 0 0 0 1px var(--keyline),var(--sh-card)}.bk-day[aria-pressed=true] b{color:var(--ink)}
.bk-slot{border-radius:var(--r-pill);box-shadow:inset 0 0 0 1px var(--line)}.bk-slot:hover{box-shadow:inset 0 0 0 1px var(--emerald);color:var(--emerald)}
.rel{background:var(--white) var(--face);border:1px solid var(--line);border-radius:var(--r-opt);box-shadow:var(--sh-card)}
.rel>i{background:var(--green);color:var(--white);border-radius:var(--r-ic);box-shadow:none}.rel small{color:var(--green-text)}
.pt{border-color:var(--line)}.pt-n{background:var(--emerald-soft);color:var(--emerald);border-radius:50%}
.lane.id .lane-h i{background:var(--emerald-soft);border-color:var(--emerald-line);color:var(--emerald)}
.id-note{background:var(--field);color:var(--ink-2);border-inline-start:3px solid var(--emerald-vivid);border-radius:var(--r-ic)}
.fic{box-shadow:none;border:1px solid var(--line);border-radius:var(--r-ic-sm)}.fic.pdf,.fic.img{color:var(--emerald)}
.fic.brandbox.ok{color:var(--green)}.fic.brandbox.red{color:var(--muted)}
.fitem .bar{border-radius:var(--r-pill)}.fitem .bar i{background:var(--emerald)}
.drop{border-color:var(--line-2);border-radius:var(--r-opt)}
.drop:hover,.drop.over{border-color:var(--emerald);background:var(--emerald-soft)}
.drop .ill{background:var(--white)}
.chat{background:var(--white)}
.bub{box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--r-opt)}.msg.me .bub{background:var(--emerald-soft);box-shadow:inset 0 0 0 1px var(--emerald-line)}
.day{border-radius:var(--r-pill)}
.pay-sum .due{background:var(--white);border:1px solid var(--line)}.pay-sum .due b{color:var(--red-ink)}
.pay-opt{border-radius:var(--r-opt);box-shadow:inset 0 0 0 1px var(--line)}
.pay-opt i{color:var(--emerald)}
.pay-opt{position:relative}
.pay-opt[aria-pressed=true]{background:var(--white) var(--face-on);box-shadow:inset 0 0 0 1px var(--keyline),var(--sh-card)}.pay-opt[aria-pressed=true] i{color:var(--emerald)}
.inv-st.ok{color:var(--green-text)}.inv-st.due{color:var(--red-ink)}

/* ---------- new request, account ---------- */
.doc{background:var(--white) var(--face);border:1px solid var(--line);border-radius:var(--r-opt);box-shadow:none}
.doc:hover{border-color:var(--line-2);box-shadow:var(--sh-card)}
.doc[aria-pressed=true]{background:var(--white) var(--face-on);border-color:var(--keyline);color:var(--ink);box-shadow:var(--sh-card)}
.doc[aria-pressed=true] i{background:var(--g-deep);border-color:var(--emerald);color:var(--white);box-shadow:var(--sh-chip-on)}
.nw-foot{border-color:var(--line)}
.nw-card{min-height:clamp(400px,calc(100svh - var(--bar) - var(--bar-top) - 150px),600px)}
.est{inset-block-start:calc(var(--bar) + var(--bar-top) + 14px)}
.sk{background:linear-gradient(90deg,var(--field) 25%,var(--field-2) 50%,var(--field) 75%);background-size:200% 100%;border-radius:var(--r-pill)}

/* ---------- screens narrower than a laptop ---------- */
@media (max-width:900px){
  .au-r{min-height:0;padding:2px 16px 30px}
  .au-r h1{font-size:clamp(21px,4.6vw,30px)}
  .au-r .jr{display:none}
  .au-mid{margin-block-start:-18px}
  .au-tabs{margin-inline-start:4px}
  .bn{height:62px;background:var(--glass-95);border-top:1px solid var(--line);box-shadow:var(--sh-under)}
  .bn a[aria-current=page]{color:var(--ink)}   /* the current page in a menu: ink and the red mark (brief 15.1) */
  .bn a[aria-current=page]::after{inset-block-start:0;height:3px;border-radius:0 0 3px 3px;background:var(--red)}   /* the active-nav mark */
  .bn .mid .bic{background:var(--g-deep);color:var(--white);border-radius:50%;box-shadow:var(--sh-chip-on)}
  .gbar .logo{width:calc(var(--bar)*.62)}
  .trk-m li i{border-radius:50%}.trk-m li.now i{position:relative;background:var(--black);animation:none}.trk-m li.done i{background:var(--green)}
  .trk-m .ticks{grid-template-columns:repeat(9,minmax(0,40px))}.trk-m .ticks i{height:3px}   /* the phone tracker: dashes of at most 40 px, as the ledger and the next-step card */
}
@media (max-width:640px){
  .hm-n{gap:8px}.hm-n>div,.hm-n>div:first-child{padding:8px 10px}
  .tabs button{padding:0 12px}
}
@media (min-width:901px) and (max-height:640px){
  .au-book{--tabs-h:46px}
  .au-tab{height:32px}.au-tab[aria-selected=true]{height:32px}
  .au-r .sc{display:none}
}

/* ---------- the site studio (PORTAL-UI, 2026-11-13; studio-spec 1.3 screen 4, 6.2 item 3, 8.5) ----------
   /theme/portal.css (the owner's look, empty for the designed one) is linked between tokens.css and this sheet; this sheet declares no
   themed leaf name, so a look reaches every rule here through the tokens. Two cards may be left out (portal.js cardOn): the journey on
   the sign-in side and the next-step card of the client home; their neighbours then take the room. */
.au-r.no-jr{grid-template-rows:auto;align-content:center}
.hm.solo{grid-template-columns:minmax(0,1fr)}
.nobr{white-space:nowrap}   /* a hyphenated word of a document's name («non-Muslims») stays whole (portal.js valKeep) */
/* D65: small words that stood under 4.5:1 (PP-5, PP-6). On the hot next-step card the reference, «الخطوة التالية», the document's name
   and «المرحلة 3 من 9» are white (mint stood 3.0 to 4.4 on the card's glow, worst under «النعناع الزاهي»), and the card's light moves
   from behind them (the top end corner) to the foot's end corner, behind the white button and the large amount. «لديك حساب؟» /
   "Already have an account?" takes the secondary ink (the muted grey stood 4.28 at the sheet's foot) */
.next.hot::before{background:radial-gradient(ellipse 70% 80% at var(--edge-end) 100%,var(--vivid-a45),transparent 70%)}
.next.hot .data,.next.hot .ref,.next.hot .next-body span,.next.hot .next-st span{color:var(--white)}
.next.hot .next-path{background:color-mix(in srgb,var(--emerald-low) 72%,transparent)}   /* the stage's well: recessed (the low stop), not lifted, so white stays over 4.5 under «النعناع الزاهي» */
.alt{color:var(--ink-2)}
/* the pause notice (the portal switched off; D65): one calm block in the middle of the sheet, the clock badge, the words, then the
   ways to reach the office (WhatsApp, the phone, the email), each line centred */
.pa-body.pause{justify-content:center;align-items:center;text-align:center;gap:clamp(12px,calc(var(--u)*1.6),20px);padding-block:clamp(10px,4vh,36px)}
.pa-body.pause .pa-h{max-width:30em;gap:8px}
.pa-body.pause .pa-h .sub{font-size:var(--t);line-height:1.7}
.pa-body.pause .help{max-width:32em}
.pz-ic{width:54px;height:54px;margin:0}.pz-ic svg{width:26px;height:26px}
/* the studio's preview (?studio=1, signed in to the dashboard; brief D62). Until the draft's declarations are on, the page is not
   shown at all (the head script boot.js sets data-aw-studio-wait before the first paint, D84): never a frame of the live look. Then a strip in the flow at
   the top of the page (sticky, it takes its own room): the floating bar and the full-height screens move down by its height, so it lies
   on no control at any size. The whole sentence where there is room, the one word «معاينة» on a phone. */
html[data-aw-studio-wait],html[data-aw-studio-wait] body{background:var(--white)}
html[data-aw-studio-wait] body{visibility:hidden;animation:aw-unwait 0s 10s forwards}
/* D84: the mark comes from /portal/boot.js; portal.js takes it off. Should portal.js never run, the page shows after 10 s anyway */
@keyframes aw-unwait{to{visibility:visible}}
html[data-aw-studio]{--studio-h:30px}
.studio-ribbon{position:sticky;inset-block-start:0;z-index:120;display:flex;align-items:center;justify-content:center;height:var(--studio-h);padding-inline:16px;pointer-events:none;background:var(--emerald);color:var(--white);font-size:max(var(--s-min),13px);font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;box-shadow:var(--sh-seg)}
.studio-ribbon .sr-short{display:none}
@media (max-width:640px){.studio-ribbon .sr-long{display:none}.studio-ribbon .sr-short{display:inline}}
html[data-aw-studio] .pp-head{inset-block-start:var(--studio-h)}
html[data-aw-studio] .au,html[data-aw-studio] .pp,html[data-aw-studio] #root.boot{min-height:calc(100svh - var(--studio-h))}
html[data-aw-studio] .est{inset-block-start:calc(var(--studio-h) + var(--bar) + var(--bar-top) + 14px)}
@media (min-width:901px){
  html[data-aw-studio] .au-r{min-height:calc(100svh - var(--studio-h))}
  html[data-aw-studio] .au-sheet{height:min(572px,calc(100svh - var(--studio-h) - var(--bar) - var(--tabs-h) - clamp(10px,2.4vh,22px)))}
}

/* ================= v5 PORTAL (wave A2, 2026-11-14; research/portal-look.md P1 to P8, in today's colours, no added green) =================
   Later than every rule above. The structure is new (the rail, the cards, the groups); the colour world is the delivered one. */

/* ---------- P4 the step rail: a dot per real stage, the line done so far, the light over the part ahead ---------- */
.rail{--rd:8px;--rn:12px;display:flex;align-items:center;min-height:14px;width:100%}
.rail>i,.ra>i{flex:none;width:var(--rd);height:var(--rd);border-radius:50%;background:var(--white);box-shadow:inset 0 0 0 1.5px var(--ink-a22)}
.rail i.d{width:6px;height:6px;background:var(--red);box-shadow:none}.rail.fin i.d{background:var(--green)}
.rail i.now{position:relative;width:var(--rn);height:var(--rn);background:var(--black);box-shadow:0 0 0 3px var(--white)}
.rail i.now::after{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid var(--black);animation:ping-ring 2.4s var(--e-out) 3}   /* E5: a neutral ring round the current chip (the vivid one added green on phone tabs) */
.rail b{flex:1 1 0;min-width:4px;height:1px;background:var(--ink-a16)}   /* E5: the part ahead in a neutral hairline (the mint line added green on phone tabs) */
.rail b.d{height:2px;background:var(--red)}   /* red-ok: the logo trio (brief 15.1): the part of the path done so far, the 2 px progress line */
.rail.fin b.d{background:var(--green)}
.ra{position:relative;display:flex;align-items:center;flex:1 1 0;min-width:0}
.fl{position:absolute;inset-inline:0;top:50%;height:4px;margin-top:-2px;overflow:hidden;pointer-events:none}
.fl::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent calc(100% - 46px),var(--emerald-vivid) calc(100% - 23px),transparent);opacity:0;transform:translateX(-100%);animation:rlFlow 2.8s linear 3}
[dir=rtl] .fl{transform:scaleX(-1)}
@keyframes rlFlow{15%{opacity:1}to{opacity:0;transform:none}}
.rail.key{--rd:10px;--rn:14px;min-height:18px}
.rail.key .fl::after{animation-iteration-count:infinite}
.next.hot .rail i{background:var(--glass-32);box-shadow:none}.next.hot .rail i.d{background:var(--white)}.next.hot .rail i.now{background:var(--white);box-shadow:none}
.next.hot .rail b{background:var(--glass-32)}.next.hot .rail b.d{background:var(--white)}   /* on the deep anchor: no red, no black (the lit side and white), as the ticks were */
.next.hot .rail i.now::after{border-color:var(--white)}.next.hot .fl::after{background:linear-gradient(90deg,transparent calc(100% - 46px),var(--white) calc(100% - 23px),transparent)}
.next-then::before{content:" · "}
.next-path .rail{margin-block:2px}

/* ---------- P3 the home: quick actions, the counters as one slim strip, the transactions as cards in groups ---------- */
.txs{display:grid;gap:clamp(14px,2.4vh,22px);padding:clamp(14px,calc(var(--u)*1.6),22px);background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r);box-shadow:0 1px 2px var(--ink-a05),0 18px 36px -24px var(--ink-a16)}   /* E5: a neutral edge and shadow */
.txg-h{display:flex;align-items:center;gap:8px;margin-block-end:10px;font-size:var(--s-md);font-weight:700;color:var(--ink)}
.txg-h em{font-style:normal;min-width:24px;height:22px;padding:0 7px;display:inline-grid;place-items:center;border-radius:var(--r-pill);background:var(--field);border:1px solid var(--line);font-size:var(--s-xs);color:var(--ink-2)}
.txg.me .txg-h em{background:var(--white);color:var(--red-ink)}
.txg-l{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));gap:12px}
.txc{display:grid;gap:12px;padding:14px 16px;background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r-tile);box-shadow:0 1px 2px var(--ink-a05);color:inherit;text-decoration:none;transition:transform var(--d-base) var(--e-lift),box-shadow var(--d-base) var(--e-lift),border-color var(--d-base);animation:txIn 420ms var(--e-out) both}
.txc:hover,.txc:focus-visible{transform:translateY(-2px);box-shadow:var(--sh-lift);border-color:var(--line-2)}
.tx-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.tx-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-ic);background:var(--white);border:1px solid var(--ink-a09);color:var(--ink)}
.tx-ic svg{width:19px;height:19px}
.txc .led-t b,.txc .led-t small{white-space:normal;overflow:visible}
.txc .rail{padding-inline:2px}.txc .fl{display:none}   /* the list keeps still: the light runs on the key card and the transaction page only (no added green) */
.tx-f{display:flex;align-items:center;gap:12px;padding-block-start:10px;border-top:1px solid var(--ink-a09);font-size:var(--s-xs);color:var(--muted);min-width:0}
.tx-f .ref{flex:none;color:var(--ink-2)}
.tx-f .led-m{flex:1;min-width:0}
.tx-f .arr{flex:none;width:17px;height:17px;color:var(--emerald);transition:transform var(--d-base) var(--e-lift)}
.txc:hover .arr{transform:translateX(3px)}[dir=rtl] .txc:hover .arr{transform:translateX(-3px) scaleX(-1)}
.tx-f .new-msg{display:inline-flex;align-items:center;gap:7px;color:var(--ink);font-weight:700}
.tx-f .new-msg .dot{flex:none;width:7px;height:7px;background:var(--red)}
.tx-f .new-msg.also{font-weight:500;margin-inline-start:12px}   /* LOOKFIX VP-6: the message comes second, quieter than the task */
@keyframes txIn{from{opacity:0;transform:translateY(8px)}}
.txg-l>.txc:nth-child(2){animation-delay:40ms}.txg-l>.txc:nth-child(3){animation-delay:80ms}.txg-l>.txc:nth-child(4){animation-delay:120ms}.txg-l>.txc:nth-child(n+5){animation-delay:160ms}
@media (max-width:640px){
  .txs{padding:10px}.txc{padding:12px 14px}.tx-h{gap:10px}.tx-ic{width:36px;height:36px}
}
@media (max-width:420px){.hm-acc{display:none}}
.hm-acc,.hm-acc:hover:not(:disabled){box-shadow:0 1px 2px var(--ink-a05)}
.hm:has(+div .empty-state) .hm-acc{display:none}   /* E5: an empty account keeps two actions (the menu has the account) */   /* E5: the third quick action keeps a neutral shadow (the card shadow added green) */

/* ---------- P5 the transaction page: the light over the stages ahead, panels that say what is missing, the stamp ---------- */
.trk{--fl-s:0%;--fl-e:0%}
.trk.flow::after{content:"";position:absolute;inset-inline-start:var(--fl-s);inset-inline-end:var(--fl-e);top:calc(clamp(12px,1.8vh,16px) + 13px);height:4px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--emerald-vivid),transparent) no-repeat;background-size:46px 100%;opacity:0;animation:trkFlow 2.8s linear infinite}
[dir=rtl] .trk.flow::after{animation-name:trkFlowR}
@keyframes trkFlow{0%{opacity:0;background-position:-46px 0}15%{opacity:1}to{opacity:0;background-position:calc(100% + 46px) 0}}
@keyframes trkFlowR{0%{opacity:0;background-position:calc(100% + 46px) 0}15%{opacity:1}to{opacity:0;background-position:-46px 0}}
.trk-m .rail{--rd:6px;--rn:9px;min-height:9px;margin-block:-3px;max-width:400px}.trk-m .fl{display:none}.trk-m .rail.fin b.d{height:1px}   /* the phone tracker keeps still and thin: no added green; the light runs on the wide path */
.peek{display:grid;gap:var(--gap)}
.peek:empty{display:none}
/* LOOKFIX VP-3, B3f F-6: from 1101 px portal.js shares the cards between the two columns so both end close together; the panels that
   say what is missing head the side column when they can. Under that the page keeps its one column in the same order as before */
.ov>div{align-content:start}.ov>div>div:empty{display:none}
/* a card that joins the wide column uses its width: the details as two pairs a row; the appointment's date beside its list */
@media (min-width:1101px){
  .ov>div:first-child>.card>.kv{grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);column-gap:20px}
  .ov>div:first-child>.card:has(>.od,>.vc-ready){grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:0 clamp(20px,2.4vw,36px)}
  .ov>div:first-child>.card:has(>.od,>.vc-ready)>*{grid-column:1;margin-block-start:var(--gap)}
  .ov>div:first-child>.card:has(>.od,>.vc-ready)>.card-head{grid-column:1/-1;margin-block-start:0}
  .ov>div:first-child>.card:has(>.od,>.vc-ready)>:is(.od,.vc-ready){grid-column:2;grid-row:2/60;align-self:start;padding-block-start:0;padding-inline-start:clamp(20px,2.4vw,36px);border-block-start:0;border-inline-start:1px solid var(--ink-a09)}
}
.pk{display:grid;gap:12px;padding:clamp(14px,calc(var(--u)*1.6),20px);background:var(--white);border-color:var(--ink-a09);box-shadow:0 1px 2px var(--ink-a05)}
.pk .link-btn{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px}
.pk-c .msg.me .bub{background:var(--white);box-shadow:inset 0 0 0 1px var(--ink-a09)}
.pk-h{display:flex;align-items:center;gap:10px}
.pk-h>i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:var(--r-ic);background:var(--white);border:1px solid var(--ink-a09);color:var(--ink)}
.pk-h>i svg{width:17px;height:17px}
.pk-h b{flex:1;font-size:var(--s-md)}
.pk-l{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.pk-l li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--r-tile);background:var(--white);border:1px solid var(--ink-a09)}
.pk-l li>span:first-child{display:grid;min-width:0;line-height:1.4}
.pk-l small{font-size:var(--s-xs);color:var(--muted)}
.pk-l .st{flex:none}
.pk-c{display:grid;gap:8px}
.pk-c .msg{max-width:none}
.stamp{flex:none;display:inline-grid;place-items:center;padding:4px 10px;border:2px solid;border-color:var(--red);border-radius:var(--r-stamp);background:var(--glass-60);color:var(--red-ink);font-size:var(--s-xs);font-weight:700;letter-spacing:var(--tr-stamp);transform:rotate(-7deg);animation:stampIn 320ms var(--e-press) both}   /* red-ok: the stamp (system.md 4.9) */
[lang=ar] .stamp{letter-spacing:0}
@keyframes stampIn{from{opacity:0;transform:rotate(-7deg) scale(1.18)}}
.rel{grid-template-columns:auto minmax(0,1fr) auto auto}.rel b{white-space:normal;overflow-wrap:anywhere}
@media (max-width:640px){.rel{grid-template-columns:auto minmax(0,1fr) auto}.rel>.btn{grid-column:2/-1;justify-self:start}.pk-l li{flex-wrap:wrap}}

/* ---------- P2 the sign-in side: what an account gives, the path in short, the still stamp (white, no added green) ---------- */
.au-r .gp{flex:0 0 auto;align-self:start;height:auto;min-height:0}
.gp{display:grid;gap:14px;align-content:start;max-width:520px;margin-block-start:clamp(12px,2.4vh,24px);padding:clamp(16px,calc(var(--u)*1.8),22px);background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r);box-shadow:0 1px 2px var(--ink-a05);animation:txIn var(--d-reveal) var(--e-out) 120ms both}
.gp-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gp-h b{font-size:var(--s-md)}
.gp-ref{font-size:var(--s-xs);color:var(--muted);letter-spacing:.02em}
.gp-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0;padding:0;list-style:none}
.gp-l li{display:flex;align-items:flex-start;gap:10px;min-width:0}
.gp-l li>span:last-child{display:grid;gap:2px;line-height:1.45;min-width:0}
.gp-l b{font-size:var(--s-sm)}
.gp-l li>span:last-child>span{font-size:var(--s-xs);color:var(--ink-2)}
.gp-ic{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:var(--r-ic);background:var(--white);border:1px solid var(--ink-a09);color:var(--ink)}
.gp-ic svg{width:17px;height:17px}
.gp-f{display:flex;align-items:center;gap:18px;padding:12px 14px;border-radius:var(--r-tile);background:var(--white);border:1px solid var(--ink-a09)}
.gp-f .rail{flex:1}
.gp .rail .fl::after{animation-iteration-count:3}
@media (min-width:901px) and (max-height:640px){.au-r .gp{display:none}}

/* ---------- P1 the footer: the owner's full logo file, the trio device, one line of contact ---------- */
.pp-foot{padding-block:clamp(48px,11vh,80px) 24px}
.pp-fc{display:grid;justify-items:center;gap:14px;padding:24px 28px;background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r-bar);box-shadow:0 1px 2px var(--ink-a05);text-align:center}
.pp-fc img{width:clamp(220px,28vw,380px);height:auto}
.pp-trio{display:block;width:52px;height:4px;background:var(--trio) no-repeat center/100% 100%}
[dir=rtl] .pp-trio{transform:scaleX(-1)}
.pp-fl{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-size:var(--s-xs);color:var(--ink-2)}
.pp-fl a{color:var(--ink-2);text-decoration:none}.pp-fl a:hover{color:var(--emerald)}
@media (max-width:900px){.pp-foot{padding-block-end:16px}}

/* ---------- E1 (P6) empty states: a sheet headed by the trio, three lines, the icon tile at its corner; one line, one action ---------- */
.empty-state .es-art{position:relative;display:block;width:120px;height:84px;padding:0;background:none;border:0;box-shadow:none;border-radius:0;animation:esIn 420ms var(--e-out) both}
.es-sh{position:absolute;inset:0 0 0 18px;display:grid;align-content:start;gap:8px;padding:14px 14px 0;background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r-doc);box-shadow:0 1px 2px var(--ink-a05),0 14px 28px -20px var(--ink-a16)}
[dir=rtl] .es-sh{inset:0 18px 0 0}
.es-sh::before{content:"";display:block;width:40px;height:4px;margin-block-end:2px;background:var(--trio) no-repeat center/100% 100%}
[dir=rtl] .es-sh::before{transform:scaleX(-1)}
.es-sh i{display:block;height:5px;border-radius:3px;background:var(--ink-a09)}
.es-sh i:nth-child(2){width:78%}.es-sh i:nth-child(3){width:56%}
.es-ic{position:absolute;inset-inline-start:0;bottom:0;display:grid;place-items:center;width:44px;height:44px;border-radius:var(--r-tile);background:var(--white);border:1px solid var(--ink-a16);color:var(--black);box-shadow:0 0 0 4px var(--white),0 6px 14px -8px var(--ink-a22)}   /* white, not mint: no added green */
.es-ic svg{width:21px;height:21px}
.es-art.sm{position:relative;flex:none;width:64px;height:44px;animation:esIn 420ms var(--e-out) both}
.es-art.sm .es-sh{inset:0 0 0 10px;gap:5px;padding:8px 8px 0;border-radius:var(--r-tile)}[dir=rtl] .es-art.sm .es-sh{inset:0 10px 0 0}
.es-art.sm .es-sh::before{width:24px;height:3px}.es-art.sm .es-sh i{height:3px}.es-art.sm .es-sh i:nth-child(3){display:none}
.es-art.sm .es-ic{width:26px;height:26px;border-radius:var(--r-ic);background:var(--white);border-color:var(--ink-a16);box-shadow:0 0 0 3px var(--white)}.es-art.sm .es-ic svg{width:14px;height:14px}
.empty-state h2{font-size:var(--s-h2-inner,var(--tp-h2))}.empty-state p{max-width:46ch;font-size:var(--s-sm,var(--t-s))}
.empty-state .es-art+h2{margin-block-start:6px}
.es-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 16px;background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r-tile);box-shadow:0 1px 2px var(--ink-a05)}
.es-row>p,.es-row>span{flex:1 1 220px;min-width:0;margin:0;color:var(--ink-2);font-size:var(--s-sm,var(--t-s));line-height:1.55}
.es-row>.btn{flex:none}
.sys.es-row{align-self:stretch;max-width:none;text-align:start}
@keyframes esIn{from{opacity:0;transform:translateY(8px)}}
.es-row .btn-line,.empty-state .btn-line,.es-row .btn-line:hover:not(:disabled),.empty-state .btn-line:hover:not(:disabled){box-shadow:0 1px 2px var(--ink-a05)}   /* the empty states' one action: a line pill (the tab bar holds the screen's solid), no green shadow */
.empty-state{background:var(--white);border-color:var(--ink-a09);box-shadow:0 1px 2px var(--ink-a05),0 18px 36px -24px var(--ink-a16)}   /* plain paper round the drawing: no mint face, no green shadow */

/* ---------- E2 (P7) forms and feedback: the error beside its field, the success tick, skeletons, calm toasts ---------- */
.f-err{display:flex;align-items:flex-start;gap:6px;margin:6px 0 0;color:var(--red-ink);font-size:var(--s-xs);font-weight:500;line-height:1.45;animation:esIn 220ms var(--e-out) both}
.f-err svg{flex:none;width:15px;height:15px;margin-block-start:1px}
.input[aria-invalid=true],.ctrl .input[aria-invalid=true],.pw-wrap .input[aria-invalid=true]{border-color:var(--red-ink)}   /* red-ok: the error line (system.md 2.1), 1 px */
.alert-ok svg{animation:tickIn 220ms var(--e-press) both}
@keyframes tickIn{from{opacity:0;transform:scale(.6)}}
.skel-l{display:grid;gap:12px}
.skel{position:relative;display:block;overflow:hidden;height:16px;border-radius:var(--r-tile);background:var(--field)}
.skel::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--glass-60),transparent);transform:translateX(-100%);animation:skSheen 1.4s linear infinite}
[dir=rtl] .skel::after{animation-name:skSheenR}
@keyframes skSheen{to{transform:translateX(100%)}}@keyframes skSheenR{from{transform:translateX(100%)}to{transform:translateX(-100%)}}
.sk-next{padding-block:18px;gap:10px}.sk-next .skel:nth-child(1){width:60%;height:22px}.sk-next .skel:nth-child(2){width:85%}.sk-next .skel:nth-child(3){width:40%;height:40px;margin-block-start:12px}
.sk-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));margin-block-start:16px}.sk-list .skel{height:118px}
.sk-tx{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-block-start:clamp(20px,5vh,48px)}.sk-tx .skel{height:220px}.sk-tx .skel:first-child{grid-column:1/-1;height:96px}
@media (max-width:640px){.sk-tx{grid-template-columns:minmax(0,1fr)}.sk-tx .skel{height:160px}}
.toast{background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r-opt);box-shadow:0 1px 2px var(--ink-a05),0 18px 40px -18px var(--ink-a22);color:var(--ink);animation:toastIn 220ms var(--e-out) both}
.toast svg{display:none}
.toast::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--green)}
.toast.err::before{background:var(--red-ink)}   /* red-ok: the error toast's 8 px dot */
.toast.out{animation:toastOut 180ms var(--e-leave) both}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}}@keyframes toastOut{to{opacity:0;transform:translateY(8px)}}
@media (min-width:901px){.toasts{inset-block:calc(var(--bar) + var(--bar-top) + 14px) auto;inset-inline:auto max(16px,calc((100vw - 1180px) / 2));transform:none;width:min(92vw,380px)}[dir=rtl] .toasts{transform:none}}
@media (max-width:900px){.toasts{inset-block-end:calc(var(--dock-h) + 16px + env(safe-area-inset-bottom))}}

/* ---------- E3 (P8) the phone: the dock with thumb room and its labels clear of the edge, dialogs as bottom sheets, actions in reach ---------- */
@media (max-width:900px){
  .bn{height:calc(62px + env(safe-area-inset-bottom));padding-block-end:env(safe-area-inset-bottom);border-top-color:var(--ink-a09);box-shadow:0 -12px 24px -18px var(--ink-a16)}   /* the safe area under the labels; a neutral edge and shadow */
  .bn a{gap:3px;padding-block:6px 9px}
  .pp{padding-block-end:calc(var(--dock-h) + 12px + env(safe-area-inset-bottom))}
}
@media (max-width:759px){
  .overlay{place-items:end stretch;padding:0;animation:veilIn 220ms var(--e-out) both}
  .overlay>.dialog,.overlay>.dialog.wide{position:relative;width:100%;max-height:86svh;overflow:auto;padding-block:28px calc(20px + env(safe-area-inset-bottom));border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -18px 40px -18px var(--ink-a22);animation:sheetIn 320ms var(--e-out) both}
  .overlay>.dialog::before{content:"";position:absolute;inset-block-start:10px;inset-inline-start:calc(50% - 18px);width:36px;height:4px;border-radius:2px;background:var(--ink-a16)}
}
@keyframes sheetIn{from{transform:translateY(100%)}}@keyframes veilIn{from{opacity:0}}
@media (max-width:640px){
  .nm b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}   /* a long file name wraps instead of the cut */
}
/* LOOKFIX VP-4: on a phone the client sign-in sheet (the one with the password #lp) reaches the end of the first screen, so a short
   state (the error line under the field) never opens more ground than the old page alert did. Only this sheet: a taller one (sign-up)
   would stretch its own light face instead */
@media (max-width:760px){.au-mid:has(#lp){flex:1 0 auto;display:flex;flex-direction:column;align-items:center}.au-mid:has(#lp) .au-book{flex:1 0 auto;display:flex;flex-direction:column}.au-mid:has(#lp) .au-tabs{align-self:flex-start}.au-mid:has(#lp) .au-sheet{flex:1 0 auto}}

/* ---------- B1 PLATTYPING L1: typing in the new request (the question, the document and its language, the estimate in two amounts).
   Today's colours: white tiles with the keyline, the chosen one ringed in ink, no tinted fill ---------- */
.tp{display:grid;gap:12px}
.tp:empty{display:none}
.tp .field{display:grid;gap:7px}
.tp-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:8px}
.tp-it{display:grid;gap:2px;align-content:start;min-height:58px;padding:9px 11px;text-align:start;background:var(--white);border:1px solid var(--line);border-radius:var(--r-opt);transition:border-color .15s,box-shadow .15s}
.tp-it:hover{border-color:var(--line-2);box-shadow:var(--sh-card)}
.tp-it b{font-size:var(--t-s);line-height:1.35;font-weight:600}
.tp-it small{font-size:max(var(--s-min),12px);color:var(--muted);line-height:1.35}
.tp-it[aria-pressed=true]{border-color:var(--keyline);box-shadow:inset 0 0 0 1px var(--keyline),var(--sh-card)}
.tp-it[aria-pressed=true] small{color:var(--ink-2)}
.tp-lang{flex-wrap:wrap;justify-self:start}
.tp-lang button{display:inline-flex;align-items:baseline;gap:8px}
.tp-lang button small{font-size:max(var(--s-min),12px);color:var(--muted);font-weight:500}
.tp-lang button:disabled{opacity:.45;cursor:not-allowed}
.tp-note{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:max(var(--s-min),12.5px);color:var(--ink-2);line-height:1.5}
.tp-note svg{width:15px;height:15px;flex:none;color:var(--ink)}
.tp-note small{color:var(--muted);font-size:inherit}
.est-lines.ty{height:262px}
.est-g{display:grid;gap:4px;padding-block:6px 8px;border-block-end:1px solid var(--line)}
.est-g:last-child{border-block-end:0}
.est-gh{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.est-gh b{font-size:var(--t-s);font-weight:700;white-space:nowrap}
.est-gh b:first-child{white-space:normal}
.est-g .fee-r{padding:4px 0;border-block-end:0;color:var(--ink-2)}
.est-ty{display:grid;gap:2px;font-size:var(--t-s);color:var(--ink-2)}
.est-ty small{font-size:max(var(--s-min),12px);color:var(--muted)}
.est-bd{font-size:var(--t-s);font-weight:600;color:var(--ink-2);text-align:end}
.fee-t>span small{display:block;font-size:max(var(--s-min),12px);font-weight:500;color:var(--muted)}
.fee-t b.est-bd{font-size:var(--t-s)}
@media (min-width:901px){.nw-foot{position:sticky;inset-block-end:0;z-index:3;background:var(--surface);margin-block-end:calc(-1*clamp(14px,calc(var(--u)*1.7),24px));padding-block-end:clamp(14px,calc(var(--u)*1.7),24px)}}   /* FIXB1 VT-6 */
@media (max-width:900px){.est-lines.ty{height:auto;min-height:150px}}
@media (max-width:480px){.tp-items{grid-template-columns:minmax(0,1fr)}.tp-lang button{padding-inline:10px}}
/* B1 PLATTYPING L2: the typing line apart in the fee statement, under a small head with the keyboard mark */
.fee-sub{display:flex;align-items:center;gap:7px;padding:10px 0 2px;font-size:max(var(--s-min),12.5px);font-weight:700;color:var(--ink-2)}
.fee-sub svg{width:15px;height:15px;color:var(--ink)}

/* ---------- B1 PLATTYPING L5: the sign-in's lower half at 1536x700 (one calm row «كيف تسير معاملتك» in the panel, under its rail
   and stamp), and on a phone two short lines of what an account gives under the card. White, ink and keyline: no added green ---------- */
.gp-how{display:none;gap:10px;padding-block-start:14px;border-block-start:1px solid var(--ink-a09)}
.gp-how>b{font-size:var(--s-sm)}
.gp-how ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.gp-how li{display:grid;justify-items:start;gap:5px;min-width:0;font-size:var(--s-xs);line-height:1.35;color:var(--ink-2)}
.gp-how li i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--ink-a09);background:var(--white);color:var(--ink);font-style:normal;font-weight:700;font-size:max(var(--s-min),12px)}
.gp-how p{display:flex;align-items:center;gap:8px;font-size:var(--s-xs);color:var(--ink-2)}
.gp-how p svg{width:16px;height:16px;flex:none;color:var(--ink)}
@media (min-width:901px) and (min-height:690px){.gp-how{display:grid}}
.au-gain{display:none}
@media (max-width:900px){
  .au-gain{display:grid;gap:8px;width:min(100% - 32px,520px);margin:0 auto;padding:8px 4px 28px;list-style:none}
  .au-gain li{display:flex;align-items:flex-start;gap:9px;font-size:var(--s-sm);line-height:1.5;color:var(--ink-2)}
  .au-gain svg{width:17px;height:17px;flex:none;margin-block-start:2px;color:var(--ink)}
}
/* B1 L1: the typing question and the language choice sit on white with an ink ring when chosen (no added green) */
.tp .seg{background:var(--white);border-color:var(--line)}
.tp .seg button[aria-pressed=true]{color:var(--ink);box-shadow:inset 0 0 0 1px var(--keyline)}
/* ---------- v5 B2 PLATFORM-B2 F1: the new request in the four groups of deck 2.6, the questions of a service, the estimate line of a
   service priced by the transaction. White, ink and keyline: no added green ---------- */
.docs-gs{display:grid;gap:14px}
.docs-g{display:grid;gap:7px}
.docs{grid-auto-flow:row dense}   /* B3f F-7: the chosen service's questions take the row under its tile; the next tiles close up */
.docs>.stack{grid-column:1/-1;padding-block:6px 10px}
.docs>.stack:not(:has(*>*)){display:none}
.docs-h{font-size:var(--s-sm);font-weight:700;color:var(--ink-2);line-height:1.3}
.nq .seg{flex-wrap:wrap;max-width:100%}
.nq .seg button{white-space:normal;text-align:start;padding-block:6px}
.nq .tp-note a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.est-e{align-content:center;gap:8px;padding-block:6px}   /* B3f F-8: the empty estimate */
.est-e>i{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--r-ic);background:var(--white);border:1px solid var(--ink-a09);color:var(--ink)}
.est-e>i svg{width:17px;height:17px}
.est-e p{max-width:36ch;line-height:1.55;color:var(--ink-2)}
.est-e ul{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 6px;margin:0;padding:0;list-style:none}
.est-e li{padding:2px 10px;border:1px solid var(--ink-a09);border-radius:var(--r-pill);background:var(--white);font-size:max(var(--s-min),12px);line-height:1.6;color:var(--ink-2)}
@media (max-width:900px){.est-e{grid-template-columns:auto minmax(0,1fr);justify-items:start;align-items:center;column-gap:10px;text-align:start}.est-e ul{grid-column:1/-1;justify-content:start}}
/* fix B3f VP-5 (lesson UX-4): from 901 px the estimate keeps ONE height for every choice, the tallest state's (a document typed: its
   lines 262 px); the lines take what the header, the total and the note leave */
@media (min-width:901px){.est{grid-template-rows:auto minmax(0,1fr) auto auto;min-height:434px}.est-lines,.est-lines.ty{height:auto;min-height:0}}
@media (min-width:1101px){.est{min-height:458px}}
@media (min-width:1680px){.est{min-height:474px}}
.est-q{height:100%;display:grid;align-content:center;justify-items:center;gap:12px;text-align:center;padding:10px}
.est-q p{font-size:var(--t-s);line-height:1.6;color:var(--ink-2)}
.fee-t b.est-bd{font-size:var(--t-s);font-weight:700;color:var(--ink-2)}
/* v5 B2 F2: the subtotal under each group of the fee statement (the centre's fees, an authority's fees) */
.fee-r.fee-st{color:var(--ink-2);border-block-end-color:var(--line-2)}
.fee-r.fee-st span{font-weight:600}
/* ---------- v5 B3 PORTAL-J (specs/b3-journeys.md 5): the journeys in the portal. White, ink keylines and black text: no added
   green; red only as the 2 px bar of the active option and the stamp ---------- */
/* 5.2: "what we are doing now" under the client's line, and the authority's reference */
.nx-we{display:grid;gap:1px;padding:8px 0 0;border-block-start:1px solid var(--ink-a09)}
.nx-k{font-size:max(var(--s-min),12.5px);font-weight:700;color:var(--ink-2)}
.nx-we p{font-size:var(--t-s);line-height:1.6;color:var(--ink)}
.nx-ref{font-size:var(--t-s);color:var(--ink-2)}
/* 5.3: the video call: the join button, where the link will appear, what to have ready (ink ticks on white) */
.vc-go{display:flex}.vc-go .btn{min-height:44px}
.vc-wait{display:flex;align-items:flex-start;gap:8px;font-size:var(--t-s);line-height:1.6;color:var(--ink-2)}
.vc-wait svg{width:16px;height:16px;flex:none;margin-block-start:3px;color:var(--ink)}
.vc-ready,.od{display:grid;gap:8px;padding-block-start:10px;border-block-start:1px solid var(--ink-a09)}
.vc-ready>b,.od>b{font-size:var(--s-sm);font-weight:700;color:var(--ink)}
.vc-ready ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.vc-ready li{display:flex;align-items:flex-start;gap:8px;font-size:var(--t-s);line-height:1.55;color:var(--ink-2)}
.vc-ready li i{display:grid;place-items:center;flex:none;width:20px;height:20px;margin-block-start:1px;border-radius:50%;border:1px solid var(--ink-a16,var(--line));background:var(--white);color:var(--ink)}
.vc-ready li i svg{width:12px;height:12px}
/* 5.4: "on the day": the office's six steps, numbered in ink; the queue number when staff typed it; the bring line */
.od ol{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.od li{display:flex;align-items:flex-start;gap:9px;font-size:var(--t-s);line-height:1.55;color:var(--ink-2)}
.od li>i{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;border:1px solid var(--ink-a09);background:var(--white);color:var(--ink);font-style:normal;font-weight:700;font-size:max(var(--s-min),12px)}
.od li b{color:var(--ink);font-weight:700}
.od-tk{display:inline-block;margin-inline-start:6px;padding:1px 8px;border:1px solid var(--ink);border-radius:var(--r-chip-m,6px);background:var(--white);color:var(--ink);font-style:normal;font-weight:700;unicode-bidi:isolate}
.od-bring{display:flex;align-items:flex-start;gap:8px;font-size:var(--t-s);line-height:1.55;color:var(--ink)}
.od-bring svg{width:16px;height:16px;flex:none;margin-block-start:3px}
/* 5.5: the review of a typed text: the office's drafts as rows; 5.6: notarize it now; the linked chip in the head */
.rv-files{display:grid;gap:6px}
.nz-doc{max-width:340px}
.tx-links{display:flex;flex-wrap:wrap;gap:6px;margin-block-start:6px}
.tx-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 10px;border:1px solid var(--ink-a09);border-radius:var(--r-tile);background:var(--white);color:var(--ink);font-size:var(--s-xs);font-weight:600;text-decoration:none}
.tx-link svg{width:14px;height:14px}
.tx-link:hover{border-color:var(--ink)}
.tx-link:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* B3-8: under 560 px a service name that takes two lines shows the catalogue's short name; the full name stays for screen readers */
.tx-top h1 .tx-short{display:none}
@media (max-width:559.98px){
  .tx-top h1.short .tx-full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .tx-top h1.short .tx-short{display:inline}
  .tx-link{min-height:44px}
}

/* ---------- v5 V9 BANK-CLIENT (specs/v9-bank-transfer.md 5, 12): the bank panel, its states and the receipt sheet. White with ink
   keylines and black text, no added green; the existing .bank rows; the marked rows (amount, number) in weight 500 with a keyline ---------- */
.pay-ways{display:flex;align-items:flex-start;gap:7px;color:var(--ink-2);line-height:1.55}
.pay-ways svg{width:16px;height:16px;flex:none;margin-block-start:2px;color:var(--ink)}
.bt{display:grid;gap:8px;padding:9px 14px;background:var(--white);border:1px solid var(--ink-a09,var(--line));border-radius:var(--r-tile,var(--r-sm))}
.bt-h{display:flex;align-items:center;gap:10px}
.bt-h>i{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;border:1px solid var(--ink-a09,var(--line));color:var(--ink)}
.bt-h>i svg{width:15px;height:15px}
.bt-h>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px}
.bt-h b{font-size:var(--t-s);font-weight:700;color:var(--ink)}.bt-h span{font-size:max(var(--s-min),12.5px);color:var(--ink-2)}
.bt-g{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px 16px;align-items:start}
.bt-a,.bt-b{display:grid;gap:7px;align-content:start;min-width:0}
.bt .bank-row{background:var(--white);padding-block:1px}
.bt .bank{background:var(--ink-a09,var(--line));border:1px solid var(--ink-a09,var(--line))}
.bt-key{box-shadow:0 0 0 1px var(--ink-a16,var(--line))}
.bt .bank-row{grid-template-columns:minmax(150px,.7fr) minmax(0,1fr) auto}
.bt-key .bank-row small{color:var(--ink-2)}.bt-key .bank-row b{font-weight:700;color:var(--ink)}
.bt-st{font-size:max(var(--s-min),12.5px);font-weight:700;color:var(--ink)}
.bt-steps{display:grid;gap:4px;margin:0;padding-inline-start:20px;list-style:decimal;font-size:max(var(--s-min),13px);line-height:1.5;color:var(--ink-2)}
.bt-steps li::marker{color:var(--ink);font-weight:700}
.bt-act{display:flex;flex-wrap:wrap;gap:8px}
.bt-act .btn{min-height:40px}
/* FIXPLAT3 (VB-3): the receipt action is white with the ink keyline and black text, not a green fill */
.bt-act .bt-go{box-shadow:inset 0 0 0 1px var(--ink)}.bt-act .bt-go:hover:not(:disabled){box-shadow:inset 0 0 0 2px var(--ink)}
.bt-trust{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:max(var(--s-min),12px);line-height:1.5;color:var(--ink-2)}
.bt-trust svg{width:14px;height:14px;flex:none;margin-block-start:2px;color:var(--ink)}
.bt-cp{color:var(--ink-2)}.bt .bt-cp{width:30px;height:30px}.bt .bt-cp svg{width:16px;height:16px}.bt-cp:hover:not(:disabled){background:var(--ink-a06);color:var(--ink)}
.bt-cp:focus-visible,.bt-chip:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.alert.bt-state{background:var(--white);border:1px solid var(--ink-a16,var(--line));color:var(--ink)}
.bt-state>svg{color:var(--ink)}
.bt-state>div{display:grid;gap:6px;min-width:0}
.bt-chips{display:flex;flex-wrap:wrap;gap:6px}
.bt-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:34px;padding:3px 11px;border:1px solid var(--ink-a16,var(--line));border-radius:var(--r-tile,var(--r-sm));background:var(--white);color:var(--ink);font-size:max(var(--s-min),12.5px);font-weight:600;overflow-wrap:anywhere;text-align:start}
.bt-chip svg{width:14px;height:14px;flex:none}
button.bt-chip:hover{border-color:var(--ink)}
.rc-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.rc-nm{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.rc-nm b{font-size:var(--t-s);font-weight:500;overflow-wrap:anywhere}.rc-nm small{color:var(--ink-2);white-space:nowrap}
.rc-bar{height:4px;border-radius:2px;background:var(--ink-a09,var(--line));overflow:hidden}
.rc-bar i{display:block;width:0;height:100%;background:var(--ink);transition:width .2s}
.rc-bar[hidden],.rc-nm[hidden]{display:none}
@media (max-width:900px){.bt-g{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.bt{padding:10px}.bt-act .btn{flex:1 1 100%}.bt .bank-row{grid-template-columns:minmax(0,1fr) auto}}
@media (pointer:coarse){.bt .bt-cp,.bt-cp{width:44px;height:44px}.bt-chip{min-height:44px}.bt-act .btn{min-height:44px}}
/* the phone: "what we are doing now" runs on with its line, one block shorter (the cards below stay where they were) */
@media (max-width:559.98px){.nx-we{display:block;padding-block-start:6px}.nx-k,.nx-we p{display:inline}.nx-k::after{content:" · ";font-weight:400}}
/* 5.8: "what we are doing now" as the card's head is ink, not the emerald of the client's call (no added green, no red dot) */
.act-h .act-k.we{color:var(--ink-2)}.act.hi .act-h .act-k.we::before{content:none}
/* FIXPLAT3 (JSYS-6): the review card's download is a 44 px tap on a phone */
@media (max-width:559.98px){.rv-files .icon-btn{width:44px;height:44px}}
/* ---------- v5 B3d FIX (FIX-B3D, sweep SWEEP-PLAT): small exact style repairs ---------- */
/* P1: the language switch is the site's T2 pill: white, the 1 px ink keyline, 700, the height of the bar's buttons */
.lang-t,.au .lang-t,.pp-head .lang-t{min-height:38px;padding:0 14px;border:1px solid var(--ink-a16);border-radius:var(--r-pill);background:var(--white);box-shadow:0 1px 2px var(--ink-a05);font-weight:700;color:var(--ink)}
.lang-t:hover,.au .lang-t:hover,.pp-head .lang-t:hover{background:var(--white);border-color:var(--ink);color:var(--ink)}
@media (max-width:400px){.lang-t,.au .lang-t,.pp-head .lang-t{padding:0 10px}}
/* P3: the times list shows whole rows: four rows of 40 px with their 6 px gaps (it scrolls for the rest) */
.bk-slots{height:182px}
/* P5: on a phone «عرض المسار كاملاً» is a small pill with a chevron that turns when the path is open */
@media (max-width:900px){
  .trk-m summary{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 14px;border:1px solid var(--ink-a16);border-radius:var(--r-pill);background:var(--white);color:var(--ink);font-weight:700;list-style:none}
  .trk-m summary::-webkit-details-marker{display:none}
  .trk-m summary::before{content:"";flex:none;width:7px;height:7px;margin-block-start:-3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);transition:transform .2s}
  .trk-m details[open]>summary::before{margin-block:3px 0;transform:rotate(225deg)}
}
@media (max-width:640px){.trk-m summary{min-height:44px}}

/* ---------- C1 PORTALUI (spec 6.1, 6.4, 7.1, 7.2; brief C1-6, C1-7): the bell and its panel, the dock's notices place, the notices
   page, «ما أرسلناه إليك», Settings, the stop screen. Existing tokens only; every new piece is white, ink and the grey keyline (no
   added green); red only for the unread count and dot, as the dot it extends ---------- */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bell-w{position:relative}
.bell{position:relative;display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--ink-a16);border-radius:var(--r-pill);background:var(--white);color:var(--ink);box-shadow:0 1px 2px var(--ink-a05);transition:border-color .15s}
.bell svg{width:18px;height:18px}.bell:hover,.bell[aria-expanded=true]{border-color:var(--ink)}
.bell:focus-visible,.pf-sw:focus-visible i,.n-row:focus-visible,.sent-x summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.nc{position:absolute;inset-block-start:-6px;inset-inline-end:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--red);color:var(--white);font:700 11.5px/19px var(--f);text-align:center;box-shadow:0 0 0 2px var(--white)}
.nc.nd{min-width:0;width:10px;height:10px;padding:0;inset-block-start:-2px;inset-inline-end:-2px}
.bell-pop{position:absolute;inset-block-start:calc(100% + 10px);inset-inline-end:-6px;z-index:60;display:grid;width:min(384px,calc(100vw - 32px));padding:6px;background:var(--white);border:1px solid var(--ink-a16);border-radius:var(--r);box-shadow:0 18px 40px -18px var(--ink-a22),0 1px 2px var(--ink-a05);color:var(--ink);animation:pop .16s var(--ease)}
.bell-pop[hidden]{display:none}
.bp-h,.bp-f{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px 8px}
.bp-h b{font-size:var(--tp-h3)}
.bp-f{padding:10px 8px 6px;border-top:1px solid var(--ink-a09)}
.bp-l{display:grid;max-height:calc(100svh - 230px);overflow:auto;border-top:1px solid var(--ink-a09)}
.bp-l .skel-l{padding:8px}.bp-e{padding:18px 8px;color:var(--muted);font-size:var(--t-s);line-height:1.6}
.n-row{display:grid;grid-template-columns:36px minmax(0,1fr) 10px;align-items:start;gap:12px;width:100%;padding:11px 8px;border-radius:var(--r-sm);text-align:start;color:var(--ink);transition:background-color .15s}
.n-row:hover{background:var(--ink-a04)}
.n-row+.n-row{box-shadow:0 -1px 0 var(--ink-a09)}
.n-ic{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--ink-a16);border-radius:var(--r-xs);background:var(--white);color:var(--ink)}
.n-ic svg{width:18px;height:18px}.n-ic.big{width:54px;height:54px;border-radius:var(--r-sm)}.n-ic.big svg{width:24px;height:24px}
.n-tx{display:grid;gap:2px;min-width:0}
.n-tx b{font-weight:500;font-size:var(--t-s);line-height:1.45}.n-row.un .n-tx b{font-weight:700}
.n-l{color:var(--ink-2);font-size:var(--t-s);line-height:1.55}
.n-m{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin-block-start:3px;color:var(--muted);font-size:max(var(--s-min),12.5px)}
.n-ref{padding:1px 8px;border:1px solid var(--ink-a16);border-radius:var(--r-pill);color:var(--ink-2);font-size:max(var(--s-min),12px);letter-spacing:.02em}
.n-m .st{height:22px;padding:0 8px}
.n-dot{position:relative;width:8px;height:8px;margin-block-start:7px;border-radius:50%;background:var(--red)}
.c1n,.c1s{display:grid;gap:4px}
.n-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:10px var(--gap);align-items:start;margin-block-start:var(--gap)}
.n-side{display:none}
.n-reach{display:grid;margin:0}
.n-reach>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-block:8px;border-top:1px solid var(--ink-a09);font-size:var(--t-s)}
.n-reach dt{color:var(--ink)}.n-reach dd{margin:0;color:var(--muted);text-align:end}
@media (min-width:1101px){.n-wrap{grid-template-columns:minmax(0,1fr) minmax(300px,340px)}.n-bar,.n-card{grid-column:1}.n-side{display:grid;grid-column:2;grid-row:2;position:sticky;inset-block-start:calc(var(--bar) + 24px)}.c1n .p-head>.link-btn{display:none}}
.c1s .seg{justify-self:start}
.c1n .p-head,.c1s .p-head{align-items:flex-end;flex-wrap:wrap}
.c1n .seg,.c1s .seg{background:var(--white);border-color:var(--ink-a16)}
.c1n .seg button,.c1s .seg button{color:var(--ink-2)}
.c1n .seg button[aria-pressed=true],.c1s .seg button[aria-pressed=true]{background:var(--white);color:var(--ink);font-weight:700;box-shadow:inset 0 0 0 1px var(--keyline)}
.c1n .link-btn,.c1s .link-btn,.bell-pop .link-btn,.sent-x .link-btn,.pf-acc .link-btn{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--ink-a22);text-underline-offset:4px}
.c1n .link-btn svg,.bell-pop .link-btn svg{width:16px;height:16px;color:var(--ink)}
.n-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.n-card{gap:0;padding-block:4px 8px}
.n-dh{padding:14px 8px 6px;color:var(--muted);font-size:var(--t-s);font-weight:700}
.n-day+.n-day{margin-block-start:6px;border-top:1px solid var(--ink-a09)}
.n-list{display:grid}
.n-more{display:flex;justify-content:center;padding-block:12px 6px;border-top:1px solid var(--ink-a09)}
.n-empty{display:grid;justify-items:center;align-content:center;gap:14px;min-height:min(380px,52svh);padding:clamp(30px,7vh,64px) 16px;text-align:center}
.n-empty b{max-width:40ch;font-weight:500;line-height:1.6}
.sent-w{margin-block-start:10px}
.sent-x{background:var(--white);border:1px solid var(--ink-a09);border-radius:var(--r);box-shadow:0 1px 2px var(--ink-a05)}
.sent-x summary{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 16px;font-size:var(--t-s);cursor:pointer;list-style:none;border-radius:var(--r)}
.sent-x summary::-webkit-details-marker{display:none}
.sent-x summary svg{width:18px;height:18px;flex:none}
.sn-n{color:var(--muted)}
.sn-chev{margin-inline-start:auto;transform:rotate(90deg);transition:transform .2s var(--ease)}
.sent-x[open] .sn-chev{transform:rotate(-90deg)}
.sn-l{display:grid;margin:0;padding:0 16px 8px;list-style:none}
.sn-l li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding-block:12px;border-top:1px solid var(--ink-a09)}
.sn-tx{display:grid;gap:3px;min-width:0}
.sn-t{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px}
.sn-t b{font-size:var(--t-s)}.sn-t .muted{font-size:max(var(--s-min),12.5px)}
.sn-tx p{color:var(--ink-2);font-size:var(--t-s);line-height:1.55}
.sn-tx .sn-chs{display:flex;flex-wrap:wrap;gap:3px 16px;color:var(--muted);font-size:max(var(--s-min),12.5px)}
.sn-ch.on{color:var(--ink)}
@media (min-width:1101px){.sn-l{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}}
.pf-t{display:grid;font-size:var(--t-s)}
.pf-r{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,88px);align-items:center;gap:8px;min-height:52px;padding-block:6px;border-top:1px solid var(--ink-a09)}
.pf-t.w3 .pf-r{grid-template-columns:minmax(0,1fr) repeat(3,80px)}
.pf-r.pf-hd{min-height:0;padding-block:0 8px;border-top:0;color:var(--muted);font-size:max(var(--s-min),12.5px);font-weight:700}
.pf-c{display:flex;justify-content:center;text-align:center}
.pf-k{display:grid;gap:1px;min-width:0}.pf-k small{color:var(--muted);font-size:max(var(--s-min),12.5px);font-weight:400}
.pf-sw{display:inline-flex;align-items:center;justify-content:center;width:52px;height:34px}
.pf-sw i{position:relative;display:block;width:44px;height:26px;border:1px solid var(--ink-a45);border-radius:13px;background:var(--white);transition:background-color .18s,border-color .18s}
.pf-sw i::after{content:"";position:absolute;inset-block-start:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:var(--ink-a45);transition:inset-inline-start .2s var(--ease),background-color .18s}
.pf-sw[aria-checked=true] i{background:var(--ink);border-color:var(--ink)}
.pf-sw[aria-checked=true] i::after{inset-inline-start:21px;background:var(--white)}
.pf-sw:disabled{opacity:.55}
.pf-lock{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ink-a06);color:var(--ink)}
.pf-lock svg{width:15px;height:15px}
.pf-no{color:var(--muted)}
.pf-why{display:flex;align-items:flex-start;gap:8px;line-height:1.55}.pf-why svg{flex:none;width:16px;height:16px;margin-block-start:3px}
.pf-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:8px 0;border-top:1px solid var(--ink-a09)}
.pf-n{display:grid;gap:2px;font-size:var(--t-s)}.pf-n small{color:var(--muted);line-height:1.5}
.dv-l dl{display:grid;margin:0}
.dv-l dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-block:8px;border-top:1px solid var(--ink-a09);font-size:var(--t-s)}
.dv-l dt{color:var(--muted)}.dv-l dd{margin:0;font-weight:700;text-align:end}
.pf-cons{padding:12px 14px;border:1px solid var(--ink-a16);border-radius:var(--r-sm);color:var(--ink)}
.pf-cons input{width:20px;height:20px;accent-color:var(--ink)}
.pf-ok{display:flex;align-items:center;gap:10px;font-size:var(--t-s);font-weight:700}
/* D1 SEC-NUM (brief 40, S-13): the WhatsApp updates card: one line of state, then its one button (ink keyline); 44 px on a phone */
.pf-wa{margin:0;font-size:var(--t-s);line-height:1.65;color:var(--ink)}.pf-ok.pf-wa{font-weight:600;align-items:flex-start}.pf-ok.pf-wa .pf-lock{flex:none}
.pf-wa-go{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
/* D1 FIX-NUM (LD1-1): the ready message in a white box with an ink keyline, its copy button at the end; the note under it */
.pf-wa-msg{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 14px;border:1px solid var(--ink);border-radius:var(--r-sm);background:var(--white)}
[dir=rtl] .pf-wa-msg{padding:10px 14px 10px 10px}
.pf-wa-msg p{margin:0;flex:1;min-width:0;font-size:var(--t-s);line-height:1.6;color:var(--ink);font-weight:600;overflow-wrap:anywhere}.pf-wa-msg .btn{flex:none}
.pf-wa-note{margin:0;line-height:1.6}
@media (max-width:640px){.pf-wa-go .btn{min-height:44px;flex:1 1 100%}.pf-wa-go .link-btn{min-height:44px;display:inline-flex;align-items:center}.pf-wa-msg,[dir=rtl] .pf-wa-msg{flex-wrap:wrap;padding:12px}.pf-wa-msg p{flex:1 1 100%}.pf-wa-msg .btn{min-height:44px;flex:1 1 100%}}
.pf-acc{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--ink-2)}.pf-acc svg{width:16px;height:16px}
.stop-k{display:flex;justify-content:center;align-items:baseline;gap:8px;padding:12px;border:1px solid var(--ink-a16);border-radius:var(--r-sm);font-size:var(--t-s)}
.stop-k span{color:var(--muted)}
.pa-body.stop .mail-ic,.pa-body.stop .mail-ic.ok{background:var(--white);border:1px solid var(--ink-a16);color:var(--ink)}
/* C1 FIXFACE (V5, V6): the stop screen's few lines are one calm block in the middle of the sheet, as the pause notice (D65; a sheet
   cut to its content shows more of the green backdrop: +0.46 to +2.34 points); «إيقاف» is the ink button, not the emerald primary */
.pa-body.stop{justify-content:center;gap:clamp(12px,calc(var(--u)*1.6),20px)}
.pa-body.stop .btn-ink{background:var(--ink);color:var(--white);border-color:var(--ink)}.pa-body.stop .btn-ink:hover:not(:disabled){background:var(--ink-2);border-color:var(--ink-2)}
.pa-body.stop .btn-line:hover:not(:disabled){border-color:var(--ink);color:var(--ink)}
html.calm *,html.calm *::before,html.calm *::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
@media (max-width:900px){
  .bell-w{display:none}
  .bn{grid-template-columns:repeat(4,minmax(0,1fr))}
  .bn .nc{inset-block-start:5px;inset-inline-start:calc(50% + 5px);inset-inline-end:auto}
  .bn .nc.nd{inset-block-start:8px;inset-inline-start:calc(50% + 9px)}
  .pf-sw{height:44px}
  .c1n .seg button,.c1s .seg button{min-height:44px}
  .sent-x summary,.n-row{min-height:48px}
  .c1n .btn,.c1s .btn,.pa-body.stop .btn,.bell-pop .btn{min-height:44px}
}
@media (max-width:640px){
  .pf-r{grid-template-columns:minmax(0,1fr) repeat(2,64px);gap:6px}
  .pf-t.w3 .pf-r{grid-template-columns:minmax(0,1fr) repeat(3,58px)}
  .n-row{grid-template-columns:32px minmax(0,1fr) 8px;gap:10px;padding-inline:4px}.n-row .n-ic{width:32px;height:32px}
  .sn-l{padding-inline:12px}.sn-l li{grid-template-columns:32px minmax(0,1fr);gap:10px}.sn-l .n-ic{width:32px;height:32px}
}
/* C1 PORTALUI end */
/* ---------- C1B FACE (brief 31 F-1): the unread dot stands at the start of the text, beside the title (it was about 800 px away at
   the row's far end); in the bell's panel the «بانتظارك» pill stays on the line of the reference and the time ---------- */
.n-row{grid-template-columns:36px minmax(0,1fr);column-gap:22px}
.n-tx{position:relative}
.n-tx>.n-dot{position:absolute;inset-inline-start:-15px;inset-block-start:calc((var(--t-s) * 1.45 - 8px) / 2);margin:0}
.bell-pop{width:min(400px,calc(100vw - 32px))}.bell-pop .n-m{flex-wrap:nowrap;gap:5px 6px}.bell-pop .n-m>*{flex:none}
@media (max-width:640px){.n-row{grid-template-columns:32px minmax(0,1fr);column-gap:20px}.n-tx>.n-dot{inset-inline-start:-14px}}
/* C1B FACE end */
/* FXA-PORTAL (wave fxa, decisions FX-D13): press areas, by padding or a minimum height, the look as it is. A computer: 32 px for the crumb, the link
   buttons, the small summaries and the footer's links. A phone (under 600 px): 44 px for every press target and 8 px between neighbours;
   the transaction tabs fade at their far edge, as the site's chip rows do, so the row shows that it scrolls */
.crumb{padding-block:5px;margin-block:-5px}
.link-btn,.check{min-height:32px}
.pa-body form:has(#fe)>.btn,.ctrl>.btn{margin-block-start:10px}   /* a button under its field (the forgotten password, the e-mailed code) stands clear of it */
.hist summary,.pay-hist summary{padding-block:5px;margin-block:-5px}
.pp-fl a{padding-block:6px;margin-block:-6px}
.au-sheet:has(>.pa-body.fit){height:auto}   /* FR2-13: the forgotten password, its sent answer and the invalid link: the card fits its few lines */
@media (max-width:599.98px){
  .btn,.btn-sm,html .lang-t,html .au .lang-t,html .pp-head .lang-t,.who-btn,.tabs button,.seg button,.soc-btn{min-height:44px}
  .au-logo{min-width:44px}
  .seg,.docs,.acts,.otp6{gap:8px}
  .otp6{margin-block-end:4px}
  .icon-btn{width:44px;height:44px}
  .gbar .logo{min-width:44px}
  .gbar .tools{gap:8px}
  .tabs{gap:8px;padding-inline-end:34px;scroll-padding-inline-end:34px;-webkit-mask-image:linear-gradient(to left,transparent,var(--ink) 34px);mask-image:linear-gradient(to left,transparent,var(--ink) 34px)}
  [dir=rtl] .tabs{-webkit-mask-image:linear-gradient(to right,transparent,var(--ink) 34px);mask-image:linear-gradient(to right,transparent,var(--ink) 34px)}
  .crumb{padding-block:11px;margin-block:-11px}
  .link-btn{min-height:44px;min-width:44px;justify-content:center}
  .check{min-height:44px}
  .hist summary,.pay-hist summary{padding-block:11px;margin-block:0}
  .pp-fl a{padding:12px 4px;margin:-12px -4px}
  .bn{column-gap:8px}
  .au-tools{gap:8px}
  .au-tabs{gap:8px}.au-tab,.au-tab[aria-selected=true]{height:44px}.au-book{--tabs-h:58px}
}
/* FXA-PORTAL end */
/* FXB-FIX-CLIENT (wave fxb2): FXB-C4 the «وثّقه الآن» card stands one row gap below the next-step card, as every other pair of cards;
   FXB-C8 the conversation composer on a phone: a 44 px message box, 8 px from its buttons (FX-D13) */
.act+.act.nz{margin-block-start:var(--gap)}
@media (max-width:599.98px){
  .composer{gap:8px}
  .composer .textarea{min-height:44px}
}
/* FXB-FIX-CLIENT end */
/* FXG-PORTAL (round fxg, 2026-12-02): G-25 a select is the portal's own field: no browser arrow; the portal's chevron, drawn in ink by two
   small strokes on the end side inside the field's padding (mirrored in Arabic); no colour of its own */
.select{-webkit-appearance:none;appearance:none;padding-inline-end:38px;background-image:linear-gradient(to top right,transparent 36%,var(--ink) 44% 56%,transparent 64%),linear-gradient(to top left,transparent 36%,var(--ink) 44% 56%,transparent 64%);background-repeat:no-repeat;background-size:6px 6px;background-position:right 20px center,right 14px center;cursor:pointer}
[dir=rtl] .select{background-position:left 14px center,left 20px center}
/* G-27 the answers to a service's questions in the new request (.tp: the service's questions, «كيف تريد التوقيع؟», «هل نص المحرر جاهز
   لديك؟», «لغة النص») read as one segmented choice: a short keyline divides two answers (it stands in the middle of the gap and steps
   aside beside the chosen answer, which keeps its ink ring) */
.tp .seg button{position:relative}
.tp .seg button+button::before{content:"";position:absolute;inset-block:9px;inset-inline-start:-1.5px;width:1px;background:var(--line-2);pointer-events:none}
.tp .seg button[aria-pressed=true]::before,.tp .seg button[aria-pressed=true]+button::before{display:none}
@media (max-width:599.98px){.tp .seg button+button::before{inset-inline-start:-4.5px}}
/* FXG-LAST (FXV-C-01): on a phone the answers may wrap; the keyline of an answer that starts a row falls outside the row's padding box
   and is clipped there (the lines between two answers stay); the focus ring is drawn inside the answer so the clip never cuts it */
@media (max-width:599.98px){.tp .seg{overflow:hidden}.tp .seg button:focus-visible{outline-offset:-3px}}
/* FXG-LAST (LK-GB-02): on a phone a bank detail row keeps its label and value together: the copy button spans both lines, the row
   has the card's inner padding */
@media (max-width:640px){.bt .bank-row{row-gap:2px;padding-block:8px}.bt .bank-row>small{grid-column:1;grid-row:1}.bt .bank-row>b{grid-column:1;grid-row:2}.bt .bank-row>.bt-cp{grid-column:2;grid-row:1/span 2}}
/* G-26 «سجل الموعد» and the fee and payment disclosures: no browser triangle; the portal's own chevron (the one of «عرض المسار كاملاً»),
   down when closed, up when open */
.hist summary,.pay-hist summary{list-style:none}
.hist summary::-webkit-details-marker,.pay-hist summary::-webkit-details-marker{display:none}
.hist summary::before,.pay-hist summary::before{content:"";display:inline-block;width:7px;height:7px;margin-inline-end:10px;vertical-align:.25em;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.hist[open]>summary::before,.pay-hist[open]>summary::before{vertical-align:0;transform:rotate(225deg)}
/* G-33 the sign-up's one-line note takes the height of its line (the slot no longer holds the company fields' height open) */
.reg-slot{height:auto}
.reg-slot .note{height:auto;min-height:0;padding:9px 12px}
/* G-34 on a phone a «بياناتي» row puts its button under its words (in line with them), so the words keep the row's width */
@media (max-width:640px){.data-row{flex-wrap:wrap}.data-row .tx{flex-basis:calc(100% - 44px)}.data-row>.btn{margin-inline-start:44px}}
/* FXG-PORTAL end */
