/* Settings — "glass & gold" (Claude Code 2026-11-08, owner mockup: dark navy glass cards, gold accents, soft glow; iPad /
   tablet = side menu + one section, phone = one column; "consider this font style colors. 9 theme").
   Every one of the 9 themes gets its own version: the 4 dark themes are dark glass in their own colour (navy, emerald,
   burgundy, graphite with copper), the 5 light themes are pearl glass in their own tint. Loaded after settings-lux.css;
   remove the <link> in index.html to go back (backup of the earlier look: work/backups/settings-lux.2026-11-08-before-glass.css). */

/* ------------------------------------------------------------------ palettes */
#v-settings {
  --sg-gold: #B08433; --sg-gold-hi: #E9CB80; --sg-ink: #17233A; --sg-sub: #5E6878; --sg-line: rgba(176, 132, 51, .32);
  --sg-card-a: rgba(255, 255, 255, .86); --sg-card-b: rgba(255, 255, 255, .66); --sg-tint: #FFFFFF; --sg-glow: rgba(214, 170, 80, .16);
  --sg-sel: linear-gradient(90deg, rgba(214, 170, 80, .22), rgba(214, 170, 80, .06)); --sg-shadow: 0 18px 40px -26px rgba(20, 34, 63, .45);
  --sg-btn: rgba(20, 34, 63, .05);
}
:root[data-theme="pearl-gold"] #v-settings { --sg-tint: #FFF8EA; --sg-card-b: rgba(255, 248, 234, .72); }
:root[data-theme="lavender-platinum"] #v-settings { --sg-tint: #F6F3FC; --sg-card-b: rgba(246, 243, 252, .74); --sg-gold: #8F6FB8; --sg-gold-hi: #CDB8EC; --sg-line: rgba(143, 111, 184, .32); --sg-glow: rgba(160, 130, 210, .16); }
:root[data-theme="champagne-ivory"] #v-settings { --sg-tint: #FFFBF2; --sg-card-b: rgba(255, 251, 242, .74); }
:root[data-theme="sapphire-silver"] #v-settings { --sg-tint: #EEF3FB; --sg-card-b: rgba(238, 243, 251, .74); --sg-gold: #3F67A8; --sg-gold-hi: #9FB9E3; --sg-line: rgba(63, 103, 168, .3); --sg-glow: rgba(95, 127, 176, .18); }
:root[data-theme="silver-platinum"] #v-settings { --sg-tint: #F4F6F9; --sg-card-b: rgba(244, 246, 249, .76); --sg-gold: #8A93A3; --sg-gold-hi: #D3D9E1; --sg-line: rgba(120, 130, 148, .32); --sg-glow: rgba(150, 160, 180, .16); }
:is([data-theme="royal-navy"], [data-theme="emerald-gold"], [data-theme="burgundy-rose"], [data-theme="graphite-copper"]) #v-settings {
  --sg-gold: #E2BE72; --sg-gold-hi: #FFF0C2; --sg-ink: #F3EEE2; --sg-sub: #AEB9CF; --sg-line: rgba(226, 190, 114, .34);
  --sg-card-a: rgba(36, 60, 110, .62); --sg-card-b: rgba(14, 28, 58, .72); --sg-glow: rgba(226, 190, 114, .2);
  --sg-sel: linear-gradient(90deg, rgba(226, 190, 114, .26), rgba(226, 190, 114, .05)); --sg-shadow: 0 22px 44px -24px rgba(0, 0, 0, .8);
  --sg-btn: rgba(255, 255, 255, .07);
}
:root[data-theme="emerald-gold"] #v-settings { --sg-card-a: rgba(26, 92, 70, .58); --sg-card-b: rgba(8, 36, 28, .76); --sg-sub: #A9C9BC; }
:root[data-theme="burgundy-rose"] #v-settings { --sg-card-a: rgba(120, 36, 62, .55); --sg-card-b: rgba(44, 12, 26, .78); --sg-sub: #D7B2BE; }
:root[data-theme="graphite-copper"] #v-settings { --sg-card-a: rgba(70, 72, 78, .58); --sg-card-b: rgba(22, 23, 26, .82); --sg-sub: #B9BCC3;
  --sg-gold: #D9A26B; --sg-gold-hi: #F6D2AC; --sg-line: rgba(217, 162, 107, .36); --sg-glow: rgba(217, 162, 107, .18);
  --sg-sel: linear-gradient(90deg, rgba(217, 162, 107, .26), rgba(217, 162, 107, .05)); }

