.theme-toggle{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);border-radius:20px;padding:8px 12px;color:#eef5ef;font:inherit;font-size:11px;white-space:nowrap}
.theme-toggle:hover{background:rgba(255,255,255,.13)}
html[data-theme="light"]{color-scheme:light}
html[data-theme="light"]{--ink:#17211d;--muted:#64706b;--paper:#f4f3ee;--card:#fff;--line:#d9ddd7}
html[data-theme="light"] body{background:var(--paper);color:var(--ink)}
html[data-theme="light"] .home-request-heading h2{color:#17211d}
html[data-theme="light"] .home-request-card,
html[data-theme="light"] .home-request-card :is(span,strong,em,b){color:#17211d}
html[data-theme="light"] .property-service-card,
html[data-theme="light"] .property-service-card h3{color:#17211d}
html[data-theme="light"] .property-service-card p{color:#64706b}
html[data-theme="light"] .featured-question,
html[data-theme="light"] .featured-question :is(h3,p,a,.question-meta){color:#17211d}
html[data-theme="light"] .research-strip{color:#17211d}
html[data-theme="light"] .entry-card.accent,
html[data-theme="light"] .entry-card.accent :is(.entry-icon,small,strong,em,b){color:#17211d}
html[data-theme="dark"]{color-scheme:dark;--ink:#e5ede7;--muted:#9eafa6;--paper:#091d18;--card:#122a22;--line:#2b453a;--blue:#193640}
html[data-theme="dark"] .app-body{background:var(--paper)}
html[data-theme="dark"] .home-request-section{background:#091d18;color:#e5ede7}
html[data-theme="dark"] .property-services{background:#10271f;color:#e5ede7}
html[data-theme="dark"] .property-services .property-service-card{background:#17372b;color:#e5ede7;border-color:#305b47}
html[data-theme="dark"] .property-services .property-service-card.cadastral{background:#3b3020;color:#e5ede7;border-color:#625237}
html[data-theme="dark"] :is(.featured-question,.entry-card.accent,.final-cta a,.guardian-note,.advantage-principle){--ink:#17211d;--muted:#405132;color:#17211d}
html[data-theme="dark"] .featured-question :is(h3,p,a,.question-meta){color:#17211d}
html[data-theme="dark"] .home-request-heading p{color:#aabdb1}
html[data-theme="dark"] :is(.ask-card,.mentor-card,.direction-card){background:var(--card);color:var(--ink)}
html[data-theme="dark"] .ask-form{background:#0b2019;border-color:var(--line)}
html[data-theme="dark"] :is(.direction-card.large,.avatar,.principle:hover){background:#1c372a}
html[data-theme="dark"] .direction-card.blue{background:#193640}
html[data-theme="dark"] .research-strip{background:#253b1d;color:var(--ink)}
html[data-theme="dark"] :is(.line-icon,.direction-no,.avatar,.ask-top .online-dot){color:#85cfaa}
html[data-theme="dark"] .final-cta a{color:#17211d}
html[data-theme="dark"] .entry-card.accent{color:#17211d}
html[data-theme="dark"] .entry-card.accent :is(.entry-icon,small,strong,em,b){color:#17211d}
html[data-theme="dark"] :is(.panel,.admin-stats article,.manifesto-points section,.chapter-nav a,.advantage-sections article,.advantage-pagination a,.hot-question-sources){background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.property-services,.stats-grid article,.detail-facts div,.staff-tabs,.chapter-nav,.pattern-lock,.registration-intent){background:#10271f;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.form-panel input,.form-panel select,.form-panel textarea,.filter-bar input,.filter-bar select,.staff-table-row select,.operator-card textarea){background:#0b2019;color:var(--ink);border-color:#385346}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#84988c;opacity:1}
html[data-theme="dark"] :is(.request-kind-card span,.role-option span){background:#142d24;color:var(--ink)}
html[data-theme="dark"] :is(.request-kind-card input:checked+span,.role-option input:checked+span){background:#204638;border-color:#6bbb95}
html[data-theme="dark"] :is(.secondary-button,.status){background:#203e31;color:#a4ddbd}
html[data-theme="dark"] :is(.staff-tabs a,.manifesto-points p,.stage-copy>p,.advantage-goal p){color:var(--muted)}
html[data-theme="dark"] :is(.staff-tabs a.active,.staff-tabs a:hover){background:#284636;color:#c7ef75}
html[data-theme="dark"] :is(.kicker,.back-link,.myriadia-info-link,.chapter-nav>strong,.chapter-nav a span,.manifesto-index>span,.admin-stats strong,.panel-heading a,.form-note a,.detail-category,.hot-question-sources a,.property-service-card>span,.property-service-card b){color:#85cfaa}
html[data-theme="dark"] :is(.request-row,.staff-table-row){border-color:var(--line)}
html[data-theme="dark"] .home-request-item:nth-child(1) .home-request-card{background:#17363e;border-color:#305863}
html[data-theme="dark"] .home-request-item:nth-child(2) .home-request-card{background:#2a401d;border-color:#506834}
html[data-theme="dark"] .home-request-item:nth-child(3) .home-request-card{background:#3b3020;border-color:#625237}
html[data-theme="dark"] .home-request-item:nth-child(4) .home-request-card{background:#17372b;border-color:#305b47}
html[data-theme="dark"] .home-request-item:nth-child(5) .home-request-card{background:#353323;border-color:#5c583c}
html[data-theme="dark"] .home-request-item:nth-child(6) .home-request-card{background:#302740;border-color:#514267}
html[data-theme="dark"] .home-request-card{color:#e5ede7}
html[data-theme="dark"] .home-request-card:hover{color:#fff;filter:brightness(1.13)}
html[data-theme="dark"] .home-request-card::before{filter:invert(1);opacity:.2}
html[data-theme="dark"] .property-service-card{background:#17372b;border-color:#305b47}
html[data-theme="dark"] .property-service-card.cadastral{background:#3b3020;border-color:#625237}
html[data-theme="dark"] .hot-question-discussion{background:#183b2e;color:var(--ink)}
html[data-theme="dark"] .hot-question-discussion-conclusion{background:#234636;color:var(--ink)}
html[data-theme="dark"] .hot-question-notice{background:#3b3020;color:#e6d3b1}
html[data-theme="dark"] .flash-error{background:#44251f;color:#ffd0c4}
html[data-theme="dark"] .flash-success{background:#183d2b;color:#b7e5c8}
@media(max-width:620px){.theme-toggle{padding:7px 9px;font-size:10px}.header-actions{gap:9px}.app-header{flex-wrap:wrap;height:auto;min-height:72px;padding-top:14px;padding-bottom:14px}.brand-word{font-size:18px}.app-user{gap:10px}}
