@font-face {
  font-family: Inter;
  src: url('/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f2f6ff;
  --muted: #a4b4cf;
  --faint: #7f96bc;
  --panel: #0b1833;
  --line: #283c61;
  --blue: #3986ff;
  --mint: #9ee6d2;
  --gap: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 14px/1.5 Inter, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at 60% 62vh, #0c5ad5 0%, #123478 38%, transparent 70%),
              linear-gradient(135deg, #101731, #08132b 55%, #132c61) fixed;
}
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: #9fc7ff; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #9de3ff; outline-offset: 3px; }
.exsea-pin { display: flex; align-items: flex-start; gap: 4px; width: 120px !important; height: 42px !important; border: 0; background: transparent; }
.exsea-pin-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: #fff; background: #245acf; border: 2px solid #fff; border-radius: 12px 12px 12px 3px; box-shadow: 0 4px 14px #061631a6; }
.exsea-pin.stop .exsea-pin-symbol { background: #152c63; }
.exsea-pin svg { width: 22px; height: 22px; }
.exsea-pin-label { display: inline-block; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 6px; border-radius: 5px; color: #fff; background: #081b3dda; font: 700 11px Inter,sans-serif; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.13; letter-spacing: -.05em; font-weight: 720; }
h2 { font-size: 17px; line-height: 1.32; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
small { font-size: 11px; color: var(--muted); }
.muted, .notice, .empty { color: var(--muted); font-size: 13px; }
.muted { margin: 5px 0 13px; }
.empty { padding: 15px 0; }
.notice { margin: 0 0 var(--gap); }
button {
  border: 1px solid transparent; border-radius: 9px; padding: 9px 13px;
  background: #2769df; color: var(--ink); font-size: 13px; font-weight: 600;
}
button:hover:not(:disabled) { filter: brightness(1.14); }
button.secondary {
  border-color: #49618b80; background: #112445; color: #d7e7ff;
}
.sidebar {
  position: fixed; inset: 12px auto 12px 12px; width: 204px; z-index: 500;
  display: flex; flex-direction: column; padding: 21px 14px;
  background: linear-gradient(155deg,#090f24,#0a1b38); border: 1px solid #344c725e;
  border-radius: 18px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 0 5px 19px; border-bottom: 1px solid #344c725e; }
.brand img { width: 34px; border-radius: 8px; }
.brand strong { display: block; font-size: 19px; letter-spacing: .12em; line-height: 1.12; }
.brand small { display: block; margin-top: 4px; color: var(--faint); font-size: 8px; font-weight: 650; letter-spacing: .13em; }
.nav-caption { margin: 22px 9px 8px; color: var(--faint); font-size: 10px; font-weight: 650; letter-spacing: .1em; }
nav { display: grid; gap: 4px; }
nav button {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 43px;
  text-align: left; background: transparent; color: #b6c6df; padding: 7px 9px;
}
nav button[aria-current="true"] { color: white; background: #1a2c50; border-color: #658bd14d; }
.nav-icon, .asset-icon, .metric-icon { display: block; object-fit: contain; border-radius: 8px; flex: none; }
.nav-icon { width: 26px; height: 26px; }
.nav-count { margin-left: auto; background: #913e54; border-radius: 9px; min-width: 20px; padding: 1px 5px; text-align: center; font-size: 11px; }
.side-note { margin-top: auto; padding: 13px; border-radius: 12px; background: linear-gradient(135deg,#182e59,#101d37); font-size: 12px; }
.side-note span, .side-note strong { display: block; }
.side-note span { color: var(--muted); }
.side-note strong { margin: 3px 0 10px; }
.side-note a { text-decoration: none; }
main { margin-left: 216px; padding: 16px 24px 20px; max-width: 1770px; min-width: 0; }
.topbar, .page-title, .top-actions, .modebar, .section-heading, .map-toolbar, .map-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar { border-bottom: 1px solid #779ac126; min-height: 46px; padding-bottom: 9px; }
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 550; }
#today-label { color: var(--muted); font-size: 12px; }
.page-title { align-items: end; margin: 22px 0 16px; }
.page-title p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.modebar { justify-content: flex-start; flex-wrap: wrap; flex: none; gap: 7px; }
#mode-label { display: flex; align-items: center; gap: 7px; color: var(--mint); font-size: 12px; margin-right: 4px; }
#mode-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6bd5b7; }
.glass {
  min-width: 0; padding: 17px; border-radius: 15px; border: 1px solid #5e82bd3d;
  background: linear-gradient(145deg, #0c1935f7,#0a1a38f7); box-shadow: 0 8px 24px #040f2a29;
}
.section-heading { margin-bottom: 10px; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.section-heading button { padding: 5px 9px; font-size: 11px; white-space: nowrap; }
.overview-stats, .dashboard-feature, .dashboard-lower, .overview-grid, .stats, .board, .history-grid, .tracking-layout { display: grid; gap: var(--gap); }
.overview-stats, .stats { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: var(--gap); }
.overview-stat { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-copy, .stat { display: flex; flex-direction: column; gap: 2px; }
.stat-copy span, .stat span { color: var(--muted); font-size: 12px; }
.stat-copy strong, .stat strong { font-size: 26px; line-height: 1.16; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-icon { width: 38px; height: 38px; }
.stat { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid #5e82bd3d; }
.dashboard-feature { grid-template-columns: minmax(0,1.8fr) minmax(0,.94fr) minmax(0,1.36fr); margin-bottom: var(--gap); }
.dashboard-feature > .glass { min-height: 230px; }
.feature-card {
  display: flex; align-items: end; overflow: hidden; padding: 20px;
  background: linear-gradient(90deg,#07152b 5%,#07152bea 23%,#07152b45 70%,#07152b0d),
              url('/fleet-hero-branded.png') right center / cover no-repeat, #0d2857;
}
.feature-copy { max-width: 205px; }
.feature-copy small { color: #b2cdff; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.feature-copy h2 { font-size: 33px; line-height: 1.04; letter-spacing: -.045em; margin: 8px 0 10px; }
.feature-copy p { color: #c3d2ec; font-size: 12px; margin-bottom: 15px; max-width: 165px; }
.feature-copy button { padding: 6px 10px; font-size: 12px; }
.health-ring { width: 112px; margin: 5px auto 0; display: grid; place-items: center; }
.health-ring > * { grid-area: 1/1; }
.health-ring svg { width: 100%; overflow: visible; transform: rotate(-90deg); }
.health-ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: #263e66; }
.ring-value { stroke: #438eff; stroke-linecap: round; }
.ring-value[stroke-dasharray="0 100"] { visibility: hidden; }
.health-ring div { display: grid; place-items: center; }
.health-ring strong { font-size: 24px; letter-spacing: -.04em; }
.health-ring span, .health-caption { color: var(--muted); font-size: 11px; text-align: center; }
.health-caption { margin-top: 7px; }
.alert-card #overview-alarms { max-height: 175px; overflow: auto; }
.overview-row { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #30466873; }
.overview-row:last-child { border-bottom: 0; }
.overview-row span { color: var(--muted); font-size: 12px; }
.overview-link { width: 100%; border-radius: 8px; padding: 10px 11px; text-align: left; background: #16294d; margin-bottom: 7px; }
.dashboard-lower { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
.activity-chart {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 6px; text-align: center; border-radius: 10px; background: #07132b; padding: 9px 5px;
}
.chart-day { display: grid; grid-template-rows: auto 78px auto; justify-items: center; gap: 5px; min-width: 0; }
.chart-day strong { font-size: 11px; color: #c6dbff; }
.chart-day span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.chart-day svg { width: min(75%,28px); height: 78px; fill: #488eff; }
#access { max-width: 550px; margin: 36px auto; }
#access > p { color: var(--muted); margin: 8px 0 18px; }
#message { padding: 10px 13px; color: #ffe0b1; background: #3c2b28; border-radius: 9px; margin-bottom: var(--gap); }
#message:empty { display: none; }
.toolbar, form { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; }
.toolbar { margin-bottom: var(--gap); }
.toolbar .search, form label { flex: 1 1 150px; }
label { display: grid; gap: 6px; font-size: 12px; color: #c3d2e9; min-width: 0; }
input, select, textarea {
  min-height: 37px; width: 100%; color: var(--ink); background: #08142d; border: 1px solid #344b73;
  border-radius: 8px; padding: 7px 9px;
}
input::placeholder, textarea::placeholder { color: #8599b9; }
input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--blue); }
label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
.board { grid-template-columns: minmax(250px,.76fr) minmax(0,1.35fr); align-items: start; }
.trip-cards, .map-shipments, .history-trips { display: grid; gap: 8px; }
.trip-card, .map-shipment, .history-trip, .device-card {
  min-width: 0; text-align: left; color: var(--ink); border: 1px solid #30466d; background: #122344;
}
.trip-card { padding: 12px; }
.trip-card[aria-pressed="true"], .map-shipment[aria-pressed="true"], .device-card[aria-pressed="true"] { border-color: #6ea8ff; background: #19355e; }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.trip-line { display: block; color: var(--muted); font-size: 12px; font-weight: 450; overflow-wrap: anywhere; }
.trip-line.route { margin: 5px 0; color: #dde8fd; }
.badge, .alarm-state { display: inline-block; padding: 3px 7px; border-radius: 6px; font-size: 10px; color: #d8e5fb; background: #22375a; white-space: nowrap; }
.badge.ACTIVE { background: #173f72; color: #b3d4ff; }
.badge.PLANNED, .alarm-open .alarm-state { background: #503629; color: #ffd7a6; }
.badge.COMPLETED { background: #163e40; color: #b0e9d4; }
.field-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.detail-panel > h2 { margin: 4px 0 10px; font-size: 20px; }
.detail-panel h3 { margin: 16px 0 6px; }
.detail-panel p > a { font-size: 12px; }
#operator-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 12px 0; }
.operator-step { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 7px; border-radius: 8px; color: var(--muted); background: #132442; font-size: 10px; }
.operator-step span { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #253c63; }
.operator-step.done { color: var(--ink); background: #1a3560; }
.operator-step.done span { background: #3579de; }
.operator-step small { font-size: 9px; }
#details { padding: 1px 10px; background: #08152d; border-radius: 9px; }
.row { padding: 8px 0; border-bottom: 1px solid #2b4061a8; color: #c3d1e8; font-size: 12px; overflow-wrap: anywhere; }
.row:last-child { border-bottom: 0; }
.device-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); gap: 6px; }
.device-card { display: grid; gap: 3px; padding: 8px; }
.device-card span { color: var(--muted); font-size: 10px; }
.asset-icon { width: 23px; height: 23px; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.simulation { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.simulation form, .manual form { margin-top: 10px; }
.simulation p, .manual p { color: var(--muted); margin-top: 8px; font-size: 12px; }
.manual { margin-top: var(--gap); }
.tracking-layout { grid-template-columns: minmax(220px,.43fr) minmax(0,1.6fr); align-items: start; }
.map-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.map-modes button[aria-pressed="true"] { background: #245acf; color: #fff; border-color: #69a5ff; }
.map-selector [hidden] { display: none; }
.map-selector h3 { margin: 4px 0 12px; }
.map-shipment, .history-trip { display: grid; gap: 4px; }
.map-shipment span, .history-trip span { font-size: 12px; color: var(--muted); }
.map-toolbar { flex-wrap: wrap; margin-bottom: 8px; }
.map-toolbar h2 { margin: 4px 0; }
.map-toolbar p { margin: 0; }
.map-frame { position: relative; border-radius: 10px; overflow: hidden; }
#track-map { height: clamp(350px,60vh,690px); z-index: 0; background: #192e47; color-scheme: light; }
#map-error { position: absolute; inset: 8px 8px auto 44px; pointer-events: none; padding: 6px 10px; background: #152a4c; border-radius: 7px; font-size: 12px; }
.map-footer { flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12px; }
.overview-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; }
.alarm-item { padding: 12px; margin-top: 10px; background: #112343; border-radius: 10px; border: 1px solid #32486d; }
.alarm-item.alarm-open { border-color: #745745; }
.alarm-item p { margin: 5px 0; }
.alarm-ack { margin-top: 9px; }
.resolution { color: var(--mint); }
.stacked-form { display: grid; align-items: start; }
.stacked-form button { justify-self: start; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.asset-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.asset-table :is(th,td) { padding: 9px 10px; border-bottom: 1px solid #2b4061aa; }
.asset-table thead { background: #132545; color: #c5d5ef; }
.asset-table td { color: var(--muted); }
.form-panel, .history-grid { margin-top: var(--gap); }
.form-panel h3 { margin: 14px 0 8px; }
.form-panel h3:first-child { margin-top: 0; }
.history-trips { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); margin-top: 10px; }
.history-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: start; }
.history-folds details { padding: 9px 0; border-bottom: 1px solid var(--line); }
.history-folds details:last-child { border-bottom: 0; }
footer { color: #afc3e5; margin-top: 18px; font-size: 11px; }
@media (max-width: 1100px) {
  .sidebar { width: 170px; } main { margin-left: 182px; padding-inline: 16px; }
  .dashboard-feature { grid-template-columns: minmax(0,1.55fr) minmax(0,.85fr); }
  .alert-card { grid-column: 1/-1; } .dashboard-feature > .alert-card { min-height: 0; }
}
@media (max-width: 770px) {
  .sidebar { position: static; width: auto; margin: 10px 10px 0; padding: 10px; }
  .brand { border-bottom: 0; padding-bottom: 8px; } .nav-caption, .side-note { display: none; }
  nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  nav button { font-size: 11px; padding: 6px; gap: 6px; } .nav-icon { width: 22px; height: 22px; }
  main { margin: 0; padding: 10px 12px 18px; } .page-title { align-items: start; flex-direction: column; }
  .board, .tracking-layout, .overview-grid, .history-grid, .dashboard-lower { grid-template-columns: minmax(0,1fr); }
  .overview-stats, .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-shipments { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
  .glass { padding: 13px; } #today-label { display: none; }
}
@media (max-width: 460px) {
  .dashboard-feature { grid-template-columns: minmax(0,1fr); }
  .dashboard-feature > .health-card { min-height: 0; }
  #operator-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.field-app .sidebar { position: static; width: auto; max-width: 690px; margin: 10px auto 0; }
.field-app .nav-caption, .field-app .side-note { display: none; }
.field-app nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field-app main { margin: 0 auto; max-width: 690px; padding-inline: 12px; }
.field-app :is(.board,.tracking-layout,.overview-grid,.history-grid,.dashboard-lower) { grid-template-columns: minmax(0,1fr); }

/* EXSEA mobile operations: compact iPhone-style dock, same Inter and navy surfaces. */
.brand img {width: 42px; height: 42px; object-fit: contain; border-radius: 0;}
.action-queue {display: grid; gap: 10px; margin-top: 17px;}
.action-queue button {display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px; text-align: left; border: 1px solid #375587; border-radius: 13px; background: #14294f;}
.action-queue strong {font-size: 21px; font-variant-numeric: tabular-nums;}
.action-queue span {font-size: 12px; color: #c6d9f7;}
.stop-geofence {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #334a72; padding: 11px 0;}
.stop-geofence span {color: #a9d1fb; font-size: 12px;}
@media (max-width: 770px) {
 body {padding-bottom: calc(83px + env(safe-area-inset-bottom));}
 .sidebar {position: fixed; inset: auto 0 0 0; width: 100%; z-index: 900; margin: 0; padding: 6px 8px calc(7px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #08172fef; backdrop-filter: blur(18px); box-shadow: 0 -12px 45px #071227a8; overflow: visible;}
 .sidebar .brand, .sidebar .nav-caption, .sidebar .side-note {display: none;}
 .sidebar nav {grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px;}
 .sidebar nav button {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 55px; padding: 4px 0; font-size: 10px; border-radius: 12px; text-align: center;}
 .sidebar .nav-icon {width: 23px; height: 23px;}
 .sidebar .nav-count {position: absolute; margin: -18px 0 0 27px;}
 main {margin: 0; padding: 14px 13px 28px;}
 .detail-panel {min-width: 0;}
 .field-app .sidebar {position: fixed; width: 100%; max-width: none; margin: 0;}
 .field-app main {padding-bottom: 30px;}
}
@media (max-width: 390px) { .sidebar nav button {font-size: 9px;} .sidebar .nav-icon {width: 21px; height: 21px;} }

.warehouse-status { margin: 12px 0; padding: 12px 14px; border: 1px solid #478bba; border-radius: 12px; background: #102f4e; color: #d9f3ff; line-height: 1.5; overflow-wrap: anywhere; }
#warehouse-in, #complete-stop { margin-top: 12px; padding: 14px; border: 1px solid #274768; border-radius: 14px; background: #0b1d38; }
#warehouse-in label, #complete-stop label { display: block; margin-bottom: 10px; }
#warehouse-in button, #complete-stop button { min-height: 44px; }
