/* Dromonex accounts: shared stylesheet (T07). Taken from the round-A2 prototypes
   (website/designs/accounts/_build.py, identical in all 17 pages), with the :target state switches removed and
   rules added for real inputs. Scoped under .dmx-a; the tokens sit on :root so the page shell (body) reads them too.
   No @import, no external URLs. The fonts are A's own subsets in static/fonts (T22 DEP-2: Google Fonts told Google
   every visitor's IP and page); tools/subset_fonts.py makes them and prints the @font-face lines below.
   UI-1120 (hallmark review, build-log/UI-1120.md): blue only on the main action (.btn-w), every colour, size and
   space through a token, a :focus ring that Safari 14.5 keeps, field rings as outlines, busy and copied states.
   Safari 14.5 floor: no :focus-visible without the :focus fallback, overflow:clip only inside @supports, no
   aspect-ratio, :has(), color-mix(), accent-color, nesting or @layer. */
@font-face{font-family:"Sora"; font-style:normal; font-weight:300 600; font-display:swap; src:url(fonts/sora.ce35f65e57.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono"; font-style:normal; font-weight:400 500; font-display:swap; src:url(fonts/jetbrains-mono.4366130f59.woff2) format("woff2")}
@font-face{font-family:"Noto Sans TC"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/noto-sans-tc.fc00db7918.woff2) format("woff2")}
:root{
  --bg:#0a0a0a; --raise:#0f0f0f; --raise2:#141414;
  --ink:#f2f2f2; --ink2:#d2d2d2; --grey:#a3a3a3; --dim:#8a8a8a;
  --line:#1f1f1f; --line2:#2a2a2a; --line3:#3d3d3d; --fline:#6e6e6e;
  --act:#0068e8; --act-h:#006ff2; --act-ink:#ffffff; /* 11-20: blue only on the main action; white text 5.07:1 on --act, 4.6:1 on --act-h */
  --err:#f2a497; --errline:#6a3c35; --errbg:#140e0d; --err-ink:#0a0a0a;
  --lnum:#858585; --qr-bg:#ffffff;
  --sans:"Sora", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono:"JetBrains Mono", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", ui-monospace, monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
  /* type scale (V-A12): body steps 14-16-19 (ratio about 1.19), heads 19/30 and the figure 34 (21/38/44 from 768px:
     D-04's own scale also puts the h1 and the saving figure above the body ratio). Mono data and the logo have their
     own tokens, so no size is written outside this block: the wordmark (as on the site), the key and the code fields
     (22px, which also keeps iOS from zooming). The three setup lines use --fs-s (UI-1120 fix round 1). */
  --fs-s:14px; --fs-m:16px; --fs-l:19px; --fs-h2:19px; --fs-h1:30px; --fs-fig:34px;
  --fs-mark:15px; --fs-key:17px; --fs-key-l:20px; --fs-code-in:22px;
  /* spacing (V-A13): a 4px grid, 2px for hairline gaps; values the A2 CSS had off the grid went to the nearest
     step (ties to the 8px step). The only literal nudges left: .wn .ic 3px, .sr -1px, the em-based key gaps. */
  --s0:2px; --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s7:28px; --s8:32px;
  --s9:40px; --s10:48px; --s11:72px; --s12:88px; --s13:112px;
  --tap:44px;   /* the tap target; the consent sentence spaces its 44px row with it (fix round 2) */
  color-scheme:dark;
}
html, body{overflow-x:hidden}
@supports (overflow:clip){
  html, body{overflow-x:clip}
}
body{margin:0; background:var(--bg)}
.dmx-a, .dmx-a *, .dmx-a *::before, .dmx-a *::after{box-sizing:border-box}
.dmx-a{
  color-scheme:dark;
  background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:var(--fs-m); line-height:1.8; font-weight:400;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; -webkit-text-size-adjust:100%;
}
.dmx-a ::selection{background:var(--line3); color:var(--ink)}
.dmx-a a{color:inherit; text-decoration:none}
.dmx-a p, .dmx-a h1, .dmx-a h2, .dmx-a h3, .dmx-a ul, .dmx-a ol, .dmx-a dl, .dmx-a dd{margin:0; padding:0}
.dmx-a ul, .dmx-a ol{list-style:none}
.dmx-a p{text-wrap:pretty}
.dmx-a h1, .dmx-a h2, .dmx-a h3{font-weight:500; text-wrap:balance; overflow-wrap:break-word; min-width:0}
/* a hyphenated word in a heading stays on one line: "two-step", "sign-up" (the nb filter, 2026-12-06) */
.dmx-a .nb{white-space:nowrap}
.dmx-a button{margin:0; padding:0; border:0; background:none; color:inherit; font:inherit; cursor:pointer; -webkit-appearance:none; appearance:none}
.dmx-a [data-assumed]{font-family:var(--mono); font-weight:400; letter-spacing:0}
/* focus (V-A4): Safari 14.5 has no :focus-visible, so it drops the second rule and keeps the :focus ring; newer
   browsers hide the ring for mouse and touch. Rules later in the file keep their own radius. */
.dmx-a :focus{outline:2px solid var(--ink); outline-offset:3px; border-radius:6px}
.dmx-a :focus:not(:focus-visible){outline:none}
.dmx-a :focus-visible{outline:2px solid var(--ink); outline-offset:3px; border-radius:6px}
.dmx-a .wrap{width:100%; max-width:1280px; margin:0 auto; padding:0 var(--s5)}
.dmx-a .ic{width:20px; height:20px; display:block; flex:none}
.dmx-a .ic-s{width:16px; height:16px}

.dmx-a .brand{display:inline-flex; flex:none; align-items:center; justify-content:center; gap:var(--s2); min-height:44px; min-width:44px; color:var(--ink)}
.dmx-a .mark{width:26px; height:26px; flex:none; display:block}
.dmx-a .wordmark{font-family:var(--sans); font-weight:600; font-size:var(--fs-mark); letter-spacing:.12em; text-transform:uppercase; line-height:1}

.dmx-a .btn{--sp:var(--ink); display:inline-flex; align-items:center; justify-content:center; gap:var(--s2); min-height:52px; padding:0 var(--s7); border-radius:999px; font-size:var(--fs-m); font-weight:500; letter-spacing:.03em; line-height:1.2; white-space:nowrap; transition:transform .18s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease)}
.dmx-a .btn-w{--sp:var(--act-ink); background:var(--act); color:var(--act-ink)}
.dmx-a .btn-o{border:1px solid var(--line3); color:var(--ink)}
.dmx-a .btn-s{min-height:44px; padding:0 var(--s5); font-size:var(--fs-s)}
.dmx-a .btn-b{width:100%}
.dmx-a .btn-x{--sp:var(--err); border:1px solid var(--errline); color:var(--err)}
.dmx-a .btn-xw{--sp:var(--err-ink); background:var(--err); color:var(--err-ink)}
.dmx-a .btn-off{border:1px dashed var(--line3); color:var(--dim); cursor:default}
.dmx-a .btn:active{transform:translateY(1px) scale(.985)}
.dmx-a .btn-off:active{transform:none}

