html[data-theme=dark]{color-scheme:dark;--bg:#080b0e;--surface:#14191e;--surface2:#1d2329;--border:#333438;--muted:#b2a7a5;--text:#d4c5c0;--accent:#dd8580;--cyan:#dd8580}
html[data-theme=dark] body{background:var(--bg)}
html[data-theme=dark] :is(.app-header,.demo){background:#0d1115;color:var(--muted)}
html[data-theme=dark] :is(.mark,.eyebrow,.photo-fields legend){color:var(--accent);border-color:#744a49;box-shadow:none}
html[data-theme=dark] :is(nav a.active,nav a:hover,.button.secondary,.contact.active,.filter-chip.selected){background:#332020;color:#e0aaa5;border-color:#704240}
html[data-theme=dark] .button{background:#a34440;color:#f3ddd6;box-shadow:none}
html[data-theme=dark] .button.outline{background:transparent;color:#dba49e;border-color:#755451}
html[data-theme=dark] :is(.avatar,.profile-portrait){background:#302124;color:#dfb2ab;border-color:#79554f}
html[data-theme=dark] :is(.badge,.demo-label){background:#282226;color:#d6b0a8;border-color:#654e4a}
html[data-theme=dark] :is(.card,.map-filters,.options-panel,.map-shell,.report-panel,dialog,.phone-alert){background:var(--surface);border-color:var(--border)}
html[data-theme=dark] :is(input,textarea,select,.compose-trigger){background:#0f1418;color:var(--text);border-color:#655753}
html[data-theme=dark] :is(.map-instruction,.comment,.message,.message.mine,.official-alert,.settings-demo,.bridge-details){background:#1e2226;color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.muted,.meta,.role,.intro,.composer-bottom,.profile-card p,.post-actions button,.chart-key,.aid-legend p,.report-row small,.detail-empty,.map-foot,.map-foot button,.alert-area,.alert-bottomline,.phone-alert small,#chart-status){color:var(--muted)}
html[data-theme=dark] :is(.chart-options>summary,.aid-legend summary,.detail-cross,.panel-heading>span){color:var(--accent);border-color:#755451;background:transparent}
html[data-theme=dark] :is(.report-row,.detail-empty h3,.chart-controls>b,.preference-sources legend){color:var(--text)}
html[data-theme=dark] .report-row.selected{background:#302123}
html[data-theme=dark] .profile-cover{background:linear-gradient(120deg,#271e24,#171c24);color:#d0a49d;border-bottom:3px solid #92514a}
html[data-theme=dark] .photo-preview{background:#0e1317;border-color:#755451}
html[data-theme=dark] #toast{background:#302123;border-color:#92514a;color:#ead0c8}
html[data-theme=dark] #harbor-map{background:#11171c}
html[data-theme=dark] .sounding-label{color:#b9b5ae;text-shadow:0 0 2px #101a23,0 0 2px #101a23}
html[data-theme=dark] .leaflet-control-zoom a{background:#25282b!important;color:#dbbab2!important}
html[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-tooltip){background:#20262b!important;color:#d4c5c0!important}
html[data-theme=dark] .leaflet-control-attribution{background:#171d23e8!important;color:#b2a7a5!important}
html[data-theme=dark] .leaflet-container a{color:#d99d94}
html[data-theme=dark] .chart-popup .muted{color:#b2a7a5}
html[data-theme=dark] .chart-popup .badge{color:#e0aaa5;background:#332020;border-color:#704240}
html[data-theme=dark] .chart-popup .button{color:#f3ddd6;background:#a34440}
html[data-theme=dark] .nautical-aid svg{filter:drop-shadow(0 0 1px #e0c8a988)}
html[data-theme=dark] .alert-filter{background:#1d2329;color:var(--muted);border-color:var(--border)}
html[data-theme=dark] .alert-filter.selected{background:#332020;color:#e0aaa5;border-color:#704240}
html[data-theme=dark] .form-error{color:#e2a19a}
