/*
 * The account site - the AX redesign (UX Designer, 4 Oct 2026, approved by Robin:
 * "redesign approved").
 *
 * TOKENS AND CLASS NAMES ARE THE FRAMES', from the style block in
 * gen-account-redesign.mjs, so the Designer measures this against the frame
 * rather than a translation of it. What is added is what a drawing does not need
 * and a page does: real inputs and their focus, the ⓘ that opens, forms that
 * wrap their sentences (AC-12), and the header's sign-out as a form.
 *
 * Dark only. Lime only in the wordmark's square.
 */
:root {
    --shell:#111110; --bg:#161614; --surface:#1E1E1C; --input:#1A1A18; --fill:#222220; --raise:#232321;
    --line:#2A2A27; --border:#33332F; --line-hi:#3A3A36; --line-sel:#55554F;
    --ink:#F2F2ED; --body:#E4E4DF; --sec:#C9C9C1; --muted:#A8A8A0; --faint:#8A8A82; --place:#6E6E66;
    --danger:#C06552; --danger-fg:#D07866;
    --spot:#B4E33D; --spot-soft:#DDF08F; --spot-ink:#3D5205; --spot-glow:rgba(180,227,61,.25);
}

* { box-sizing: border-box; }

/* `hidden` is a user-agent rule any author `display` beats; keep it working. */
[hidden] { display: none !important; }

body { margin: 0; font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wm { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.03em; color: var(--ink); display: inline-flex; align-items: baseline; text-decoration: none; }
.wm .dot { display: inline-block; width: .24em; height: .24em; background: var(--spot); margin-left: .08em; }

/* Links. AC-12: an underline you can see (--line on --surface was nearly
   invisible), a hover, and a keyboard focus ring - a button dressed as a link
   still needs one. Inside a sentence it takes the sentence's own size and ink. */
.link { color: var(--sec); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration-color: var(--sec); }
.link:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; border-radius: 3px; }
p .link { font-size: inherit; color: var(--ink); line-height: inherit; }
/* A form that carries a sentence wraps the paragraph, never sits inside one: a
   <form> inside a <p> makes the browser close the paragraph early. */
.inline-form { margin: 0; }

/* Buttons: primaries are ink, never a colour fill. */
.btn { height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px 'Instrument Sans', sans-serif; padding: 0 16px; border: 1px solid var(--border); color: var(--ink); background: var(--surface); white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--line-sel); }
.btn:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.btn.pri { background: var(--ink); color: #161614; border-color: var(--ink); }
.btn.sm { height: 30px; font-size: 12.5px; padding: 0 12px; font-weight: 500; }
.btn.danger { color: var(--danger-fg); border-color: var(--border); }
.btn.danger.strong { border-color: var(--danger); }
/* After .btn:hover, so the danger outline answers a hover too (UX Designer, live review). */
.btn.danger:hover { border-color: var(--danger); }
.btn.full { width: 100%; height: 42px; font-size: 13.5px; }

/* Fields: the frames' drawn field, as a real input. */
.in { display: block; width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 11px; background: var(--input); padding: 0 14px; font: 400 13.5px 'Instrument Sans', system-ui, sans-serif; color: var(--ink); }
.in.mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.in::placeholder { color: var(--place); }
.in:focus-visible { outline: none; border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-glow); }
.in.bad { border-color: var(--danger); }
.err { margin: 7px 0 0; font-size: 12.5px; color: var(--danger-fg); }

/* The ⓘ, closed by default. Its sentence is prose: it must not inherit the
   label it opens from. */
.ii { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-sel); font: italic 9px Georgia, serif; color: var(--faint); margin-left: 6px; vertical-align: 1px; text-transform: none; letter-spacing: 0; cursor: pointer; }
details.info { display: inline; }
details.info > summary { list-style: none; display: inline; }
details.info > summary::-webkit-details-marker { display: none; }
details.info > p { margin: 8px 0 0; font-size: 12.5px; color: var(--sec); line-height: 1.5; text-transform: none; letter-spacing: normal; font-weight: 400; }

