/* T-31: Inter, self-hosted (SIL OFL — fonts/Inter-OFL.txt) */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/inter-latin-var.woff2") format("woff2")}
/* TM30 Autofill — the account pages' ONE stylesheet (login, signup, reset, account, admin).
   T-26 pass 2 (docs/DESIGN-UPGRADE.md): the same two themes and tokens as the scanner page. 0.3.28 (T-512, round 5): raven black and
   white, powder blue leads, poppy red on the logo tile and the main buttons (tokens.css). The header switch (src/theme.js, loaded in <head>)
   sets <html data-theme>; with no saved choice the OS preference decides. One crisp system sans (no rounded face), weights
   ≤ 600, tight spacing, 6–8 px corners, thin borders, quiet shadows, solid buttons. Motion: transform/opacity only, off under
   prefers-reduced-motion. */
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font:16px/1.5 var(--f-head);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
a{color:var(--brand-text);text-decoration:underline;text-underline-offset:2px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
h1,h2{font-family:var(--f-head)}
h1{font-size:clamp(1.375rem,1.1rem + 1vw,1.75rem);line-height:1.2;letter-spacing:-.018em;font-weight:600;margin:0 0 4px}
h2{font-size:1.0625rem;letter-spacing:-.01em;font-weight:600;margin:0 0 4px}
p{margin:0}
.lead{color:var(--ink-2);font-size:.9375rem;margin:0 0 14px}
.muted{color:var(--ink-2);font-size:.875rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* header */
.top{width:100%;max-width:1180px;margin:0 auto;padding:6px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--ink);text-decoration:none;font-weight:600;letter-spacing:-.01em}
.brand{font-family:var(--f-head);font-weight:600;font-size:1.0625rem}
.brand .mark{width:40px;height:40px;flex:none;display:block}   /* T-42 round-6 H1 (his pick 10-11): the tile exactly as tall as the wordmark block (TM30's cap line → Autofill's baseline, 40 px), gap ≈ one stem (8 px) · the E-edged mark (brand/icon-e-edged/tile-rounded-11.svg, T-42), coloured by the theme */
.brand .mark .mark-tile{fill:var(--logo-tile)}.brand .mark .mark-glyph{fill:var(--logo-glyph)}
.brand .wordmark{width:100px;height:40px;flex:none;display:block}   /* T-135: THE wordmark (brand/wordmark-2c, Geist — TM30 over Autofill, outlined paths), the name is the sr-only text beside it */
.brand .wordmark .wm-main{color:var(--wm-main)}.brand .wordmark .wm-sub{color:var(--wm-sub)}
.brand .beta-tag{height:40px;width:calc(40px * 164 / 158.8);margin-left:calc(40px * 16 / 158.8 - 8px)}   /* T-543: THE beta tag (src/core/beta-tag.css), as tall as the wordmark (a.brand gap 8) */
.top nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.top nav a,.top nav button{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;color:var(--ink-2);text-decoration:none;font:inherit;font-weight:550;background:none;border:0;cursor:pointer}   /* T-512 (round 5 Home 2's header, every account and admin page): round pills */
@media (hover:hover){.top nav a:hover,.top nav button:hover{background:var(--surface-2);color:var(--ink)}}
.top nav a.cta{color:var(--brand-text);font-weight:600}
/* the Light / Dark switch (src/theme.js) — hidden until the script has resolved the theme */
.top nav .theme-toggle{justify-content:center;width:44px;padding:0;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2)}   /* T-512: Home 2's round switch on white (--surface) */
.theme-toggle svg{width:18px;height:18px}
.theme-toggle .t-sun{display:none}
:root[data-theme="dark"] .theme-toggle .t-sun{display:block}:root[data-theme="dark"] .theme-toggle .t-moon{display:none}
:root:not([data-theme]) .theme-toggle{display:none!important}

