.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.theme-toggle{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #566177;border-radius:50%;background:transparent;color:#ffe36b;cursor:pointer}.theme-toggle:hover{background:#ffffff14}.theme-toggle:focus-visible{outline:3px solid #8faaff;outline-offset:3px}
@media(max-width:480px){.header-actions{gap:7px}.masthead .brand strong{font-size:31px}.masthead .live-badge{font-size:10px;letter-spacing:.7px;padding:6px 8px;gap:5px}}
@media(max-width:420px){.masthead .live-badge{font-size:0;letter-spacing:0;gap:0;width:44px;height:44px;justify-content:center;padding:5px}.masthead .live-badge svg{width:20px;height:20px}}
html[data-theme=dark]{--background:#24272e;--foreground:#edf0f7;--card:#2e333d;--card-foreground:#edf0f7;--popover:#303641;--popover-foreground:#edf0f7;--primary:#91a8ff;--primary-foreground:#232733;--secondary:#3a4355;--secondary-foreground:#edf0f7;--muted:#3b4351;--muted-foreground:#bac5d7;--accent:#3b4760;--accent-foreground:#f1f4ff;--destructive:#ff9da7;--border:#505a6c;--input:#566176;--ring:#96acff;color-scheme:dark}
html[data-theme=dark] body{background:#24272e;color:#edf0f7}
html[data-theme=dark] :is(.masthead,.legal-header){background:#292e38;border-bottom-color:#ddc449}
html[data-theme=dark] :is(h1,h2,h3,h4,label,legend){color:#edf0f7}
html[data-theme=dark] :is(p,.eyebrow,.optional,.input-hint,.form-foot,.map-help,.map-legend,.card-meta,.detail-meta,.detail-person,.phone-status,.legal-intro,.legal-date,.footer-copyright,.safety-note,.built-with,.matching-note,.result-count,.global-count,.presence,.text-button,.field-label,.card-title>span,.request-summary>p){color:#bac5d7}
html[data-theme=dark] :is(a,.legal-copy a,.legal-footer a,.legal-contents a,.legal-copy summary,.emoji-inventory summary,.sound-preview,.share-wingman-trigger,.document-back-top){color:#a6b9ff}
html[data-theme=dark] :is(.brand,.brand strong,.legal-brand,.footer-brand){color:#ffe552}
html[data-theme=dark] :is(.radius-panel,.map-panel,.request-panel,.request-card,.about-wingman,.legal-copy,.address-results,.map-caption,.map-error,.map-photo-popover,.viewer-cities-popover,.share-wingman-popover,.sound-toggle,.sound-info-trigger,.request-location-overlay>div,.document-back-top,.site-version){background:#2e333d;color:#edf0f7;border-color:#505a6c}
html[data-theme=dark] .wing-dialog{background:#2e333d!important;color:#edf0f7!important;border-color:#505a6c!important}
html[data-theme=dark] :is(.panel-heading,.chosen-spot,.location-controls,.address-results button,footer,.legal-footer,.legal-copy section,.design-topic,.design-topic>section){border-color:#4a5363}
html[data-theme=dark] :is(.request-form input,.request-form textarea,.field-input,.form-select,.address-search,.address-search input){background:#282d36;color:#edf0f7;border-color:#596479}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a2adc0;opacity:1}
html[data-theme=dark] :is(.step,.radius-heading input,.time-field>span,.locate-button,.empty-state,.avatar,.number-badge,.travel-note,.address-choice.selected,.exchange-card .call-link,.sound-toggle[aria-checked=true],.legal-contents,.design-step){background:#39455e;color:#c1d0ff;border-color:#5a6b90}
html[data-theme=dark] .step.yellow{background:#655b30;color:#fff0a0}
html[data-theme=dark] :is(.request-history,.photo-upload-tile,.design-flow,.architecture-diagram,.wing-dialog blockquote,.address-choice.unavailable,.request-card.out-of-range,.map-loading){background:#303743;color:#c3cddd;border-color:#566176}
html[data-theme=dark] :is(.design-node,.architecture-client,.architecture-server,.architecture-branches>div){background:#353d4b;color:#edf0f7;border-color:#606f87}
html[data-theme=dark] :is(.notice,.site-update-prompt,.wingfam-lock,.legal-highlight){background:#4c4430;color:#ffe9a0;border-color:#87743e}
html[data-theme=dark] :is(.notice,.site-update-prompt,.wingfam-lock,.legal-highlight) p{color:#ffe9a0}
html[data-theme=dark] .posted-banner{background:#30493e;color:#c1ebcf;border-color:#527c65}
html[data-theme=dark] .posted-banner :is(p,span){color:#b8ddc4}
html[data-theme=dark] :is(.success,.diagnostics-health){color:#a6dfbc}
html[data-theme=dark] .mismatch{background:#503b32;color:#ffd2ad}
html[data-theme=dark] .photo-report-remove{background:#50343d;color:#ffb3bc}
html[data-theme=dark] :is(.cancel-match,.withdraw-button){color:#ffb3bc}
html[data-theme=dark] .request-location-overlay{background:rgba(36,39,46,.68)}
html[data-theme=dark] :is(.viewer-cities-close,.share-wingman-close,.final-wing-dialog>[data-slot=dialog-close],.photo-menu-trigger){background:#444e60;color:#edf0f7}
html[data-theme=dark] :is(.viewer-city-name small,.viewer-cities-summary,.viewer-cities-note,.viewer-cities-sort legend,.card-arrow,.count-tag,.map-help,.photo-upload-note){color:#b8c6dd}
html[data-theme=dark] :is(.address-results button:hover,.history-entry:not(:disabled):hover,.sound-info-trigger:hover,.share-wingman-trigger:hover){background:#414e68}
html[data-theme=dark] .live-diagnostics{--diagnostics-surface:rgba(46,51,61,.78);color:#edf0f7;border-color:#738097;text-shadow:none}
html[data-theme=dark] .live-diagnostics :is(dt,.diagnostics-note,.diagnostics-eyebrow,.diagnostics-stats span,.diagnostics-details summary){color:#c6d2e7}
html[data-theme=dark] .live-diagnostics dl>div{border-color:#59627688}
html[data-theme=dark] .live-diagnostics .diagnostics-stats{background:#3b465966;border-color:#64708a}
html[data-theme=dark] .diagnostics-stats b{color:#b1c1ff}
html[data-theme=dark] .live-diagnostics .diagnostics-close{background:#46536e99;color:#edf0f7}
html[data-theme=dark] .diagnostics-health.is-stale{color:#f2ce88}
html[data-theme=dark] .primary{background:#f1d751;color:#282b33}
html[data-theme=dark] .share-copy-button{background:#536edb;color:white}
html[data-theme=dark] .leaflet-container{background:#343c46!important}
html[data-theme=dark] .leaflet-tile-pane{filter:brightness(.72) saturate(.75)}
html[data-theme=dark] :is(.leaflet-control-zoom a,.leaflet-control-attribution){background:#343c46;color:#c5d3ef}
html[data-theme=dark] [data-sonner-toast]{background:#343c46!important;color:#edf0f7!important;border-color:#64708a!important}
html[data-theme=dark] [data-sonner-toast] [data-description]{color:#cad4e5!important}
/* The changelog is generated as a standalone document and shares this theme. */
html[data-theme=dark] body>main>article{background:#2e333d;border-color:#505a6c}
html[data-theme=dark] body>main :is(header p,time){color:#bac5d7}
html[data-theme=dark] body>main>article h2 span{background:#655b30;color:#fff0a0}
html[data-theme=dark] .emoji-grid span{background:#3a4250}
html[data-theme=dark] :is(strong,b){color:#edf0f7}
html[data-theme=dark] :is(.radius-heading>span,.slider-line>span,.global-count-label,.built-credit,.time-selectors>span){color:#bac5d7}
html[data-theme=dark] :is(.presence>svg,.global-count>svg,.panel-heading>svg,.time-selectors>svg){color:#a6b9ff}
html[data-theme=dark] .legal-highlight strong{color:#fff0b6}

html[data-theme=dark] .sound-info-popover{background:#303641;color:#edf0f7;border-color:#66748a}
html[data-theme=dark] .sound-info-popover h3{color:#edf0f7}
html[data-theme=dark] .sound-info-popover .sound-help{color:#d6deed}

html[data-theme=dark] .diagnostics-setting-row{background:#303641;color:#edf0f7;border-color:#66748a}
html[data-theme=dark] .diagnostics-setting-row[aria-checked=true]{background:#39455e;color:#d6deed;border-color:#8298c2}

/* Preserve both backdrop declarations outside the compiled CSS prefix optimizer. */
.live-diagnostics::before{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