.dmx-a .hd{border-bottom:1px solid var(--line)}
.dmx-a .hd-in{display:flex; align-items:center; gap:var(--s4); min-height:68px}
.dmx-a .hd-r{display:flex; align-items:center; gap:var(--s1); margin-left:auto}
.dmx-a .tl{display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:0 var(--s2); font-size:var(--fs-s); color:var(--grey); letter-spacing:0; white-space:nowrap; transition:color .2s var(--ease)}
.dmx-a .tl[aria-current]{color:var(--ink)}
.dmx-a .hd-r .btn-s{margin-left:var(--s1)}
.dmx-a .tag{display:inline-flex; align-items:center; min-height:30px; padding:0 var(--s3); border:1px solid var(--line3); border-radius:999px; font-size:var(--fs-s); line-height:1.2; color:var(--ink2); letter-spacing:0; white-space:nowrap}

.dmx-a .mn{padding:var(--s9) 0 var(--s12); min-height:600px}
.dmx-a .col{max-width:480px; margin:0 auto}
.dmx-a .wide{max-width:1120px; margin:0 auto}
.dmx-a h1{font-size:var(--fs-h1); line-height:1.3; letter-spacing:.015em}
.dmx-a .h2{font-size:var(--fs-h2); line-height:1.45; letter-spacing:.02em}
.dmx-a .lead{margin-top:var(--s3); font-size:var(--fs-m); line-height:1.85; color:var(--grey)}
.dmx-a .lbl{display:block; font-size:var(--fs-s); line-height:1.6; color:var(--grey); letter-spacing:0}
.dmx-a .fl{margin-top:var(--s7)}
/* a field: the border never changes on focus; the ring is an outline on the box (V-A4) */
.dmx-a .fld{display:flex; align-items:center; gap:var(--s3); min-height:56px; margin-top:var(--s2); padding:0 var(--s4); background:var(--raise); border:1px solid var(--fline); border-radius:12px; font-size:var(--fs-m); line-height:1.4; color:var(--ink)}
.dmx-a .fld:focus-within{outline:2px solid var(--ink); outline-offset:2px}
.dmx-a .fld .ph{color:var(--dim)}
.dmx-a .fld-code{font-family:var(--mono); font-size:var(--fs-code-in); letter-spacing:.34em}
.dmx-a .fld-err{border-color:var(--err)}
.dmx-a .msg{display:flex; align-items:flex-start; gap:var(--s2); margin-top:var(--s3); font-size:var(--fs-m); line-height:1.7; color:var(--ink2)}
.dmx-a .msg .ic{margin-top:var(--s1)}
.dmx-a .msg-err{color:var(--err)}
.dmx-a .hint{margin-top:var(--s3); font-size:var(--fs-m); line-height:1.75; color:var(--dim)}
.dmx-a .act{margin-top:var(--s7)}
.dmx-a .alt{display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 var(--s0); margin-top:var(--s8); padding-top:var(--s5); border-top:1px solid var(--line); font-size:var(--fs-m); color:var(--grey)}
.dmx-a .lk{display:inline-flex; align-items:center; justify-content:center; gap:var(--s2); min-height:44px; min-width:44px; padding:0 var(--s2); color:var(--ink); text-decoration:underline; text-decoration-color:var(--line3); text-underline-offset:5px; transition:text-decoration-color .2s var(--ease)}
/* a link inside a sentence (V-A3): it flows with the text and never splits across two lines. Its hit area is a
   ::before reaching 12px above and below the text (45px high; 10px measured 41px), so the link's own box, and the
   focus ring drawn on it, keep the height of the line (fix round 1: padding made a 51px ring across the lines).
   The ring sits 2px off the text; the :focus:not(:focus-visible) reset still removes it for mouse and touch. */
.dmx-a .lk.lk-in{display:inline; position:relative; min-height:0; min-width:0; padding:0; white-space:nowrap; text-underline-offset:4px}
.dmx-a .lk.lk-in::before{content:""; position:absolute; left:0; right:0; top:calc(var(--s3) * -1); bottom:calc(var(--s3) * -1)}
.dmx-a .lk.lk-in:focus, .dmx-a .lk.lk-in:focus-visible{outline-offset:var(--s0)}
/* fix round 3: a second band, exactly the link's own line box (one line high, centred on the text as the line's
   inline box is). In a sentence (.cons, .scc: each its own stacking context) the 45px bands lie at z-index -2,
   these line bands at -1 and the text above both, so where a wrapped line's 45px band reaches into the next line,
   each line keeps its own link: the bands meet at the line boundary instead of overlapping (Privacy took a 2px
   strip under 「Terms of use」 at 390-414 en). */