/* tokens used by the editors inside the cards (segments, switches, swatches, text) */
#v-settings .sgroup, #v-settings .sgroup.card, #v-settings .st-side {
  color-scheme: light;
  --surface: var(--sg-tint); --text: var(--sg-ink); --text-2: var(--sg-sub); --head: var(--sg-ink); --hairline: var(--sg-line);
  --chip-bg: var(--sg-btn); --btn-a: var(--sg-btn); --btn-b: var(--sg-btn); --btn-ink: var(--sg-ink); --border: var(--sg-line);
  --nav-a: #F8E7B4; --nav-b: #C9A24A; --nav-ink: #2B1F05; --switch-on: #C9A24A; --metal: var(--sg-gold); --metal-text: var(--sg-gold);
  --icon: var(--sg-gold); --track: var(--sg-line); --progress-track: var(--sg-btn); --hi: var(--sg-gold-hi); --focus: var(--sg-gold);
}
:is([data-theme="royal-navy"], [data-theme="emerald-gold"], [data-theme="burgundy-rose"], [data-theme="graphite-copper"]) #v-settings :is(.sgroup, .st-side) {
  color-scheme: dark; --surface: #13284C;
}
:root[data-theme="graphite-copper"] #v-settings .sgroup { --nav-a: #F6D2AC; --nav-b: #C3864E; --switch-on: #C3864E; }

/* ------------------------------------------------------------------ stage: soft gold light waves behind the page */
#v-settings { position: relative; }
#v-settings::before {
  content: ""; position: absolute; inset: -20px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 22% at 50% 6%, var(--sg-glow), transparent 70%),
    radial-gradient(80% 30% at 10% 100%, var(--sg-glow), transparent 70%);
}

/* ------------------------------------------------------------------ header */
#v-settings .settings-head:has(.set-back) { padding-top: 50px; }
#v-settings .settings-title {
  font: 600 clamp(1.8rem, 10vw, 2.5rem)/1.05 var(--serif-display, var(--serif)); letter-spacing: .03em; color: var(--sg-ink);
  background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none;
  text-shadow: 0 2px 18px var(--sg-glow);
}
#v-settings .title-orn { width: min(240px, 66%); }
#v-settings .title-orn .orn-line { background: linear-gradient(90deg, transparent, var(--sg-gold)); }
#v-settings .title-orn .orn-line.r { background: linear-gradient(90deg, var(--sg-gold), transparent); }
#v-settings .set-back, #v-settings .overflow .icon-btn {
  color: var(--sg-ink); border: 1px solid var(--sg-gold); background: linear-gradient(180deg, var(--sg-card-a), var(--sg-card-b));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 14px -4px var(--sg-glow), var(--sg-shadow);
}
#v-settings .set-back { min-height: 42px; padding: 0 16px 0 12px; font: 600 0.75rem/1 var(--sans); max-width: 52%; }
#v-settings .set-back-ar { color: var(--sg-gold); }
#v-settings .overflow .icon-btn { width: 42px; height: 42px; border-radius: 50%; }
#v-settings .overflow .icon-btn .ic { color: var(--sg-gold); }

/* ------------------------------------------------------------------ glass cards */
#v-settings .sgroup {
  position: relative; margin-top: 12px; border-radius: 20px; overflow: hidden; color: var(--sg-ink);
  border: 1px solid var(--sg-line); background: linear-gradient(160deg, var(--sg-card-a), var(--sg-card-b));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--sg-shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
}
#v-settings .sgroup::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; opacity: .9; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--sg-gold), transparent); }
#v-settings .sgroup::after { content: none; }

/* section header: line icon · title + subtitle · chevron */
#v-settings .group-head {
  display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto auto !important;
  grid-template-areas: "ico title dots chev" "ico sum dots chev" !important; align-items: center; gap: 1px 14px;
  min-height: 70px; padding: 12px 16px; text-align: left; border-bottom: 0 !important;
}
#v-settings .sg-ico { grid-area: ico; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--sg-gold);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), transparent 70%), var(--sg-btn);
  border: 1px solid var(--sg-line); box-shadow: 0 0 16px -6px var(--sg-glow); }
#v-settings .sg-ico .ic { width: 23px; height: 23px; color: var(--sg-gold); filter: drop-shadow(0 0 6px var(--sg-glow)); }
#v-settings .group-head .h-card { grid-area: title; font: 700 0.9rem/1.2 var(--sans); letter-spacing: .005em; color: var(--sg-ink); }
#v-settings .group-head .summary { grid-area: sum; display: block !important; position: static; width: auto; height: auto; margin: 0; clip: auto;
  text-align: left; font: 500 0.65rem/1.3 var(--sans); color: var(--sg-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v-settings .group-head .chev { grid-area: chev; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--sg-gold);
  transform: rotate(-90deg); transition: transform .2s; }
