/* Theme 1 is the original approved palette. Alternative palettes change paint, never dimensions. */
html:not(.js) .theme-picker{display:none}
.theme-picker{position:relative;flex:none}
.theme-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 9px;border-radius:999px;font-size:.78rem;font-weight:500;white-space:nowrap;transition:background .3s,color .3s}
.theme-trigger:hover,.theme-trigger[aria-expanded=true]{background:var(--paper-2);color:var(--plum)}
.theme-menu{position:absolute;right:0;top:calc(100% + 10px);width:272px;padding:8px;border-radius:20px;border:1px solid var(--line-2);background:var(--card);color:var(--ink);box-shadow:var(--sh-2);animation:themeMenuIn .28s var(--ease);text-align:left}
.theme-choice{display:flex;align-items:center;gap:10px;width:100%;min-height:66px;padding:10px;border-radius:12px;text-align:left;transition:background .25s,color .25s}
.theme-choice:hover,.theme-choice:focus-visible,.theme-choice[aria-checked=true]{background:var(--paper-2)}
.theme-choice>span:nth-child(2){flex:1}.theme-choice b{display:block;font-size:.95rem}.theme-choice small{display:block;font-size:.76rem;color:var(--ink-2)}
.theme-swatch{display:flex;gap:2px;border:1px solid var(--line-2);border-radius:10px;padding:3px;flex:none;overflow:hidden}
.theme-swatch i{display:block;width:9px;height:24px;border-radius:5px}
.theme-swatch--pastel i:nth-child(1){background:#fcf8f6}.theme-swatch--pastel i:nth-child(2){background:#e3dcf1}.theme-swatch--pastel i:nth-child(3){background:#6b4a78}
.theme-swatch--contrast i:nth-child(1){background:#17121d}.theme-swatch--contrast i:nth-child(2){background:#f5eff9}.theme-swatch--contrast i:nth-child(3){background:#bfa4d6}
.theme-swatch--blue i:nth-child(1){background:#1262bb}.theme-swatch--blue i:nth-child(2){background:#fff}.theme-swatch--blue i:nth-child(3){background:#071526}
.theme-check{opacity:0;color:var(--plum);font-weight:700}.theme-choice[aria-checked=true] .theme-check{opacity:1}
.theme-storage-note{padding:10px;font-size:.84rem;color:var(--ink-2)}
@keyframes themeMenuIn{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
@media(max-width:760px){.hdr__bar{gap:16px}.theme-trigger{padding-inline:7px}.theme-menu{width:262px}}
@media(min-width:1025px) and (max-width:1180px){.gnb__link{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.theme-menu{animation:none}.theme-choice,.theme-trigger{transition:none}}
@media print{.theme-picker{display:none!important}}
@media screen{
 :root{--ink-3:#706676;--theme-surface-rgb:255,255,255;--theme-paper-rgb:252,248,246;--theme-on-primary:#fff;--theme-primary-hover:#62416f;--theme-error-bg:#fff0f1;--theme-error-ink:#973b49}
 .ftr__bottom{color:rgba(255,255,255,.75)}
 html[data-theme=contrast]{
  color-scheme:dark;--paper:#17121d;--paper-2:#241d2d;--card:#302638;--ink:#f5eff9;--ink-2:#ded3e6;--ink-3:#bdb0c8;--line:#51445e;--line-2:#927ea5;
  --plum:#d3b8ed;--plum-2:#c5acd9;--plum-deep:#382448;--gold:#d8bd8c;--gold-soft:#e3cdab;--blush:#4a2e3a;--peach:#4c352d;--lilac:#42334e;--butter:#494029;--sage:#2e443a;--sky:#2d3e51;
  --theme-surface-rgb:48,38,56;--theme-paper-rgb:23,18,29;--theme-primary-hover:#5c3b73;--theme-error-bg:#4b2631;--theme-error-ink:#ffdce2;
 }
 html[data-theme=blue]{
  color-scheme:light;--paper:#f4f8ff;--paper-2:#e4edf9;--card:#fff;--ink:#071526;--ink-2:#263e59;--ink-3:#46617e;--line:#c8d8eb;--line-2:#6d89ad;
  --plum:#125eaf;--plum-2:#1b5d9b;--plum-deep:#071d38;--gold:#2872b4;--gold-soft:#bfdbfb;--blush:#dcecff;--peach:#e7effa;--lilac:#d4e5fa;--butter:#deebf9;--sage:#dceaf1;--sky:#c9e1fc;
  --theme-surface-rgb:255,255,255;--theme-paper-rgb:244,248,255;--theme-primary-hover:#125eaf;
 }
 html[data-theme]:not([data-theme=pastel]) .hdr::before{background:rgba(var(--theme-paper-rgb),.94)}
 html[data-theme]:not([data-theme=pastel]) .hdr{background:rgba(var(--theme-paper-rgb),.88);color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .hdr .brand__mark{color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .brand__txt i{opacity:.9}
 html[data-theme]:not([data-theme=pastel]) .mega::before{background:rgba(var(--theme-paper-rgb),.97)}
 html[data-theme]:not([data-theme=pastel]) .drawer__panel{background:linear-gradient(145deg,var(--paper),var(--paper-2))}
 html[data-theme]:not([data-theme=pastel]) .btn--primary::before{background:var(--theme-primary-hover)}
 html[data-theme]:not([data-theme=pastel]) .btn--primary{color:var(--theme-on-primary)}
 html[data-theme]:not([data-theme=pastel]) .btn--line,html[data-theme]:not([data-theme=pastel]) .btn--glass{background:rgba(var(--theme-surface-rgb),.7);border-color:var(--line-2);color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .btn--line:hover,html[data-theme]:not([data-theme=pastel]) .btn--glass:hover{background:var(--card)}
 html[data-theme]:not([data-theme=pastel]) .mega__col.is-hover,html[data-theme]:not([data-theme=pastel]) .dgroup,html[data-theme]:not([data-theme=pastel]) .subnav,html[data-theme]:not([data-theme=pastel]) .hctrl,html[data-theme]:not([data-theme=pastel]) .dots span,html[data-theme]:not([data-theme=pastel]) .pnl,html[data-theme]:not([data-theme=pastel]) .lcard,html[data-theme]:not([data-theme=pastel]) .tcard,html[data-theme]:not([data-theme=pastel]) .ltools-bar,html[data-theme]:not([data-theme=pastel]) .biz__cat,html[data-theme]:not([data-theme=pastel]) .hero__ch2ch{background:rgba(var(--theme-surface-rgb),.92);border-color:var(--line);color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .rbtn,html[data-theme]:not([data-theme=pastel]) .drawer__search,html[data-theme]:not([data-theme=pastel]) .pill,html[data-theme]:not([data-theme=pastel]) .find,html[data-theme]:not([data-theme=pastel]) .bcard__sheet,html[data-theme]:not([data-theme=pastel]) .sheetcard,html[data-theme]:not([data-theme=pastel]) .pdfbox,html[data-theme]:not([data-theme=pastel]) .sidebox,html[data-theme]:not([data-theme=pastel]) .files__row,html[data-theme]:not([data-theme=pastel]) .attach,html[data-theme]:not([data-theme=pastel]) .agenda__it,html[data-theme]:not([data-theme=pastel]) .person,html[data-theme]:not([data-theme=pastel]) .faq__it,html[data-theme]:not([data-theme=pastel]) .regi__box,html[data-theme]:not([data-theme=pastel]) .mapcard,html[data-theme]:not([data-theme=pastel]) .vinfo__it,html[data-theme]:not([data-theme=pastel]) .lcard2,html[data-theme]:not([data-theme=pastel]) .lrules,html[data-theme]:not([data-theme=pastel]) .lstep__n,html[data-theme]:not([data-theme=pastel]) .lpray__c,html[data-theme]:not([data-theme=pastel]) .lguide__b,html[data-theme]:not([data-theme=pastel]) .biz,html[data-theme]:not([data-theme=pastel]) .empty__ic,html[data-theme]:not([data-theme=pastel]) .board-form{background:var(--card);border-color:var(--line);color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .pill.is-on,html[data-theme]:not([data-theme=pastel]) .subnav a.is-on{background:var(--plum-deep);color:#fff;border-color:var(--plum)}
 html[data-theme]:not([data-theme=pastel]) .hctrl__b:hover,html[data-theme]:not([data-theme=pastel]) .rbtn:hover,html[data-theme]:not([data-theme=pastel]) .rbtn--dark:hover,html[data-theme]:not([data-theme=pastel]) .hist__nav a,html[data-theme]:not([data-theme=pastel]) .sres a:hover,html[data-theme]:not([data-theme=pastel]) .welc__a:hover,html[data-theme]:not([data-theme=pastel]) .lq__b:hover{background:var(--card);color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .fan__play,html[data-theme]:not([data-theme=pastel]) .scard__play,html[data-theme]:not([data-theme=pastel]) .player__btn,html[data-theme]:not([data-theme=pastel]) .pages__nav,html[data-theme]:not([data-theme=pastel]) .pslide__zoom,html[data-theme]:not([data-theme=pastel]) .totop{background:var(--card);color:var(--ink);border-color:var(--line-2)}
 html[data-theme]:not([data-theme=pastel]) .now{background:linear-gradient(120deg,var(--paper),var(--lilac),var(--paper-2),var(--sky));background-size:300% 300%}
 html[data-theme]:not([data-theme=pastel]) .life{background:linear-gradient(180deg,var(--paper),var(--paper-2))}
 html[data-theme]:not([data-theme=pastel]) .life__art{background:linear-gradient(160deg,var(--lilac),var(--paper-2),var(--sage))}
 html[data-theme]:not([data-theme=pastel]) .word__shell{background:var(--plum-deep)}
 html[data-theme]:not([data-theme=pastel]) .word__shell::before{background:radial-gradient(60% 70% at 15% 10%,var(--plum-deep),transparent 70%),linear-gradient(160deg,var(--plum-deep),#1b2539)}
 html[data-theme]:not([data-theme=pastel]) .poster,html[data-theme]:not([data-theme=pastel]) .bcard__mock,html[data-theme]:not([data-theme=pastel]) .wgroup,html[data-theme]:not([data-theme=pastel]) .lstep--word .lstep__main{background:radial-gradient(90% 70% at 85% 0%,var(--tone,var(--paper-2)),transparent 70%),var(--card)}
 html[data-theme]:not([data-theme=pastel]) .lq.is-done .lq__b{background:linear-gradient(90deg,var(--sage),var(--card))}
 html[data-theme]:not([data-theme=pastel]) .lqs--one .lq__b,html[data-theme]:not([data-theme=pastel]) .lmine-sum li,html[data-theme]:not([data-theme=pastel]) .lfeat__s{background:rgba(var(--theme-surface-rgb),.9)}
 html[data-theme]:not([data-theme=pastel]) .vision__art{background:radial-gradient(70% 50% at 50% 35%,var(--sky),transparent 70%),linear-gradient(180deg,var(--lilac),var(--paper-2))}
 html[data-theme]:not([data-theme=pastel]) .biz__media{background:linear-gradient(135deg,var(--tone,var(--sky)),var(--card))}
 html[data-theme]:not([data-theme=pastel]) .fld input,html[data-theme]:not([data-theme=pastel]) .fld select,html[data-theme]:not([data-theme=pastel]) .fld textarea,html[data-theme]:not([data-theme=pastel]) .lmine select,html[data-theme]:not([data-theme=pastel]) .board-form input:not([type=checkbox]):not([type=hidden]),html[data-theme]:not([data-theme=pastel]) .board-form select,html[data-theme]:not([data-theme=pastel]) .board-form textarea{background:var(--card);color:var(--ink);border-color:var(--line-2)}
 html[data-theme]:not([data-theme=pastel]) input::placeholder,html[data-theme]:not([data-theme=pastel]) textarea::placeholder{color:var(--ink-3);opacity:1}
 html[data-theme]:not([data-theme=pastel]) .board-note--error{background:var(--theme-error-bg);color:var(--theme-error-ink)}
 html[data-theme]:not([data-theme=pastel]) .tabbar{background:rgba(var(--theme-paper-rgb),.96)}
 html[data-theme]:not([data-theme=pastel]) .tabbar .tabbar__ch2ch,html[data-theme]:not([data-theme=pastel]) .tabbar .tabbar__ch2ch .ic{color:var(--ink)}
 html[data-theme]:not([data-theme=pastel]) .pslide__frame{background:rgba(var(--theme-surface-rgb),.6);border-color:var(--line-2)}
 html[data-theme]:not([data-theme=pastel]) .theme-trigger:hover,html[data-theme]:not([data-theme=pastel]) .theme-trigger[aria-expanded=true]{background:var(--paper-2)}
 html[data-theme=contrast] .slide .slide__veil{background:linear-gradient(180deg,rgba(23,18,29,.8),rgba(23,18,29,.75) 45%,rgba(23,18,29,.78) 80%,var(--paper))}
 html[data-theme=contrast] .slide .pslide__veil{background:linear-gradient(180deg,rgba(23,18,29,.75),rgba(23,18,29,.62) 45%,var(--paper))}
 html[data-theme=contrast] .slide__content{color:var(--ink)}
 html[data-theme=contrast] .slide__sub,html[data-theme=contrast] .slide__eyebrow{color:var(--ink-2)}
 html[data-theme=contrast] .slide__title{text-shadow:0 2px 16px rgba(0,0,0,.6)}
 html[data-theme=contrast] .hero__scroll{border-color:var(--ink-2)}
 html[data-theme=contrast] .ltable td,html[data-theme=contrast] .ltable th{border-color:var(--line)}
 html[data-theme=blue] .qguide{background:linear-gradient(120deg,#071526,#103b70)}
 html[data-theme=blue] .invite{background:linear-gradient(120deg,#071526,#1262bb)}
 html[data-theme=blue] .mosaic__more{background:#125eaf}
 html[data-theme=contrast] .qguide,html[data-theme=contrast] .invite{background:linear-gradient(120deg,#25192f,#382448)}
}

/* Readability: semantic foregrounds and surfaces must change together. Paint only. */
@media screen{
 :root{--ink-3:#625869;--theme-accent-ink:#72517e}
 html[data-theme=contrast]{--ink-3:#bdb0c8;--theme-accent-ink:#d3b8ed}
 html[data-theme=blue]{--ink-3:#46617e;--theme-accent-ink:#125eaf}
 .eyebrow,.lstep__k,.lstep__lb,.bcard__meta{color:var(--theme-accent-ink)}
 .greet__mono,.person__mono{color:var(--ink-2)}
 input::placeholder,textarea::placeholder{color:var(--ink-3);opacity:1}
 html[data-theme]:not([data-theme=pastel]) .lfeat{
  background:linear-gradient(125deg,var(--lilac),var(--blush) 55%,var(--butter));color:var(--ink)
 }
 html[data-theme]:not([data-theme=pastel]) .lfeat__bg>span:nth-child(1){background:radial-gradient(circle,rgba(var(--theme-surface-rgb),.85),rgba(var(--theme-surface-rgb),0) 65%)}
 html[data-theme]:not([data-theme=pastel]) .lfeat__bg>span:nth-child(2){background:radial-gradient(circle,var(--lilac),transparent 65%)}
 html[data-theme=contrast] .drawer__search,html[data-theme=contrast] .find,html[data-theme=contrast] .sheet__field{background:var(--card);color:var(--ink)}
 html[data-theme=contrast] .lmine,html[data-theme=contrast] .lq__n,html[data-theme=contrast] .lmine-sum__h b,html[data-theme=contrast] .mapcard__art,html[data-theme=contrast] .mapcard__mark{color:var(--ink)}
 html[data-theme=contrast] .empty{background:radial-gradient(60% 70% at 80% 0%,var(--lilac),transparent 75%),var(--paper-2)}
 html[data-theme]:not([data-theme=pastel]) .sheetcard,html[data-theme]:not([data-theme=pastel]) .sidebox,html[data-theme]:not([data-theme=pastel]) .files__row,html[data-theme]:not([data-theme=pastel]) .attach,html[data-theme]:not([data-theme=pastel]) .agenda__it,html[data-theme]:not([data-theme=pastel]) .regi__box,html[data-theme]:not([data-theme=pastel]) .person,html[data-theme]:not([data-theme=pastel]) .faq__it,html[data-theme]:not([data-theme=pastel]) .mapcard,html[data-theme]:not([data-theme=pastel]) .bcard__sheet{background:var(--card);color:var(--ink)}
 html[data-theme=contrast] .ltable tr.is-week td,html[data-theme=contrast] .ltable--wide tr.is-week{background:var(--butter)}
 html[data-theme=contrast] .ltable tr.is-mine td,html[data-theme=contrast] .ltable--wide tr.is-mine{background:var(--lilac)}
 .lguide.has-mine tr[data-cells]:not(.is-mine) td{opacity:1;color:var(--ink-2)}
}

/* Public QA 2026-10-15: readable labels over all supported theme surfaces.
   Preserve motion, content, layout breakpoints and operating data. */
html[data-theme] .fbadge { color: var(--ink); }
html[data-theme]:not([data-theme=blue]) .mosaic__more { background: #52634a; }
html[data-theme]:not([data-theme=blue]) .mosaic__more:hover { background: var(--plum-deep); }
html[data-theme] .player__hint { background: #2a2431; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
html[data-theme] .acard__n { background: rgba(42, 36, 49, .8); }
html[data-theme] .files__t { white-space: normal; overflow-wrap: anywhere; }
