/* The same control node survives renders and occupies the header's last slot. */
.theme-switcher{position:relative;flex:0 0 38px;width:38px;z-index:85;isolation:isolate}
.topbar{position:relative;z-index:50}
.sidebar{scrollbar-width:thin;scrollbar-color:var(--theme-line,#729f83) transparent}
.sidebar .brand{padding-inline:0;gap:8px}
.sidebar .brand-mark{width:42px;height:42px;flex-basis:42px}
.sidebar .brand-name{font-size:26px}
.theme-switcher .theme-toggle{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:38px;padding:8px;border:1px solid #729f83;border-radius:7px;background:#1c3428;color:#eef8f0;box-shadow:inset 0 1px 0 #ffffff24,0 3px 0 #12231b,0 6px 18px #0003;font-size:12px;font-weight:600;white-space:nowrap}
.theme-toggle svg{width:18px;height:18px;flex-shrink:0}
#theme-toggle [data-theme-icon]{display:none}
#theme-toggle[data-plain-theme="white"] [data-theme-icon="sun"],
#theme-toggle[data-plain-theme="black"] [data-theme-icon="moon"]{display:block}
.theme-switcher .theme-toggle:hover{background:#1c3428;box-shadow:inset 0 1px 0 #ffffff38,0 4px 0 #12231b,0 8px 21px #0004}
:root:is([data-theme="light"],[data-theme="white"]) .theme-switcher .theme-toggle{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line);box-shadow:var(--theme-shadow)}
:root:is([data-theme="light"],[data-theme="white"]) .theme-switcher .theme-toggle:hover{background:var(--theme-hover);box-shadow:var(--theme-shadow)}
:root:is([data-theme="light"],[data-theme="white"]) .theme-toggle small{background:var(--theme-control);border-color:var(--theme-line)}
:root:is([data-theme="dark"],[data-theme="black"]) .theme-switcher .theme-toggle{background:#000;color:var(--theme-ink);border-color:var(--theme-line);box-shadow:var(--theme-shadow)}
:root:is([data-theme="dark"],[data-theme="black"]) .theme-switcher .theme-toggle:hover{background:#000;box-shadow:var(--theme-shadow)}
:root:is([data-theme="dark"],[data-theme="black"]) .theme-toggle small{background:#000;border-color:var(--theme-line)}
.theme-menu{position:absolute;right:0;top:calc(100% + 12px);width:272px;max-width:calc(100vw - 28px);padding:14px;border:1px solid var(--theme-line,#a3e4bb70);border-radius:11px;background:var(--theme-surface,#284737);color:var(--theme-ink,#eef8f0);box-shadow:0 14px 40px #0005;display:grid;gap:9px}
.theme-menu[hidden]{display:none}
.theme-menu-heading{display:flex;flex-direction:column;gap:5px;margin:0 1px 4px}.theme-menu-heading strong{font-size:14px;font-weight:650}.theme-menu-heading small{font-size:11px;color:var(--theme-muted,#b5cebd)}
.theme-menu .theme-option{display:flex;align-items:center;gap:11px;width:100%;border:1px solid var(--theme-line,#a3e4bb35);border-radius:7px;background:var(--theme-control,#203b2d);color:var(--theme-ink,#eef8f0);padding:10px;text-align:left}
.theme-option>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px}.theme-option strong{font-size:13px;font-weight:600}.theme-option small{font-size:10px;color:var(--theme-muted,#b5cebd)}
.theme-menu .theme-option[aria-pressed="true"]{border-color:var(--theme-accent,#b9edc8);box-shadow:inset 0 0 0 1px var(--theme-accent,#b9edc8),0 2px 5px #0002}
.theme-check{color:var(--theme-accent,#b9edc8);font-size:17px;opacity:0}.theme-option[aria-pressed="true"] .theme-check{opacity:1}
.theme-preview{display:block;flex:0 0 38px;width:38px;height:34px;border:1px solid #98a89e;border-radius:5px;position:relative;overflow:hidden}.theme-preview:after{content:'';position:absolute;left:6px;right:6px;top:8px;height:5px;border-radius:2px;box-shadow:0 9px 0 currentColor;background:currentColor;opacity:.55}.theme-preview.forest{background:#284737;color:#b6e3bd}.theme-preview.light{background:#fff;color:#6b8275}.theme-preview.dark{background:#000;color:#bbc7bf}
.theme-feedback{position:absolute;right:0;top:100%;width:220px;padding:8px 11px;border:1px solid var(--theme-line,#729f83);border-radius:7px;background:var(--theme-surface,#1c3428);font-size:11px;line-height:1.7;color:var(--theme-muted,#d2dfba);margin:8px 0 0}.theme-feedback[hidden]{display:none}

/* Pure modes change the UI canvas; content artwork keeps its own colours. */
:root:is([data-theme="light"],[data-theme="white"]){filter:none;color-scheme:light;background:#e5e7ea;color:#202020;--theme-surface:#e5e7ea;--theme-secondary:#dce0e5;--theme-control:#eff0f2;--theme-hover:#f5f6f7;--theme-ink:#202020;--theme-muted:#595959;--theme-line:#b5bcc4;--theme-accent:#303030;--theme-accent-bg:#d7dce2;--theme-button:#f0f1f3;--theme-button-ink:#202020;--theme-error:#a52c28;--theme-shadow:inset 0 1px 0 #ffffffb3,0 2px 0 #a8b0ba,0 4px 9px #1723321a;--mint:#303030;--panel:#e5e7ea;--muted:#595959;--border:#b5bcc4}
:root:is([data-theme="dark"],[data-theme="black"]){filter:none;color-scheme:dark;background:#000;color:#eee;--theme-surface:#000;--theme-secondary:#0a0a0a;--theme-control:#000;--theme-hover:#181818;--theme-ink:#eee;--theme-muted:#b8b8b8;--theme-line:#444;--theme-accent:#eee;--theme-accent-bg:#101010;--theme-button:#000;--theme-button-ink:#eee;--theme-error:#f0b7aa;--theme-shadow:inset 0 1px 0 #ffffff24,0 2px 0 #222,0 4px 9px #0006;--mint:#eee;--panel:#000;--muted:#b8b8b8;--border:#444}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body{background:var(--theme-surface);color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .world-backdrop{display:none}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .time-notice{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .time-notice-spark{color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .time-notice button{color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .time-notice button:hover{background:var(--theme-accent-bg);color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.sidebar,.topbar,.steps,.chat-panel,.plan-panel,.template-card,.library-card,.faq,.personal-card,.profile-guest,.modal,.code-layout,.plan-visual,.checkin-entry,.login-story,.personal-cover,.install-step,.interactive-guide,.tour-card,.bottom-guide,.guide-content,.guide-toc){background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.creation-template,.create-box,.version-card,.reference-preview,.texture-upload-status,.draft-scope,.palette-editor,.palette-preview,.weapon-type-group,.accessory-type-option,.search-result){background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(h1,h2,h3,.creation-template strong,.personal-account-row>strong,.search-result span,.texture-drop strong,.wechat-placeholder strong){color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.page-heading p,.section-title p,.step small,.template-body p,.template-meta,.template-meta .difficulty,.creation-template small,.composer-hint,.library-info p,.plan-intro,.field-label,.bottom-guide p,.brand-sub,.nav-label,.nav-count,.version-card small,.profile small,.crumb,.crumb strong,.eyebrow,.idea-chips>span,.workspace-head p,.saved-label,.workflow-step,.field small,.plan-status,.result-banner p,.file-list h3,.code-title,.file-button,.notice,.guide-content p,.guide-content li,.faq p,.modal p,.search-result small,.search-empty,.empty p,.template-scroll-hint,.pending-plan-body>p,.open-creation-note,.emerging-idea p,.appearance-placeholder,.palette-disclaimer,.palette-row label,.palette-status,.palette-entry>span,.weapon-type-group small,.accessory-type-option small,.texture-modal p,.texture-drop span,.texture-drop input,.texture-panel p,.texture-panel small,.texture-format-note,.texture-color-list label,.login-story p,.login-story>small,.login-perk,.login-subtitle,.login-privacy,.login-skip,.login-demo-note,.account-stats span,.account-logout,.checkin-entry p,.checkin-rule,.personal-identity>p,.profile-field-hint,.profile-footnote,.personal-account-row>span,.personal-signout,.tour-card p,.tour-hint,footer){color:var(--theme-muted)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body .creation-template>span:not(.creation-template-icon){color:var(--theme-muted)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.typing,.season,.depth-strip,.texture-panel .section-title>span,.plan-visual:after){color:var(--theme-muted)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body .version-card>div{color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.checkin-entry-icon,.wechat-title>svg,.wechat-placeholder>svg,.login-perk svg,.idea-orbit svg,.draft-symbol,.empty>svg,.empty-icon,.accessory-type-option strong svg){color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body .notice{background:var(--theme-secondary);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.workflow,.empty,.library-art,.palette-entry,.emerging-idea,.message.user .message-text,.guide-content code){background:var(--theme-secondary);color:var(--theme-ink);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.result-banner,.guide-icon,.checkin-entry-icon,.workflow-step.active b){background:var(--theme-accent-bg);color:var(--theme-accent);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .workflow-step b{border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .workflow-step:not(:last-child):after{background:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .workspace-head h1 span{color:var(--theme-muted)!important}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.message-text,.message.user .message-text,.message-name,.code-area pre,.onboard-point,.personal-card-title,.texture-panel strong,.texture-panel h3){color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.page-heading h1 span,.nav-item svg,.creation-template-icon,.creation-template strong svg,.template-body h3 svg,.guide-icon,.section-title h2 svg,.workflow-step.active,.panel-heading svg,.palette-editor summary,.account-emblem,.login-leaf,.account-stats strong,.inspiration-balance,.inspiration-balance small,.texture-drop>svg,.profile-save-status,.weapon-picker-footer a,.guide-content a,.faq a,.tour-eyebrow,.theme-check){color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.secondary,.text-button,.icon-button,.nav-item,.chip,.filter,.file-button,.search-button,.account-login-button,.chat-retry,.texture-panel-actions .secondary){color:var(--theme-ink);background:var(--theme-control);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.secondary,.text-button,.icon-button,.nav-item,.chip,.filter,.file-button,.search-result,.account-login-button,.creation-template,.accessory-type-option):not(:disabled):hover{color:var(--theme-ink);background:var(--theme-hover);border-color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.nav-item.active,.nav-item[data-nav="guide"],.filter.active,.file-button.active,.chip.active,.account-demo,.step-number,.message-avatar,.avatar,.mode-badge,.tiny-tag,.settings-state,.wechat-placeholder,.account-emblem,.personal-avatar,.texture-drop,.login-demo-note,.inspiration-balance){background:var(--theme-accent-bg);color:var(--theme-accent);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.new-button,.primary,.wechat-button,.send-button,[data-action="onboard"],.tour-card [data-tour-next]){background:var(--theme-button);color:var(--theme-button-ink);border-color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.new-button,.primary,.wechat-button,.send-button,[data-action="onboard"]):not(:disabled):hover{background:var(--theme-button);color:var(--theme-button-ink);box-shadow:inset 0 1px 0 #fff5,0 3px 0 #0003,0 6px 14px #0002}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(input:not([type="color"]):not([type="file"]),select,textarea){background:var(--theme-control);color:var(--theme-ink);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(input,textarea)::placeholder{color:var(--theme-muted);opacity:.85}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.palette-row input[type="text"],.texture-color-list input[type="text"],.profile-name-editor input,.search-input-wrap input){background:var(--theme-control);color:var(--theme-ink);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.checkin-day,.texture-color-list label,.tour-card [data-tour-back],.tour-card [data-tour-skip],.guide-route span){background:var(--theme-secondary);color:var(--theme-muted);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.checkin-day.checked,.checkin-day.today){background:var(--theme-accent-bg);color:var(--theme-accent);border-color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body .account-error{color:var(--theme-error)!important}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body .toast{background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body a[href]{text-shadow:none}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .creation-template-grid::-webkit-scrollbar-track{background:var(--theme-secondary)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .creation-template-grid::-webkit-scrollbar-thumb{background:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(button,a[href],summary,[role="button"]):focus-visible{outline-color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .tour-frame{border-color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="white"]) .texture-grid,:root:is([data-theme="light"],[data-theme="white"]) .reference-preview img{background:repeating-conic-gradient(#e5e9e6 0 25%,#fff 0 50%) 0 0/16px 16px}
:root:is([data-theme="dark"],[data-theme="black"]) .texture-grid,:root:is([data-theme="dark"],[data-theme="black"]) .reference-preview img{background:repeating-conic-gradient(#181818 0 25%,#000 0 50%) 0 0/16px 16px}
/* Local reading scrim only: the artwork beyond the copy keeps its original colors. */
:root:is([data-theme="light"],[data-theme="white"]) .hero-slide:after{background:linear-gradient(90deg,#fffffff5 0%,#ffffffeb 24%,#ffffff80 34%,transparent 47%)}
@media(max-width:680px){:root:is([data-theme="light"],[data-theme="white"]) .hero-slide:after{background:linear-gradient(180deg,#fffffff5 0%,#ffffffeb 44%,#ffffff80 56%,transparent 72%)}}
:root:is([data-theme="dark"],[data-theme="black"]) .hero-slide:after{background:linear-gradient(90deg,#000f 0%,#000e 24%,#0008 47%,#0001 85%),linear-gradient(0deg,#0009,transparent 55%)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero-slide .hero-content{color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero-slide h2 span{color:var(--theme-accent)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero-slide p{color:var(--theme-muted)}
/* Keep all interactive UI monochrome, including less common dialogs and states. */
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero{background:var(--theme-surface);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(button,summary,[role="button"]){background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line);box-shadow:var(--theme-shadow)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(button,summary,[role="button"]):not(:disabled):hover{background:var(--theme-hover);color:var(--theme-ink);border-color:var(--theme-accent);box-shadow:var(--theme-shadow)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(button,summary,[role="button"]):not(:disabled):active{box-shadow:inset 0 1px 3px #0003}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(button,summary,[role="button"]):disabled{background:var(--theme-secondary);color:var(--theme-muted);border-color:var(--theme-line);box-shadow:none}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.theme-toggle,.theme-toggle:hover,.theme-toggle small){background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line);box-shadow:var(--theme-shadow)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.bottom-guide [data-nav="guide"],.section-title [data-action="install-tour"],.account-modal .modal-close){background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line);box-shadow:var(--theme-shadow)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.idea-orbit,.hero-pagination,.texture-grid,.onboard-dots span,.tour-progress){background:var(--theme-secondary);border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.hero-dot span,.theme-preview){border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero-dot{background:transparent!important;box-shadow:none!important}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero-dot span{background:var(--theme-surface)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .hero-dot[aria-pressed="true"] span{background:var(--theme-accent);border-color:var(--theme-accent);box-shadow:0 0 6px #8885}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.tour-progress i,.onboard-dots span.active,.tour-frame:before,.tour-frame:after){background:var(--theme-accent);border-color:var(--theme-accent);box-shadow:none}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .tour-frame{box-shadow:0 0 0 4px #8882,0 0 24px #8884;animation:none}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) :is(.tour-shade,.modal-backdrop){background:#000b}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.emerging-idea strong,.guide-toc h3,.guide-toc a,.faq summary,.step strong,.install-step>span,.install-step a,.personal-card-title>svg,.search-result svg,.search-input-wrap svg,.onboard-point svg,.palette-preview>svg:not(.pixel-icon),.library-art>svg:not(.pixel-icon),.season svg,.accessory-picker .accessory-type-note,.wechat-placeholder span,.account-kicker,.tour-eyebrow span:last-child,.palette-editor summary>span,.palette-editor summary:after){color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.weapon-type-group h3,.weapon-type-options .chip,.upload-image-button){color:var(--theme-ink)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) body :is(.panel-heading,.chat-composer,.template-meta,.profile,.template-body,.file-list,.code-title,.palette-editor,.palette-entry,.palette-dialog-actions,.weapon-type-group,.weapon-picker-footer,.open-creation-note,.texture-color-list label,.search-button kbd){border-color:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .creation-template-grid{scrollbar-color:var(--theme-muted) var(--theme-secondary)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .creation-template-grid::-webkit-scrollbar-thumb{border-color:var(--theme-secondary)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .depth-strip i{background:var(--theme-line)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .depth-strip b{color:var(--theme-muted)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .dot{background:var(--theme-accent);box-shadow:none}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .texture-grid:after{background-image:linear-gradient(#8882 1px,transparent 1px),linear-gradient(90deg,#8882 1px,transparent 1px)}
:root:is([data-theme="light"],[data-theme="dark"],[data-theme="mushroom"],[data-theme="hallow"],[data-theme="white"],[data-theme="black"]) .palette-row input[type="color"]{background:var(--theme-surface);border-color:var(--theme-line)}
@media(max-width:680px){
  .theme-switcher .theme-toggle{width:38px;min-height:38px;padding:8px}
  .theme-menu{top:calc(100% + 10px)}
}

/* Plain modes have no biome scene. Keep white separate from gray marble. */
:root[data-theme="white"]{
  background:#fff;--theme-surface:#fff;--theme-secondary:#f5f5f5;
  --theme-control:#fff;--theme-hover:#f4f4f4;--theme-accent-bg:#ededed;
  --panel:#fff;--control-edge:#b7b7b7;--control-shadow:#0002;
}
:root[data-theme="black"]{--control-edge:#333;--control-shadow:#000a}
.theme-preview.white{background:#fff;color:#6b6b6b}
.theme-preview.black{background:#000;color:#bcbcbc}
.theme-preview.mushroom{background:#0c142b;color:#a5c6ff}
.theme-preview.hallow{background:#3c2d50;color:#e7baff}
.personal-profile>.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.profile-theme-switcher{flex-shrink:0;align-self:center}
.profile-theme-switcher .theme-menu{max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:680px){.profile-theme-switcher .theme-menu{width:260px;max-height:calc(100dvh - 200px)}}