/* ── The account page ── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sec); margin: 0; }
.page { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.ph .k { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ph h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; }
section { margin-top: 40px; }
section.first { margin-top: 0; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sh h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sh p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row form { margin: 0; flex: none; }
.row .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--fill); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.row .ic svg { width: 17px; height: 17px; color: var(--muted); }
.row .tx { flex: 1; min-width: 0; }
.row .n { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.row .m { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.row .say { margin: 0; color: var(--body); font-size: 13px; }
.tag { font-size: 10.5px; font-weight: 600; color: var(--sec); background: var(--fill); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; background: #1B1B19; }
.meter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sec); white-space: nowrap; }
.meter b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--ink); }
.meter .bar { display: flex; gap: 3px; }
.meter .bar i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-hi); }
.meter .bar i.on { background: var(--sec); }
.notice { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--body); }

/* Plan */
.plan { padding: 22px 22px 20px; }
.plan .nm { font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.plan .s { font-size: 14px; color: var(--body); margin-top: 6px; line-height: 1.55; }
.plan .st { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Add a computer: visible in every state (Addendum 1). */
.add { padding: 16px 18px 18px; border-top: 1px solid var(--line); background: #1B1B19; }
.add .t { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.add .t .plus { width: 20px; height: 20px; border-radius: 6px; border: 1px dashed var(--line-sel); display: grid; place-items: center; color: var(--sec); font-size: 13px; line-height: 1; }
.add .then { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.add ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.add li { font-size: 12.5px; color: var(--sec); line-height: 1.5; display: flex; gap: 9px; }
.add li > span { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center; font: 500 10px 'IBM Plex Mono', monospace; color: var(--muted); margin-top: 1px; }
.add li .link { color: var(--ink); }
.add.lead { border-top: 0; background: transparent; padding-top: 12px; }
.empty { padding: 22px 22px 4px; }
.empty .n { font-size: 14px; font-weight: 600; }

/* The key, shown once: the page's only heavy edge. */
.keyshow { background: var(--surface); border: 1px solid var(--line-sel); border-radius: 14px; padding: 22px; }
.keyshow h2 { margin: 0; font-size: 17px; font-weight: 600; }
.keyfield { margin-top: 14px; display: flex; gap: 10px; align-items: center; background: var(--input); border: 1px solid var(--border); border-radius: 11px; padding: 8px 8px 8px 16px; }
.keyfield code { flex: 1; font: 500 15px 'IBM Plex Mono', monospace; letter-spacing: .02em; color: var(--ink); word-break: break-all; }
.keyfield .btn { height: 34px; }
.keyshow p { margin: 12px 0 0; font-size: 13.5px; color: var(--body); line-height: 1.55; }
.keyshow p.quiet { color: var(--muted); font-size: 12.5px; }
.keyshow .done { margin-top: 16px; }

/* People */
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); border: 1px solid var(--line); display: grid; place-items: center; font: 600 11px 'Instrument Sans', sans-serif; color: var(--sec); flex: none; }
.av.plus { border-style: dashed; width: 30px; height: 30px; }
.inv { display: flex; gap: 10px; align-items: center; margin: 0; }
.inv .in { height: 34px; flex: 1; border-radius: 9px; padding: 0 12px; font-size: 13px; }

.legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 16px; }
.legal .link, .legal2 .link { color: var(--faint); }

/* ── The front door: one centred column ── */
.door { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 64px 24px 48px; position: relative; overflow: hidden; }
.door::before { content: ''; position: absolute; left: 50%; top: -260px; width: 900px; height: 560px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(242,242,237,.05), transparent 70%); pointer-events: none; }
.door .col { width: 100%; max-width: 380px; position: relative; }
.door .col > .wm { display: flex; justify-content: center; margin-bottom: 44px; }
.door h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.015em; text-align: center; overflow-wrap: anywhere; text-wrap: balance; }
.door .lead { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--body); text-align: center; overflow-wrap: anywhere; text-wrap: pretty; }
.door .sm { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.door .sm.left { text-align: left; }
.door .privacy { margin-top: 18px; text-align: left; }
.door .fld { margin-top: 26px; }
.door .fld.next { margin-top: 16px; }
.door label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.lab { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.door .act { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.door .act.alone { margin-top: 26px; }
.door .or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11.5px; margin: 26px 0 0; }
.door .or::before, .door .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.door .links { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
.door .glyph { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; margin: 0 auto 18px; }
.door .glyph.ok { border-color: var(--line-sel); }
.door .glyph svg { width: 20px; height: 20px; color: var(--sec); }
.door .mini { margin-top: 22px; }
.door .two { display: flex; gap: 10px; margin-top: 22px; }
.door .two > form { flex: 1; display: flex; margin: 0; }
.door .two .btn { flex: 1; height: 42px; }
.strip { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 auto 28px; max-width: 420px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--body); text-wrap: pretty; }
.strip i { width: 18px; height: 18px; border-radius: 5px; background: #1C1C1A; border: 1px solid var(--line-hi); flex: none; display: grid; place-items: center; }
.strip i b { width: 6px; height: 6px; border-radius: 1px; background: var(--faint); }
.code { font: 500 13px 'IBM Plex Mono', monospace; color: var(--faint); text-align: center; margin-bottom: 14px; }
.door .legal2 { position: relative; margin-top: auto; padding-top: 40px; font-size: 11.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; text-align: center; }

@media (max-width: 640px) {
    .top { padding: 16px 18px; }
    .who .em { display: none; }
    .page { padding: 28px 16px 64px; }
    .ph { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
    .ph h1 { font-size: 22px; }
    .sh { flex-direction: column; align-items: flex-start; }
    .add ol { grid-template-columns: 1fr; }
    .row { padding: 14px; gap: 12px; }
    .row .btn.sm { padding: 0 10px; }
    .inv { flex-direction: column; align-items: stretch; }
    /* flex: 1 is a zero basis; in a column that collapsed the field to a strip. */
    .inv .in { flex: none; }
    .inv .av.plus { display: none; }
    .door { padding: 44px 20px 32px; }
}

/* ── Roles (RL-1, RL-2; 12 Oct 2026). The frames' own classes. ── */
.acts { display: flex; gap: 8px; flex: none; align-items: center; }
.rolewrap { position: relative; }
.rolewrap > summary { list-style: none; }
.rolewrap > summary::-webkit-details-marker { display: none; }
.rolebtn { gap: 6px; padding: 0 10px 0 12px; cursor: pointer; }
.rolebtn svg { width: 12px; height: 12px; color: var(--muted); }
.rolewrap[open] > .rolebtn { border-color: var(--line-sel); }
.rolebtn:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.rolemenu { position: absolute; right: 0; top: 36px; width: 320px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.55); z-index: 5; overflow: hidden; display: flex; flex-direction: column; }
.roles { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; width: 100%; cursor: pointer; margin: 0; }
.opt:first-child { border-top: 0; }
.opt.on, .opt:has(.rad:checked) { background: var(--raise); }
.opt:hover { background: var(--raise); }
.opt:focus-visible { outline: 2px solid var(--spot); outline-offset: -2px; }
.rad { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-sel); flex: none; display: grid; place-items: center; background: transparent; }
.opt.on .rad, .rad:checked { border-color: var(--ink); }
.opt.on .rad::after, .rad:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.rad:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.opt .on-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.opt .ln { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 2px; text-wrap: balance; }
.rolef { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.rolef .lbl { font-size: 12px; font-weight: 600; color: var(--sec); margin: 0 0 8px; padding: 0; }
.invfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.invfoot .hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.panel:has(.rolewrap) { overflow: visible; }
/* With the role menu free to overflow, the panel no longer clips its last row:
   that row carries the panel's inner corners itself (the UXD's AX-11 review). */
.panel:has(.rolewrap) > :last-child { border-bottom-left-radius: 13px; border-bottom-right-radius: 13px; }

@media (max-width: 640px) {
    .row.wrap { flex-wrap: wrap; }
    .row.wrap .acts { width: 100%; padding-left: 46px; }
    .invfoot { flex-direction: column; align-items: stretch; }
    .invfoot .btn { width: 100%; }
    .rolemenu { right: auto; left: 0; width: min(320px, calc(100vw - 32px - 46px - 28px)); }
    /* RL-1b: the address keeps its row, with the + beside it. */
    .add .inv { flex-direction: row; align-items: center; }
    .add .inv .in { flex: 1; min-width: 0; }
    .add .inv .av.plus { display: grid; }
}

/* ── Team keys (VK-1 to VK-5, 12 Oct 2026). The frames' own classes. ── */
.contents { display: contents; }
.door .lead.b { font-weight: 600; color: var(--ink); }
.door .lead + .sm { margin-top: 4px; }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.door .ticks label { margin: 0; font-size: 13.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--body); text-wrap: pretty; cursor: pointer; }
.ticks .link { color: var(--ink); }
/* A real checkbox, drawn as the frame's box: ink fill and a dark tick when on. */
.chk { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-sel); background: var(--input); flex: none; display: grid; place-items: center; cursor: pointer; }
.chk::after { content: ''; width: 12px; height: 12px; display: none; background: no-repeat center/12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23161614' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E"); }
.chk:checked { background: var(--ink); border-color: var(--ink); }
.chk:checked::after { display: block; }
.chk:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.btn.off, .btn:disabled { background: var(--fill); color: var(--place); border-color: var(--border); cursor: default; }

.ph .lead { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.pv { width: 34px; height: 34px; border-radius: 9px; background: var(--fill); border: 1px solid var(--line); display: grid; place-items: center; flex: none; font: 600 13px 'Instrument Sans', sans-serif; color: var(--sec); }
.ends { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.acts { display: flex; gap: 8px; flex: none; }
.row.top-a { align-items: flex-start; }
.keyrow { display: flex; gap: 10px; align-items: center; margin: 10px 0 0; }
.keyrow .inp { height: 34px; flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--input); padding: 0 12px; font: 400 12.5px 'IBM Plex Mono', monospace; color: var(--ink); }
.keyrow .inp::placeholder { color: var(--place); }
.keyrow .inp:focus-visible { outline: none; border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-glow); }

/* A paste that can't be a key (VK-7), and a key the provider refused (VK-8). */
.keyrow .inp.bad { border-color: var(--danger); }
.keyerr { margin: 7px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--danger-fg); text-wrap: pretty; }
.tag.ref { color: var(--danger-fg); border-color: rgba(192,101,82,.45); background: rgba(192,101,82,.10); margin-left: 8px; vertical-align: 1px; }

/* Recent use, and its ⓘ as an anchored popover (VK-2f). */
.iih { position: relative; }
.iih .ii { padding: 0; background: none; }
.ii.open { border-color: var(--sec); color: var(--sec); }
.ii:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.sh .pop { position: absolute; left: 76px; top: 26px; width: max-content; margin: 0; max-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.55); padding: 10px 12px; font: 400 12.5px/1.6 'Instrument Sans', system-ui, sans-serif; color: var(--sec); z-index: 5; text-wrap: pretty; }
.sh > div { position: relative; }
.sh .pop.pop-people { left: 66px; }
.use { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .9fr; }
.use [role=cell], .use .uh { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--body); min-width: 0; overflow-wrap: anywhere; }
.use .uh { border-top: 0; padding-bottom: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.use .w { font-weight: 600; color: var(--ink); }
.use .t { color: var(--muted); }
.use2 { display: none; }

/* The Terms: the Team section beside its plain-words summary (VK-5). */
.page:has(.tgrid) { max-width: 1080px; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.tsec h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.terms-text { font-size: 14px; line-height: 1.6; color: var(--body); }
.terms-text p { margin: 0 0 12px; }
.terms-text h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.terms-text .ver { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.terms-text h4 { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.terms-text ul { margin: 0 0 12px; padding-left: 18px; }
.terms-text li { margin: 0 0 6px; }
.sum { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 20px 18px; }
.sum h3 { margin: 0; font-size: 14px; font-weight: 600; }
.sum ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sum li { font-size: 13px; line-height: 1.5; color: var(--body); padding-left: 14px; position: relative; text-wrap: pretty; }
.sum li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.sum .last { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

@media (max-width: 640px) {
    .use1 { display: none; }
    .use2 { display: block; }
    .u2r { padding: 12px 14px; border-top: 1px solid var(--line); }
    .u2r:first-child { border-top: 0; }
    .u2r .w { font-size: 13px; font-weight: 600; }
    .u2r .m { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
    .row.wrap { flex-wrap: wrap; }
    .row.wrap .acts { width: 100%; padding-left: 46px; }
    .keyrow { flex-direction: column; align-items: stretch; }
    .keyrow .inp { flex: none; }
    .tgrid { grid-template-columns: 1fr; gap: 24px; }
    .tgrid .sum { order: -1; }
}

/* ── Change seats (AX-11, 17 Oct 2026). The frames' own classes. ── */
.shr { display: flex; align-items: center; gap: 12px; }
.seats { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: #1B1B19; flex-wrap: wrap; scroll-margin-top: 24px; }
.seats .lab { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; text-transform: none; letter-spacing: 0; margin: 0; }
.seats .iiw { position: relative; display: inline-flex; }
.seats .ii { padding: 0; background: none; }
.iipop { position: absolute; left: -10px; top: 22px; width: max-content; max-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.55); padding: 10px 12px; font: 400 12px/1.6 'Instrument Sans', system-ui, sans-serif; color: var(--muted); text-align: left; z-index: 5; white-space: normal; text-wrap: pretty; }
.sstep { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; height: 32px; background: var(--input); }
.sstep .sb { width: 32px; height: 30px; display: grid; place-items: center; color: var(--sec); font-weight: 500; font-size: 15px; text-decoration: none; }
.sstep a.sb:hover { color: var(--ink); background: var(--fill); }
.sstep a.sb:focus-visible { outline: 2px solid var(--spot); outline-offset: -2px; }
.sstep .sb.off { color: var(--place); opacity: .45; }
.sstep output { min-width: 40px; text-align: center; font: 500 13px 'IBM Plex Mono', monospace; color: var(--ink); border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 30px; }
.sstep output.chg { background: var(--fill); }
.seats .was { font-size: 12.5px; color: var(--muted); }
.seats .sp { flex: 1; }
.seats .go { display: inline-flex; align-items: center; gap: 8px; }
.seats .vat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.seats .err { flex-basis: 100%; margin: 0; text-wrap: pretty; }
.pill { font: 500 11.5px 'IBM Plex Mono', monospace; border-radius: 99px; padding: 2px 8px; background: #2A2A27; color: var(--body); white-space: nowrap; }
.pill.est { background: rgba(216,155,90,.14); color: #D89A5C; }
.btn.pri .pill.est { background: rgba(22,22,20,.10); color: #A85F16; }
.pnotice { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--body); background: #1B1B19; }
.pnotice i { width: 6px; height: 6px; border-radius: 50%; background: #7FB08F; flex: none; }

@media (max-width: 640px) {
    .seats .sp { flex-basis: 100%; height: 0; }
    .seats .go { flex: 1; }
    .seats .go .btn.pri { flex: 1; }
}

/* ── Account V2 (WH-242, 24 Oct 2026): the next step, and the front door. The frames' own classes. ── */
.nx { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px 26px; margin-bottom: 8px; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.rail .st { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--faint); min-width: 0; }
.rail .st span { white-space: nowrap; }
.rail .st i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center; font: 500 10.5px 'IBM Plex Mono', monospace; font-style: normal; color: var(--faint); }
.rail .st i svg { width: 12px; height: 12px; }
.rail .st.done { color: var(--sec); }
.rail .st.done i { background: var(--fill); border-color: var(--line-sel); color: var(--ink); }
.rail .st.cur { color: var(--ink); font-weight: 600; }
.rail .st.cur i { border: 1.5px solid var(--ink); color: var(--ink); }
.rail .st .ln { flex: 1; height: 1px; background: var(--line); min-width: 8px; }
.nx h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.nx .say { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--body); max-width: 520px; text-wrap: pretty; }
.nx .say.sent { margin-top: 18px; color: var(--ink); }
.nx form .link { margin-top: 10px; font-size: 13px; }
.dl { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.btn.big { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 11px; }
.btn.big svg { width: 16px; height: 16px; }
.facts { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.facts .sep, .after .sep, .door .alt .sep { color: var(--line-sel); }
.inst { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.inst li { display: flex; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--body); }
.inst li:first-child { border-top: 0; }
.inst li .nb { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center; font: 500 11px 'IBM Plex Mono', monospace; color: var(--sec); margin-top: -1px; }
.inst li b { color: var(--ink); font-weight: 500; }
.inst li .m { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.file { font: 500 12.5px 'IBM Plex Mono', monospace; color: var(--ink); overflow-wrap: anywhere; }
.after { display: flex; gap: 6px 10px; margin: 16px 0 0; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.dl .after { margin: 0; }
.okline { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 8px; }
.okline .gl { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); border: 1px solid var(--line-sel); display: grid; place-items: center; flex: none; }
.okline .gl svg { width: 16px; height: 16px; color: var(--ink); }
.okline .tx { flex: 1; min-width: 0; }
.okline .n { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.okline .m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.okline > .link { font-size: 13px; }
.stepk { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.nx-phone { display: none; }
.sh .pop.pop-computers { left: 96px; }
.door .hint { text-wrap: balance; margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.door .addr { color: var(--ink); font-weight: 600; }
.door .mail { display: flex; gap: 10px; margin-top: 22px; }
.door .mail .btn { flex: 1; height: 40px; }
.door .alt { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.door .alt .wait { color: var(--faint); }
.keyway { margin-top: 24px; text-align: center; font-size: 12.5px; }
.keyway > summary { list-style: none; display: inline; cursor: pointer; }
.keyway > summary::-webkit-details-marker { display: none; }
.keyway[open] > summary { display: none; }
.keyway form { text-align: left; }
.keyway .fld.next { margin-top: 0; }

@media (max-width: 640px) {
    /* The Mac card gives way to the phone's (AV-7). */
    .nx-mac { display: none; }
    .nx-phone { display: block; }
    .nx { padding: 20px 18px 22px; }
    .nx h2 { font-size: 19px; }
    .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl { gap: 14px; }
    .btn.big { width: 100%; }
    .inst li { padding: 12px 14px; }
    .okline { padding: 14px; flex-wrap: wrap; }
    /* AV-6 at 390 (UXD review): the link on its own line, under the text, so it never crushes it. */
    .okline > .link { flex-basis: 100%; padding-left: 48px; min-height: 0; }
    /* Tap targets (Account V2 item 11): small buttons 40px, the header, footer and door links a 44px area. */
    .btn.sm { height: 40px; padding: 0 14px; }
    .who .link, .legal .link, .legal2 .link, .door .link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The app's Manage team and Manage machines land here (Account V2, Addendum 1):
   the heading clears the top, and the jump glides only for those who allow motion. */
#people, #machines { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
/* The card leads the page, so the first section keeps its usual gap below it;
   the empty Computers line stands alone, as AV-4 draws it. */
.nx ~ section.first, .okline ~ section.first { margin-top: 40px; }
.empty.only { padding-bottom: 20px; }
.empty.only .n { font-weight: 500; color: var(--body); }

/* The front door's footer at phone width (UXD review): the links centred on one
   line, the made-by line centred under them, whether there is one link or two. */
.legal2 .lk { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) {
    .door .legal2 { flex-direction: column; align-items: center; gap: 0; }
}

/* WH-270, deleting an account (frames of 2 Nov). The entry sits after the last
   section, 40px above the footer's own rule; the confirm page's facts are one
   panel with a hairline between lines; the owner's warning is the danger
   outline with a faint tint. The danger tint is --danger at 8%. */
.del-entry { position: relative; display: flex; align-items: center; margin-top: 40px; }
.del-entry .ii { padding: 0; background: none; margin-left: 10px; }
.del-entry .pop { position: absolute; left: 110px; top: 34px; width: max-content; margin: 0; max-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.55); padding: 10px 12px; font: 400 12.5px/1.6 'Instrument Sans', system-ui, sans-serif; color: var(--sec); z-index: 5; text-wrap: pretty; }
.door .cf-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--danger); border-radius: 12px; background: rgba(192,101,82,.08); }
.door .cf-warn svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--danger-fg); }
.door .cf-warn p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.door .cf-facts { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.door .cf-warn + .cf-facts { margin-top: 12px; }
.door h1 + .cf-facts { margin-top: 22px; }
.door .cf-facts li { padding: 12px 14px; font-size: 13.5px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.door .cf-facts li + li { border-top: 1px solid var(--line); }
.door .cf-final { margin: 18px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.door .cf-final + .act { margin-top: 18px; }
.door .act .cf-go { display: flex; margin: 0; }
@media (max-width: 560px) {
    .del-entry { flex-wrap: wrap; }
    .del-entry .pop { position: static; flex-basis: 100%; margin-top: 10px; max-width: none; }
}

/* WH-277, the owner's "no shared key yet" prompt (frames of 2 Nov): the
   next-step card's surface, border and 16px radius, a key tile, a 17px head,
   a 13.5px line and the page's primary button. Below 640px it stacks and the
   button runs full width. The invite form's line is 12.5px in --sec. */
.tkp { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin-bottom: 8px; }
.tkp .tile { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--fill); display: grid; place-items: center; color: var(--sec); }
.tkp .tile svg { width: 18px; height: 18px; }
.tkp .what { flex: 1; min-width: 0; }
.tkp h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tkp p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.tkp .btn { flex: none; }
.tkp ~ section.first { margin-top: 40px; }
.add .tk-line { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: var(--sec); text-wrap: pretty; }
@media (max-width: 640px) {
    .tkp { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px 22px; }
    .tkp .btn { width: 100%; height: 42px; }
}
