/* Semantic defaults also cover loading, failed routes and dialogs before the app renders. */
html[data-theme=dark]{--fee-creator:#526d5d;--fee-platform:#829b89;color-scheme:dark;--bg:#121a17;--panel:#1a2420;--panel2:#223029;--line:#35463c;--ink:#edf3ee;--muted:#b9c7bd;--gold:#a9cfb5;--red:#a9cfb5;--red2:#f1a1ae;--green:#a4d5b6;--button-ink:#142019;--input-bg:#14231a;--control-line:#657c6c;--error-bg:#422932;--error-ink:#ffdbe2;--warning-bg:#302c21;--warning-ink:#edd3a5;--warning-line:#71603e;--info-bg:#1d3035;--info-ink:#b6dbe6;--success-bg:#233b2b;--success-ink:#bde5c8}
/* Public themes share structure, type and spacing. Only semantic colors change. */
.theme-toggle{flex-shrink:0}.theme-toggle>span{display:flex;align-items:center;justify-content:center}.theme-toggle .icon{width:19px;height:19px}html[data-theme=light] .theme-sun,html[data-theme=dark] .theme-moon{display:none}
html[data-theme=dark] body.public-surface{color-scheme:dark;--bg:#121a17;--panel:#1a2420;--panel2:#223029;--line:#35463c;--ink:#edf3ee;--muted:#b9c7bd;--gold:#a9cfb5;--red:#a9cfb5;--red2:#f1a1ae;--green:#a4d5b6}
html[data-theme=dark] .public-surface .demo-bar{background:#1d2a22;border-color:var(--line);color:var(--muted)}
html[data-theme=dark] .public-surface .demo-bar b,html[data-theme=dark] .public-surface .brand-mark{color:var(--gold)}
html[data-theme=dark] .public-surface .nav{color:var(--muted)}
html[data-theme=dark] .public-surface .btn{background:#b4d2bd;color:#16281c}
html[data-theme=dark] .public-surface .btn:hover{background:#cae3d2}
html[data-theme=dark] .public-surface .btn.secondary,html[data-theme=dark] .public-surface .btn.subtle{background:#26362c;color:var(--ink);border-color:#3b5143}
html[data-theme=dark] .public-surface .btn.secondary:hover,html[data-theme=dark] .public-surface .btn.subtle:hover{background:#334a3b}
html[data-theme=dark] .public-surface .modern-hero h1 em{color:#a6b9ab}
html[data-theme=dark] .public-surface .scene-annotation,html[data-theme=dark] .public-surface .entry-description,html[data-theme=dark] .public-surface .entry-title small,html[data-theme=dark] .public-surface .entry-title>.icon{color:var(--muted)}
html[data-theme=dark] .public-surface .entry-object{color:#b3cbbb}
html[data-theme=dark] .public-surface .home-entry:hover{background:#1c2a21}
html[data-theme=dark] .public-surface .home-causes{--ink:#edf3ee;--muted:#b9c7bd;--gold:#a9cfb5;--line:#35463c;background:#1b2821}
html[data-theme=dark] .public-surface .home-causes .sample-caption{color:var(--muted)}
html[data-theme=dark] .public-surface .home-causes .progress>span{background:var(--gold)}
html[data-theme=dark] .public-surface .community-avatar,html[data-theme=dark] .public-surface .token-avatar{background:#304739;color:#c5e0cc;border-color:#4f6a57}
html[data-theme=dark] .public-surface .modern-campaign .campaign-giving>.panel,html[data-theme=dark] .public-surface .village-support{background:#223228;border-color:#415647}
html[data-theme=dark] .public-surface .modern-village .detail-art,html[data-theme=dark] .public-surface .world-panel{background:#1b2921}
html[data-theme=dark] .public-surface .tag{background:#2a4132;color:#c2e0cb;border-color:#4b6552}
html[data-theme=dark] .public-surface .tag.demo{background:#3a3223;color:#f1d59f;border-color:#71603e}
html[data-theme=dark] .public-surface .campaign-art .tag,html[data-theme=dark] .public-surface .home-causes .tag{background:#19271feb;color:#e0eee2;border-color:#69806a}
html[data-theme=dark] .public-surface .tag.red-tag{background:#482d35;color:#ffc1ce;border-color:#7d4d5a}
html[data-theme=dark] .public-surface .progress{background:#3d5142}
html[data-theme=dark] .public-surface .notice{background:#302c21;color:#edd3a5;border-color:#71603e}
html[data-theme=dark] .public-surface .notice.info{background:#1d3035;color:#b6dbe6;border-color:#416875}
html[data-theme=dark] .public-surface .notice.success-note{background:#233b2b;color:#bde5c8;border-color:#497657}
html[data-theme=dark] .public-surface input,html[data-theme=dark] .public-surface textarea,html[data-theme=dark] .public-surface select{background:#14231a;color:var(--ink);border-color:#657c6c}
html[data-theme=dark] .public-surface input::placeholder,html[data-theme=dark] .public-surface textarea::placeholder{color:#adbfb2}
html[data-theme=dark] .public-surface .field>span,html[data-theme=dark] .public-surface .field>label,html[data-theme=dark] .public-surface .field-label{color:#d6e6d9}
html[data-theme=dark] .public-surface .tabs button.active,html[data-theme=dark] .public-surface .callout{background:#2a3b2e;border-color:#4a6251;color:var(--ink)}
html[data-theme=dark] .public-surface .data-table th{background:#2b3c30;color:var(--ink)}
html[data-theme=dark] .public-surface select option:hover,html[data-theme=dark] .public-surface select option:focus,html[data-theme=dark] .public-surface select option:checked{background:#324a3a;color:#e0f1e5}
html[data-theme=dark] .public-surface .footer-links a:hover{color:var(--gold)}
html[data-theme=dark] .public-surface .nav.open{background:#1a2720;color:var(--ink);border-color:var(--line)}
@media(max-width:360px){.public-surface .header-actions{gap:5px}.public-surface .header-actions .btn{padding-inline:10px}.public-surface .topbar{gap:5px}}
html[data-theme=light] body:has(#app>.boot){background:#fdfefd;color:#202622}html[data-theme=light] #app>.boot p{color:#57615a}
