/* settings view styles — owner: account builder (SETTINGS + account). Every rule is scoped under #view-settings, or
   .sheet.sv-sheet for this module's own sheets. Shared controls (.b-row, .b-go, .b-btn, .b-field, …) live in shell.css.
   Shapes: 8 px controls, 6 px chips, 12 px panels. Lime only for the go path; orange only for real warnings. */
#view-settings .sv { display: flex; flex-direction: column; gap: 22px; }
#view-settings .sv-g { display: flex; flex-direction: column; gap: 8px; }
#view-settings .sv-g[hidden], #view-settings .sv-r[hidden] { display: none; }
#view-settings .sv-g > .b-label { margin: 0 0 2px; }

/* rows: key (+ one sub line) on the left, value + chevron / switch on the right */
#view-settings .sv-r, .sheet.sv-sheet .sv-r { min-height: 56px; }
#view-settings .sv-kk, .sheet.sv-sheet .sv-kk { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
#view-settings .sv-sub, .sheet.sv-sheet .sv-sub { font-size: 12px; line-height: 1.35; letter-spacing: .02em; color: var(--label); overflow-wrap: anywhere; }
#view-settings .sv-sub[hidden], .sheet.sv-sheet .sv-sub[hidden] { display: none; }
#view-settings .sv-sub.sv-email, .sheet.sv-sheet .sv-sub.sv-email { font-size: 14px; color: var(--text); letter-spacing: 0; }
#view-settings .sv-v, .sheet.sv-sheet .sv-v { max-width: 52%; text-align: right; overflow-wrap: anywhere; }
#view-settings .sv-v:empty { display: none; }
#view-settings .sv-v.sv-none { color: var(--dim); }
#view-settings .sv-chev { flex: none; display: flex; color: var(--dim); margin-right: -4px; }
#view-settings .sv-static { cursor: default; }
#view-settings .sv-static:active { background: rgba(255, 255, 255, .02); }
#view-settings a.sv-r .b-k { text-decoration: none; }

/* switch (SHARE DIAGNOSTICS): a 6 px chip track, 4 px knob; ON = lime, like the app's TdlSwitch (WEB-16, NOVA108-12) */
#view-settings .sv-sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .03); transition: background .15s, border-color .15s; }
#view-settings .sv-sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 4px; background: var(--dim); transition: transform .15s, background .15s; }
#view-settings [aria-checked="true"] .sv-sw { background: color-mix(in srgb, var(--lime) 22%, transparent); border-color: var(--lime); }
#view-settings [aria-checked="true"] .sv-sw i { transform: translateX(18px); background: var(--lime); }
#view-settings [aria-checked="true"] .sv-v { color: var(--lime); }
#view-settings .sv-v.sv-saved { color: var(--lime); }
#view-settings .sv-v.sv-email { text-transform: none; }
#view-settings [role="switch"] .sv-v { min-width: 3ch; }

/* sheets: SAVE YOUR ACCOUNT · SIGN IN · AUTHENTICATOR · YOUR NAME · SIGN OUT · ADD TO HOME SCREEN */
.sheet.sv-sheet .sv-flow { display: flex; flex-direction: column; gap: 10px; }
.sheet.sv-sheet .sv-l { display: block; margin: 4px 0 0; }
.sheet.sv-sheet .sv-in { font-size: 17px; } /* ≥ 16 px: iOS never zooms */
.sheet.sv-sheet .sv-code { font-size: 22px; letter-spacing: .32em; font-variant-numeric: tabular-nums; text-align: center; padding-left: calc(14px + .32em); }
.sheet.sv-sheet .sv-code::placeholder { letter-spacing: .32em; color: rgba(148, 150, 141, .45); }
.sheet.sv-sheet .sv-to { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .02); }
.sheet.sv-sheet .sv-to .b-label { margin: 0; }
.sheet.sv-sheet .sv-addr { font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.sheet.sv-sheet .sv-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--label); }
.sheet.sv-sheet .sv-okline { color: var(--text); }
.sheet.sv-sheet .b-err { min-height: 0; }
.sheet.sv-sheet .sv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet.sv-sheet .sv-pair .b-btn { padding: 0 8px; letter-spacing: .08em; font-size: 12px; }
.sheet.sv-sheet .sv-kv { cursor: default; }
.sheet.sv-sheet .sv-kv .b-v { font-size: 13px; color: var(--text); letter-spacing: 0; }
.sheet.sv-sheet .sv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sheet.sv-sheet .sv-step { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; align-items: baseline; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .02); }
.sheet.sv-sheet .sv-n { grid-row: 1 / span 2; font-size: 15px; font-weight: 700; color: var(--label); font-variant-numeric: tabular-nums; }
.sheet.sv-sheet .sv-st { font-size: 14px; font-weight: 700; color: var(--text); }
.sheet.sv-sheet .sv-ss { grid-column: 2; font-size: 12px; line-height: 1.4; color: var(--label); }

@media (prefers-reduced-motion: reduce) { #view-settings .sv-sw, #view-settings .sv-sw i { transition: none; } }