.dmx-a .lk.lk-in::after{content:""; position:absolute; left:0; right:0; top:calc(50% - .8em); height:1.6em}
.dmx-a .cons .lk.lk-in::before, .dmx-a .scc .lk.lk-in::before{z-index:-2}
.dmx-a .cons .lk.lk-in::after, .dmx-a .scc .lk.lk-in::after{z-index:-1}
/* the plain words of the two sentences take no tap (a tap on them did nothing anyway), so a link's band, though it
   lies under the text, still answers a tap on the words of the line above or below it: the links keep their 45px
   (with the words taking taps, .scc links measured 37px). Only the links and the checkbox label take taps. */
.dmx-a .cons, .dmx-a .scc{pointer-events:none}
.dmx-a .cons a, .dmx-a .scc a, .dmx-a .cons-c{pointer-events:auto}
.dmx-a .back{display:inline-flex; align-items:center; gap:var(--s2); min-height:44px; margin-top:var(--s4); margin-left:calc(var(--s1) * -1); padding:0 var(--s1); font-size:var(--fs-m); color:var(--grey); transition:color .2s var(--ease)}
/* one container recipe (V-A6): --raise, 1px --line2, radius 16. State boxes (error, confirm) keep their colours. */
.dmx-a .box{margin-top:var(--s4); padding:var(--s4) var(--s4); background:var(--raise); border:1px solid var(--line2); border-radius:16px}
.dmx-a .box-c{display:flex; flex-direction:column; align-items:flex-start; gap:var(--s3)}
.dmx-a .box-c .msg{margin-top:0}

.dmx-a .gate{display:block; width:132px; height:40px; margin-bottom:var(--s6); color:var(--ink)}
.dmx-a .pre{margin-top:var(--s7); padding:var(--s4) var(--s4) var(--s2); background:var(--raise); border:1px solid var(--line2); border-radius:16px}
.dmx-a .pre-l{margin-top:var(--s2)}
.dmx-a .pre-l li{position:relative; display:flex; align-items:flex-start; gap:var(--s3); padding:var(--s3) 0; font-size:var(--fs-m); line-height:1.7; color:var(--ink)}
.dmx-a .pre-l li::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line2)}
.dmx-a .pre-l .ic{margin-top:var(--s1)}
.dmx-a .pre-l .pre-n{color:var(--grey)}
/* the checkbox sentence keeps the body line (1.6 = 25.6px), so a wrapped English line sits one line under the
   first, not a paragraph away (fix round 2; line height 3 put it 48px down). The 44px label grows upwards only:
   padding-top = -margin-top = 44px - 1 line, so it never makes its line taller nor reaches into the next one, and
   it is drawn above the links (z-index), so where a wrapped link's 45px band meets it the tap goes to the label
   (fix round 1 item 11). The links' bands sit under all the text of the sentence (negative z-index inside the
   sentence's own stacking context), so where the second line's band meets the first line's link, the text keeps
   its own link, and each link keeps its own line box (the ::after band, fix round 3). The sentence keeps the
   prototype's 44px row as padding around its lines. The label has no side padding: Chinese needs no gap before the
   first link, English gets real spaces from the template. */
.dmx-a .cons{position:relative; z-index:0; display:block; margin-top:var(--s6); padding:calc((var(--tap) - 1.6em) / 2) 0; font-size:var(--fs-m); line-height:1.6; color:var(--ink2)}
.dmx-a .cons-c{position:relative; z-index:1; display:inline-flex; align-items:center; gap:var(--s3); min-height:var(--tap); margin-top:calc(1.6em - var(--tap)); padding-top:calc(var(--tap) - 1.6em); vertical-align:top; cursor:pointer}
/* the social consent sentence: its own stacking context too, so its links' bands lie under its text (fix round 3:
   at 360-390 en the Privacy band covered the bottom of 「Terms of use」) */
.dmx-a .scc{position:relative; z-index:0; display:block; margin-top:var(--s2); font-size:var(--fs-m); line-height:1.6; color:var(--grey)}
.dmx-a .scc + .msg{margin-top:var(--s1); color:var(--grey)}

.dmx-a .to{margin-top:var(--s0); font-family:var(--mono); font-size:var(--fs-m); line-height:1.6; color:var(--ink); word-break:break-all}
.dmx-a .rs{margin-top:var(--s8); padding-top:var(--s6); border-top:1px solid var(--line)}
.dmx-a .rs-row{display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2) var(--s4)}
.dmx-a .rs-w{font-size:var(--fs-s); line-height:1.6; color:var(--dim)}

.dmx-a .ttl{display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--s2) var(--s4)}
.dmx-a .ttl-s{font-size:var(--fs-s); line-height:1.6; color:var(--grey)}
.dmx-a .keybox{margin-top:var(--s6); padding:var(--s4) var(--s4) var(--s4); background:var(--raise); border:1px solid var(--line2); border-radius:16px}
.dmx-a .kv{font-family:var(--mono); font-size:var(--fs-key); line-height:1.7; color:var(--ink); letter-spacing:.02em}
.dmx-a .kv span{display:inline-block; margin-right:.38em}
.dmx-a .kv span:last-child{margin-right:0}
.dmx-a .kb-act{display:flex; margin-top:var(--s4)}
/* the warning under the key: a message row, no box and no side stripe (V-A6) */
.dmx-a .wn{display:flex; align-items:flex-start; gap:var(--s4); margin-top:var(--s5)}
.dmx-a .wn .ic{margin-top:3px}
.dmx-a .wn-t{font-size:var(--fs-m); font-weight:500; line-height:1.5; color:var(--ink)}
.dmx-a .wn-b{margin-top:var(--s1); font-size:var(--fs-m); line-height:1.75; color:var(--ink2)}
.dmx-a .setup{margin-top:var(--s9)}
.dmx-a .setup .lead{margin-top:var(--s2)}

