/* Account appearance tokens. Native controls, content and layout stay in Compilez. */
html[data-workspace-custom=true]{
  --paper:var(--wc-background)!important;--surface:var(--wc-surface)!important;
  --ink:var(--wc-text)!important;--ink-soft:var(--wc-muted)!important;--muted:var(--wc-muted)!important;
  --green:var(--wc-link)!important;--green-deep:var(--wc-link)!important;
  --mint:var(--wc-soft)!important;--sage:var(--wc-secondary)!important;--line:var(--wc-border)!important;
  --chrome:var(--wc-surface)!important;--gold:var(--wc-secondary)!important;
  --cobalt:var(--wc-link)!important;--cobalt-hover:var(--wc-link)!important;
  --accent:var(--wc-accent)!important;--accent-border:var(--wc-border)!important;--on-accent:var(--wc-accent-text)!important;
  --tint-surface:var(--wc-surface)!important;--tint-hover:var(--wc-soft)!important;--tint-selected:var(--wc-secondary)!important;
  --tint-border:var(--wc-border)!important;--orange:var(--wc-accent)!important;
  --sans:var(--wc-font-body)!important;--font-body:var(--wc-font-body)!important;
  --display:var(--wc-font-display)!important;--font-display:var(--wc-font-display)!important;
  --red:var(--wc-danger)!important;--radius:var(--wc-radius)!important;--focus:var(--wc-link)!important;
  color-scheme:light;
}
html[data-workspace-mode=dark]{color-scheme:dark}
html[data-workspace-custom=true] body{background:var(--wc-background)!important;color:var(--wc-text)!important;font-family:var(--wc-font-body)!important}
html[data-workspace-custom=true] :is(#header,#prototype-bar,#main-content,#footer){position:relative;z-index:1}
html[data-workspace-custom=true] #workspace-theme-decoration{position:fixed;top:120px;right:1.5vw;width:min(33vw,390px);pointer-events:none;user-select:none;z-index:0;opacity:.15}
html[data-workspace-custom=true] #workspace-theme-decoration[data-intensity=balanced]{opacity:.3}
html[data-workspace-custom=true] #workspace-theme-decoration svg{width:100%;height:auto;display:block}
html[data-workspace-custom=true] :is(.site-header,.demo-strip,.modal-head,.auth-footer){background:var(--wc-background)!important;color:var(--wc-text)!important;border-color:var(--wc-border)!important}
html[data-workspace-custom=true] :is(.personal-home,.personal-header,.ps-page) :is(h1,h2,h3,.hero-title,.section-title){color:var(--wc-text)!important;font-family:var(--wc-font-display)!important}
html[data-workspace-custom=true] :is(h1,h2,h3,h4){color:var(--wc-text)}
html[data-workspace-custom=true] :is(.btn,.button--primary,.appearance-options button[aria-pressed=true]){background:var(--wc-accent)!important;color:var(--wc-accent-text)!important;border-color:var(--wc-accent)!important}
html[data-workspace-custom=true] :is(.btn.secondary,.button--secondary){background:var(--wc-surface)!important;color:var(--wc-link)!important;border-color:var(--wc-border)!important}
html[data-workspace-custom=true] :is(.btn.danger,.event-vote.is-downvote){color:var(--red)!important;background:var(--wc-surface)!important;border-color:var(--red)!important}
html[data-workspace-custom=true] :is(.brand,.personal-header .sign-in,.main-nav a,.your-space,.footer-links a,.breadcrumb a,.text-link,.text-button,.workspace-tab){color:var(--wc-link)!important}
html[data-workspace-custom=true] :is(.card,.feature-card,.q-card,.candidate-card,.queue-row,.brief-item,.task-card,.task-column,.project-row,.project-card,.event-proposal,.event-contribution,.workspace-tabs,.progressive-detail-panel,.progressive-start-form,.progressive-visibility-choice,.progressive-workspace-action,.auth-panel,.modal-body,dialog){background-color:var(--wc-surface)!important;color:var(--wc-text)!important;border-color:var(--wc-border)!important;border-radius:var(--wc-radius)!important}
html[data-workspace-custom=true] .card{padding:var(--wc-card-padding)}
html[data-workspace-custom=true] :is(.project-copy,.project-card .project-copy,.project-card .project-title,.project-card .project-meta,.project-text h3,.task-card h4){color:var(--wc-text)!important;background-color:transparent!important}
html[data-workspace-custom=true] :is(.project-description,.project-card .project-description,.project-card .project-meta,.card p,.task-card p,.permission-note,.chart-note,.small.muted){color:var(--wc-muted)!important}
html[data-workspace-custom=true] :is(.notice,.success-banner,.morning-hero,.discover-hero,.hero,.soft,.pill,.fact,.review-block,.chat-message .message-bubble,.progressive-panel-icon,.progressive-visibility-choice:has(input:checked),.progressive-option-line,.personal-home .explore-form){background:var(--wc-soft)!important;color:var(--wc-text)!important;border-color:var(--wc-border)!important}
html[data-workspace-custom=true] :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background-color:var(--wc-surface)!important;color:var(--wc-text)!important;border-color:var(--wc-border)!important;font-family:var(--wc-font-body)!important}
html[data-workspace-custom=true] :is(input,textarea)::placeholder{color:var(--wc-muted)!important;opacity:1}
html[data-workspace-custom=true] :is(input[type=checkbox],input[type=radio]){accent-color:var(--wc-accent)}
html[data-workspace-custom=true] :is(.field-label,.fact strong,.fact small,.workspace-heading,.settings-section h3,.owner-line,.metric,.metric-value){color:var(--wc-text)!important}
html[data-workspace-custom=true] :is(.progressive-field-note,.progressive-visibility-copy>span,.progressive-panel-copy>span,.progressive-workspace-action>span:nth-child(2)>span){color:var(--wc-muted)!important}
html[data-workspace-custom=true] :is(.progressive-panel-icon,.progressive-visibility-symbol,.project-icon,.feature-icon,.q-vote){color:var(--wc-link)!important;background:var(--wc-soft)!important}
html[data-workspace-custom=true] :is(.workspace-tab.active,.action-tabs button.active,.filter-chip.active){background:var(--wc-secondary)!important;color:var(--wc-text)!important}
html[data-workspace-custom=true] :is(.ps-motif,.paper-icon,.hero .hero-art,.discover-hero .hero-art){opacity:.3}
html[data-workspace-custom=true][data-workspace-motif=none] :is(.ps-motif,.paper-icon,.hero-art,.topic-art,.project-art){display:none!important}
html[data-workspace-custom=true] .project-art{opacity:.85}
html[data-workspace-custom=true] #toast{background:var(--wc-accent)!important;color:var(--wc-accent-text)!important}
html[data-workspace-custom=true] :is(a,button,input,textarea,select,summary):focus-visible{outline-color:var(--wc-link)!important}