/* page frames */
main.auth{flex:1;width:100%;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:start;padding:clamp(12px,3vh,28px) 16px 32px;position:relative}
main.auth::before{content:"";position:absolute;left:50%;top:-60px;width:min(90vw,720px);height:360px;-webkit-mask-image:linear-gradient(transparent,#000 30%);mask-image:linear-gradient(transparent,#000 30%);transform:translateX(-50%);background:radial-gradient(55% 60% at 50% 30%,var(--brand-glow),transparent 72%);opacity:.5;pointer-events:none;z-index:-1}
/* T-512 (round 5 Home 2): one faint fixed powder blue glow at the top right of every account page (tokens-web.css --page-glow); the violet
   glow and the dot grid of the old look are gone */
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:var(--page-glow)}
main.auth .card{width:min(100%,420px)}
/* T-549 round 2 (his OK 20 Nov: "red button and add the mrz code lien aniamtion"): THE code band (src/core/texture.css .mrz-site, the home
   page's type; T-547 B2 moves it) right under the card, in the page's flow, centred; main.auth's one column is minmax(0,1fr) so the
   window-wide band never widens it (the card stays centred). main.auth raises it over texture.css's absolute .mrz-band (loaded after).
   T-562 (the 0.3.30 proof, Fable 0330B): its width here too (texture.css's .mrz-site width): before that file comes the band was 907 px
   wide, 259 px of sideways scroll at 390 px, and it moved when texture.css arrived */
main.auth .auth-band{position:relative;left:auto;top:auto;justify-self:center;width:min(100vw,1280px);margin-top:30px;height:26px;overflow:hidden}
@media (min-width:560px){main.auth .auth-band{height:44px}}   /* the band's room = texture.css's .mrz-site height: nothing moves when that file arrives */
.auth-band{opacity:0}   /* texture.css loads at the end of the body (never render-blocking): until it comes, no plain code lines (its .mrz-band, later, sets the faint look) */
main.wide{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:8px 16px 32px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);transition:box-shadow .2s ease}
/* T-187 A6: no hover-lift on the account page's boxes — nothing happens when you press them */
@media (max-width:420px){.card{padding:16px 14px}}
.grid{display:grid;gap:12px;grid-template-columns:1fr}
@media (min-width:820px){.grid{grid-template-columns:1fr 1fr}.grid .span{grid-column:1/-1}}
.stack{display:grid;gap:12px}
.pagehead{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 12px}
footer{color:var(--ink-2);font-size:.75rem;text-align:center;padding:12px 16px;max-width:640px;margin:0 auto}
footer a{color:inherit}
/* T-54 Stage 0: /privacy and /terms — a reading width, short sections; the sign-up / account tick box (44 px target) */
main.doc{max-width:760px}
.doc section{margin:18px 0 0}
.doc h2{margin:0 0 6px}
.doc p,.doc li{font-size:.9375rem;line-height:1.6;margin:0 0 8px}
.doc ul,.doc ol{padding-left:1.25em;margin:0 0 8px}
.doc ol.terms{margin-top:14px}
.about-tex{left:0;right:0;top:0;max-height:100%}   /* T-535: /about, THE texture (src/core/texture.css) from the top of the page, behind everything; 0.3.30 (measured 21 Nov: 132-161 px of blank scroll at 1366x768 / 1280x720, the 900 px frame taller than the page): never taller than the page */
body[data-page="about"]{position:relative}   /* …the page is the dots' frame (as the auth pages, T-549) */
.auth-tex{position:absolute;left:0;right:0;top:0;max-height:100%}   /* T-549 (his OK 20 Nov): /login, /signup (+ /reset, /confirm-email: the same card) the home page's halftone dots, placed as /about's; never taller than the page (the frame is 710 / 900 px: on a short page it would add blank scroll) */
body[data-page="login"],body[data-page="signup"],body[data-page="reset"],body[data-page="confirm"]{position:relative}   /* …the page (body, at least the window tall) is the dots' frame */
.doc ol.terms li{margin:0 0 10px;padding-left:4px}
label.check{display:flex;gap:10px;align-items:flex-start;min-height:44px;margin:0 0 12px;font-size:.875rem;line-height:1.45;color:var(--ink);cursor:pointer}
label.check input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--brand-text)}

/* forms */
.field{display:grid;gap:4px;margin:0 0 12px}
.field>span{font-size:.875rem;font-weight:500;color:var(--ink)}
.field .hint{font-size:.85rem;color:var(--ink-2);font-weight:400}
input:not([type=checkbox]),select{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--field-line);border-radius:var(--radius-s);font:inherit;color:var(--ink);background:var(--surface)}
input:not([type=checkbox]),select{transition:border-color .2s ease,box-shadow .2s ease}
input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:1px;box-shadow:0 0 0 3px var(--brand-glow);border-color:var(--brand-text)}
input[readonly]{background:var(--surface-2)}
/* T-125: Show / Hide on a password box (src/password-toggle.js) — the button sits over the box's right end, NEXT TO its label (inside
   it, the box's spoken name would gain "Show password"); the 1px transparent border keeps its hover fill inside the box's border */
