:root{color-scheme:light;--theme-bg:#fff;--theme-panel:#f5f5f7;--theme-raised:#fff;--theme-text:#1d1d1f;--theme-muted:#6e6e73;--theme-line:#d2d2d7;--theme-link:#0066cc}.theme-control{display:flex;align-items:center;flex-shrink:0}.theme-control select{font:inherit;font-size:12px;width:105px;min-height:34px;padding:7px 10px;margin:0;border:1px solid var(--theme-line);border-radius:20px;background:var(--theme-raised);color:var(--theme-text);cursor:pointer}.theme-control select:focus-visible{outline:3px solid var(--theme-link);outline-offset:3px}header>.theme-control{margin-inline-start:4px}html[data-theme=dark]{color-scheme:dark;--ink:#f3f3f5;--paper:#111215;--muted:#b0b1bb;--theme-bg:#111215;--theme-panel:#1d1f24;--theme-raised:#272a31;--theme-text:#f3f3f5;--theme-muted:#b0b1bb;--theme-line:#424650;--theme-link:#82bcff}html[data-theme=dark] body{background:var(--theme-bg);color:var(--theme-text)}html[data-theme=dark] header,html[data-theme=dark] .mobile-nav{background:#17191eeb;border-color:var(--theme-line)}html[data-theme=dark] .brand>span:last-child{color:var(--theme-text)!important}html[data-theme=dark] :is(.mark,.mission strong,.profile-stats strong,.device-symbol,.mobile-nav button){color:var(--theme-text)}html[data-theme=dark] :is(.hero,.card,.side:not(.dark),.journey-section,.opp,footer,.milestone-editor,.market-banner,.creator-card,.profile-stats>div,.portfolio-item,.service-item,.project-item,.device-section,.figure-card,.board-item,.quote-canvas,.world-controls,.world-topics button,.world-empty,.world-directory-list button,.world-notice,.self-home,.self-create-card,.portrait-credit){background:var(--theme-panel);color:var(--theme-text)}html[data-theme=dark] #portraitGrid>.board-item{background:var(--theme-panel)}html[data-theme=dark] #contact{background:var(--theme-panel)!important}html[data-theme=dark] :is(.feature,.journey-spotlight,.journey-section>.note,.world-card,.world-monogram,.social-preview){background:var(--theme-raised);color:var(--theme-text)}html[data-theme=dark] :is(.feature>div,.journey-spotlight p,.milestone h4.milestone-trait){color:var(--theme-text)}html[data-theme=dark] :is(.hero p,.people,h1 em,.mission,.section-top p,.category,.card p,.author small,.card-foot,.side p,.person small,.journey-intro,.milestone p,.opp p,#contact p,#contact address,footer p,.tag,.empty,.market-banner,.creator-card p,.profile-header p,.profile-stats>div,.portfolio-item p,.service-item p,.project-item p,.commission-panel p,.device-section>p,.device-tiles p,.profile-bio,.figure-body p,.board-item p,.editor-label,.spotlight-person,.journey-spotlight time,.portrait-card-body p,.world-heading p,.world-card p,.world-status,.self-create-card span){color:var(--theme-muted)}html[data-theme=dark] :is(.trait,.note,.initial,.creator-avatar,.order-status){background:#30343c;color:#e4e6ec}html[data-theme=dark] :is(.search,.field,.world-controls select,.world-controls input){background:var(--theme-raised);border-color:var(--theme-line);color:var(--theme-text)}html[data-theme=dark] :is(input,textarea,select){color:var(--theme-text)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a5a7b2}html[data-theme=dark] dialog{background:var(--theme-bg);color:var(--theme-text);border:1px solid var(--theme-line)}html[data-theme=dark] dialog::backdrop{background:#000b}html[data-theme=dark] :is(hr,.card-foot,.price-line.total,.commission-panel,.world-country-panel,.world-translation,.world-nomination,.self-item){border-color:var(--theme-line)}html[data-theme=dark] :is(.save,.source-link,.note-context,.spotlight-trait,.milestone time,.portrait-credit a,.world-links a,.world-sources a,#contact a){color:var(--theme-link)!important}html[data-theme=dark] .btn.outline{border-color:var(--theme-link);color:var(--theme-link)}html[data-theme=dark] .btn.outline:hover{color:#fff;background:#0066cc}html[data-theme=dark] .tab{border-color:var(--theme-line);color:var(--theme-muted)}html[data-theme=dark] .tab.active,html[data-theme=dark] .world-topics button[aria-pressed=true]{background:#e6e8ed;color:#17191e;border-color:#e6e8ed}html[data-theme=dark] .milestone.current{background:#18304c}html[data-theme=dark] .milestone:before{border-color:var(--theme-panel)}html[data-theme=dark] .progress{background:#424650}html[data-theme=dark] .inline-error{color:#ffa799}html[data-theme=dark] .toast{background:#eceef2;color:#111215}html[data-theme=dark] .world{--world-bg:#1d1f24;--world-ink:#f3f3f5;--world-accent:#82bcff}html[data-theme=dark] .world .world-note{background:#2b3037;color:#f3f3f5}html[data-theme=dark] .world .world-note p{color:#c4c8d0}html[data-theme=dark] :is(form#request,.saved){background:var(--theme-panel);border-color:var(--theme-line)}html[data-theme=dark] #request :is(input,select,textarea){background:var(--theme-raised);border-color:var(--theme-line);color:var(--theme-text)}html[data-theme=dark] :is(.notice,.status){color:var(--theme-muted)}html[data-theme=dark] .notice{background:#252d38}html[data-theme=dark] body>main>.layout aside p,html[data-theme=dark] .saved p{color:var(--theme-muted)}html[data-theme=dark] body>main>p,html[data-theme=dark] body>main>small,html[data-theme=dark] body>main>ul{color:var(--theme-muted)}html[data-theme=dark] body>main>a:not(.button){color:var(--theme-link)}@media(max-width:600px){.theme-control select{width:87px;font-size:11px;padding:6px}header{gap:8px}header>.theme-control{margin-inline-start:0}}

html[data-theme=dark] a:not(.btn):not(.button){color:var(--theme-link)}html[data-theme=dark] header a:not(.btn){color:var(--theme-text)}html[data-theme=dark] :is(body>main>ul li,.layout li){color:var(--theme-muted)}
@media(max-width:600px){header{height:auto;min-height:52px;flex-wrap:wrap;padding-block:8px}header .brand{font-size:14px}header .mark{font-size:18px;margin-right:4px}header .btn{font-size:10px;padding:8px 10px}.theme-control select{width:80px}}
