/* Loaded after style.css. The four sections remain one readable horizontal rail. */
.settings-page .settings-tabs {position:relative;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--muted) transparent;scroll-padding-inline:5px;touch-action:pan-x pan-y;}
.settings-page .settings-tabs button,.settings-dialog .settings-tabs button {flex:1 0 auto;min-width:max-content;min-height:46px;padding:12px 16px;white-space:nowrap;font-size:13px;}
.settings-page .settings-tabs button[aria-selected="true"] {box-shadow:inset 0 -2px var(--gold),0 2px 8px #0002;}
.settings-page .settings-tabs button:focus-visible {outline:2px solid var(--gold);outline-offset:-3px;}
.settings-pane {min-width:0;}
.settings-page .save-status {display:block;}
.settings-sync-notice {display:grid;gap:8px;margin-bottom:18px;padding:14px 16px;border:1px solid var(--line);border-inline-start:3px solid var(--gold);border-radius:14px;background:var(--surface-2);}
.settings-sync-notice p {margin:0;}.settings-sync-notice .link {justify-self:start;text-align:left;}
.settings-theme {border:0;min-width:0;margin:0;padding:0;}
.settings-theme legend {font-size:13px;font-weight:650;margin-bottom:12px;}
.settings-theme-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.settings-theme-choice {position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px 10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);cursor:pointer;min-width:0;}
.settings-theme-choice:has(input:checked) {border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);}
.settings-theme-choice:has(input:focus-visible) {outline:2px solid var(--gold);outline-offset:3px;}
.settings-theme-choice input {width:18px;height:18px;margin:3px 0 0;accent-color:var(--gold);}
.settings-theme-choice > span:last-child {grid-column:1/-1;display:grid;gap:4px;}
.settings-theme-choice b {font-size:15px;}
.settings-theme-choice small {color:var(--muted);font-size:12px;line-height:1.4;}
.settings-theme-swatch {height:52px;display:grid;grid-template-columns:17px 1fr;grid-template-rows:12px 1fr;gap:5px;border-radius:8px;padding:7px;box-shadow:inset 0 0 0 1px #79839755;}
.settings-theme-swatch i {display:block;border-radius:3px;}
.settings-theme-swatch i:first-child {grid-row:1/-1;}
.settings-theme-swatch-light {background:#f0f3f7;}.settings-theme-swatch-light i {background:#c1cbd9;}.settings-theme-swatch-light i:last-child {background:#fff;}
.settings-theme-swatch-dark {background:#10141b;}.settings-theme-swatch-dark i {background:#4b5568;}.settings-theme-swatch-dark i:last-child {background:#252e3c;}
.settings-recovery-head {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;}
.settings-recovery-head .settings-card-heading {margin-bottom:0;}
.settings-recovery-list {display:grid;gap:12px;margin-top:16px;}
.settings-recovery-list:empty {display:none;}
.recovery-snapshot {display:grid;gap:8px;border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:14px;min-width:0;overflow-wrap:anywhere;}
.recovery-snapshot p {margin:0;}.recovery-snapshot .actions {margin-top:4px;}
.settings-page .settings-help-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;}
.settings-page .settings-help-actions .settings-tour {margin:0;}
@media(max-width:480px) {.settings-page .settings-tabs button,.settings-dialog .settings-tabs button {padding-inline:13px;font-size:12px;}.settings-theme-options{gap:10px}.settings-theme-choice{padding:12px;gap:10px 6px}.settings-card-heading h2{font-size:21px}.settings-recovery-head .btn{min-height:44px}}

/* Light mode uses the same art and layouts, with readable, game-colored ink. */
:root[data-theme="light"] {
 --bg:#f3f5f8;--surface:#ffffff;--surface-2:#e7ecf3;--panel:#ffffff;
 --line:#c2cbd8;--text:#172337;--muted:#33445a;--faint:#3e5068;
 --gold:#674407;--gold-ink:#ffffff;--accent:var(--gold);
 --good:#125334;--bad:#922a24;--warn:#674407;
 --picker-bg:rgba(250,252,255,.98);--picker-border:#b6c1d1;color-scheme:light;
}
:root[data-theme="light"] body[data-game="ptcg"] {--gold:#922a24;--gold-ink:#fff;}
:root[data-theme="light"] body[data-game="ygo"] {--gold:#603199;--gold-ink:#fff;}
:root[data-theme="light"] body {--accent:var(--gold);}
:root[data-theme="light"] body.glass {--glass:rgba(255,255,255,.58);--glass-2:rgba(241,245,251,.68);--glass-line:rgba(85,105,135,.26);--glass-hi:inset 0 1px 0 #fff,inset 0 0 0 1px #ffffff70;}
:root[data-theme="light"] body.glass #ambient .amb-art {filter:blur(42px) saturate(1.15) brightness(1.08);opacity:.8;}
:root[data-theme="light"] body.glass #ambient::after {background:linear-gradient(180deg,rgba(243,245,248,.74),rgba(243,245,248,.78) 65%,rgba(243,245,248,.82));}
:root[data-theme="light"] body :is(.topbar,.bottom-nav) {background:rgba(246,249,253,.94);border-color:var(--line);}
:root[data-theme="light"] :is(.tabs,.sticky-bar,.sticky-summary,.scan-confirm,.scan-confirm-actions) {background:rgba(246,249,253,.97);border-color:var(--line);}
:root[data-theme="light"] .game-tabs {background:#e7ecf3;border-color:var(--line);}
:root[data-theme="light"] .game-tab {color:var(--muted);}
:root[data-theme="light"] .game-tab[aria-selected="true"] {background:#fff;color:var(--text);border-color:var(--gold);box-shadow:0 2px 8px #24364b14;}
:root[data-theme="light"] .game-tab:hover {color:var(--text);background:#f8faff;}
:root[data-theme="light"] .set-media > img[src*="svgs.scryfall.io"],:root[data-theme="light"] .set-media > img[src*="/sets/"][src$=".svg"],:root[data-theme="light"] .set-year-grid .set-media-pokemon-symbol > .set-catalogue-symbol {filter:none;}
:root[data-theme="light"] body.glass dialog.sheet {background:linear-gradient(180deg,#ffffff24,transparent 180px),rgba(246,249,253,.78);border-color:var(--glass-line);box-shadow:var(--glass-hi),0 -12px 55px #23334d26;}
/* Reuse the daily artwork inside the modal: opaque content behind a top-layer
   dialog must not erase its glass. Only the blurred ambient image is enriched;
   the separate, unchanged 78% light floor preserves text contrast. */
:root[data-theme="light"] body.glass dialog.sheet {isolation:isolate;}
:root[data-theme="light"] body.glass dialog.sheet::before {content:"";position:absolute;inset:-50px;z-index:-2;pointer-events:none;background-image:var(--ambient-art-image, none);background-size:cover;background-position:center 30%;filter:blur(42px) saturate(1.5) contrast(1.2);}
/* Pokémon daily sources are full cards, not art crops. Enlarge only the
   decorative ambient field so pale rules panels do not erase the glass. */
:root[data-theme="light"] body.glass[data-game="ptcg"] dialog.sheet::before {background-size:auto 220%;background-position:center 24%;}
:root[data-theme="light"] body.glass dialog.sheet::after {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:rgba(246,249,253,.78);}
:root[data-theme="light"] body.glass dialog.sheet::backdrop {background:rgba(38,50,70,.18);}
:root[data-theme="light"] body.glass .cs-tabs {background:rgba(250,252,255,.62);border-color:var(--glass-line);}
:root[data-theme="light"] body.glass .sheet-head:not(.overlay),:root[data-theme="light"] body.glass .sheet-head.overlay.scrolled {background:rgba(250,252,255,.97);border-color:var(--line);}
:root[data-theme="light"] body.glass :is(.panel,.kpi,.game-choice,.lot,.meta-row,.print,.cd-text,.price-pill,.advice,.deck-emb,.pair-row,.guide-limits span,.imp-chip,.proven-sum,.settings-card) {box-shadow:var(--glass-hi),0 8px 25px #23334d0d;}
:root[data-theme="light"] body.glass .seg :is(button.on,[aria-selected="true"]) {background:#fff;box-shadow:inset 0 1px #fff,0 1px 4px #24364b1a;}
:root[data-theme="light"] :is(.settings-dialog,.settings-dialog-head) {box-shadow:none;}
:root[data-theme="light"] .settings-dialog {box-shadow:0 24px 80px #17233733;}
:root[data-theme="light"] .settings-aside .save-status {display:block;}
:root[data-theme="light"] :is(.suggest,.rule-glass,.batch-tray,.market-panel,.home-search-pill,.home-suggestions,.tour-card,.scan-condition-value,.scan-saved-receipt) {background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--gold) 4%,var(--surface)));border-color:var(--line);color:var(--text);box-shadow:0 12px 38px #24364b1a;}
:root[data-theme="light"] :is(.suggest button:hover,.suggest button.on,.home-suggestions .home-result[aria-selected="true"],.home-suggestions .home-result:hover) {background:var(--surface-2);}
:root[data-theme="light"] .home-result-actions .home-assistant-action {background:linear-gradient(115deg,#eee6f6,#e7eef8);}
:root[data-theme="light"] .home-ai-submit {background:#ebe6f4;}
:root[data-theme="light"] .home-search-submit {color:#fff;}
:root[data-theme="light"] :is(.home-overview,.home-resume,.home-community) {background:linear-gradient(135deg,#ffffffd9,#ffffff8c);border-color:var(--line);}
:root[data-theme="light"] .home-community .community-source > span:first-child {color:var(--text);}
:root[data-theme="light"] .logic-condition {color:var(--gold);}
:root[data-theme="light"] .quote-warning summary {color:var(--warn);}
:root[data-theme="light"] :is(.note.warn,.air-check.warn) {color:var(--warn);}
:root[data-theme="light"] :is(.auth-feedback.error,.air-check.bad) {color:var(--bad);}
:root[data-theme="light"] .auth-feedback.success {color:var(--good);}
:root[data-theme="light"] :is(.account-notice-badge,.account-inline-count,.scan-saved-art span,.scan-saved-fly span) {color:var(--gold-ink);}
:root[data-theme="light"] :is(.ai-review-steps .current,.ai-orbit span) {color:#6738ad;}
:root[data-theme="light"] :is(.chip.ok-chip,.power-chip.p-hi em) {color:var(--good);}
:root[data-theme="light"] :is(.chip.bad-chip,.power-chip.p-lo em) {color:var(--bad);}
:root[data-theme="light"] .power-chip.p-mid em {color:var(--warn);}
/* Deck tiles stay dark art surfaces in Light mode, so their power score keeps its light ink. */
:root[data-theme="light"] .deck-tile .power-chip.p-hi em {color:#a6f0c4;}
:root[data-theme="light"] .deck-tile .power-chip.p-mid em {color:#ffd98a;}
:root[data-theme="light"] .deck-tile .power-chip.p-lo em {color:#ffb3a8;}
/* Collection prices keep their tier tint on the white lot, but with enough ink for AA (worst tier 5.0:1). */
:root[data-theme="light"] .display-list .lot[data-tier] .lot-side .price {color:color-mix(in srgb,var(--tier) 45%,var(--text));}
/* Gallery captions sit on the page, not a white lot: a darker tint, and Common prices stay muted. */
:root[data-theme="light"] #content.view-gallery .display-list .lot[data-tier] .lot-side .price {color:color-mix(in srgb,var(--tier) 30%,var(--text));}
:root[data-theme="light"] #content.view-gallery .display-list .lot[data-tier="t0"] .lot-side .price {color:var(--muted);}
:root[data-theme="light"] #toast {background:#f8fafff7;color:var(--text);border-color:var(--line);}
:root[data-theme="light"] #toast.ok {background:#e4f3eb;color:#145637;}
:root[data-theme="light"] #toast .toast-undo {background:#dfe7f0;}
:root[data-theme="light"] .cf-dialog.danger .btn.danger {color:#fff;}
:root[data-theme="light"] .cf-dialog-check svg {stroke:#fff;}
/* One continuous art-to-light fade, not a separate title card. The scrim is
   full-bleed and follows the entire title block, including wrapped long names.
   Its 92% light floor covers every line of ink even over pure-black artwork;
   only the empty padding above/below feathers back into the existing art mask.
   Artwork, foil, title geometry and the Dark theme are deliberately untouched. */
:root[data-theme="light"] .cs-banner > .cs-hero:not(.compact) .cs-shade {background:linear-gradient(180deg,rgba(23,35,55,.08),transparent 45%);}
:root[data-theme="light"] .cs-banner > .cs-title {isolation:isolate;color:var(--text);}
:root[data-theme="light"] .cs-banner > .cs-title::before {content:"";position:absolute;inset:-80px calc(var(--gutter) * -1) 0;z-index:-1;border-radius:0;background:linear-gradient(180deg,rgba(243,245,248,0),rgba(243,245,248,.92) 80px,rgba(243,245,248,.92) calc(100% - 18px),rgba(243,245,248,0));pointer-events:none;}
:root[data-theme="light"] .cs-banner > .cs-title :is(h2,.type-line,.hp,.lvl) {color:var(--text);text-shadow:none;}
@media(prefers-reduced-motion:reduce) {:root[data-theme="light"] body.glass #ambient .amb-art {transition:none;}}
/* Art overlays remain dark-backed with light ink; card images and foil pixels never invert. */
:root[data-theme="light"] :is(.tile-chrome,.chip.dark,.icon.light,.hh-credit,.hero-body,.deck-hero,.community-art,.home-meta-card,.tabletop-dialog,.community-profile-header,.stash-open-book,.tv-phone,.air-fan,.scan-defaults,.cam-rail,.img-missing) {--text:#f4f6fb;--muted:#d0d8e6;--faint:#bac5d7;--gold:#edc777;--gold-ink:#201808;--good:#8bdfaf;--bad:#ffb4a8;color:var(--text);}
:root[data-theme="light"] .home-overview .home-daily .hh-credit {--text:#172337;--muted:#47566b;--faint:#536278;--gold:inherit;color:var(--text);}
:root[data-theme="light"] .tabletop-dialog {--surface:#17202d;--surface-2:#243144;--panel:#17202d;--line:#5c6d86;--picker-bg:#17202df7;--picker-border:#5c6d86;color-scheme:dark;}
:root[data-theme="light"] .card-owned-summary {background:var(--surface-2);border-color:var(--line);color:var(--text);}
@media(prefers-reduced-transparency:reduce) {
 :root[data-theme="light"] body.glass dialog.sheet::before,:root[data-theme="light"] body.glass dialog.sheet::after {display:none;}
 :root[data-theme="light"] body.glass :is(.panel,.kpi,.game-choice,.lot,.meta-row,.print,.cd-text,.price-pill,.advice,.deck-emb,.pair-row,.proven-sum,.settings-card,dialog.sheet,.topbar,.bottom-nav) {background:var(--surface);backdrop-filter:none;}
}

/* CardStashy settings share the app's card fan, icon family and glass surfaces.
   One content column keeps profile controls attached to the account they edit. */
.settings-dialog {width:min(860px,calc(100vw - 24px));max-width:860px;border-radius:22px;}
.settings-dialog-head {padding:14px 22px;gap:12px;background:var(--surface);}
.settings-brand-lockup {display:flex;align-items:center;gap:12px;min-width:0;}
.settings-brand-lockup .stashy-logo {width:46px;height:46px;flex:none;}
.settings-dialog-head .eyebrow {color:var(--muted);font-size:9px;letter-spacing:.15em;}
.settings-dialog-head h2 {font-size:22px;letter-spacing:-.035em;line-height:1.15;}
.settings-dialog .settings-page {width:100%;max-width:none;min-width:0;padding:0 22px 22px;}
.settings-page .settings-save-overview {display:flex;align-items:center;gap:10px;padding:13px 0;margin:0 0 12px;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0;}
.settings-save-overview>div {flex:1;min-width:0;}
.settings-page .settings-save-overview .save-status {display:block;margin:0;font-size:12px;color:var(--text);max-width:none;white-space:normal;overflow:visible;text-overflow:clip;cursor:default;overflow-wrap:anywhere;line-height:1.5;}
.settings-save-overview small {display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:2px;}
.settings-save-symbol {display:grid;place-items:center;color:var(--gold);flex:none;}
.settings-save-symbol .ico {width:24px;height:24px;}
.settings-save-overview>.link {flex:none;font-size:12px;min-height:44px;}
.settings-page .settings-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;overflow-x:auto;gap:4px;padding:4px;margin:0 0 18px;scrollbar-width:none;background:var(--surface-2);border-radius:14px;}
.settings-page .settings-tabs button,.settings-dialog .settings-tabs button {display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:46px;padding:9px 8px;white-space:normal;font-size:12px;line-height:1.3;}
.settings-tab-icon {display:grid;place-items:center;flex:none;color:var(--gold);}
.settings-tab-icon .ico {width:18px;height:18px;}
.settings-page .settings-tabs button[aria-selected="true"] {background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold) 45%,var(--line));color:var(--text);}
.settings-dialog .settings-account-layout {display:block;min-width:0;}
.settings-page .panel,.settings-page .settings-card {min-width:0;width:100%;margin:0 0 14px;padding:20px;border-radius:18px;box-shadow:inset 0 1px 0 #ffffff08;}
.settings-page .account {max-width:none;}
.settings-page .account .settings-card-heading {gap:12px;margin-bottom:10px;}
.settings-account-mark,.settings-install-mark {width:48px;height:48px;flex:none;}
.settings-card-heading h2 {font-size:20px;letter-spacing:-.03em;line-height:1.25;}
.settings-page .account .auth-tabs {margin:16px 0;}
.settings-page .auth-pane .field {margin-bottom:13px;}
.settings-page .auth-divider {margin:16px 0;font-size:11px;}
.settings-page .auth-secondary {margin:12px auto;font-size:12px;}
.settings-page .auth-privacy {display:flex;align-items:flex-start;gap:8px;margin:16px 0 0;padding-top:14px;font-size:11px;}
.auth-privacy .ico {width:18px;height:18px;flex:none;color:var(--gold);}
.settings-profile-inline {border-top:1px solid var(--line);margin-top:14px;padding-top:14px;}
.settings-profile-inline>.eyebrow {font-size:9px;letter-spacing:.1em;color:var(--muted);margin:0 0 8px;}
.settings-page .profile-photo-row {display:flex;align-items:center;gap:12px;min-width:0;}
.settings-page .profile-photo-source {flex:none;min-height:44px;}
.settings-page .profile-photo-source .profile-avatar {width:44px;height:44px;}
.settings-page .profile-photo-control {display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;width:auto;min-width:0;min-height:52px;padding:8px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;}
.settings-page .profile-photo-control>span:first-child {display:grid;gap:4px;min-width:0;overflow-wrap:anywhere;}
.settings-page .profile-photo-control>span:last-child {flex:0 0 24px;display:grid;place-items:center;}
.settings-page .profile-photo-control b {font-size:13px;line-height:1.3;}
.settings-page .profile-photo-control small {display:block;font-size:11px;color:var(--muted);line-height:1.4;}
.settings-page .profile-photo-control .ico {width:18px;height:18px;color:var(--gold);}
.settings-account-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 2px 4px;}
.settings-account-footer>.muted {font-size:11px;}
.settings-account-footer>.link {display:flex;align-items:center;gap:6px;font-size:12px;min-height:44px;}
.settings-account-footer .ico {width:16px;height:16px;}
.settings-section-intro {margin:0 0 18px;max-width:60ch;}
.settings-section-intro .eyebrow {font-size:9px;letter-spacing:.13em;color:var(--gold);margin:0 0 5px;}
.settings-section-intro h2 {font-size:23px;letter-spacing:-.035em;line-height:1.2;margin:0 0 7px;}
.settings-section-intro p:last-child {margin:0;line-height:1.5;}
.settings-icon .ico {width:23px;height:23px;}
.settings-operation-status {font-size:12px;line-height:1.5;color:var(--muted);min-height:1.5em;margin:10px 0 0;overflow-wrap:anywhere;}
.settings-operation-status:empty {display:none;}
.settings-operation-status.success {color:var(--good);font-weight:650;}
.settings-storage-breakdown {display:grid;margin:14px 0;}
.settings-storage-breakdown>div {display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;}
.settings-storage-breakdown span {color:var(--muted);}
.settings-storage-breakdown b {text-align:right;font-weight:600;overflow-wrap:anywhere;}
.settings-history>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none;}
.settings-history>summary::-webkit-details-marker {display:none;}
.settings-history>summary>span:first-child {display:grid;gap:4px;}
.settings-history>summary b {font-size:15px;}
.settings-history>summary small {font-size:11px;color:var(--muted);line-height:1.5;}
.settings-history>summary>span:last-child {color:var(--gold);transition:transform .2s;}
.settings-history>summary .ico {width:20px;height:20px;}
.settings-history[open]>summary>span:last-child {transform:rotate(180deg);}
.settings-history-body {border-top:1px solid var(--line);margin-top:12px;padding-top:12px;}
.settings-history .recovery-snapshot {padding:14px;background:var(--surface-2);border-radius:12px;gap:6px;}
.settings-history .recovery-snapshot strong {font-size:13px;line-height:1.5;}
.settings-history .recovery-snapshot .actions {margin-top:8px;}
.settings-page .settings-theme-options {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.settings-page .settings-theme-choice {min-width:0;padding:12px;grid-template-columns:18px minmax(0,1fr);gap:10px 6px;}
.settings-page .settings-theme-choice small {font-size:11px;}
.settings-dialog #toast {left:24px;right:24px;bottom:18px;width:auto;max-width:520px;margin-inline:auto;transform:translateY(20px);font-size:13px;z-index:10;}
.settings-dialog #toast.show {transform:translateY(0);}
@media(min-width:720px){.settings-page #auth-login form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.settings-page #auth-login form>.btn{grid-column:1/-1}.settings-page .auth-card>.muted{margin-bottom:16px}}
@media(max-width:520px){
 .settings-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.settings-dialog-head{padding:12px 14px}.settings-dialog .settings-page{padding:0 14px 16px}
 .settings-brand-lockup{gap:9px}.settings-brand-lockup .stashy-logo{width:40px;height:40px}.settings-dialog-head h2{font-size:20px}
 .settings-page .settings-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:14px}.settings-page .settings-tabs button{min-height:44px;padding:8px;font-size:12px}
 .settings-dialog .settings-page .panel,.settings-dialog .settings-page .settings-card{padding:16px}.settings-page .settings-card-heading{gap:10px}.settings-card-heading h2{font-size:19px}
 .settings-page .settings-storage-breakdown>div{flex-direction:column;gap:4px}.settings-storage-breakdown b{text-align:left}
 .settings-page .settings-theme-options{gap:6px}.settings-page .settings-theme-choice{padding:9px;grid-template-columns:15px minmax(0,1fr);gap:8px 4px}.settings-theme-choice input{width:15px;height:15px}.settings-theme-swatch{height:42px;padding:4px;grid-template-columns:8px minmax(0,1fr);gap:3px}.settings-theme-choice b{font-size:12px}.settings-page .settings-theme-choice small{font-size:10px}
 .settings-save-overview small{font-size:10px}.settings-account-mark,.settings-install-mark{width:42px;height:42px}.settings-page .settings-disclosure{padding-block:13px;margin-top:14px}
}
@media(prefers-reduced-motion:reduce){.settings-history>summary>span:last-child{transition:none}}
/* Review pass: readable helper text, one animated logo, flat narrow choices. */
.settings-secondary-brand {display:grid;place-items:center;flex:0 0 44px;}
.settings-secondary-brand .stashy-logo {width:44px;height:44px;}
.settings-save-overview small,.settings-page .auth-privacy,.settings-page .profile-photo-control small,.settings-account-footer>.muted,.settings-history>summary small,.settings-page .settings-theme-choice small {font-size:12px;}
.settings-scope {font-size:9px;color:var(--muted);white-space:nowrap;}
@media(max-width:520px){
 .settings-save-overview small {font-size:12px;}
 .settings-page .settings-theme-options {grid-template-columns:1fr;gap:3px;}
 .settings-page .settings-theme-choice {grid-template-columns:18px 52px minmax(0,1fr);align-items:center;gap:10px;padding:9px;border-color:transparent;border-radius:10px;background:transparent;}
 .settings-page .settings-theme-choice:has(input:checked) {border-color:var(--gold);background:color-mix(in srgb,var(--gold) 6%,var(--surface));}
 .settings-page .settings-theme-choice>span:last-child {grid-column:auto;}
 .settings-page .settings-theme-choice .settings-theme-swatch {width:52px;height:42px;}
 .settings-page .settings-theme-choice b {font-size:14px;}
 .settings-page .settings-theme-choice small {font-size:12px;}
}
/* Keep theme titles level when one description needs another line. */
.settings-page .settings-theme-choice {grid-template-rows:52px auto;}
.settings-page .settings-theme-choice>span:last-child {align-self:start;}
@media(max-width:520px){.settings-page .settings-theme-choice{grid-template-rows:auto}.settings-page .settings-theme-choice>span:last-child{align-self:center}}

/* A tab's icon and label are decoration: taps and clicks always land on the tab itself. */
.settings-tabs [role="tab"]>*{pointer-events:none}

/* Account hub: the profile card that opens from the avatar. */
.account-hub {position:relative;margin:-20px -20px 16px;border-radius:18px 18px 0 0;overflow:hidden;border-bottom:1px solid color-mix(in srgb,var(--gold) 26%,var(--line));background:linear-gradient(180deg,transparent 0,var(--surface) 96px);}
.account-hub-banner {position:relative;height:96px;background:radial-gradient(120% 140% at 15% 0,color-mix(in srgb,var(--gold) 26%,transparent),transparent 60%),var(--surface-2);}
.account-hub-banner img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%;}
.account-hub-banner::after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,var(--surface));}
.account-hub-identity {display:flex;align-items:flex-end;gap:14px;margin-top:-44px;padding:0 20px;position:relative;}
.account-hub-avatar {flex:none;display:grid;border-radius:50%;}
.account-hub-avatar .profile-avatar {width:84px;height:84px;box-shadow:0 0 0 3px var(--surface),0 0 0 4px color-mix(in srgb,var(--gold) 55%,transparent),0 10px 24px #0007;}
.account-hub-identity>div {display:grid;min-width:0;padding-bottom:4px;}
.account-hub-identity b {font-size:20px;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere;}
.account-hub-identity small {color:var(--muted);font-size:12px;overflow-wrap:anywhere;}
.account-hub-privacy {justify-self:start;margin-top:6px;padding:2px 9px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.02em;color:var(--gold);background:color-mix(in srgb,var(--gold) 12%,transparent);border:1px solid color-mix(in srgb,var(--gold) 30%,transparent);}
.account-hub-actions {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:16px 20px 18px;}
.account-hub-actions .btn {min-height:44px;justify-content:center;gap:6px;}
.account-hub-num {color:var(--muted);font-weight:600;}
.account-hub-edit {margin-top:12px;}
@media (max-width:520px) {.account-hub-actions {grid-template-columns:repeat(2,minmax(0,1fr));}.account-hub-avatar .profile-avatar {width:72px;height:72px;}.account-hub-identity {margin-top:-36px;}}
/* New-password checklist: each rule fills in gold as it is met. */
.password-rules {list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:-4px 0 14px;padding:0;font-size:12px;color:var(--muted);}
.password-rules li {display:flex;align-items:center;gap:6px;transition:color .2s;}
.password-rules li>span {width:14px;height:14px;flex:none;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--muted) 70%,transparent);display:grid;place-items:center;transition:background .2s,border-color .2s;}
.password-rules li[data-ok="true"] {color:var(--text);}
.password-rules li[data-ok="true"]>span {background:var(--gold);border-color:var(--gold);}
.password-rules li[data-ok="true"]>span::after {content:"";width:6px;height:3px;border:solid var(--gold-ink);border-width:0 0 1.6px 1.6px;transform:translateY(-1px) rotate(-45deg);}
@media (prefers-reduced-motion:reduce) {.password-rules li,.password-rules li>span {transition:none;}}

/* Sound: effects and music volume sliders under the Sound & music switch. */
.settings-volume{display:flex;align-items:center;gap:12px;margin:6px 0 0 30px;font-size:.92rem}
.settings-volume input[type=range]{flex:1;max-width:260px;accent-color:var(--accent,#d8b25a)}

/* 4.3.22 Friends is one row: the Friends panel already holds requests and adding friends. */
.account-hub-actions{display:block;padding:14px 20px 18px}
.account-hub-friends{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:12px 16px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--surface-2) 55%,transparent);color:var(--text);text-align:left;font:inherit;cursor:pointer}
.account-hub-friends:hover,.account-hub-friends:focus-visible{border-color:color-mix(in srgb,var(--gold) 60%,var(--line))}
.account-hub-friends:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.account-hub-friends>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
.account-hub-friends b{font-size:14px;display:flex;align-items:center;gap:8px}
.account-hub-friends small{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.account-hub-friends-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--gold) 14%,transparent);color:var(--gold)}
.account-hub-friends-icon .ico{width:20px;height:20px}
.account-hub-go{flex:none;font-size:22px;color:var(--gold);line-height:1}
@media (max-width:520px){.account-hub-actions{display:block}}
/* The save state is one quiet line by the title instead of a box above the tabs. */
.settings-page .settings-save-overview{padding:6px 0;margin:0 0 10px;border-bottom:0;gap:8px}
.settings-page .settings-save-overview .settings-save-symbol .ico{width:16px;height:16px}
.settings-page .settings-save-overview small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.settings-page .settings-save-overview .save-status{font-weight:600;color:var(--muted)}
.account-hub-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}.account-hub-meta .link{min-height:32px}
.account-hub-identity b{text-shadow:0 1px 10px #000c}