#v-settings .group-head[aria-expanded="true"] .chev { transform: rotate(0); background: none; color: var(--sg-gold); }
#v-settings .group-head[aria-expanded="true"] { box-shadow: 0 1px 0 var(--sg-line); }

/* theme dots on the Appearance card */
#v-settings .theme-dots { grid-area: dots; display: flex; align-items: center; gap: 6px; }
#v-settings .theme-dots i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
#v-settings .theme-dots i.on { width: 26px; height: 26px; border: 2px solid var(--sg-gold); box-shadow: 0 0 10px -2px var(--sg-glow), 0 2px 5px rgba(0, 0, 0, .35); position: relative; }
#v-settings .theme-dots i.on::after { content: "✓"; position: absolute; right: -6px; top: -7px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  font: 800 0.45rem/1 var(--sans); font-style: normal; color: #2B1F05; background: linear-gradient(180deg, #F8E7B4, #C9A24A); }
#v-settings .group-head[aria-expanded="true"] .theme-dots { display: none; }

/* rows */
#v-settings .group-body > * + * { margin: 0 16px; width: calc(100% - 32px); box-shadow: 0 -1px 0 var(--sg-line); border-top: 0 !important; }
#v-settings .group-body > .row-btn:first-child, #v-settings .group-body > .row-static:first-child { margin: 0 16px; width: calc(100% - 32px); }
#v-settings .row-btn, #v-settings .row-static { min-height: 58px; font: 600 0.8rem/1.35 var(--sans); color: var(--sg-ink); }
#v-settings .row-btn .val, #v-settings .row-static .val {
  font: 600 0.65rem/1.2 var(--sans); padding: 7px 13px; border-radius: 999px; color: var(--sg-ink);
  background: var(--sg-btn); border: 1px solid var(--sg-line); box-shadow: none;
}
#v-settings .row-btn .chev { color: var(--sg-gold); }
#v-settings .row-btn:hover { background: var(--sg-sel); }
#v-settings .row-static .small, #v-settings .row-static .muted { color: var(--sg-sub) !important; }
#v-settings .editor { padding: 6px 16px 16px; }

/* segments: gold outline when chosen (mockup) */
#v-settings .seg .opt { min-height: 40px; padding: 0 16px; font: 600 0.7rem/1.2 var(--sans); color: var(--sg-ink); background: var(--sg-btn); border: 1px solid var(--sg-line); box-shadow: none; }
#v-settings .seg input:checked + .opt { color: var(--sg-ink); background: rgba(214, 170, 80, .16); border: 1.5px solid var(--sg-gold); box-shadow: 0 0 12px -4px var(--sg-glow); }
#v-settings .seg input:checked + .opt .ic { color: var(--sg-gold); }

/* switches: gold */
#v-settings .switch .track { background: var(--sg-btn); border-color: var(--sg-line); }
#v-settings .switch[aria-checked="true"] .track { background: linear-gradient(180deg, #F8E7B4, #C9A24A); border-color: #B58C3A; }
#v-settings .switch .knob { background: #FFFFFF; }

/* themes: colour circles on phones, picture cards on tablets */
#v-settings .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
#v-settings .sw { color: var(--sg-ink); font: 600 0.575rem/1.2 var(--sans); }
#v-settings .sw .chip { width: 46px; height: 46px; max-width: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
#v-settings .sw input:checked + .chip { outline: 2px solid var(--sg-gold); outline-offset: 3px; box-shadow: 0 0 14px -2px var(--sg-glow); }
#v-settings .sw input:checked + .chip::after { color: #2B1F05; background: linear-gradient(180deg, #F8E7B4, #C9A24A); }