.pw-field{position:relative;margin:0 0 12px}
.pw-field>.field{margin:0}
.pw-field input.pw-input{padding-right:80px}
.pw-toggle{position:absolute;right:0;bottom:0;min-width:68px;height:44px;padding:0 12px;border:1px solid transparent;background-clip:padding-box;border-radius:0 var(--radius-s) var(--radius-s) 0;background-color:transparent;color:var(--brand-text);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;transition:background-color .15s ease}
.pw-toggle:hover{background-color:var(--brand-soft)}
.pw-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
.pw-toggle[disabled]{opacity:.55;cursor:default}
.pw-field>label[hidden]+.pw-toggle{display:none}
label.check .hint{color:var(--ink-2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:var(--radius-s);border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;font-size:.9375rem;font-weight:500;cursor:pointer;text-decoration:none;transition:transform .15s var(--ease),background-color .15s ease,border-color .15s ease}
@media (hover:hover){.btn:hover{background:var(--surface-2);border-color:var(--brand-text)}}
.btn:active{transform:scale(.98);transition-duration:.08s}
.btn.primary{background:var(--btn);color:var(--btn-ink);border-color:transparent;width:100%;font-weight:600;box-shadow:var(--shadow)}
@media (hover:hover){.btn.primary:hover{background:var(--btn-hover);border-color:transparent}}
/* T-481 wider (PLAN-2 section 2, row 22; the lane D audit): the sign-up page's one action, "Create account", is magenta with its own hover.
   Scoped to that page: reset, confirm-email, account and admin share this file and keep their own (T-549: + login, below) */
/* T-549 (his OK 20 Nov: "lgo in should be a red button"): the log-in page's Log In wears the same rules (its one .btn.primary) */
body[data-page="signup"] .btn.primary,body[data-page="login"] .btn.primary{background:var(--action);color:var(--action-ink)}
@media (hover:hover){body[data-page="signup"] .btn.primary:hover,body[data-page="login"] .btn.primary:hover{background:var(--action-hover)}}
/* T-512 (round 5): the slight fall, the inner edge and the soft red shadow of a main button (the hover is flat) */
body[data-page="signup"] .btn.primary:not(:hover),body[data-page="login"] .btn.primary:not(:hover){background-image:linear-gradient(180deg,var(--action),var(--action-2))}
body[data-page="signup"] .btn.primary,body[data-page="login"] .btn.primary{box-shadow:inset 0 1px 0 var(--action-shine),inset 0 0 0 1px var(--action-edge),0 14px 28px -14px var(--action-glow)}
/* 0.3.31 T-577 (his 22 Nov: "ask for reset link can be red button too"): the reset page's Send Reset Link (#form's one .btn.primary) wears
   the same red, the same fall, edge, shadow and hover; the new-password step (#form2) keeps the black rule */
body[data-page="reset"] #form .btn.primary{background:var(--action);color:var(--action-ink);box-shadow:inset 0 1px 0 var(--action-shine),inset 0 0 0 1px var(--action-edge),0 14px 28px -14px var(--action-glow)}
@media (hover:hover){body[data-page="reset"] #form .btn.primary:hover{background:var(--action-hover)}}
body[data-page="reset"] #form .btn.primary:not(:hover){background-image:linear-gradient(180deg,var(--action),var(--action-2))}
/* his rule 19 Nov ("any sort of agree terms or what not button should always be our red colour"): the account page's Processing terms
   "Accept" (#termsAccept) is red, the page's one red (Delete my account keeps its red words on an outlined button, never a red box) */
#termsAccept{background:var(--action);color:var(--action-ink);border-color:transparent;font-weight:600;box-shadow:inset 0 1px 0 var(--action-shine),inset 0 0 0 1px var(--action-edge),0 14px 28px -14px var(--action-glow)}
#termsAccept:not(:hover){background-image:linear-gradient(180deg,var(--action),var(--action-2))}
@media (hover:hover){#termsAccept:hover{background:var(--action-hover);border-color:transparent}}
.btn.small{min-height:44px;padding:6px 12px;font-size:.875rem;font-weight:500}
.btn.danger{color:var(--bad)}
@media (hover:hover){.btn.danger:hover{background:var(--bad-bg)}}
.btn[disabled],button[disabled]{opacity:.55;cursor:default;transform:none}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row.spread{justify-content:space-between}
.msg{min-height:1.5em;margin:0 0 10px;font-size:.875rem;color:var(--ink-2)}
.msg.bad{color:var(--bad);font-weight:500}
.msg.ok{color:var(--ok);font-weight:500}
.notice{padding:10px 12px;border-radius:var(--radius-s);font-size:.875rem;margin:0 0 12px}
.notice.warn{background:var(--warn-bg);color:var(--warn)}
.notice.info{background:var(--brand-soft);color:var(--brand-text)}
.notice.bad{background:var(--bad-bg);color:var(--bad)}
.alt{color:var(--ink-2);font-size:.875rem;margin:14px 0 0;text-align:center}
.alt .keep{white-space:nowrap}   /* T-402: "Don't have an account? Sign up" wraps as one piece on a phone */
.pill{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.75rem;font-weight:600;background:var(--brand-soft);color:var(--brand-text);white-space:nowrap}
.pill.ok{background:var(--ok-bg);color:var(--ok)}
.pill.bad{background:var(--bad-bg);color:var(--bad)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}
.pill.muted{background:var(--surface-2);color:var(--ink-2)}

/* devices */
.devices{display:grid;gap:8px;margin:12px 0}
.device{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface-2)}
.device .name{font-weight:600}
.device .meta{font-size:.85rem;color:var(--ink-2)}
/* T-126: a linked device's Sign out asks — both, or one part; wraps under the name on a phone */
.device{flex-wrap:wrap}
.device>div:first-child{flex:1 1 180px;min-width:0}
.dev-choice{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}

/* T-119: the activity log (/account, and /admin per account and for every account) — one line per event: a dot (amber = a refused
   or failed thing, violet = done by the admin), what happened, then the device and the time; the time drops under it on a phone */
.acts{list-style:none;margin:6px 0 8px;padding:0}
.act{display:grid;grid-template-columns:8px minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:baseline;padding:9px 0;border-top:1px solid var(--line)}
.act:first-child{border-top:0}
.act::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--line-strong);align-self:start;margin-top:.5em}
.act.warn::before{background:var(--warn)}
.act.admin::before{background:var(--brand-text)}
.act-what{min-width:0;overflow-wrap:anywhere}
.act-title{font-weight:500}
.act-text{color:var(--ink-2)}
.act-acct{font-size:.8125rem;color:var(--ink-2);font-weight:500;overflow-wrap:anywhere}
.act-meta{color:var(--ink-2);font-size:.8125rem;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.act-meta time{white-space:nowrap}
.act.with-acct .act-meta{align-self:end}   /* every account's list: the device + time on the line of the event, not of the email */
@media (max-width:640px){.act{grid-template-columns:8px minmax(0,1fr)}.act-meta{grid-column:2;text-align:left;white-space:normal}}
.actbox{border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface-2);padding:10px 12px}
.actbox .acts{margin:0}
.actbox .act{border-top-color:var(--line-strong)}
.act-filter select{min-height:44px;width:auto}