.dmx-a .cfg{margin-top:var(--s4); background:var(--raise); border:1px solid var(--line2); border-radius:16px; padding:var(--s4) var(--s4) var(--s4)}
.dmx-a .cfg-top{display:flex; align-items:center; justify-content:space-between; gap:var(--s3); padding-bottom:var(--s3)}
.dmx-a .code{position:relative; padding-top:var(--s3); font-family:var(--mono); font-size:var(--fs-s); line-height:1.9; counter-reset:cl}
.dmx-a .code::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line2)}
.dmx-a .ln{position:relative; display:block; padding:var(--s1) 0 var(--s1) calc(1.5em + var(--ind, 0) * 1ch); text-indent:-1.5em; line-height:1.7; white-space:pre-wrap; overflow-wrap:break-word; word-wrap:break-word; color:var(--ink); font-family:var(--mono)}
.dmx-a .ln .v{color:var(--grey)}
.dmx-a .ln .kf{color:var(--ink); border-bottom:1px dashed var(--grey)}
.dmx-a .ln .kf span{display:inline}
.dmx-a .ln .phd{color:var(--ink2); white-space:nowrap}
.dmx-a .ln .nw{white-space:nowrap}
/* the settings.json block (2026-11-30): one line per JSON line, indented by its depth (data-i; 1ch a level here,
   2ch on wide screens), no extra space between lines */
.dmx-a .code-j .ln{padding-top:0; padding-bottom:0}
.dmx-a .ln[data-i="1"]{--ind:1} .dmx-a .ln[data-i="2"]{--ind:2} .dmx-a .ln[data-i="3"]{--ind:3}
.dmx-a .ln[data-i="4"]{--ind:4} .dmx-a .ln[data-i="5"]{--ind:5} .dmx-a .ln[data-i="6"]{--ind:6}
.dmx-a .setup-note{margin-top:var(--s3); font-size:var(--fs-s); line-height:1.7; color:var(--ink2)}
.dmx-a .cp{flex:none}
.dmx-a .cfg-k .code{padding-top:var(--s1)}
.dmx-a .cfg-k .code::before{display:none}
/* one tap selects the whole key, code block or code list, also without the script (V-A10) */
.dmx-a .kv, .dmx-a .code, .dmx-a .bkc, .dmx-a .ro-k span{-webkit-user-select:all; user-select:all}

.dmx-a .dash{display:grid; grid-template-columns:minmax(0,1fr); gap:var(--s5); margin-top:var(--s7)}
.dmx-a .pnl{background:var(--raise); border:1px solid var(--line2); border-radius:16px; padding:var(--s2) var(--s4)}
.dmx-a .row{position:relative; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s2) var(--s4); padding:var(--s4) 0}
.dmx-a .row + .row::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line2)}
.dmx-a .row-v{display:flex; align-items:center; gap:var(--s2); font-size:var(--fs-m); line-height:1.5; color:var(--ink); font-variant-numeric:tabular-nums}
.dmx-a .mk{font-family:var(--mono); font-size:var(--fs-m); letter-spacing:.04em}
.dmx-a .row-k{width:100%}
/* a paused account: one more row in the panel, no box of its own (V-A6) */
.dmx-a .row-pz{justify-content:flex-start; align-items:flex-start; flex-direction:column; gap:var(--s1)}
.dmx-a .row-pz .msg{margin-top:0}
.dmx-a .row-pz .lk{margin-left:var(--s5)}
.dmx-a .use{padding:var(--s4) var(--s4) var(--s2)}
.dmx-a .use-top{display:flex; align-items:center; justify-content:space-between; gap:var(--s3)}
.dmx-a .pn-label{margin-top:var(--s4); font-size:var(--fs-s); line-height:1.6; color:var(--grey); letter-spacing:0}
.dmx-a .pn-amt{margin-top:var(--s2); font-size:var(--fs-fig); font-weight:300; line-height:1.25; letter-spacing:.01em; font-variant-numeric:tabular-nums}
.dmx-a .pn-amt [data-assumed]{font-family:var(--sans); font-weight:300}
.dmx-a .pn-note{margin-top:var(--s1); font-size:var(--fs-s); line-height:1.7; color:var(--dim)}
.dmx-a .pn-rows{margin-top:var(--s4)}
.dmx-a .pn-row{display:flex; align-items:center; justify-content:space-between; gap:var(--s4); padding:var(--s3) 0; border-top:1px solid var(--line2); font-size:var(--fs-s); line-height:1.6}
.dmx-a .pn-row dt{color:var(--grey)}
.dmx-a .pn-row dd{font-size:var(--fs-s); color:var(--ink); font-variant-numeric:tabular-nums}
.dmx-a .use .msg{margin-top:var(--s4); margin-bottom:var(--s3)}
.dmx-a .chart{position:relative; padding:var(--s4) 0 var(--s2)}
.dmx-a .chart::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line2)}
.dmx-a .ch-top{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:var(--s0) var(--s3)}
.dmx-a .ch-t{font-size:var(--fs-m); line-height:1.6; color:var(--ink)}
.dmx-a .ch-n{font-size:var(--fs-s); line-height:1.6; color:var(--dim); font-variant-numeric:tabular-nums}
.dmx-a .bars{display:block; width:100%; height:auto; margin-top:var(--s3); color:var(--ink)}
.dmx-a .help{display:flex; flex-wrap:wrap; align-items:center; gap:0 var(--s1); font-size:var(--fs-m); color:var(--grey)}
.dmx-a .help .lk{margin-left:calc(var(--s1) * -1)}

