/* GSE vehicle page (mock). Ported from sumitomo_ta_mvp docs/gse-mock/gse.css;
   builds on the tokens in mvp.css. Developer-notes and airport-switcher rules
   are dropped; page-level overrides are scoped to .gse-page.
   Vehicle state is carried by colour, marker shape/outline and text together:
   green filled = 空き, blue dashed ring = 使用中 (position pending),
   orange = 積載中, grey dashed with "?" = 要確認. Circles are powered vehicles,
   rounded squares are dollies. Colours validated for CVD on --surface. */
:root {
  --st-available: #3ddc97;
  --st-in-use: #4fb3ff;
  --st-loaded: #ff9a4d;
  --st-unknown: #8b9cae;
  --sev-critical: #ff8a8a;
  --sev-warning: #ffc65c;
  --sev-info: #7cc4ff;
  --heat-0: #14202c;
  --heat-1: #4fb3ff;
  --map-dim: brightness(.62) saturate(.7) contrast(1.05);
  --note: #e7b3ff;
}

html.mvp-mode .main.gse-page { display: flex; flex-direction: column; gap: 16px; }
.main.gse-page > * { min-width: 0; }
/* Each view's blocks (status tiles, KPI rows, panels) stack with the page gap. */
.gse-page .view { display: flex; flex-direction: column; gap: 16px; }
.gse-page .view > * { min-width: 0; }

.mock-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 8px 14px; border: 1px dashed #e7b3ff66; border-radius: var(--radius);
  color: var(--text-2); font-size: 14px; background: #e7b3ff0a;
}
.mock-banner strong { color: var(--note); font-weight: 700; }

.gse-page .page-heading { margin-bottom: 0; flex-wrap: wrap; }

/* View tabs: underline style so they read as page sections, not filters. */
.view-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.view-tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px 12px; border: 0; background: transparent; color: var(--text-2);
  font-weight: 650; font-size: 17px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.view-tab:hover { color: var(--text); }
.view-tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
.tab-badge {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #2a1013; background: var(--sev-critical); font-variant-numeric: tabular-nums; text-align: center;
}

/* Status tiles double as filters. */
.status-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.status-tile {
  --st: var(--text-3);
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; text-align: left; padding: 12px 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background-color .15s, opacity .15s;
}
.status-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.status-tile .vmark { position: relative; transform: none; grid-row: 1 / span 2; }
.status-tile-label { font-size: 15px; color: var(--text-2); font-weight: 650; }
.status-tile-value { font-size: 30px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.status-tile-value small { font-size: 15px; color: var(--text-3); font-weight: 600; margin-left: 4px; }
.status-tile[aria-pressed='false'] { opacity: .45; }
.status-tile[aria-pressed='false'] .status-tile-value { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--text-3); }
.status-tile.alerts { --st: var(--sev-critical); }
.status-tile.alerts .status-tile-value { color: var(--sev-critical); }
.alert-glyph { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sev-critical); color: #2a1013; font-weight: 800; }