/* ------------------------------------------------------------------ profile card + Upgrade */
#v-settings .sg-profile > .sr-h { display: none; }   /* the card itself is the header */
#v-settings .profile-card { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 0; }
#v-settings .profile-card .profile { flex: 1; min-width: 0; min-height: 84px; padding: 14px 4px 14px 16px; }
#v-settings .profile-card .profile > .chev { display: none; }
#v-settings .avatar { width: 58px; height: 58px; font: 700 1.1rem/1 var(--serif); color: #3A2A05;
  background: radial-gradient(circle at 34% 28%, #FFF8E6, #F1D88F 40%, #C9A24A 75%, #8E6A22);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25), 0 0 0 3.5px #D9B45E, 0 0 18px -4px var(--sg-glow), inset 0 1px 0 rgba(255, 255, 255, .7); }
#v-settings .profile .name { font: 600 clamp(0.95rem, 5.4vw, 1.2rem)/1.15 var(--serif); color: var(--sg-ink); }
#v-settings .profile .tag { padding: 0; border: 0; background: none; color: var(--sg-sub); font: 500 0.65rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
#v-settings .up-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 700 0.7rem/1 var(--sans); color: var(--sg-gold-hi); border: 1px solid var(--sg-gold); background: rgba(214, 170, 80, .1); box-shadow: 0 0 12px -4px var(--sg-glow); }
:is([data-theme="silver-platinum"], [data-theme="pearl-gold"], [data-theme="lavender-platinum"], [data-theme="champagne-ivory"], [data-theme="sapphire-silver"]) #v-settings .up-pill { color: var(--sg-gold); }
#v-settings .up-pill .ic { width: 16px; height: 16px; color: var(--sg-gold); }

/* ------------------------------------------------------------------ Exit */
#v-settings .set-exit { min-height: 54px; border-radius: 16px; font: 700 0.8rem/1.2 var(--sans); color: #2B1F05; border: 1px solid #F6E3A8;
  background: linear-gradient(180deg, #F8E7B4, #D9B45E 55%, #B58C3A); box-shadow: 0 10px 22px -10px rgba(181, 140, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .75); }
#v-settings .set-exit span { color: #2B1F05; }

/* ------------------------------------------------------------------ iPad / tablet (≥ 768 px): side menu + one section */
#v-settings .st-side { display: none; }
#v-settings.st-split {
  display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); column-gap: 18px; align-items: start;
}
#v-settings.st-split > * { grid-column: 2; min-width: 0; }
#v-settings.st-split > .settings-head { grid-column: 1 / -1; }
#v-settings.st-split > .st-side {
  grid-column: 1; grid-row: 2 / span 3; position: sticky; top: 12px; display: grid; gap: 4px; margin-top: 12px; padding: 10px;
  border-radius: 22px; border: 1px solid var(--sg-line); background: linear-gradient(170deg, var(--sg-card-a), var(--sg-card-b));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sg-shadow);
}
#v-settings .st-tab { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px; border-radius: 16px; cursor: pointer; text-align: left;
  font: 600 0.8rem/1.25 var(--sans); color: var(--sg-ink); background: none; border: 1px solid transparent; }
#v-settings .st-tab svg { flex: none; width: 26px; height: 26px; color: var(--sg-gold); filter: drop-shadow(0 0 6px var(--sg-glow)); }
#v-settings .st-tab:hover { background: var(--sg-btn); }
#v-settings .st-tab[aria-current="true"] { background: var(--sg-sel); border-color: var(--sg-gold); box-shadow: 0 0 18px -6px var(--sg-glow), inset 0 1px 0 rgba(255, 255, 255, .12); }
#v-settings.st-split .sgroup.st-hide { display: none; }
#v-settings.st-split .sgroup:not(.sg-profile) .group-head { pointer-events: none; min-height: 84px; padding: 16px 22px; grid-template-columns: 54px minmax(0, 1fr) auto auto !important; }
#v-settings.st-split .sgroup:not(.sg-profile) .group-head .chev, #v-settings.st-split .theme-dots { display: none; }
#v-settings.st-split .sg-ico { width: 54px; height: 54px; border-radius: 16px; }
#v-settings.st-split .sg-ico .ic { width: 28px; height: 28px; }
#v-settings.st-split .group-head .h-card { font-size: 1.1rem; }
#v-settings.st-split .group-head .summary { font-size: 0.7rem; }
#v-settings.st-split .group-body > *, #v-settings.st-split .group-body > .row-btn:first-child { margin: 0 22px; width: calc(100% - 44px); }
#v-settings.st-split .row-btn, #v-settings.st-split .row-static { min-height: 64px; font-size: 0.85rem; }
#v-settings.st-split .profile-card .profile { min-height: 96px; }
#v-settings.st-split .avatar { width: 66px; height: 66px; }
#v-settings.st-split .settings-title { font-size: 2.8rem; }
#v-settings.st-split .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#v-settings.st-split .sw .chip { width: 100%; height: 78px; border-radius: 14px; }
#v-settings.st-split .sw { font-size: 0.65rem; gap: 6px; }
#v-settings.st-split .set-exit { margin: 18px 0 6px; width: 100%; align-self: start; }
#v-settings.st-split { align-content: start; }
@media (min-width: 1000px) { #v-settings.st-split { grid-template-columns: 270px minmax(0, 1fr); column-gap: 24px; } }

/* ================================================================== 2026-11-08 owner mockup, round 2 ("100% the same"):
   gear crest over the title, gold light waves, General card with controls in the rows, slimmer side menu with separators */

/* gold light waves (top behind the title, bottom above the bar) */
#v-settings::before {
  inset: -24px 0 auto; height: 300px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23E9C46A' stop-opacity='0'/><stop offset='.35' stop-color='%23F6D98C'/><stop offset='.65' stop-color='%23E9C46A' stop-opacity='.9'/><stop offset='1' stop-color='%23E9C46A' stop-opacity='0'/></linearGradient><filter id='b'><feGaussianBlur stdDeviation='6'/></filter></defs><path d='M-20 230 C 180 120 330 250 520 170 S 840 40 1020 90' fill='none' stroke='url(%23g)' stroke-width='9' opacity='.45' filter='url(%23b)'/><path d='M-20 230 C 180 120 330 250 520 170 S 840 40 1020 90' fill='none' stroke='url(%23g)' stroke-width='2.2'/><path d='M80 262 C 260 190 420 270 600 205 S 880 120 1020 150' fill='none' stroke='url(%23g)' stroke-width='1.2' opacity='.55'/></svg>") center top / 100% 300px no-repeat,
    radial-gradient(50% 30% at 50% 20%, var(--sg-glow), transparent 70%);
}
#v-settings::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -40px; height: 160px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 160' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23E9C46A' stop-opacity='0'/><stop offset='.5' stop-color='%23F6D98C'/><stop offset='1' stop-color='%23E9C46A' stop-opacity='0'/></linearGradient><filter id='b'><feGaussianBlur stdDeviation='5'/></filter></defs><path d='M-20 110 C 200 40 420 140 640 80 S 900 60 1020 30' fill='none' stroke='url(%23g)' stroke-width='8' opacity='.4' filter='url(%23b)'/><path d='M-20 110 C 200 40 420 140 640 80 S 900 60 1020 30' fill='none' stroke='url(%23g)' stroke-width='1.8'/></svg>") center / 100% 100% no-repeat;
}
:is([data-theme="silver-platinum"], [data-theme="pearl-gold"], [data-theme="lavender-platinum"], [data-theme="champagne-ivory"], [data-theme="sapphire-silver"]) #v-settings::before,
:is([data-theme="silver-platinum"], [data-theme="pearl-gold"], [data-theme="lavender-platinum"], [data-theme="champagne-ivory"], [data-theme="sapphire-silver"]) #v-settings::after { opacity: .55; }

