html[data-landons-theme]{--hub-bg:var(--theme-base);--hub-surface:var(--theme-surface);--hub-edge:var(--theme-edge);--hub-blue:var(--theme-accent);--hub-text:var(--theme-ink);--hub-muted:var(--theme-muted);--blue:var(--theme-accent);--edge:var(--theme-edge);--panel:var(--theme-surface);--ink:var(--theme-muted);color-scheme:var(--theme-scheme)}
html[data-landons-theme] body.landons-grid-page{background:var(--theme-base)!important;color:var(--theme-ink)}
html[data-landons-theme] .landons-background{background:radial-gradient(ellipse at 50% 30%,var(--theme-soft),transparent 65%),var(--theme-base)}
html[data-landons-theme] .landons-background::before{background-image:linear-gradient(var(--theme-grid) 1px,transparent 1px),linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px);animation-duration:calc(24s * var(--theme-speed))}
html[data-landons-theme] .landons-light{background:var(--theme-accent);box-shadow:0 0 15px var(--theme-accent);animation-duration:calc(var(--duration) * var(--theme-speed))}
html[data-theme-background=stars] .landons-background::before,html[data-theme-background=solid] .landons-background::before{display:none}
html[data-theme-background=stars] .landons-light{opacity:.5}
html[data-theme-background=solid] .landons-light{display:none}
html[data-theme-motion=off] .landons-light,html[data-theme-motion=off] .landons-background::before,html[data-theme-motion=off] .hub-hero-art img{animation:none!important}
html[data-theme-motion=off] .rail-button:hover,html[data-theme-motion=off] .hub-card:hover,html[data-theme-motion=off] .hub-primary:hover,html[data-theme-motion=off] .hub-secondary:hover{transform:none}
html[data-landons-theme] .hub-hero-art img{animation-duration:calc(5s * var(--theme-speed))}
html[data-landons-theme] :is(.rail,.hub-card,.hub-panel,.hub-search,.hub-dialog,#modal,#preferences,.tab-dialog,.owner-card,.account-card,.global-room,.landons-messenger,.landons-invite,.landons-maintenance,.landons-global-announcement){background-color:var(--theme-surface)!important;color:var(--theme-ink);border-color:var(--theme-edge)!important}
html[data-landons-theme] :is(.hub-secondary,.hub-filter,.rail-button,.rail .global-settings,.global-chat-link,.arcade-tools a,.hub-chip,.owner-tabs button,.owner-wrap button.secondary,.account-tabs button,.landons-messenger button,.landons-invite button){background-color:var(--theme-raised);color:var(--theme-ink);border-color:var(--theme-edge)}
html[data-landons-theme] :is(.hub-primary,.rail-button.selected,.hub-filter[aria-pressed=true],.owner-wrap button:not(.secondary):not(.danger),.account-card .primary,.account-tabs [aria-pressed=true],.landons-messenger .dm-primary,.landons-invite .dm-primary,.tab-appearance button,.poll-options button[aria-pressed=true]){background:var(--theme-accent);color:var(--theme-onAccent);border-color:var(--theme-accent)}
html[data-landons-theme] :is(.wordmark,.rail-button,.rail .global-settings,.global-chat-link,.global-badge,.global-room-bar span,.hub-text-link,.hub-favorite[aria-pressed=true],.owner-label,.account-wrap>a){color:var(--theme-accent)}
html[data-landons-theme] .rail-button.selected{color:var(--theme-onAccent)}
html[data-landons-theme] :is(.hub-chip,.global-avatar,.dm-avatar-text){background:var(--theme-soft);color:var(--theme-accent)}
html[data-landons-theme] :is(.hub-main h1,.hub-main h2,.hub-main h3,.tab-appearance h3,.owner-wrap h1,.account-card h1,.global-heading h1,.global-message p,.dm-bubble p){color:var(--theme-ink)}
html[data-landons-theme] :is(.hub-hero h1 span,.owner-wrap h1 span,.eyebrow,.owner-wrap a,.account-wrap a){color:var(--theme-accent)}
html[data-landons-theme] :is(.hub-intro,.hub-hint,.hub-notice,.hub-footer,.tab-appearance p,.owner-wrap .hint,.owner-wrap .lead,.owner-wrap footer,.account-card p,.account-card footer,.global-heading p,.global-byline time,.global-empty,.global-compose-footer small,.dm-profile-controls+p){color:var(--theme-muted)}
html[data-landons-theme] :is(.tab-appearance input,.tab-appearance select,.owner-wrap input,.owner-wrap textarea,.owner-wrap select,.account-card input,.global-composer textarea,.poll-answer-form textarea,.dm-auth input,.dm-search input,.dm-thread textarea){background:var(--theme-base);color:var(--theme-ink);border-color:var(--theme-edge)}
html[data-landons-theme] .hub-search input{color:var(--theme-ink)}
html[data-landons-theme] :is(input,textarea)::placeholder{color:var(--theme-muted)}
html[data-landons-theme] .dm-bubble{background:var(--theme-raised);color:var(--theme-ink)}
html[data-landons-theme] .dm-bubble.dm-own{background:var(--theme-soft)}
html[data-landons-theme] .landons-messenger-button{background:var(--theme-raised);color:var(--theme-accent);border-color:var(--theme-edge)}
html[data-landons-theme] #preferences{background-image:none}
html[data-landons-theme] .hub-orbit{border-color:var(--theme-edge)}
/* Keep navigation tinted with the chosen accent above general theme controls. */
html[data-landons-theme] body .rail{background-color:color-mix(in srgb,var(--theme-accent) 4%,var(--theme-base))!important;border-color:color-mix(in srgb,var(--theme-accent) 25%,var(--theme-base))!important}
html[data-landons-theme] body .rail :is(nav>a,.rail-button,.global-settings){color:var(--theme-accent);background-color:color-mix(in srgb,var(--theme-accent) 10%,var(--theme-base));border-color:color-mix(in srgb,var(--theme-accent) 35%,var(--theme-base))}
html[data-landons-theme] body .rail :is(nav>a,.rail-button,.global-settings):hover{background-color:color-mix(in srgb,var(--theme-accent) 20%,var(--theme-base));border-color:var(--theme-accent)}
html[data-landons-theme] body .rail :is(nav>a.selected,.rail-button.selected,[aria-current=page]){color:var(--theme-onAccent);background:var(--theme-accent);border-color:var(--theme-accent)}
html[data-landons-theme] body .rail :is(nav>a,.rail-button,.global-settings):focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
html[data-landons-theme] .hub-hero-art{background:radial-gradient(ellipse,var(--theme-soft),transparent 65%)}
.theme-settings{margin-top:24px;padding-top:20px;border-top:1px solid var(--theme-edge);font:14px/1.5 system-ui;text-align:left}.theme-settings h3{margin:0 0 8px;font-size:20px}.theme-settings p{font-size:13px;color:var(--theme-muted)}.theme-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.theme-settings button{padding:10px 12px;font:700 13px system-ui;border-radius:10px;border:1px solid var(--theme-edge);background:var(--theme-raised);color:var(--theme-ink);cursor:pointer}.theme-presets button{display:grid;gap:8px;justify-items:center}.theme-presets button[aria-pressed=true]{outline:2px solid var(--theme-accent);outline-offset:1px}.theme-swatch{width:24px;height:24px;border:2px solid #ffffff60;border-radius:50%;background:var(--swatch)}.theme-preview{padding:20px;border-radius:14px;background:var(--theme-base);border:1px solid var(--theme-edge);margin:18px 0;position:relative;overflow:hidden}.theme-preview[data-style=grid]{background-image:linear-gradient(var(--theme-grid) 1px,transparent 1px),linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px);background-size:24px 24px}.theme-preview[data-style=stars]{background-image:radial-gradient(circle at 10% 20%,var(--theme-accent) 1px,transparent 2px),radial-gradient(circle at 85% 70%,var(--theme-accent) 1px,transparent 2px)}.theme-preview strong{display:block;color:var(--theme-accent);font-size:18px}.theme-preview span{display:inline-block;padding:8px 14px;margin-top:12px;border-radius:9px;background:var(--theme-accent);color:var(--theme-onAccent);font-weight:800}.theme-color-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.theme-settings label{display:block;font-weight:650;margin:12px 0}.theme-color-row input{display:block;width:100%;height:44px;padding:4px;margin-top:8px;cursor:pointer;border:1px solid var(--theme-edge);border-radius:9px;background:var(--theme-surface)}.theme-settings select{display:block;width:100%;padding:11px;border-radius:10px;background:var(--theme-base);color:var(--theme-ink);border:1px solid var(--theme-edge);font:inherit;margin-top:8px}.theme-actions{display:flex;gap:8px;flex-wrap:wrap}.theme-settings .theme-save{background:var(--theme-accent);color:var(--theme-onAccent)}.theme-settings [role=status]{min-height:20px}.theme-settings :focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}@media(max-width:480px){.theme-presets{grid-template-columns:repeat(2,1fr)}.theme-color-row{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){html[data-landons-theme] .landons-light,html[data-landons-theme] .landons-background::before,html[data-landons-theme] .hub-hero-art img{animation:none!important}}