.dmx-a .ss{position:relative; margin-top:var(--s8); padding-top:var(--s8)}
.dmx-a .ss::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line)}
.dmx-a .ss .lead{margin-top:var(--s2)}
.dmx-a .ro{display:flex; align-items:center; gap:var(--s3); min-height:54px; margin-top:var(--s2); padding:0 var(--s4); border:1px dashed var(--line3); border-radius:12px; font-family:var(--mono); font-size:var(--fs-m); color:var(--ink2); word-break:break-all}
.dmx-a .ro .ic{color:var(--dim)}
.dmx-a .ss .act{margin-top:var(--s5)}
.dmx-a .pz-st{display:flex; align-items:center; gap:var(--s2); margin-top:var(--s4); font-size:var(--fs-m); line-height:1.6; color:var(--ink)}
.dmx-a .cf{display:block; margin-top:var(--s5); padding:var(--s4); background:var(--errbg); border:1px solid var(--errline); border-radius:16px}
.dmx-a .cf-t{font-size:var(--fs-l); line-height:1.45; color:var(--ink)}
.dmx-a .cf-l{margin-top:var(--s3); display:grid; gap:var(--s2)}
.dmx-a .cf-l li{display:flex; align-items:flex-start; gap:var(--s3); font-size:var(--fs-m); line-height:1.7; color:var(--ink2)}
.dmx-a .cf-l .ic{margin-top:var(--s1); color:var(--err)}
.dmx-a .btns{display:grid; gap:var(--s3); margin-top:var(--s7)}
.dmx-a .cf .btns{margin-top:var(--s5)}

.dmx-a .rg-l{margin-top:var(--s6); display:grid; gap:var(--s1)}
.dmx-a .rg-l li{display:flex; align-items:flex-start; gap:var(--s4); padding:var(--s3) 0; border-bottom:1px solid var(--line); font-size:var(--fs-m); line-height:1.75; color:var(--ink2)}
.dmx-a .rg-l li:first-child{color:var(--ink)}
.dmx-a .rg-l .ic{margin-top:var(--s1)}

.dmx-a .own{display:flex; align-items:center; gap:var(--s2); margin-top:var(--s4); font-size:var(--fs-m); line-height:1.6; color:var(--grey)}
.dmx-a .asec{margin-top:var(--s9)}
.dmx-a .tbl{margin-top:var(--s4)}
.dmx-a .tr.th{display:none}
.dmx-a .tr{position:relative; display:grid; grid-template-columns:minmax(0,1fr); gap:var(--s0) var(--s4); padding:var(--s4) 0}
.dmx-a .tr::after{content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--line2)}
.dmx-a .th + .tr::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line2)}
.dmx-a .td-e{font-size:var(--fs-m); line-height:1.6; color:var(--ink); word-break:break-all}
.dmx-a .td-u{font-size:var(--fs-m); line-height:1.6; color:var(--ink2)}
.dmx-a .td-d{font-size:var(--fs-s); line-height:1.6; color:var(--dim)}
.dmx-a .td-a{display:flex; flex-wrap:wrap; gap:var(--s2); margin-top:var(--s2)}
.dmx-a .td-top{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s1) var(--s3)}
.dmx-a .bdg{display:inline-flex; align-items:center; gap:var(--s2); font-size:var(--fs-s); line-height:1.6; color:var(--ink)}
.dmx-a .bdg-off{color:var(--dim)}
.dmx-a .bd{width:10px; height:10px; display:block; flex:none}
.dmx-a .td-n{display:flex; justify-content:space-between; gap:var(--s3); font-size:var(--fs-s); line-height:1.7; font-variant-numeric:tabular-nums}
.dmx-a .ml{color:var(--grey)}
.dmx-a .nv{color:var(--ink)}

.dmx-a .pv{margin-top:var(--s2); counter-reset:pv}
.dmx-a .pv-g{margin-top:var(--s7)}
.dmx-a .pv-gt{font-size:var(--fs-s); font-weight:500; line-height:1.6; color:var(--grey); letter-spacing:0}
.dmx-a .pv-l{margin-top:var(--s1)}
.dmx-a .pv-l li a{position:relative; display:grid; grid-template-columns:44px minmax(0,1fr) 16px; align-items:center; gap:var(--s2); min-height:60px; padding:var(--s2) 0; font-size:var(--fs-m); line-height:1.5; color:var(--ink); transition:color .2s var(--ease)}
.dmx-a .pv-l li a::before{counter-increment:pv; content:counter(pv); font-family:var(--mono); font-size:var(--fs-s); color:var(--grey)}
.dmx-a .pv-l li a::after{content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--line)}
.dmx-a .pv-l .ic{color:var(--grey)}
.dmx-a .pv-t{margin-top:var(--s9)}

.dmx-a .ft{border-top:1px solid var(--line); padding:var(--s7) 0 var(--s9)}
.dmx-a .ft-top{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s2) var(--s6)}
.dmx-a .ft-links{display:flex; flex-wrap:wrap; gap:0 var(--s1); margin-left:calc(var(--s3) * -1)}
.dmx-a .ft-links a{display:inline-flex; align-items:center; min-height:44px; padding:0 var(--s3); font-size:var(--fs-s); color:var(--grey); transition:color .2s var(--ease)}
.dmx-a .ft-bot{display:grid; gap:var(--s2); margin-top:var(--s5)}
.dmx-a .ft-bot p{font-size:var(--fs-s); line-height:1.8; color:var(--dim)}