/* gear crest + title */
#v-settings .settings-head { gap: 0; }
#v-settings .st-gear { display: grid; place-items: center; width: 54px; height: 54px; margin-top: 2px; color: var(--sg-gold);
  filter: drop-shadow(0 0 10px var(--sg-glow)) drop-shadow(0 0 22px var(--sg-glow)); }
#v-settings .st-gear .ic { width: 46px; height: 46px; color: var(--sg-gold); }
#v-settings .settings-head:has(.set-back) { padding-top: 8px; }
#v-settings .settings-title { margin-top: 2px; font-size: clamp(1.7rem, 9vw, 2.3rem); font-weight: 600; text-shadow: 0 0 22px var(--sg-glow), 0 2px 10px rgba(0, 0, 0, .35); }
#v-settings .title-orn .gem { display: none; }
#v-settings .title-orn { width: min(300px, 76%); margin-top: 6px; }
#v-settings .title-orn .orn-line { height: 2px; }
#v-settings .set-back { top: 8px !important; }
#v-settings .settings-head .overflow { top: 8px !important; }

/* profile chevron */
#v-settings .pc-chev { flex: none; display: grid; place-items: center; width: 30px; height: 44px; border: 0; background: none; color: var(--sg-ink); cursor: pointer; }
#v-settings .pc-chev .ic { width: 20px; height: 20px; }
#v-settings .up-pill { height: 40px; padding: 0 16px; font-size: 0.75rem; }
#v-settings .up-pill .ic { width: 18px; height: 18px; }

/* General rows: gold icon · label · control */
#v-settings .sg-general .group-body { padding: 4px 0 8px; }
#v-settings .gx-row { display: grid; grid-template-columns: 30px minmax(110px, auto) minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 56px; margin: 0 16px; padding: 8px 0; box-shadow: 0 -1px 0 var(--sg-line); }
#v-settings .gx-row:first-child { box-shadow: none; }
#v-settings .gx-ic { display: grid; place-items: center; color: var(--sg-gold); filter: drop-shadow(0 0 5px var(--sg-glow)); }
#v-settings .gx-ic .ic { width: 24px; height: 24px; }
#v-settings .gx-aa { font: 600 1rem/1 var(--sans); letter-spacing: -.02em; color: var(--sg-gold); }
#v-settings .gx-lbl { font: 500 0.75rem/1.25 var(--sans); color: var(--sg-ink); }
#v-settings .gx-lbl small { font-size: 0.6rem; color: var(--sg-sub); font-weight: 500; }
#v-settings .gx-ctl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; flex-wrap: wrap; }
#v-settings .gx-switch .gx-ctl .switch { margin-right: -8px; }