/* Use idea.space's native variables; never alter map transforms or node sizes. */
html[data-workspace-custom=true] #idea-space-app{
  --is-bg:var(--wc-background);--is-surface:var(--wc-surface);--is-raised:var(--wc-soft);
  --is-text:var(--wc-text);--is-muted:var(--wc-muted);--is-line:var(--wc-border);--is-dot:var(--wc-border);
  --is-accent:var(--wc-accent);--is-on-accent:var(--wc-accent-text);--is-soft:var(--wc-soft);
}
html[data-workspace-custom=true] :is(.map-viewport,.brief-map-canvas){background-color:var(--wc-background)!important}
html[data-workspace-custom=true] .brief-map :is(.brief-map-heading,.brief-map-caption){background:var(--wc-surface)!important;color:var(--wc-text)!important}
html[data-workspace-custom=true][data-workspace-density=compact] :is(.project-row,.queue-row,.brief-item){padding-top:16px;padding-bottom:16px}
.appearance-custom-link{font-size:12px;color:var(--green);display:inline-flex;align-items:center;gap:6px;min-height:40px}
.footer-controls{min-width:0;flex-wrap:wrap}
.footer-controls .appearance-picker{max-width:100%;flex-wrap:wrap}
.footer-controls .footer-links{max-width:100%;flex-wrap:wrap}
@media(max-width:700px){
  html[data-workspace-custom=true] #workspace-theme-decoration{top:150px;width:170px;right:-50px;opacity:.1}
  html[data-workspace-custom=true] .card{padding:min(var(--wc-card-padding),20px)}
  .appearance-picker{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){html[data-workspace-custom=true]{scroll-behavior:auto}}

html[data-workspace-custom=true] .workspace-theme-page{--studio-ink:var(--wc-text);--studio-muted:var(--wc-muted);--studio-paper:var(--wc-surface);--studio-border:var(--wc-border);--studio-accent:var(--wc-link)}

/* A proposed light/dark design stays independent of the active account theme. */
html[data-workspace-custom=true] #workspace-theme-studio [data-theme-preview] :is(h1,h2,h3,h4){color:var(--wt-text)!important;font-family:var(--wt-font)!important}
html[data-workspace-custom=true] #workspace-theme-studio [data-theme-preview] :is(input,textarea,select){background-color:var(--wt-surface)!important;color:var(--wt-text)!important;border-color:var(--wt-border)!important;font-family:var(--wt-font)!important}
html[data-workspace-custom=true] #workspace-theme-studio [data-theme-preview] :is(input,textarea)::placeholder{color:var(--wt-muted)!important}
html[data-workspace-custom=true] #workspace-theme-studio [data-theme-preview] :is(input,textarea,select,button):focus-visible{outline-color:var(--wt-text)!important}
