/* Appearance layer: glass optics and motion remain in their original layers. */
:root{--ink:var(--theme-ink);--muted:var(--theme-muted);--bg:var(--theme-page);--soft:var(--accent-soft);--line:var(--theme-line)}
body{background:var(--theme-page);color:var(--theme-ink)}
.shell{background:var(--theme-page)}
.modal-header,.modal-foot{background:var(--theme-page);color:var(--theme-ink);border-color:var(--theme-line)}
.modal-header h2,.close{color:var(--theme-ink)}
.stat,.account-links button,.checkout-item,.ticket,.filter-box,.channel-onboard,.report-card,.close{background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-line)}
.field input,.field select,.field textarea,.search,.filter-bottom select{background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-line)}
.topbar,.topbar.is-scrolled{background:var(--theme-glass);color:var(--theme-ink)}
.mobile-brand,.app-wordmark,.intro-logo,.glass-heading em,.glass-shortcuts button>span,.glass-shortcuts button:nth-child(2)>span,.glass-compact-copy .price,.glass-compact-copy .price>span,.glass-circle,.price,.ticket-number,.partner-entry>button,.channel-tools svg,.group-rules strong,.group-rules>div:nth-child(2) strong{color:var(--accent-ink)}
.topbar .icon-button i{background:var(--accent)}
.primary,.book-small,.glass-button,.hero .primary,.glass-hero-caption .primary{background:linear-gradient(130deg,#ffffff24,#ffffff00 70%),var(--accent);color:var(--on-accent);border-color:var(--theme-line);text-shadow:none;box-shadow:inset 0 1px 1px #ffffff80,0 4px 12px #00000015}
.primary:hover,.book-small:hover,.hero .primary:hover,.glass-hero-caption .primary:hover{background:linear-gradient(130deg,#ffffff38,#ffffff00 70%),var(--accent);color:var(--on-accent)}
.secondary,.outline,.profile-banner .outline{color:var(--accent-ink);background:var(--theme-card);border-color:var(--theme-line)}
#mobile-nav{background:linear-gradient(135deg,#ffffff16,transparent),var(--theme-glass);border-color:var(--theme-line)}
#mobile-nav:before{background:linear-gradient(135deg,#ffffff30,var(--accent-wash));border-color:var(--theme-line)}
#mobile-nav .mobile-link{color:var(--theme-muted);text-shadow:none}#mobile-nav .mobile-link.active{color:var(--accent-ink)}
.profile-avatar,.avatar,.success-symbol,.badge,.install-choice{color:var(--accent-ink);background:var(--accent-soft)}
.group-promo,.group-rules>div,.group-rules>div:nth-child(2),.partner-entry,.glass-together{background:linear-gradient(130deg,var(--accent-soft),var(--theme-card));border-color:var(--theme-line)}
.partner-card{background:var(--accent);color:var(--on-accent)}.partner-card p,.partner-card small,.partner-card .badge{color:var(--on-accent)}
.profile-banner,.glass-compact-card,.modal,.modal.wide{background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-line)}
.profile-banner h2,.glass-shortcuts button b,.app-intro,.channel-stats strong{color:var(--theme-ink)}
.glass-heading p,.glass-kicker,.glass-compact-copy p,.glass-compact-copy>small,.glass-together p,.profile-banner p,.quick-entry button small{color:var(--theme-muted)}
.tabs button.active,.filters button.active{background:var(--accent-soft);color:var(--accent-ink)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--accent-ink)}
.theme-intro{color:var(--theme-muted);line-height:1.8}.theme-preview{display:flex;align-items:center;justify-content:space-between;padding:18px;border:1px solid var(--theme-line);border-radius:20px;background:var(--theme-glass);margin:16px 0}.theme-preview>span{font-size:21px;font-weight:600;color:var(--accent-ink)}.theme-preview .primary:disabled{opacity:1;cursor:default}
.theme-options{display:grid;grid-template-columns:1fr;gap:8px}.theme-option{display:flex;align-items:center;gap:13px;width:100%;min-height:72px;padding:12px;text-align:left;background:var(--theme-glass);border:1px solid var(--theme-line);border-radius:18px;color:var(--theme-ink);transition:background .2s,border-color .2s,transform .2s}.theme-option[aria-pressed="true"]{border-color:var(--accent-ink);background:var(--accent-soft)}.theme-option:active{transform:scale(.985)}.theme-swatch{width:38px;height:38px;flex-shrink:0;border-radius:50%;background:var(--swatch);border:1px solid #7774;box-shadow:inset 0 1px 2px #fff6,0 2px 6px #0001;display:grid;place-items:center}.theme-option strong,.theme-option small{display:block}.theme-option strong{font-size:14px}.theme-option small{font-size:11px;margin-top:5px;color:var(--theme-muted)}.theme-check{display:none;color:#fff;background:#252525a0;border-radius:50%;width:20px;height:20px;text-align:center}.theme-option[aria-pressed="true"] .theme-check{display:block}.theme-selected{margin-left:auto;font-size:11px;color:var(--accent-ink);visibility:hidden;white-space:nowrap}.theme-option[aria-pressed="true"] .theme-selected{visibility:visible}.theme-note{font-size:12px;color:var(--theme-muted);line-height:1.9;margin:18px 0}.appearance-settings{display:grid;gap:12px}.appearance-settings>button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;text-align:left;border:1px solid var(--theme-line);background:var(--theme-glass);border-radius:17px;padding:16px;color:var(--theme-ink)}.appearance-settings small{display:block;margin-top:7px;color:var(--theme-muted);font-size:11px}
html[data-theme-mode="dark"] .activity-card,html[data-theme-mode="dark"] .group-card,html[data-theme-mode="dark"] .order-card,html[data-theme-mode="dark"] .channel-order,html[data-theme-mode="dark"] .channel-stats>div,html[data-theme-mode="dark"] .channel-tools button,html[data-theme-mode="dark"] .info-grid>div,html[data-theme-mode="dark"] .account-links,html[data-theme-mode="dark"] .notice,html[data-theme-mode="dark"] input,html[data-theme-mode="dark"] select,html[data-theme-mode="dark"] textarea,html[data-theme-mode="dark"] .filters{background:#28292e;color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme-mode="dark"] .meta,html[data-theme-mode="dark"] .body-text,html[data-theme-mode="dark"] .note,html[data-theme-mode="dark"] .footer,html[data-theme-mode="dark"] .section-head .text-link,html[data-theme-mode="dark"] .intro-links a,html[data-theme-mode="dark"] .intro-links button{color:var(--theme-muted)}
html[data-theme-mode="dark"] .glass-shortcuts button>span,html[data-theme-mode="dark"] .topbar .icon-button,html[data-theme-mode="dark"] .topbar .avatar{background:#ffffff0c;border-color:var(--theme-line);color:var(--accent-ink)}
@media(prefers-reduced-motion:reduce){.theme-option{transition:none}}