/* account stats */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:10px 0}
.stat{padding:10px 12px;border-radius:var(--radius-s);background:var(--surface-2);border:1px solid var(--line)}
.stat b{display:block;font-family:var(--f-head);font-size:1.375rem;font-weight:600;line-height:1.15;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.stat span{font-size:.85rem;color:var(--ink-2)}
dl.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:12px 0 0;font-size:.95rem}
dl.facts dt{color:var(--ink-2)}dl.facts dd{margin:0;word-break:break-word}

/* admin */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 14px}
.toolbar input{flex:1 1 220px}
.table{width:100%;border-collapse:collapse;font-size:.92rem}
.table th{text-align:left;color:var(--ink-2);font-weight:600;font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;padding:10px;border-bottom:1px solid var(--line)}
.table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.table td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.table .who b{display:block}.table .who span{color:var(--ink-2);font-size:.88rem;word-break:break-all}
.table .pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.table select,.table input.num{min-height:44px;padding:6px 10px;font-size:.92rem}
.table select{min-width:9em}
.table input.num{width:5em}
.table .lim{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:.85rem;color:var(--ink-2)}
.table td.dates{white-space:nowrap}
.table tr.linkrow td{padding-top:0}
.table .actions{display:flex;gap:6px;flex-wrap:wrap}
.table .actions .btn{flex:1 1 auto}
.table .actions .admin-logo{flex:none;width:64px;height:32px;object-fit:contain;background:var(--paper);border:1px solid var(--line);border-radius:4px}   /* QR plan Q1: her logo, seen small by the admin (logo abuse) */
.table .actions .admin-logo-item{display:inline-flex;align-items:center;gap:6px;flex:none}   /* the QR redesign part 1: one per place with a logo (its picture + its own Remove logo) */
.linkbox{background:var(--brand-soft);color:var(--brand-text);border-radius:var(--radius-s);padding:10px 12px;display:grid;gap:8px}
.linkbox .copy{display:flex;gap:8px;flex-wrap:wrap}
.linkbox input{flex:1 1 240px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;min-height:44px}
.settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end}
/* T-14: the TM30 page check card — a screen whose newest check found a change is red (a bar on the left, the words in red) */
.pc-table .pc-main{font-variant-numeric:tabular-nums}
.pc-table .pc-sub,.pc-table .pc-note{display:block;color:var(--ink-2);font-size:.85rem;overflow-wrap:anywhere}
.pc-table .pc-note{margin-top:6px}
.pc-table tr.pc-bad td{background:var(--bad-bg)}
.pc-table tr.pc-bad td:first-child{box-shadow:inset 3px 0 0 var(--bad)}
.pc-table tr.pc-bad .pc-main,.pc-table tr.pc-bad .pc-sub,.pc-table tr.pc-bad b{color:var(--bad)}
.pc-table .who .pill.ok{color:var(--ok)}.pc-table .who .pill.muted{color:var(--ink-2)}   /* .table .who span greys every span */
.pc-table .who .pill.bad{background:var(--bad);color:var(--surface)}   /* solid: it sits on the red row */
.pc-table .who .pill.warn{color:var(--warn)}   /* T-14 step 2: a public page that could not be checked — amber, not the grey every .who span gets */
@media (max-width:899px){
  .table thead{display:none}
  .table tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-s);margin:0 0 12px;background:var(--surface)}
  .table td{border:0;padding:0}
  .table td[data-label]::before{content:attr(data-label);display:block;font-size:.72rem;color:var(--ink-2);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
  .table td.who,.table td.wide{grid-column:1/-1}
  .table tr.linkrow{padding:0;border:0;margin-top:-4px}
  .pc-table tr.pc-bad{background:var(--bad-bg);border-color:var(--bad);box-shadow:inset 3px 0 0 var(--bad)}
  .pc-table tr.pc-bad td,.pc-table tr.pc-bad td:first-child{background:none;box-shadow:none}
}

