:root {
  color-scheme: light;
  color: #152c45;
  background: #edf3f8;
  font: 14px/1.45 Inter, "Segoe UI", system-ui, sans-serif;
  --navy: #112338;
  --muted: #49627a;
  --line: #cfdae5;
  --blue: #175e85;
  --snow: #f4f8fb;
  --red: #9a3425;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, select, a { font: inherit; }
button, select { border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: inherit; background: white; padding: 8px 10px; }
button:hover { border-color: var(--blue); }
button:disabled { cursor: default; color: #50647a; background: #e9eef3; border-color: #d0dce7; }
:focus-visible { outline: 3px solid #de7f30; outline-offset: 3px; }
.top { min-height: 72px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; padding: 10px 18px; background: var(--navy); color: #f6faff; }
.top button, .top select { background: #203951; border-color: #50657a; color: #f6faff; }
.top button:hover, .top button[aria-pressed="true"] { background: #f4f9fc; color: var(--navy); }
.back { color: #dce8f3; text-decoration: none; white-space: nowrap; }
.back:hover { text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.brand > span { display: grid; place-items: center; width: 41px; height: 41px; background: #e7f5fc; color: var(--navy); border-radius: 9px; font: 700 15px Georgia, serif; }
.brand strong { font-size: 16px; }
small { display: block; color: var(--muted); }
.brand small { color: #c4d5e4; }
.actions, .switch { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.actions select { max-width: 80px; }
main { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.operations { min-width: 0; display: flex; flex-direction: column; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.metric { background: var(--snow); padding: 10px 17px; }
.metric strong { display: block; font-size: 21px; letter-spacing: -.04em; }
.domain { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 660px; flex: 1; isolation: isolate; background: radial-gradient(ellipse at 50% 33%, #f1f7fb, #bacddd); }
.map-frame { width: min(100%, 1100px, max(620px, calc((100dvh - 188px) * 1.3333))); aspect-ratio: 4/3; position: relative; margin-block: 24px; }
.camera { position: absolute; inset: 0; transform-origin: var(--origin-x, 50%) var(--origin-y, 50%); transition: transform .7s ease; }
.camera.zoom { transform: scale(1.36); }
.is-3d .map-frame { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.is-3d .camera.zoom { transform: none; }
.is-3d .terrain, .is-3d .moving { display: none; }
.domain-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.domain-canvas:active { cursor: grabbing; }
#bookings-layer, #zones-layer { position: absolute; inset: 0; pointer-events: none; }
#bookings-layer button, #zones-layer button { pointer-events: auto; }
.is-3d .booking-pin { transition: none; }
.camera-controls { position: absolute; top: 16px; right: 16px; display: grid; gap: 4px; }
.camera-controls button { width: 36px; padding: 6px 0; font-size: 17px; }
.terrain { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.moving { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.cabin { width: 3.55%; }
.rider { width: 2.8%; }
.map-title { position: absolute; top: 16px; left: 21px; pointer-events: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.15; letter-spacing: -.047em; }
.map-title h1 { font-size: clamp(20px, 2.6vw, 36px); font-weight: 700; }
.map-title p { font-size: 12px; margin-top: 4px; color: #304d66; }
.zone-nav { position: absolute; bottom: 12px; inset-inline: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.zone-nav button { box-shadow: 0 2px 7px #172b431c; }
.zone-nav [aria-pressed="true"], .primary, .booking[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.zone-pin, .booking-pin { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; box-shadow: 0 2px 10px #14213544; }
.zone-pin { background: #f7fbff; border-color: #395b78; font-size: clamp(10px, 1.15vw, 13px); font-weight: 650; padding: 5px 8px; }
.zone-pin[aria-pressed="true"] { background: var(--navy); color: #f6faff; }
.booking-pin { border-color: white; color: white; background: #356889; padding: 3px 6px; font-size: 10px; transition: left .55s ease, top .55s ease; }
.booking-pin[aria-pressed="true"] { color: white; background: var(--red); }
.panel { border-left: 1px solid var(--line); background: #fff; padding: 19px 18px; min-width: 0; overflow: auto; }
.panel-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--snow); border: 1px solid var(--line); border-radius: 10px; }
.panel-tabs button { border-color: transparent; background: transparent; flex: 1; padding-inline: 5px; font-size: 13px; }
.panel-tabs [aria-pressed="true"] { background: white; border-color: #c8d6e4; color: var(--blue); font-weight: 700; }
.panel h2 { font-size: 27px; margin-bottom: 7px; }
.panel h3 { margin: 17px 0 7px; font-size: 14px; }
.panel .sub { color: var(--muted); margin-bottom: 14px; }
.panel .task { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin: 10px 0 16px; }
.panel input { accent-color: var(--blue); }
.panel .detail { border-top: 1px solid var(--line); margin-top: 16px; }
.panel .chip { margin: 0 0 13px; color: var(--blue); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 9px 0; }
.facts div { background: var(--snow); border-radius: 7px; padding: 6px 8px; }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { margin: 1px 0 0; font-weight: 700; }
.itinerary, .history { padding-left: 1.4em; margin: 6px 0 12px; color: var(--muted); font-size: 12px; }
.itinerary li { padding: 2px 4px; }
.itinerary [aria-current] { color: var(--blue); background: #eaf5fc; border-radius: 5px; font-weight: 750; }
.itinerary .done { color: #295f4c; }
.stock-line { border-bottom: 1px solid var(--line); padding: 0 0 10px; }
.stock-line progress { display: block; margin: 4px 0; width: 100%; height: 7px; accent-color: var(--blue); }
.stock-alert { color: #8a311f; font-weight: 700; margin: 4px 0; }
.schedule-line { padding-bottom: 6px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.schedule-line .booking { margin-bottom: 2px; }
dialog { width: min(400px,calc(100% - 28px)); border: 1px solid var(--line); border-radius: 14px; padding: 21px; color: inherit; box-shadow: 0 16px 50px #16263744; }
dialog::backdrop { background: #18293a99; }
dialog h2 { margin-bottom: 15px; }
dialog label { display: grid; gap: 4px; margin-block: 12px; }
dialog input { font: inherit; width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; }
.form-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.zone-row, .booking { display: block; width: 100%; margin-bottom: 7px; text-align: left; overflow-wrap: anywhere; }
.booking[aria-pressed="true"] small { color: #e9f6ff; }
.board { overflow: auto; padding: 14px; display: grid; grid-template-columns: repeat(5, minmax(132px, 1fr)); gap: 8px; align-items: start; }
.lane { background: #f8fbfd; border: 1px solid var(--line); border-radius: 10px; min-height: 140px; padding: 9px; }
.lane h2 { font-size: 14px; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.filming .top .back, .filming .top #new, .filming .switch, .filming #lang, .filming .zone-nav, .filming .map-title p { display: none; }
@media (min-width: 981px) and (min-height: 800px) {
  main { min-height: 0; height: calc(100dvh - 72px); }
  .operations { min-height: 0; }
  .is-3d.domain { min-height: 0; }
}
@media (max-width: 980px) {
  main { grid-template-columns: minmax(0, 1fr) 275px; }
  .domain { min-height: 520px; }
  .metric { padding: 9px; }
}
@media (max-width: 760px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .domain { min-height: 355px; }
  .map-title { top: 10px; left: 12px; }
  .map-frame { margin-block: 38px 55px; }
  .booking-pin { display: none; }
  .zone-nav button { font-size: 11px; padding: 5px 6px; }
  .top { padding: 9px; gap: 8px; }
  .actions button, .actions select { font-size: 12px; padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .camera, .booking-pin { transition: none; }
}