/* round A2: real fields, social buttons, settings lists */
.dmx-a .mid{max-width:720px; margin:0 auto}
.dmx-a .fi{display:flex; align-items:center; flex:1; min-width:0; min-height:54px}
.dmx-a .ph{min-width:0; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.dmx-a .ph-code{font-family:var(--mono); font-size:var(--fs-code-in); letter-spacing:.34em}
.dmx-a .fld .ph-v{color:var(--ink)}
.dmx-a .eye{display:inline-flex; align-items:center; justify-content:center; gap:var(--s2); flex:none; min-height:44px; min-width:44px; margin-right:calc(var(--s2) * -1); padding:0 var(--s2); font-size:var(--fs-s); line-height:1.2; color:var(--grey); letter-spacing:0; transition:color .15s var(--ease)}
.dmx-a .lrow{display:flex; align-items:flex-end; justify-content:space-between; gap:var(--s3)}
.dmx-a .lk-s{min-height:44px; margin:calc(var(--s3) * -1) calc(var(--s2) * -1) calc(var(--s2) * -1) 0; font-size:var(--fs-s); color:var(--ink2)}
.dmx-a .fl .hint{margin-top:var(--s2)}
.dmx-a .fl .msg-err + .hint{margin-top:var(--s2)}

.dmx-a .soc{display:grid; gap:var(--s3); margin-top:var(--s7)}
.dmx-a .btn-sc{position:relative; padding:0 var(--s10); letter-spacing:.02em}
.dmx-a .btn-sc .lg{position:absolute; left:20px; top:0; bottom:0; margin:auto 0}
.dmx-a .lg{display:block; flex:none; width:20px; height:20px}
.dmx-a .dv{display:flex; align-items:center; gap:var(--s4); margin-top:var(--s7); font-size:var(--fs-s); line-height:1.6; color:var(--grey); letter-spacing:0; white-space:nowrap}
.dmx-a .dv::before, .dmx-a .dv::after{content:""; flex:1; height:1px; background:var(--line2)}
.dmx-a .dv + .fl{margin-top:var(--s3)}

.dmx-a .box-err{margin-top:var(--s5); padding:var(--s3) var(--s4); background:var(--errbg); border-color:var(--errline)}
.dmx-a .box-err .msg{margin-top:0}
.dmx-a .box-c .btn{margin-left:var(--s7)}
.dmx-a .alt-c{margin-top:var(--s5); padding-top:0; border-top:0}

.dmx-a .lst{margin-top:var(--s3)}
/* a settings row wraps its button under the text when the label would get less than 5em (English at 320-360:
   「Password」 ran under 「Change password」, fix round 1); Chinese rows fit on one line from 320 */
.dmx-a .li{position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2) var(--s4); min-height:72px; padding:var(--s3) 0}
.dmx-a .li + .li::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line2)}
.dmx-a .li-i{display:flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; border:1px solid var(--line2); border-radius:12px; color:var(--ink2)}
.dmx-a .li-b{display:block; flex:1 1 0; min-width:5em}
.dmx-a .li-t{display:block; font-size:var(--fs-m); line-height:1.5; color:var(--ink)}
.dmx-a .li-s{display:flex; align-items:center; gap:var(--s2); margin-top:var(--s0); font-size:var(--fs-m); line-height:1.6; color:var(--grey)}
.dmx-a .li-s-on{color:var(--ink2)}
.dmx-a .li .btn{flex:none}
.dmx-a .li .btn-s{font-size:var(--fs-m); padding:0 var(--s4)}
.dmx-a .ss .msg{margin-top:var(--s2); color:var(--grey)}
.dmx-a .cf-b{margin-top:var(--s2); font-size:var(--fs-m); line-height:1.75; color:var(--ink2)}

.dmx-a .stp{position:relative; margin-top:var(--s8); padding-top:var(--s7)}
.dmx-a .stp::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line)}
.dmx-a .stp .lead{margin-top:var(--s2)}
.dmx-a .stp .btns{margin-top:var(--s6)}
.dmx-a .ro-k{border-style:solid; border-color:var(--line2); background:var(--raise)}
.dmx-a .bk{margin-top:var(--s8)}
.dmx-a .bkc{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--s2); margin-top:var(--s5); padding:var(--s4); background:var(--raise); border:1px solid var(--line2); border-radius:16px}
.dmx-a .bkc li{padding:var(--s2) var(--s1); font-family:var(--mono); font-size:var(--fs-m); line-height:1.5; color:var(--ink)}
.dmx-a .wn-b0{margin-top:0}

.dmx-a .del-l .ic{color:var(--err)}
.dmx-a .del-l li{color:var(--ink)}
.dmx-a .del-l li:nth-child(3){color:var(--ink2)}
.dmx-a .del-l li:nth-child(3) .ic{color:var(--grey)}
.dmx-a .del-l + .hint{margin-top:var(--s4)}

.dmx-a .own + .own{margin-top:var(--s2)}
.dmx-a .ctl .pnl{max-width:640px; margin-top:var(--s4)}
.dmx-a .ctl .hint{margin-top:var(--s2)}
.dmx-a .ctl-r{flex-wrap:nowrap}
.dmx-a .ctl-l{display:flex; flex-direction:column; gap:var(--s0)}
.dmx-a .ctl-r .btn{flex:none}

/* A2 review: second example states, switches, re-check */
.dmx-a .acts{display:flex; flex-wrap:wrap; gap:var(--s2); margin-top:var(--s3)}
.dmx-a .cf .fl{margin-top:var(--s4)}
.dmx-a .help-m{margin-top:var(--s5)}
.dmx-a .done{margin-top:0}
.dmx-a .cf-a{max-width:640px}
.dmx-a .cf-t{word-break:break-word}

