/* ══ VSSGEO · account-parity.css — account sheet (#set), phone ↔ desktop parity (design team, designer 2, 2026-09-28) ═══
   Loads right after door/r2/account2.css. Each rule fixes one measured finding (scratchpad/ux/team/front/REPORT.md,
   A-ids). Scope: #set only, plus one line for the account overlay frame (html.j-embed). Selectors carry `html:root … #set#set`
   so they win over account2.css regardless of order. 8-pt grid: 4 / 8 / 16 / 24 / 32. Phone targets: 44 px.       */

/* A1 · phone tabs: the tab row scrolled sideways under the ×, so "Password & security" (x 324–490 on a 390 screen)
   was hidden even when it was the open tab. The tabs now wrap to a second row and clear the ×.                   */
@media (max-width:820px){
  html:root body.door #set#set .snav{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none;gap:8px 4px;padding:8px 60px 8px 8px}
  html:root body.door #set#set .sx{top:8px;right:8px}
}

/* A2 · thumb targets (were 40 / 32 px): tabs, ×, Save / Change / Buy chips, calendar arrows, Activity "Open".    */
@media (pointer:coarse){
  html:root body.door #set#set .snav button{min-height:44px}
  html:root body.door #set#set .sx{width:44px;height:44px}
  html:root body.door #set#set :is(.chip,.go,.gopen,.plc button,.mcpline button){min-height:44px}
  html:root body.door #set#set .gopen{display:inline-flex;align-items:center}
  html:root body.door #set#set .a2-cal-nav{width:44px;height:44px}
}

/* A3 · desktop: the × stayed put while the page scrolled, so it sat on top of plan cards, the 10,000 pack and the
   "What things use" numbers. It now floats on a panel-coloured disc above what scrolls under it.                 */
html:root body.door #set#set .sx{z-index:5;background:var(--vg-panel);box-shadow:0 0 0 4px color-mix(in srgb,var(--vg-panel) 70%,transparent)}

/* A4 · phone type floor: plan labels, form labels, tile labels, calendar and table heads were 10–11 px.          */
@media (max-width:820px){
  html:root body.door #set#set :is(.sform label,.stiles span,.sbody h4.h4,.a2-sec h4,.a2-cal-wd,.a2-cal-n,.a2-k,.a2-facts dt,.plc>b,.ctag,.ctable td){font-size:12px}
}

/* A5 · calendar day numbers: muted 10-px digits on tinted days measured 2.75:1. Ink on the light tints, the accent's
   own ink on the strong ones; 12 px, semibold. (Light mode's mid-red day takes ink too: white on it was 3.3:1.)   */
html:root body.door #set#set .a2-cal-n{font-size:12px;font-weight:600;color:var(--vg-ink)}
html:root body.door #set#set .a2-cal-d[data-l="4"] .a2-cal-n{color:var(--vg-accent-ink)}
html:root:not([data-theme="light"]) body.door #set#set .a2-cal-d[data-l="3"] .a2-cal-n{color:var(--vg-accent-ink)}
html:root[data-theme="light"] body.door #set#set .a2-cal-d[data-l="3"] .a2-cal-n{color:var(--vg-ink)}
html:root body.door #set#set .a2-cal-d.future .a2-cal-n{color:var(--vg-muted);font-weight:500}

/* A6 · line length: notes ran 87–89 characters a line on desktop. Readable measure: 66ch.                        */
html:root body.door #set#set :is(p.note,p.lede,.lede){max-width:66ch}

/* A7 · spacing onto the 8-pt grid: nav gaps were 20 / 28 / 4, the name had a 3-px gap, Activity's last paragraph 15. */
html:root body.door #set#set .snav{gap:8px}
html:root body.door #set#set .snav h2,html:root body.door #set#set #seth{margin-bottom:8px}                /* + 8 gap = 16 */
html:root body.door #set#set .a2-who{margin-bottom:16px}                                          /* + 8 gap = 24 */
html:root body.door #set#set .a2-who-t b{margin-bottom:0}
html:root body.door #set#set .sbody>p:not([class]){margin-bottom:16px}
@media (max-width:820px){html:root body.door #set#set .snav{gap:8px 4px}}

/* A8 · "Credits left" tile: the 40-px ring pushed its label to two lines on desktop (so 21,400 sat 17 px lower than
   its neighbours) and ran over "LEFT" on the phone. A 32-px ring tucked in the corner (desktop) or beside the number (phone); the label stays on one line.      */
html:root body.door #set#set .a2-ringw{top:12px;right:12px;width:40px;height:40px;padding:0}
html:root body.door #set#set .a2-ringw svg{width:40px;height:40px}
html:root body.door #set#set .a2-ringw .a2-ring-p{font-size:9.5px;font-weight:600;letter-spacing:-.04em;line-height:1}
html:root body.door #set#set .stiles>div.a2-has-ring>span:not(.a2-ringw){padding-right:44px;white-space:normal}
@media (max-width:820px){                     /* phone: roomier label + clean centered 40-px ring */
  html:root body.door #set#set .stiles>div.a2-has-ring>span:not(.a2-ringw){padding-right:46px}
  html:root body.door #set#set .a2-ringw{top:12px;right:12px;width:40px;height:40px}
  html:root body.door #set#set .a2-ringw .a2-ring-p{font-size:9.5px}
}

/* A9 · "Your plan" facts: 2 × 2 on the phone but 3 + 1 on desktop (Rate orphaned on its own row). 2 × 2 on both.   */
html:root body.door #set#set .a2-facts{display:grid;grid-template-columns:repeat(2,max-content);gap:16px 32px}

/* A10 · light-mode contrast (desktop and phone): tab labels 3.67:1, section heads 4.18:1, the plan chip 3.27:1 and
   your plan's column total 3.28:1. Dark mode already passed; it is unchanged.                                    */
html:root[data-theme="light"] body.door #set#set{--vg-faint:var(--vg-muted)}
html:root[data-theme="light"] body.door #set#set :is(.snav button:not(.on),#seth){color:color-mix(in srgb,var(--vg-ink) 78%,var(--vg-muted))}
html:root[data-theme="light"] body.door #set#set :is(.a2-chip,.ctable tr.proj td.me){color:color-mix(in srgb,var(--vg-accent) 78%,#000)}

/* A11 · the account overlay on the front door drew the map's 1-px red frame line around the whole desktop screen
   (the sheet page's body border; journey.css already hides it for the sign-in frame).                           */
html.j-embed body.door{border-color:transparent!important}

/* A12 · desktop: switching tabs moved the right edge 10 px (Profile and Security fit without a scrollbar, the other
   tabs scroll), so cards jumped 473–1207 → 473–1197. The scrollbar's lane is now always reserved.                */
html:root body.door #set#set #setbody{scrollbar-gutter:stable}
