/* Shared SWAN monochrome foundation. Keep health/warning colours meaningful;
   photographs, diagrams, maps and per-person calendar colours retain their data. */
:root {
  color-scheme: dark;
  --bg: #000 !important;
  --panel: #0b0b0b !important;
  --panel2: #111 !important;
  --line: #333 !important;
  --line2: #555 !important;
  --text: #fff !important;
  --muted: rgba(255,255,255,.72) !important;
  --accent: #eee !important;
  --active: #fff !important;
  --swan-surface: #0b0b0b;
  --swan-surface-raised: #161616;
  --swan-border: #3b3b3b;
  --swan-focus: #fff;
  --swan-action: linear-gradient(180deg,#484848 0%,#242424 48%,#090909 49%,#020202 100%);
}
html, body { background-color: #000; }
.leaflet-container .leaflet-control-attribution a { color:#333; }
*, *::before, *::after { box-sizing: border-box; }
input, select, textarea { min-width: 0; max-width: 100%; accent-color: #eee; }
input::placeholder, textarea::placeholder { color: #a8a8a8; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--swan-focus) !important;
  outline-offset: 2px;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus, select:focus {
  border-color: #eee !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.14) !important;
}
.btn:not(.danger):not(.bad):not(.warn):not(.warning):not(.ok):not(.success) {
  background: var(--swan-action) !important;
  border-color: #777 #444 #333 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 #ffffff65, 0 3px 6px #000a !important;
}
.btn:not(.danger):not(.bad):not(.warn):not(.warning):not(.ok):not(.success):is(.active,.primary,[aria-pressed="true"],[aria-selected="true"]) {
  background: linear-gradient(180deg,#555 0%,#333 48%,#1d1d1d 49%,#111 100%) !important;
  border-color: #ddd #aaa #888 !important;
  box-shadow: inset 0 0 0 1px #ffffff60, inset 0 1px 0 #ffffff80, 0 3px 6px #000a !important;
}
.btn:disabled, button:disabled { cursor: not-allowed; }
::selection { background: #ddd; color: #000; }
/* Individual modules own their scrolling containers and safe-area clearance.
   Do not force global heights/overflow: camera, map and keyboard sheets differ. */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff; }
}