@media (max-width:359px){
  .dmx-a .wordmark{display:none}
  .dmx-a .kv{font-size:var(--fs-m)}
  /* fix round 1: the English nav (Dashboard, Settings, Log out), the social buttons and the regen buttons fit 320 */
  .dmx-a .hd-r{gap:0}
  .dmx-a .tl{padding:0 var(--s1)}
  .dmx-a .btn-sc{padding:0 var(--s8)}
  .dmx-a .btn-sc .lg{left:var(--s3)}
  .dmx-a .btns .btn{padding:0 var(--s5)}
}
@media (max-width:479px){
  /* fix round 1: the logged-in English nav leaves no room for the wordmark on phones (it ran into 「Dashboard」);
     Chinese keeps it. The mark stays, with the brand's aria-label. */
  .dmx-a:lang(en) .hd[data-nav=in] .wordmark{display:none}
}
@media (max-width:374px){
  /* fix round 3: the logged-out English nav (Log in, Sign up) beside the wordmark needs 366px; at 360 Sign up ran
     5.8px past the page column once the brand stopped shrinking (.brand flex:none, fix round 1). Under 375 the
     English logged-out header shows the mark only, as the logged-in one does under 480; Chinese fits from 360. */
  .dmx-a:lang(en) .hd[data-nav=out] .wordmark{display:none}
}
@media (min-width:640px){
  .dmx-a .ft-links{margin-left:0}
  .dmx-a .btns{display:flex; flex-direction:row-reverse; justify-content:flex-start; gap:var(--s3)}
  .dmx-a .kv{font-size:var(--fs-key-l)}
}
@media (min-width:768px){
  .dmx-a{--fs-h1:38px; --fs-h2:21px; --fs-fig:44px}
  .dmx-a .wrap{padding:0 var(--s9)}
  .dmx-a .mn{padding:var(--s11) 0 var(--s13)}
  .dmx-a .cfg{padding:var(--s4) var(--s6) var(--s5)}
  .dmx-a .ln{padding-left:calc(var(--s8) + var(--ind, 0) * 2ch); text-indent:0}
  .dmx-a .ln::before{counter-increment:cl; content:counter(cl); position:absolute; left:0; top:4px; color:var(--lnum)}
  .dmx-a .pnl{padding:var(--s2) var(--s6)}
  .dmx-a .use{padding:var(--s6) var(--s6) var(--s2)}
}
@media (min-width:900px){
  .dmx-a .hd-in{min-height:72px}
  .dmx-a .tr.th{position:relative; display:grid; padding:0 0 var(--s2)}
  .dmx-a .th::after{display:none}
  .dmx-a .tr-m{grid-template-columns:minmax(0,1.5fr) 140px 100px 150px 100px 112px; align-items:center; gap:var(--s4) var(--s5)}
  .dmx-a .tr-x{grid-template-columns:minmax(0,1.5fr) 120px 120px 120px; align-items:center; gap:var(--s4) var(--s5)}
  .dmx-a .tr-c{grid-template-columns:minmax(0,2fr) 140px 140px; align-items:center; gap:var(--s4) var(--s5)}
  .dmx-a .tr-j{grid-template-columns:minmax(0,1fr) 120px 180px 100px minmax(0,1.4fr); align-items:center; gap:var(--s4) var(--s5)}
  .dmx-a .td-m{text-align:left}
  .dmx-a .td-a{margin-top:0; justify-content:flex-end}
  .dmx-a .td-top{display:contents}
  .dmx-a .td-n{display:block}
  .dmx-a .td-n .ml{display:none}
  .dmx-a .th .lbl{font-size:var(--fs-s)}
  .dmx-a .th .num, .dmx-a .td-n{text-align:right}
  .dmx-a .td-n.td-m{text-align:left}
}
@media (min-width:1024px){
  .dmx-a .dash{grid-template-columns:minmax(0,5fr) minmax(0,6fr); grid-template-areas:"acct use" "setup use" "help use"; column-gap:var(--s7); row-gap:var(--s5); align-items:start}
  .dmx-a .g-acct{grid-area:acct}
  .dmx-a .g-use{grid-area:use}
  .dmx-a .g-setup{grid-area:setup}
  .dmx-a .g-help{grid-area:help}
  .dmx-a .g-setup .cfg{margin-top:0}
  .dmx-a .ft{padding:var(--s8) 0 var(--s10)}
}

@media (hover:hover){
  .dmx-a .btn-w:hover{background:var(--act-h)}
  .dmx-a .btn-o:hover{border-color:var(--fline); background:var(--raise2)}
  .dmx-a .btn-x:hover{border-color:var(--err)}
  .dmx-a .btn-off:hover{border-color:var(--line3); background:none}
  .dmx-a .btn:disabled:hover{background:none}
  .dmx-a .btn-w:disabled:hover{background:var(--act)}
  .dmx-a .btn-xw:disabled:hover{background:var(--err)}
  .dmx-a .tl:hover, .dmx-a .ft-links a:hover, .dmx-a .back:hover{color:var(--ink)}
  .dmx-a .lk:hover{text-decoration-color:var(--ink)}
  .dmx-a .pv-l li a:hover .ic{color:var(--ink)}
  .dmx-a .eye:hover{color:var(--ink)}
}

@media (prefers-reduced-motion: reduce){
  .dmx-a *, .dmx-a *::before, .dmx-a *::after{animation:none !important; transition:none !important}
}

/* ---- accounts app (T07): real inputs and forms replace the drawn boxes of the A2 prototypes ---- */
.dmx-a form{margin:0}
.dmx-a input, .dmx-a button{font:inherit}
/* iOS: 16px so Safari does not zoom, the caret and text in the ink, dark controls (color-scheme on :root) */
.dmx-a input{font-size:var(--fs-m); caret-color:var(--ink)}
.dmx-a .fld input, .dmx-a .ro input{flex:1; min-width:0; width:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font-size:var(--fs-m); line-height:1.4; -webkit-appearance:none; appearance:none; outline:none}
.dmx-a .fld input{min-height:54px}
.dmx-a .fld input::placeholder{color:var(--dim); opacity:1}
.dmx-a .fld input[type=password]{letter-spacing:.08em}
.dmx-a .fld input[type=password]::placeholder{letter-spacing:0}
.dmx-a .fld-code input{font-family:var(--mono); font-size:var(--fs-code-in); letter-spacing:.34em}
.dmx-a .fld-code input::placeholder{letter-spacing:.34em}
/* autofill: without this iOS and Chrome paint a pale field under the pale text */
.dmx-a input:-webkit-autofill, .dmx-a input:-webkit-autofill:hover, .dmx-a input:-webkit-autofill:focus{-webkit-text-fill-color:var(--ink); -webkit-box-shadow:0 0 0 1000px var(--raise) inset; box-shadow:0 0 0 1000px var(--raise) inset; caret-color:var(--ink); transition:background-color 9999s linear 0s}
.dmx-a .ro input{min-height:52px; font-family:var(--mono); color:var(--ink2); text-overflow:ellipsis}
.dmx-a .ro input:focus{color:var(--ink)}
.dmx-a .ro:focus-within{outline:2px solid var(--ink); outline-offset:2px}
.dmx-a .errs:empty{display:none}
.dmx-a .errs .msg{margin-top:var(--s2)}
.dmx-a .hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.dmx-a .sr{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}
.dmx-a .cons-c input{position:relative; flex:none; width:22px; height:22px; margin:0; border:1px solid var(--grey); border-radius:6px; background:transparent; -webkit-appearance:none; appearance:none; cursor:pointer}
/* the box's own 44px hit area (it reaches 11px into the side gutter) spans the label's height: from the label's
   top down to the bottom of the box's line (the box sits (25.6 - 22) / 2 = 1.8px above it), never into the next */