/* theme pictures */
#v-settings .gx-theme { grid-template-columns: 30px minmax(70px, auto) minmax(0, 1fr); }
#v-settings .gx-themes { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 4px; scrollbar-width: none; justify-content: flex-start; width: 100%; }
#v-settings .gx-themes::-webkit-scrollbar { display: none; }
/* 2026-11-22 owner (desktop photo of this strip: "on desktop we cannot slide left or right like phone … other theme colour
   hide"): with a mouse every theme is shown at once, wrapping into rows — nothing hidden, one click. Phones keep the swipe strip. */
@media (hover: hover) and (pointer: fine) {
  html body #v-settings .gx-themes { flex-wrap: wrap !important; overflow-x: visible !important; scroll-snap-type: none !important; row-gap: 10px; }
}
#v-settings .gx-th { position: relative; flex: none; width: 96px; height: 62px; border-radius: 10px; cursor: pointer; scroll-snap-align: start; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6);
  background:
    radial-gradient(120% 60% at 20% 100%, rgba(255, 236, 180, .45), transparent 55%),
    linear-gradient(165deg, transparent 40%, rgba(255, 255, 255, .28) 52%, transparent 62%),
    var(--sw); }
#v-settings .gx-th::before { content: ""; position: absolute; left: -10%; right: -10%; top: 38%; height: 30%; border-radius: 50%;
  border-top: 1.5px solid rgba(255, 232, 170, .75); filter: blur(.3px); transform: rotate(-8deg); }
#v-settings .gx-th-n { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px 4px; font: 600 0.525rem/1.1 var(--sans); color: #fff; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#v-settings .gx-th[aria-checked="true"] { border: 2px solid var(--sg-gold); box-shadow: 0 0 14px -2px var(--sg-glow), 0 4px 10px -4px rgba(0, 0, 0, .6); }
#v-settings .gx-th[aria-checked="true"]::after { content: "✓"; position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font: 800 0.55rem/1 var(--sans); color: #2B1F05; background: linear-gradient(180deg, #F8E7B4, #C9A24A); }

/* font select + size stepper + selects */
#v-settings .gx-sel { position: relative; display: inline-flex; }
#v-settings .gx-sel select { appearance: none; -webkit-appearance: none; height: 38px; min-width: 120px; padding: 0 34px 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 0.7rem/1 var(--sans); color: var(--sg-ink); background: var(--sg-btn); border: 1px solid var(--sg-line); }
#v-settings .gx-sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 1.6px solid var(--sg-ink); border-bottom: 1.6px solid var(--sg-ink); transform: rotate(45deg); }
#v-settings .gx-sel select option { color: #14223F; background: #fff; }
#v-settings .gx-step { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 4px; border-radius: 999px; background: var(--sg-btn); border: 1px solid var(--sg-line); }
#v-settings .gx-step button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--sg-ink); font: 600 0.9rem/1 var(--sans); cursor: pointer; }
#v-settings .gx-step button:disabled { opacity: .35; cursor: default; }
#v-settings .gx-step output { min-width: 62px; height: 28px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px;
  font: 700 0.7rem/1 var(--sans); color: #2B1F05; background: linear-gradient(180deg, #F8E7B4, #D9B45E 55%, #B58C3A); box-shadow: 0 0 10px -2px var(--sg-glow); }

/* density segments */
#v-settings .gx-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#v-settings .gx-seg button { height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: 500 0.675rem/1 var(--sans);
  color: var(--sg-ink); background: var(--sg-btn); border: 1px solid var(--sg-line); }
#v-settings .gx-seg button[aria-checked="true"] { border: 1.5px solid var(--sg-gold); background: rgba(214, 170, 80, .16); box-shadow: 0 0 12px -3px var(--sg-glow); font-weight: 600; }

/* phones: controls under the label where needed */
@media (max-width: 520px) {
  #v-settings .gx-row:not(.gx-switch) { grid-template-columns: 30px minmax(0, 1fr); }
  #v-settings .gx-row:not(.gx-switch) .gx-ctl { grid-column: 1 / -1; justify-content: flex-start; padding-left: 42px; }
  #v-settings .gx-theme .gx-ctl { padding-left: 0; }
  #v-settings .gx-row.gx-switch { grid-template-columns: 30px minmax(0, 1fr) auto; }
}

