.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:44px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:#162c3b;color:#d8ebe9;cursor:pointer;white-space:nowrap;font-size:.875rem}
.theme-toggle:hover{background:#244453}.theme-toggle svg{width:18px;height:18px;flex-shrink:0}.theme-toggle svg[hidden]{display:none}.theme-toggle:focus-visible{outline:3px solid #a9dfce;outline-offset:3px}
.destination>summary{color:#fff}
:root[data-theme="light"]{color-scheme:light;--ink:#173745;--muted:#526976;--blue:#176083;--deep:#174d66;--border:#ccd9e0;--bg:#f4f8fb;--white:#fff;--amber:#80500e;--amber-bg:#fff3df;--accent:#17635d;--line:#ccd9e0;--card:#fff;background:var(--bg);color:var(--ink)}
:root[data-theme="light"] body{background:var(--bg);color:var(--ink)}
:root[data-theme="light"] .site-header{background:#ffffffed;border-color:var(--border)}
:root[data-theme="light"] :is(a,.text-button,.text-link){color:#165f7b}
:root[data-theme="light"] :is(.brand,.close){color:var(--ink)}
:root[data-theme="light"] .brand-icon{background:#174d66;color:#fff}
:root[data-theme="light"] .brand-country{color:var(--muted)}
:root[data-theme="light"] :is(.language-switch,.theme-toggle){background:#e7eff3;border-color:#c9d9df;color:var(--ink)}
:root[data-theme="light"] .language-switch .language-link{color:var(--muted)}
:root[data-theme="light"] .language-switch .active{background:#fff;color:#174d66;box-shadow:0 1px 4px #1637451a}
:root[data-theme="light"] .theme-toggle:hover{background:#d6e5ec}
:root[data-theme="light"] .button.primary{background:#17635d;color:#fff;border-color:#17635d}
:root[data-theme="light"] .button.primary:hover{background:#0f504b}
:root[data-theme="light"] .button.subtle{background:#e4eef3;color:#174d66;border-color:#c9d9df}
:root[data-theme="light"] .button.subtle:hover{background:#d4e5ed}
:root[data-theme="light"] :is(.day-card,.destination,.rec-card,.info-details,.table-scroll,dialog){background:#fff;border-color:var(--border);color:var(--ink)}
:root[data-theme="light"] :is(.workspace-bar,.domestic-decision,.record-notice,.sky-summary article){background:#eaf3f6;border-color:#c1d7df;color:var(--ink)}
:root[data-theme="light"] :is(.day-events,.day-event,.transfer-entry,.map-under){border-color:var(--border)}
:root[data-theme="light"] :is(.day-card summary p,.day-event p,.rec-card p,.sky-summary p,.photo-credit,.small-note,small,label,#plan-count,#master-table p){color:var(--muted)}
:root[data-theme="light"] :is(.date-block,.day-event time){color:#1a665d}
:root[data-theme="light"] .sky-summary strong{color:#173e50}
:root[data-theme="light"] .hero-facts span{border-color:#9ab7c1}
:root[data-theme="light"] :is(.day-card summary:after,.theme-toggle:focus-visible){color:#17635d}
:root[data-theme="light"] .pill{background:#e0f0ea;color:#1d5e50}
:root[data-theme="light"] .status-chip{border-color:#bacbd5;color:#425e6e;background:#f5f8fa}
:root[data-theme="light"] .status-chip.booked{color:#235d36;background:#e5f4e9;border-color:#a9ccb5}
:root[data-theme="light"] .status-chip.candidate{color:#805018;background:#fff6e5;border-color:#e0c697}
:root[data-theme="light"] .status-chip.done{color:#496477}
:root[data-theme="light"] :is(input,select,textarea){background:#fff;color:var(--ink);border-color:#aebfc9}
:root[data-theme="light"] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#176083}
:root[data-theme="light"] .dialog-top button{background:#eaf1f5;color:var(--ink)}
:root[data-theme="light"] dialog{box-shadow:0 25px 80px #183c4e33}
:root[data-theme="light"] dialog::backdrop{background:#193b4d66}
:root[data-theme="light"] .form-error:not(:empty){color:#8b271c;background:#fff0ed}
:root[data-theme="light"] .danger{color:#a33626}
:root[data-theme="light"] :is(.table-scroll td,.table-scroll th){border-color:#d7e2e8}
:root[data-theme="light"] :is(.table-scroll thead th,.table-scroll tfoot){background:#e0edf3;color:#244d61}
:root[data-theme="light"] .table-scroll tbody tr:nth-child(even){background:#f4f8fa}
:root[data-theme="light"] :is(#master-table th:first-child,#master-table td:first-child){background:#eaf3f7;color:var(--ink)}
:root[data-theme="light"] .weather-panel{background:#f1f5eb;border-color:#c7d2b9}
:root[data-theme="light"] .weather-panel p{color:#4e624b}
:root[data-theme="light"] .overlap{background:#fff5df;border-color:#b48835;color:#6c4d20}
:root[data-theme="light"] .empty-state{color:var(--muted)}
:root[data-theme="light"] .budget-highlight{background:#e6f0f5;color:#173e50;border-color:#bacfd9}
:root[data-theme="light"] .budget-highlight small{color:#4a6877}
:root[data-theme="light"] .budget-highlight p{color:#385967}
:root[data-theme="light"] :is(.map-layout,.map-stops,.map-under){background:#fff;color:var(--ink)}
:root[data-theme="light"] #trip-map{background:#e5edf1}
:root[data-theme="light"] .leaflet-tile-pane{filter:none}
:root[data-theme="light"] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-bar a,.leaflet-control-attribution){background:#fff!important;color:#173745!important}
:root[data-theme="light"] .leaflet-bar a:hover{background:#e5eff4!important}
:root[data-theme="light"] .leaflet-container a{color:#176083}
:root[data-theme="light"] .toast{background:#173e50;color:#fff}
:root[data-theme="light"] .destination>summary small{color:#bdd8d6}
@media(max-width:760px){.header-inner{gap:10px}.header-inner>.theme-toggle{margin-left:0;flex-basis:auto;padding:8px 10px}.language-switch{margin-left:auto}.theme-toggle{font-size:.875rem}}
@media(max-width:360px){.header-inner{gap:7px}.header-inner>.theme-toggle{padding:8px}.theme-toggle .theme-label{display:none}}
:root[data-theme="light"] :is(.latest-plan,.plan-source){background:#edf5f8;border-color:#bdd2dc;color:var(--ink)}
:root[data-theme="light"] .plan-source.has-differences{border-color:#a77a31}
:root[data-theme="light"] .latest-events time{color:#17635d}
:root[data-theme="light"] .plan-change{background:#f6fafb;border-color:#bfd1da}
:root[data-theme="light"] :is(.day-event .event-actions>a,.rec-actions>a,.rec-actions>button){background:#edf4f7;border-color:#bdd0d9;color:#175b70}
:root[data-theme="light"] .day-event .event-actions>button{background:#deefe8;border-color:#a8c8bc;color:#16594a}
:root[data-theme="light"] :is(.day-event .event-actions>:hover,.rec-actions>:hover){background:#d6e7ed}