/* motion — transform/opacity only, off when the visitor asked for less motion */
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.rise{animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
.rise.d1{animation-delay:.07s}.rise.d2{animation-delay:.14s}
@media (prefers-reduced-motion:reduce){
  .rise{animation:none}
  .btn,.btn:hover,.btn:active,.card{transition:none;transform:none}
}

/* small spacing utilities (the pages carry no inline styles — the CSP forbids them) */
.m0{margin:0}.mb6{margin-bottom:6px}.mb12{margin-bottom:12px}.mt8{margin-top:8px}.mt14{margin-top:14px}
.settings .field{margin:0}
.who{border:0;padding:0;margin:0;min-width:0}   /* audit M3: the Auto-Save card's "On For" choice (admin.html) */
.who legend{padding:0;margin:0 0 4px;font-size:.875rem;font-weight:500}
.who:disabled label.check{cursor:default;opacity:.6}
.docsw{align-items:start;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.docsw>.btn{align-self:end}.docsw .who{display:grid;gap:6px}.docsw .who legend .hint{font-weight:400;margin-left:6px}   /* S6: the Records and Documents card (admin.html) */
.docsw .docsw-emails{margin:0 0 0 26px}.docsw .docsw-emails textarea{width:100%;min-width:0;max-width:420px;font:inherit;padding:6px 8px;border:1px solid var(--field-line);border-radius:8px;background:var(--surface);color:var(--ink);resize:vertical}
.docsw .docsw-emails[hidden]{display:none}
.settings-fields{display:contents}   /* T-104: the per-plan boxes are made by src/accounts-ui.js; they sit in the grid like before */
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:var(--surface-2);padding:1px 5px;border-radius:4px}
/* T-102: this month's guests of the plan on /account — a meter (warn colour when full) and the reset day */
.usage{display:grid;gap:6px;margin:4px 0 12px}
.usage-line{margin:0;font-variant-numeric:tabular-nums}
.usage-line b{font-size:1.25rem}
.small{font-size:.875rem}
.meter{height:10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);overflow:hidden}
.meter > span{display:block;height:100%;width:0;border-radius:inherit;background:var(--brand-text);transition:width .4s var(--ease)}
.meter.full > span{background:var(--warn)}
@media (prefers-reduced-motion: reduce){.meter > span{transition:none}input:not([type=checkbox]),select{transition:none}}

/* T-197 (his ask): signed-in pages carry the Thai flag's soft bands behind the header, as the scanner does — calm, fading out */
body[data-page="account"]{position:relative;isolation:isolate}
.app-flag{position:absolute;left:0;right:0;top:-8px;height:375px;z-index:-1;opacity:.22;-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 35%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 35%,transparent 100%)}
:root[data-theme="dark"] .app-flag{opacity:.26}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .app-flag{opacity:.26}}