/* Map + side panel */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.map-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 15px; font-weight: 600;
}
.chip:hover { color: var(--text); border-color: #4a6078; }
.chip[aria-pressed='true'] { color: var(--text); background: #17324c; border-color: var(--accent); }
.chip .count { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 14px; }
.map-meta { font-size: 14px; color: var(--text-3); }

.map-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line);
  background: #05080c; touch-action: none; cursor: grab; max-width: 100%;
  max-height: 74dvh;
}
.map-frame.dragging { cursor: grabbing; }
.map-layer { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; will-change: transform; }
.map-layer img { position: absolute; inset: 0; width: 100%; height: 100%; filter: var(--map-dim); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.map-layer svg.overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-controls { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.map-controls button {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid #ffffff26; background: #0b121ae6; color: var(--text);
}
.map-controls button:hover { background: var(--surface-3); }
.map-attrib { position: absolute; right: 8px; bottom: 6px; z-index: 3; font-size: 11px; color: #d6dee6; background: #000a; padding: 1px 6px; border-radius: 4px; }
.map-scale { position: absolute; left: 10px; bottom: 8px; z-index: 3; font-size: 12px; color: #e8eef5; display: flex; flex-direction: column; gap: 2px; }
.map-scale span { display: block; height: 6px; border: 2px solid #e8eef5; border-top: 0; }

/* Vehicle markers stay the same size while the map zooms. */
.vmark {
  --st: var(--st-unknown);
  position: absolute; z-index: 2;
  width: 26px; height: 26px; padding: 0;
  display: grid; place-items: center;
  transform: translate(-50%, -50%) scale(calc(1 / var(--s, 1)));
  border-radius: 50%; border: 2px solid #0a0f15;
  background: var(--st); color: #071016;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  box-shadow: 0 1px 4px #000c;
}
.vmark.square { border-radius: 6px; }
.vmark.available { --st: var(--st-available); }
.vmark.loaded { --st: var(--st-loaded); }
.vmark.in_use { --st: var(--st-in-use); }
.vmark.in_use, .vmark.unknown { background: #0a0f15d9; color: var(--st); border: 2px dashed var(--st); }
.vmark.unknown::after { content: '?'; position: absolute; right: -7px; bottom: -7px; width: 15px; height: 15px; border-radius: 50%; background: var(--st-unknown); color: #0a0f15; font-size: 10px; display: grid; place-items: center; }
.vmark.has-alert::before {
  content: '!'; position: absolute; right: -7px; top: -7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--sev-critical); color: #2a1013; font-size: 10px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #0a0f15;
}
button.vmark:hover { z-index: 5; box-shadow: 0 0 0 3px #ffffffb3, 0 1px 4px #000c; }
.vmark.selected { z-index: 6; box-shadow: 0 0 0 3px #fff, 0 0 0 7px #ffffff40, 0 2px 8px #000; }
.vmark.dimmed { opacity: .18; pointer-events: none; }
.vmark.legend { position: relative; transform: none; width: 22px; height: 22px; font-size: 9px; flex: none; }
.vmark.legend.unknown::after { width: 12px; height: 12px; right: -5px; bottom: -5px; font-size: 8px; }

.stand-pin {
  position: absolute; z-index: 1; transform: translate(-50%, -50%) scale(calc(1 / var(--s, 1)));
  padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap;
  color: #dfe7ef; background: #0a0f15b3; border: 1px solid #ffffff2e; pointer-events: none;
}
.stand-pin.target { color: #04121f; background: #e8eef5; border-color: #fff; box-shadow: 0 0 0 4px #e8eef540; z-index: 4; }

.route-stop {
  position: absolute; z-index: 2; transform: translate(-50%, -50%) scale(calc(1 / var(--s, 1)));
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #e8eef5; color: #071016; font-size: 11px; font-weight: 800; border: 2px solid #0a0f15; box-shadow: 0 1px 4px #000c;
}
.route-stop.current { background: var(--st-in-use); width: 28px; height: 28px; }
.route-stop.active { box-shadow: 0 0 0 3px var(--accent), 0 1px 4px #000c; z-index: 4; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-2); padding: 2px 2px 0; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }

.icon-button { border: 0; border-radius: 8px; background: transparent; color: var(--text-2); padding: 6px; display: grid; place-items: center; }
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button .icon { width: 22px; height: 22px; }

/* Side panel */
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side .panel { padding: 16px 18px; }
.side h3 { font-size: 18px; color: var(--text); }
.field-label { display: block; font-size: 14px; color: var(--text-3); font-weight: 650; margin: 12px 0 6px; }
select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #0c131b; color: var(--text); font-size: 16px;
}
.target-card { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.target-card .row { display: flex; justify-content: space-between; gap: 10px; }
.target-card .row span:first-child { color: var(--text-3); }
.target-card .mono { font-variant-numeric: tabular-nums; }
.ta-link { color: var(--accent); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.avail-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.avail-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.avail-group-head strong { font-size: 16px; }
.avail-count { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.avail-count b { color: var(--st-available); font-size: 18px; }
.avail-count.none b { color: var(--sev-warning); }
.avail-row {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  text-align: left; padding: 7px 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text);
}
.avail-row:hover { background: var(--surface-2); border-color: var(--line); }
.avail-row .vmark { position: relative; transform: none; width: 22px; height: 22px; font-size: 9px; grid-row: 1 / span 2; }
.avail-row strong { font-size: 16px; }
.avail-row .distance { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.avail-row small { grid-column: 2 / span 2; color: var(--text-3); font-size: 13px; }
.avail-more { font-size: 13px; color: var(--text-3); padding: 2px 8px; }
.empty-line { font-size: 15px; color: var(--sev-warning); padding: 4px 8px; }
.fine-print { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-top: 12px; }

.vehicle-head { display: flex; align-items: center; gap: 12px; }
.vehicle-head .vmark { position: relative; transform: none; width: 34px; height: 34px; font-size: 12px; }
.vehicle-head h3 { font-size: 22px; }
.vehicle-head p { font-size: 14px; color: var(--text-3); }
.vehicle-head .icon-button { margin-left: auto; font-size: 20px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); }
.vehicle-head .icon-button:hover { background: var(--surface-2); color: var(--text); }
.status-reason { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); }
.pill.st-available { color: var(--st-available); background: #3ddc9714; border-color: #3ddc9750; }
.pill.st-in_use { color: var(--st-in-use); background: #4fb3ff14; border-color: #4fb3ff50; }
.pill.st-loaded { color: var(--st-loaded); background: #ff9a4d14; border-color: #ff9a4d50; }
.pill.st-unknown { color: var(--text-2); border-style: dashed; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 14px; margin: 14px 0 0; font-size: 15px; }
.facts dt { color: var(--text-3); white-space: nowrap; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd small { display: block; color: var(--text-3); font-size: 13px; }
.battery { display: inline-flex; align-items: center; gap: 8px; }
.battery-bar { width: 44px; height: 10px; border-radius: 3px; border: 1px solid var(--line-strong); padding: 1px; }
.battery-bar span { display: block; height: 100%; border-radius: 2px; background: var(--text-2); }
.battery.low .battery-bar span { background: var(--sev-warning); }
.battery.low { color: var(--sev-warning); }
.side .actions { margin-top: 14px; }
.mini-events { list-style: none; margin: 10px 0 0; padding: 0 0 0 6px; display: flex; flex-direction: column; }
.mini-events li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid var(--line); font-size: 14px; }
.mini-events li:last-child { padding-bottom: 0; }
.mini-events li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); }
.mini-events li.on::before { background: var(--st-in-use); box-shadow: none; }
.mini-events li.stop::before { background: #e8eef5; box-shadow: none; }
.mini-events time { color: var(--text-3); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* Utilization */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.toolbar p { font-size: 14px; color: var(--text-3); max-width: 70ch; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 14px; color: var(--text-3); font-weight: 650; }
.kpi strong { font-size: 32px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi strong small { font-size: 16px; color: var(--text-2); font-weight: 600; margin-left: 3px; }
.kpi em { font-style: normal; font-size: 13px; color: var(--text-3); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.panel-head h3 { font-size: 18px; color: var(--text); }
.panel-head p { font-size: 14px; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }

.fleet-rows { display: flex; flex-direction: column; gap: 14px; }
.fleet-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.fleet-row-label { font-weight: 650; font-size: 16px; }
.fleet-row-label small { display: block; font-weight: 500; color: var(--text-3); font-size: 13px; }
.fleet-track { position: relative; height: 22px; }
.fleet-total { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fleet-peak { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 3px; background: var(--accent); }
.fleet-mean { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); }
.fleet-figures { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fleet-figures b { color: var(--text); }
.fleet-figures .surplus b { color: var(--st-loaded); }
.key-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.key { display: inline-flex; align-items: center; gap: 7px; }
.key i { display: inline-block; width: 20px; height: 10px; border-radius: 3px; }
.key i.total { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.key i.peak { background: var(--accent); height: 7px; }
.key i.mean { width: 2px; height: 14px; background: var(--text); }

.heatmap-wrap { overflow-x: auto; }
.heatmap { display: grid; grid-template-columns: 160px repeat(24, minmax(26px, 1fr)); gap: 2px; min-width: 820px; font-variant-numeric: tabular-nums; }
.heatmap .hour { font-size: 12px; color: var(--text-3); text-align: center; padding-bottom: 4px; }
.heatmap .row-label { font-size: 14px; font-weight: 650; display: flex; align-items: center; padding-right: 8px; }
.heat-cell {
  height: 34px; border-radius: 3px; display: grid; place-items: center; font-size: 12px; font-weight: 650;
  background: color-mix(in oklab, var(--heat-1) calc(var(--v) * 100%), var(--heat-0));
  color: var(--text-2);
}
.heat-cell.strong { color: #04121f; }
.heat-cell.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--surface) 4px 8px); color: transparent; }
.heat-cell:hover { outline: 2px solid var(--text); outline-offset: -1px; }
.heat-scale { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin-top: 12px; flex-wrap: wrap; }
.heat-scale .ramp { width: 160px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--heat-0), var(--heat-1)); box-shadow: inset 0 0 0 1px var(--line); }
.heat-scale .closed-key { display: inline-block; width: 18px; height: 10px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--surface) 3px 6px); box-shadow: inset 0 0 0 1px var(--line); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; text-align: left; }
.data-table th { font-size: 13px; color: var(--text-3); font-weight: 650; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: #ffffff05; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .name { font-weight: 650; white-space: nowrap; }
.link-button { border: 0; background: transparent; padding: 0; color: var(--accent); font-weight: 650; font-size: inherit; text-decoration: underline; text-decoration-color: #4fb3ff55; text-underline-offset: 3px; }
.util-bar { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.util-bar .track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.util-bar .fill { height: 100%; border-radius: 4px; background: var(--accent); }
.util-bar .fill.low { background: var(--st-loaded); }
.util-bar span { font-variant-numeric: tabular-nums; width: 3.2em; text-align: right; font-size: 14px; }
.tag { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 650; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.tag.low { color: var(--st-loaded); border-color: #ff9a4d66; }
.tag.excluded { border-style: dashed; color: var(--text-3); }
.excluded-row td { color: var(--text-3); }
.show-more { margin-top: 10px; }

/* Route */
.route-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.route-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.route-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-3); font-weight: 650; min-width: 220px; }
.caveat {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius);
  background: #ffc65c0f; border: 1px solid #ffc65c40; color: #f5dcaa; font-size: 14px; line-height: 1.6;
}
.caveat .icon { margin-top: 3px; color: var(--warn); }
.event-list { list-style: none; margin: 0; padding: 0 0 0 6px; max-height: 620px; overflow: auto; }
.event-list li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); }
.event-list li:last-child { padding-bottom: 2px; }
.event-list li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); }
.event-list li.on::before { background: var(--st-in-use); box-shadow: 0 0 0 3px #4fb3ff33; }
.event-list li.stop::before { background: #e8eef5; box-shadow: none; }
.event-list li.zone::before { box-shadow: inset 0 0 0 2px var(--remaining); }
.event-list li button { all: unset; cursor: pointer; display: block; width: 100%; border-radius: 6px; }
.event-list li button:hover strong { color: var(--accent); }
.event-list li button:focus-visible { outline: 2px solid var(--accent); }
.event-list time { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.event-list strong { display: block; font-size: 16px; font-weight: 650; }
.event-list small { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.stop-index { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e8eef5; color: #071016; font-size: 11px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }

.day-strip { margin-top: 4px; }
.day-scale, .day-track { position: relative; }
.day-scale { height: 20px; }
.day-scale span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.day-track { height: 34px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.day-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.day-on { position: absolute; top: 8px; bottom: 8px; min-width: 3px; border-radius: 3px; background: var(--st-in-use); }
.day-on.ongoing { border-radius: 3px 0 0 3px; background: linear-gradient(90deg, var(--st-in-use) 60%, #4fb3ff33); }
.day-lag { position: absolute; top: 12px; bottom: 12px; background: repeating-linear-gradient(135deg, #4fb3ff66 0 3px, transparent 3px 6px); }
.day-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--live); }
.day-future { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(135deg, transparent 0 5px, #ffffff06 5px 10px); }

/* Alerts */
.alert-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.alert-kind { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px; }
.alert-kind span { font-size: 14px; color: var(--text-2); font-weight: 650; }
.alert-kind strong { font-size: 28px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; }
.alert-kind em { font-style: normal; font-size: 13px; color: var(--text-3); }
.alert-kind.zero strong { color: var(--text-3); }
.sev { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.sev::before { content: ''; width: 9px; height: 9px; flex: none; }
.sev.critical { color: var(--sev-critical); border-color: #ff8a8a66; background: #ff8a8a14; }
.sev.critical::before { background: currentColor; transform: rotate(45deg); }
.sev.warning { color: var(--sev-warning); border-color: #ffc65c55; background: #ffc65c12; }
.sev.warning::before { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid currentColor; width: 0; height: 0; }
.sev.info { color: var(--sev-info); border-color: #7cc4ff55; background: #7cc4ff12; }
.sev.info::before { border-radius: 50%; background: currentColor; }
.alert-row.acknowledged td, .alert-row.cleared td { color: var(--text-3); }
.alert-row.acknowledged .sev, .alert-row.cleared .sev { opacity: .55; }
.alert-detail { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.acked { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text-3); }
.data-table .button { font-size: 14px; padding: 6px 12px; }

@media (max-width: 1250px) {
  .map-layout, .route-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .status-strip, .alert-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .status-strip, .alert-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-tile-value, .kpi strong { font-size: 26px; }
  .fleet-row { grid-template-columns: minmax(0, 1fr); }
  .fleet-figures { grid-column: 1; }
}
@media (max-width: 650px) {
  .view-tab { padding: 8px 10px 10px; font-size: 15px; }
  .view-tab .icon { display: none; }
  .mock-banner { font-size: 13px; }
}