/* side menu: slimmer, separators, two-line labels (tablet) */
#v-settings.st-split { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); column-gap: 16px; }
#v-settings.st-split > .st-side { gap: 0; padding: 8px; border-radius: 20px; }
#v-settings .st-tab { min-height: 66px; gap: 12px; padding: 10px 12px; font: 500 0.75rem/1.25 var(--sans); border-radius: 14px; }
#v-settings .st-tab { position: relative; box-shadow: none; }
#v-settings .st-tab + .st-tab::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--sg-line); }
#v-settings .st-tab[aria-current="true"]::before, #v-settings .st-tab[aria-current="true"] + .st-tab::before { display: none; }
#v-settings .st-tab[aria-current="true"] { box-shadow: 0 0 18px -6px var(--sg-glow), inset 0 1px 0 rgba(255, 255, 255, .12); }
#v-settings .st-tab svg { width: 28px; height: 28px; }
#v-settings.st-split .group-head .summary { white-space: normal; }
#v-settings.st-split .gx-row { margin: 0 20px; min-height: 52px; }
#v-settings.st-split .sg-ico { width: auto; height: auto; background: none; border: 0; box-shadow: none; }
#v-settings.st-split .sg-ico .ic { width: 34px; height: 34px; }
#v-settings.st-split .group-head { min-height: 76px !important; grid-template-columns: 42px minmax(0, 1fr) auto auto !important; }
#v-settings.st-split .group-head .h-card { font-size: 1.05rem; }
#v-settings.st-split .settings-title { font-size: 2.3rem; }
@media (min-width: 1000px) { #v-settings.st-split { grid-template-columns: 210px minmax(0, 1fr); } }
#v-settings.st-split > .st-side { grid-row: 2 / 4; align-self: stretch; position: relative; top: 0; align-content: start;
  background: radial-gradient(90% 18% at 50% 100%, var(--sg-glow), transparent 70%), linear-gradient(170deg, var(--sg-card-a), var(--sg-card-b)); }

/* ================================================================== 2026-11-08 owner: "set background like Home for Settings and card UI
   design the same Home page". Settings shows the same My Space photo as Home (Royal Navy — the theme where Home has the
   photo) and the Home card look: navy glass rgba(27,49,85,.84), gold line, 12 px blur, Cormorant titles, ivory text. */
:root[data-theme="royal-navy"] body[data-route="settings"] { background: #06162D; }
:root[data-theme="royal-navy"] body[data-route="settings"] .home-bg { display: block; }
:root[data-theme="royal-navy"] body[data-route="settings"] .app { background: none; }
:root[data-theme="royal-navy"] body[data-route="settings"] .ambient { display: none; }   /* the photo replaces the ambient gradient, as on Home */
:root[data-theme="royal-navy"] #v-settings {
  --sg-card-a: rgba(27, 49, 85, .84); --sg-card-b: rgba(27, 49, 85, .84); --sg-line: rgba(243, 213, 138, .55);
  --sg-gold: #F3D58A; --sg-gold-hi: #FFE5A3; --sg-ink: #FFFDF7; --sg-sub: #D8DEE9; --sg-btn: rgba(255, 253, 247, .06);
  --sg-shadow: 0 8px 22px rgba(0, 0, 0, .28); --sg-glow: rgba(243, 213, 138, .16);
}
:root[data-theme="royal-navy"] #v-settings::before, :root[data-theme="royal-navy"] #v-settings::after { display: none; }   /* the photo replaces the light waves */
:root[data-theme="royal-navy"] #v-settings :is(.sgroup, .st-side) {
  background: var(--sg-card-a) !important; border: 1px solid var(--sg-line) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
:root[data-theme="royal-navy"] #v-settings .sgroup::before { display: none; }
:root[data-theme="royal-navy"] #v-settings .settings-title { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
:root[data-theme="royal-navy"] #v-settings :is(.set-back, .overflow .icon-btn) { background: rgba(10, 26, 52, .62); border-color: var(--sg-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:root[data-theme="royal-navy"] body[data-route="settings"] .bottom-nav { background: rgba(12, 28, 56, .82) !important; background-image: none !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border: 1px solid rgba(243, 213, 138, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3) !important; }
:root[data-theme="royal-navy"] body[data-route="settings"] .bottom-nav::before { opacity: .45; }