.dmx-a .cons-c input::before{content:""; position:absolute; top:calc((1.6 * var(--fs-m) - 22px) / 2 - 22px); right:-11px; bottom:calc((22px - 1.6 * var(--fs-m)) / 2); left:-11px}
.dmx-a .cons-c input:checked{background:var(--ink); border-color:var(--ink)}
.dmx-a .cons-c input:checked::after{content:""; position:absolute; left:6px; top:2px; width:6px; height:11px; border:solid var(--bg); border-width:0 2px 2px 0; transform:rotate(45deg)}
.dmx-a .cons-err .cons-c input{border-color:var(--err)}
.dmx-a .soc form{display:block}
/* in flight (V-A5): the pressed submit button gets the native disabled attribute and aria-busy from app.js only
   while its request runs; the spinner replaces the label after 200 ms and the button keeps its width */
.dmx-a .btn:disabled, .dmx-a .btn[aria-disabled=true]{opacity:.55; cursor:not-allowed}
.dmx-a .btn:disabled:active{transform:none}
.dmx-a .btn-off:disabled, .dmx-a .btn-off[aria-disabled=true]{opacity:1; cursor:default}
/* the header 登出, the language switch and the 返回 buttons are not .btn: same in-flight look (fix round 1) */
.dmx-a .tl:disabled, .dmx-a .back:disabled, .dmx-a .ft-lang button:disabled{opacity:.55; cursor:not-allowed}
.dmx-a .btn.is-busy{position:relative; color:transparent}
.dmx-a .btn.is-busy svg{visibility:hidden}
.dmx-a .btn.is-busy::after{content:""; position:absolute; top:0; right:0; bottom:0; left:0; width:18px; height:18px; margin:auto; border:2px solid var(--sp); border-right-color:transparent; border-radius:50%; animation:dmxa-spin .7s linear infinite}
@keyframes dmxa-spin{to{transform:rotate(360deg)}}
.dmx-a .hd-f{display:inline-flex; margin:0}
.dmx-a .hd-f .tl{padding:0 var(--s2)}
.dmx-a .back-b{margin-top:var(--s4)}
.dmx-a form + .back-b, .dmx-a .back-f{margin-top:var(--s4)}
.dmx-a .back-f .back{margin-top:0}
.dmx-a .qr-img{display:block; width:176px; height:176px; margin-top:var(--s4); padding:var(--s2); border-radius:14px; background:var(--qr-bg)}
.dmx-a .flash{margin-top:var(--s5)}
.dmx-a .ft-lang{display:inline-flex; margin:0}
.dmx-a .ft-lang button{display:inline-flex; align-items:center; min-height:44px; padding:0 var(--s3); font-size:var(--fs-s); color:var(--grey); transition:color .2s var(--ease)}
.dmx-a .acts form, .dmx-a .li form, .dmx-a .btns form, .dmx-a .td-a form{margin:0; display:flex}
.dmx-a .btns form .btn, .dmx-a .btns .btn{width:100%}
.dmx-a .ctl-cap{flex-wrap:wrap}
.dmx-a .cap-f{display:flex; align-items:center; gap:var(--s2)}
.dmx-a .cap-f .fld{margin-top:0; min-height:44px; width:120px; padding:0 var(--s3)}
.dmx-a .cap-f .fld input{min-height:42px}
.dmx-a .kv{margin:0; font-variant-numeric:tabular-nums}
.dmx-a .bkc li{word-break:break-all}
.dmx-a .st-mail{word-break:break-all}
/* S2 fix round 1 (F17): the setup key wraps between its groups of four, never inside one (.ro breaks anywhere) */
.dmx-a .ro-k span{word-break:normal; overflow-wrap:break-word}
/* S2 fix round 1 (F9): the "no backup codes" box inside the 2FA section keeps the error colour (.ss .msg is grey) */
.dmx-a .ss .box-err .msg{margin-top:0; color:var(--err)}

@media (min-width:640px){
  .dmx-a .btns form .btn, .dmx-a .btns .btn{width:auto}
}
@media (hover:hover){
  .dmx-a .ft-lang button:hover{color:var(--ink)}
}
/* a button whose word swaps (顯示/隱藏, 複製/已複製) holds the width of the longer word: both sit in one grid cell
   and the one not showing is hidden (fix round 1: the buttons and the password field jumped by up to 88px) */
.dmx-a .sw{display:inline-grid}
.dmx-a .sw > span{grid-area:1 / 1; text-align:center}
.dmx-a .sw-alt{visibility:hidden}
/* a long single action may wrap instead of running past the screen (tfa-setup in English, fix round 1) */
.dmx-a .btn-wrap{white-space:normal; text-align:center; padding-top:var(--s2); padding-bottom:var(--s2)}
/* the show/hide and copy buttons need the script; without it they would do nothing, so hide them. head.js (in
   <head>, before the first paint; fix round 3) and app.js put the class js on <html>; Safari before 17 has no
   scripting media feature, so that class is the rule it reads. */
html:not(.js) .dmx-a .eye, html:not(.js) .dmx-a .cp{display:none}
@media (scripting:none){
  .dmx-a .eye, .dmx-a .cp{display:none}
}
@media (max-width:359px){
  .dmx-a .hd-f .tl{padding:0 var(--s1)}
}
