/* A single semantic palette. Light values remain the original declaration fallbacks. */
html[data-theme=light]{color-scheme:light}
html[data-theme=dark]{color-scheme:dark;--kd-canvas:#101b2d;--kd-surface:#18263c;--kd-surface-rgb:24,38,60;--kd-surface-soft:#20324c;--kd-surface-soft-rgb:32,50,76;--kd-text:#e8effa;--kd-text-rgb:232,239,250;--kd-text-muted:#b1c0d5;--kd-text-muted-rgb:177,192,213;--kd-border:#354a66;--kd-border-rgb:53,74,102;--kd-link:#94beff;--kd-link-rgb:148,190,255;--kd-danger-text:#ffb2bf;--kd-danger-text-rgb:255,178,191;--kd-danger-surface:#442637;--kd-danger-surface-rgb:68,38,55;--kd-success-text:#87ddc1;--kd-success-text-rgb:135,221,193;--kd-success-surface:#193d36;--kd-success-surface-rgb:25,61,54;--kd-warning-text:#f3cd8b;--kd-warning-text-rgb:243,205,139;--kd-warning-surface:#40341e;--kd-warning-surface-rgb:64,52,30;--kd-ink:var(--kd-text);--kd-muted:var(--kd-text-muted);--kd-line:var(--kd-border);--kd-soft:var(--kd-surface-soft);--kd-brand:#246bd9;--kd-brand-rgb:36,107,217;--kd-teal:var(--kd-success-text);--kd-danger:var(--kd-danger-text);--kd-shadow:0 8px 32px #0003;--ink:var(--kd-text);--muted:var(--kd-text-muted);--line:var(--kd-border);--canvas:var(--kd-canvas);--bg:var(--kd-canvas);--kd-category-halo:#244368;--kd-category-ice:#234652;--category-halo:var(--kd-category-halo);scrollbar-color:#526883 #142037;background:var(--kd-canvas);color:var(--kd-text)}
html[data-theme=dark] body{background:var(--kd-canvas);color:var(--kd-text)}
html[data-theme=dark] :is(input,textarea,select,button){color-scheme:dark}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=color]):not([type=hidden]),textarea,select){color:var(--kd-text);background-color:#122037;border-color:#405774}
html[data-theme=dark] ::placeholder{color:#a2b4ce;opacity:1}
html[data-theme=dark] :is(select option,select optgroup){background:#18263c;color:#e8effa}
html[data-theme=dark] :is(dialog,.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-layers,.leaflet-bar a){background:var(--kd-surface);color:var(--kd-text);border-color:var(--kd-border)}
html[data-theme=dark] .leaflet-bar a:hover{background:var(--kd-surface-soft)}
html[data-theme=dark] .leaflet-container{background:#24374a}
html[data-theme=dark] .leaflet-control-attribution{background:#18263cea;color:#b1c0d5}
html[data-theme=dark] .leaflet-control-attribution a{color:#94beff}
html[data-theme=dark] :is(input,textarea):autofill{-webkit-text-fill-color:#e8effa;box-shadow:0 0 0 1000px #122037 inset;caret-color:#e8effa}
html[data-theme=dark] :is(input,textarea):-webkit-autofill{-webkit-text-fill-color:#e8effa;box-shadow:0 0 0 1000px #122037 inset;caret-color:#e8effa}
@media print{html[data-theme=dark]{color-scheme:light;--kd-canvas:#fff;--kd-surface:initial;--kd-surface-rgb:initial;--kd-surface-soft:initial;--kd-surface-soft-rgb:initial;--kd-text:initial;--kd-text-rgb:initial;--kd-text-muted:initial;--kd-text-muted-rgb:initial;--kd-border:initial;--kd-border-rgb:initial;--kd-link:initial;--kd-link-rgb:initial;--kd-danger-text:initial;--kd-danger-surface:initial;--kd-warning-text:initial;--kd-warning-surface:initial;--kd-success-text:initial;--kd-success-surface:initial;--kd-ink:#172b4d;--kd-muted:#56677f;--kd-line:#dce5ef;--kd-soft:#f2f6fc;--ink:#172b4d;--muted:#56677f;--line:#dce5ef;--canvas:#fff;--bg:#fff;background:#fff;color:#172b4d}html[data-theme=dark] body{background:#fff;color:#172b4d}}

html[data-theme=dark] .admin-layout button.text-link{background:transparent;border-color:transparent}