/* Home card typography in every theme: Cormorant titles like "Academic Words", "Dictionary" */
#v-settings .group-head .h-card { font: 700 clamp(1.1rem, 6.2vw, 1.3rem)/1.12 var(--serif); letter-spacing: .005em; }
#v-settings.st-split .group-head .h-card { font-size: 1.4rem; }
#v-settings .group-head .summary { font: 500 0.7rem/1.3 var(--sans); }
#v-settings .st-tab { font: 600 0.85rem/1.2 var(--serif); letter-spacing: .01em; }
#v-settings .profile .name { font-weight: 700; }
#v-settings .profile .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#v-settings .profile .who { min-width: 0; }
@media (max-width: 420px) { #v-settings .up-pill { padding: 0 12px; } #v-settings .profile-card .profile { gap: 12px; } }

/* 2026-11-10 phone / tablet audit: section subtitles were cut with "…" ("Core app preferences and display o…").
   They now wrap to at most two lines in every layout. */
#v-settings .group-head .summary { white-space: normal !important; overflow: hidden; text-overflow: clip !important;
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* 2026-11-10: the profile name no longer runs under the Upgrade pill — it stays in its own column and wraps (max 2 lines). */
#v-settings .profile .who { grid-template-columns: minmax(0, 1fr) !important; min-width: 0; }
#v-settings .profile .name { min-width: 0; white-space: normal !important; overflow: hidden; line-height: 1.08;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }

/* 2026-11-11 (owner: "all appearance must have set default"): one Set default key at the end of the Appearance card */
.set-default-row { display: flex !important; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px 14px !important; }
.set-default-row .set-default {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 700 .8rem/1 var(--sans); color: #F3EAD3 !important; background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(226, 190, 114, .6) !important; box-shadow: none !important;
}
.set-default-row .set-default .ic { width: 16px; height: 16px; color: #E2BE72; }
.set-default-row .set-default:hover { border-color: #E2BE72 !important; }
.set-default-row .hint { font-size: .72rem; color: rgba(243, 234, 211, .72); }

/* owner 2026-11-13 (Android photos: "in setting font size consider font and size one line and reading density comfortable
   compact dense only one line view"): the font menu + size stepper and the three density buttons always stay on ONE line —
   they shrink instead of wrapping (Android's text scaling made them wrap on a 360 px phone). */
#v-settings .gx-ctl:has(> .gx-step), #v-settings .gx-ctl:has(> .gx-seg) { flex-wrap: nowrap; gap: 8px; }
#v-settings .gx-ctl > .gx-sel { flex: 0 1 auto; min-width: 86px; }
#v-settings .gx-ctl:has(> .gx-step) .gx-sel select { min-width: 0; width: 100%; padding: 0 30px 0 12px; }
#v-settings .gx-ctl:has(> .gx-step) .gx-sel::after { right: 12px; }
#v-settings .gx-ctl > .gx-step { flex: none; }
#v-settings .gx-seg { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
#v-settings .gx-seg button { flex: 1 1 auto; min-width: 0; white-space: nowrap; padding: 0 clamp(8px, 2.6vw, 14px); }
@media (max-width: 520px) {
  #v-settings .gx-row:not(.gx-switch) .gx-ctl:has(> .gx-seg) { padding-left: 0; }
  #v-settings .gx-ctl > .gx-seg { width: 100%; }
  #v-settings .gx-seg button { font-size: min(0.675rem, 3.4vw); }
  #v-settings .gx-step output { min-width: 54px; padding: 0 6px; }
}
@media (max-width: 400px) {   /* narrow phones: the font row starts at the left edge too, so the font name is never cut */
  #v-settings .gx-row:not(.gx-switch):not(.gx-theme) .gx-ctl { padding-left: 0; }
  #v-settings .gx-ctl > .gx-sel { flex: none; }
}
/* Appearance › Font & size and › Reading density (ReadingPreferences.js): one line too */
#v-settings .gx-ctl.rp-one { justify-content: flex-start; flex-wrap: nowrap; padding-left: 0; }
#v-settings .rp-one-seg .seg { flex-wrap: nowrap; gap: 6px; }
#v-settings .rp-one-seg .seg > label { flex: 1 1 auto; min-width: 0; }
#v-settings .rp-one-seg .seg .opt { display: flex; justify-content: center; align-items: center; width: 100%; white-space: nowrap; padding-left: clamp(8px, 2.6vw, 14px); padding-right: clamp(8px, 2.6vw, 14px); }
@media (max-width: 400px) { #v-settings .rp-one-seg .seg .opt { font-size: min(0.7rem, 3.5vw); } #v-settings .rp-one-seg .seg .opt svg { display: none; } }
/* owner 2026-11-13 (Android phone: "Tablet · Phone · Computer is overlay on gold line"): a value pill never lets its text run
   over its gold edge — it keeps at least its longest word and wraps inside the pill (balanced) when the row is too narrow */
#v-settings .group-body .row-btn .val, #v-settings .group-body .row-static .val {
  flex: 0 0 auto; max-width: 55%; min-width: min-content; white-space: normal; text-wrap: balance; text-align: center; overflow-wrap: normal;   /* the label gives way first */
}
