:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e6edf3;
  background: #11151b;
  font-synthesis: none;
  --base: #11151b;
  --surface: #171d25;
  --raised: #202834;
  --line: #2a3441;
  --muted: #9caabb;
  --dim: #77879a;
  --accent: #70dbc8;
  --accent-bg: #183a39;
  --motion: #79e0ba;
  --stopped: #ecc27b;
  --offline: #a4aebd;
  --header: 61px;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { text-decoration: none; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.top { height: var(--header); display: flex; align-items: center; padding: 0 20px; gap: 34px; background: #151a21; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 760; letter-spacing: -.055em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #4c8d84; border-radius: 9px; background: #22423f; }
.brand-mark::before { content: ""; width: 15px; height: 16px; background: var(--accent); clip-path: polygon(0 0, 30% 0, 53% 62%, 77% 0, 100% 0, 66% 100%, 39% 100%); }
.brand-dot { color: var(--accent); margin-left: -8px; }
.workspace-switch { display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; font-size: 13px; color: var(--muted); }
.workspace-switch a { padding: 7px 11px; border-radius: 5px; }
.workspace-switch a[aria-current] { background: var(--raised); color: #f2f6fb; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.mode, .map-top span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.mode { color: var(--muted); }
i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; display: inline-block; flex: 0 0 7px; }
.mode i, .map-top i { color: var(--accent); }
.button, .icon-button, select, input { border: 1px solid var(--line); border-radius: 7px; background: #202834; color: #e6edf3; }
.button { padding: 8px 12px; font-weight: 620; font-size: 13px; line-height: 19px; }
.button:hover, .icon-button:hover { background: #2d3949; }
.button.primary { background: #75ddca; color: #102622; border-color: #75ddca; }
.button.primary:hover { background: #a1f0e1; }
.icon-button { min-width: 34px; height: 34px; padding: 0 7px; font-size: 18px; }
.shell { display: grid; grid-template-columns: 178px minmax(0, 1fr); min-height: calc(100dvh - var(--header)); }
.client-nav, .monitor-switch { display: none; }
.rail { position: sticky; top: 0; height: calc(100dvh - var(--header)); display: flex; flex-direction: column; justify-content: space-between; padding: 16px 10px 12px; background: #151a21; border-right: 1px solid var(--line); }
.rail nav { display: grid; gap: 5px; }
.nav-label { color: var(--dim); padding: 3px 9px 9px; font-size: 10px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.nav-item { border: 1px solid transparent; border-radius: 7px; padding: 9px 8px; display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--muted); }
.nav-item:hover { background: var(--raised); color: #fff; }
.nav-item[aria-current] { color: #a1f2e3; background: #1b3437; border-color: #2a494a; }
.nav-icon { width: 17px; flex: 0 0 17px; text-align: center; font-size: 16px; line-height: 17px; }
.rail-foot { padding: 10px 6px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; min-width: 0; }
.rail-foot div { min-width: 0; }
.rail-foot strong, .rail-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot strong { font-size: 12px; }
.rail-foot small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.workspace-avatar { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 7px; background: #254143; color: var(--accent); font-weight: 700; font-size: 12px; }
main { position: relative; min-width: 0; }
.notice { position: absolute; top: 10px; right: 12px; z-index: 5; max-width: min(480px, calc(100% - 24px)); padding: 10px 13px; border-radius: 7px; border: 1px solid #705c3b; background: #352a1c; color: #f5d5a1; font-size: 13px; box-shadow: 0 3px 14px #0006; cursor: pointer; }
.monitor { height: calc(100dvh - var(--header)); min-height: 480px; display: grid; grid-template-columns: 345px minmax(0, 1fr); }
.fleet { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.fleet-head { padding: 18px 13px 12px; border-bottom: 1px solid var(--line); }
.section-head, .page-head, .dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
h1 { font-size: 23px; letter-spacing: -.035em; }
h2 { font-size: 17px; letter-spacing: -.015em; }
.section-head p, .page-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.filters { display: flex; gap: 7px; align-items: stretch; margin: 13px 0 10px; }
.search { flex: 1; min-width: 0; display: flex; gap: 7px; align-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #11161d; color: var(--muted); }
.search span { font-size: 20px; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 7px 0; font-size: 12px; }
select, .page input, dialog input { padding: 7px 9px; font-size: 12px; }
.status-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filter { font-size: 11px; padding: 5px 6px; border-radius: 5px; border: 1px solid var(--line); background: #1c232d; color: var(--muted); white-space: nowrap; }
.filter[aria-pressed=true] { color: #d3f6ef; background: #254345; border-color: #426968; }
.filter b { color: var(--tone, #e6edf3); margin-left: 3px; font-weight: 650; }
.fleet-list { flex: 1; min-height: 0; overflow: auto; padding: 6px; scrollbar-width: thin; }
.vehicle { display: grid; width: 100%; align-items: center; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 9px; padding: 9px 8px; min-height: 66px; text-align: left; border-radius: 7px; border: 1px solid transparent; color: inherit; background: transparent; }
.vehicle + .vehicle { margin-top: 1px; }
.vehicle:hover { background: #222d39; }
.vehicle[aria-pressed=true] { background: #202f3a; border-color: #3b6067; }
.vehicle-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; background: #26313e; color: var(--tone); }
.vehicle-name, .vehicle-meta, .status { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-name { font-size: 13px; font-weight: 675; }
.vehicle-meta { color: var(--muted); margin-top: 4px; font-size: 11px; }
.status { display: flex; align-items: center; gap: 5px; color: var(--tone, var(--muted)); font-size: 10px; }
.status i { width: 5px; height: 5px; flex-basis: 5px; }
.vehicle-data { text-align: right; font-size: 12px; white-space: nowrap; }
.vehicle-data small { color: var(--muted); font-size: 10px; display: block; margin-top: 4px; }
.motion { --tone: var(--motion); }
.stopped { --tone: var(--stopped); }
.offline { --tone: var(--offline); }
.fleet-foot { padding: 10px 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); }
.map-panel, .map-area { position: relative; min-width: 0; min-height: 0; height: 100%; }
.map-area { isolation: isolate; overflow: hidden; background: #151e27; }
#map-canvas { display: block; position: absolute; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#map-canvas:active { cursor: grabbing; }
#map-canvas:focus-visible { outline-offset: -3px; }
.markers { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; display: grid; place-items: center; width: 31px; height: 31px; transform: translate(-50%, -50%); border: 1.5px solid var(--tone); border-radius: 9px; color: var(--tone); background: #19242f; box-shadow: 0 2px 6px #0009; pointer-events: auto; }
.pin[aria-pressed=true] { z-index: 1; width: 36px; height: 36px; color: #102927; background: #81e5d1; border-color: #d2fff6; box-shadow: 0 0 0 6px #78dec73a, 0 4px 12px #000b; }
.map-top { position: absolute; display: flex; gap: 6px; top: 13px; left: 13px; pointer-events: none; }
.map-top span, .map-info, .map-controls, .attribution { border: 1px solid #384655; background: #151c25f2; box-shadow: 0 3px 12px #080b1050; }
.map-top span { border-radius: 6px; padding: 7px 9px; color: #cad4e0; }
.map-controls { position: absolute; top: 13px; right: 13px; display: grid; border-radius: 8px; overflow: hidden; }
.map-controls button { width: 36px; height: 36px; border: 0; color: #e3edf6; font-size: 21px; background: transparent; }
.map-controls button + button { border-top: 1px solid var(--line); }
.map-controls button:hover { background: var(--raised); }
.map-info { position: absolute; bottom: 28px; left: 13px; z-index: 1; width: min(330px, calc(100% - 26px)); border-radius: 9px; padding: 13px; }
.map-info .section-head { align-items: center; margin-bottom: 7px; }
.map-info p { font-size: 12px; color: var(--muted); }
.details-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 11px; margin-top: 11px; border-top: 1px solid var(--line); }
.details-grid strong, .details-grid small { display: block; }
.details-grid strong { font-size: 12px; overflow-wrap: anywhere; }
.details-grid small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.attribution { position: absolute; bottom: 3px; right: 6px; font-size: 10px; border-radius: 4px; padding: 2px 5px; color: #aab8ca; }
.attribution a { color: inherit; text-decoration: underline; }
.page { padding: 25px; max-width: 1500px; margin: 0 auto; }
.page-head { align-items: center; margin-bottom: 19px; }
.page-head h1 { font-size: 27px; }
.page-head p { line-height: 1.45; }
.page-actions, .page-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-tools { margin-bottom: 13px; }
.page-tools .search { max-width: 340px; }
.page-tools label:not(.search) { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; font-weight: 680; white-space: nowrap; background: #1e2631; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #1d2733; }
td .button { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 7px; border-radius: 5px; background: #273342; font-size: 11px; color: var(--tone, #d7e3f0); }
.empty { color: var(--muted); font-size: 13px; padding: 16px; line-height: 1.45; }
.footnote { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.timeline { margin-top: 13px; }
.timeline .map-area { height: min(52dvh, 510px); min-height: 290px; border: 1px solid var(--line); border-radius: 9px; }
dialog { width: min(490px, calc(100% - 26px)); padding: 0; border: 1px solid #3e4e61; border-radius: 11px; color: inherit; background: var(--surface); box-shadow: 0 12px 40px #0008; }
dialog::backdrop { background: #080b11b8; }
dialog form { padding: 18px; display: grid; gap: 13px; }
dialog label { font-size: 13px; display: grid; gap: 5px; }
dialog label.checkbox { display: flex; align-items: center; gap: 7px; }
dialog p { color: #fac5a1; font-size: 12px; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 145px minmax(0, 1fr); }
  .monitor { grid-template-columns: 305px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --header: 54px; }
  .top { padding: 0 9px; gap: 8px; }
  .identity { font-size: 19px; gap: 6px; }
  .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
  .brand-mark::before { transform: scale(.75); }
  .brand-dot { margin-left: -6px; }
  .workspace-switch { font-size: 10px; }
  .workspace-switch a { padding: 5px; }
  .top-actions { gap: 6px; }
  .top-actions .button { font-size: 11px; padding: 4px 6px; }
  .mode { font-size: 10px; }
  .shell { display: block; }
  .rail { position: static; height: auto; padding: 5px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail nav { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .nav-item { flex: 0 0 auto; padding: 6px; gap: 4px; font-size: 11px; }
  .nav-label, .rail-foot { display: none; }
  .monitor { height: auto; min-height: 0; display: flex; flex-direction: column-reverse; }
  .fleet { border-right: 0; border-top: 1px solid var(--line); }
  .fleet-list { max-height: 340px; }
  .map-panel { height: min(54dvh, 470px); min-height: 300px; }
  .map-top { top: 8px; left: 8px; }
  .map-controls { top: 8px; right: 8px; }
  .map-info { bottom: 22px; left: 8px; width: min(280px, calc(100% - 16px)); padding: 8px; }
  .page { padding: 14px 10px; }
  .page-head h1 { font-size: 21px; }
  td, th { padding: 9px; }
}
@media (max-width: 370px) { .top-actions .mode { display: none; } }
.timeline canvas { display: block; position: absolute; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.timeline canvas:active { cursor: grabbing; }
.details-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.details-actions small { font-size: 10px; color: var(--muted); }
.details-actions .button { margin-left: auto; font-size: 11px; padding: 3px 7px; }
.timeline .table-wrap + .map-area { margin-top: 12px; }
.report-sections, .report-results { display: grid; gap: 12px; }
.messages-results { display: grid; gap: 12px; }
.messages-results .map-area { height: min(36dvh, 370px); min-height: 220px; }
.message-details:empty { display: none; }
.message-details .table-wrap { max-height: 240px; margin-top: 8px; }
.message-event { display: inline-flex; align-items: center; gap: 8px; }
.message-event-help { padding: 0 7px; }
.message-event-popup {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(340px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow: auto;
  padding: 16px;
  color: #e6edf3;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 8px 24px #0007;
}
.message-event-popup p { margin: 8px 0 12px; }
.messages-results td:nth-child(6) { min-width: 160px; }
.messages-results td .button[aria-pressed=true] { border-color: var(--accent); }
.report-sections fieldset .button { margin-top: 8px; }
.report-results .section-head { align-items: center; margin-top: 8px; }
@media (max-width: 460px) {
  .top { gap: 7px; padding-inline: 7px; }
  .top-actions .mode { display: none; }
  .workspace-switch a { padding-inline: 5px; }
}
.table-search { width: min(255px, 100%); }
.support-banner { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 7px 18px; color: #ffda9c; background: #332918; border-bottom: 1px solid #6b5536; font-size: 12px; }
.support-banner:not([hidden]) + .shell { --header: 108px; }
fieldset { min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
legend { font-size: 12px; color: var(--muted); }
.check-list { display: grid; gap: 5px; max-height: 145px; overflow-y: auto; }
dialog form { max-height: 85dvh; overflow-y: auto; }
.map-info .sensor-line { margin-top: 8px; color: var(--accent); }
@media (max-width: 460px) { .support-banner { padding-inline: 8px; } }
.sign-in-gate { min-height: calc(100dvh - var(--header)); display: grid; place-items: center; padding: 24px; }
.sign-in-gate section { max-width: 410px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 28px; }
.sign-in-gate p { margin: 9px 0 18px; color: var(--muted); font-size: 14px; }
.org-root { display: flex; align-items: center; gap: 9px; }
.org-child { display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 15px; }
.org-child::before { content: "↳"; color: var(--dim); }
dialog.object-editor { width: min(920px, calc(100% - 24px)); }
dialog.object-editor form { padding: 0; gap: 0; }
.object-editor .dialog-head { padding: 16px 18px; align-items: center; border-bottom: 1px solid var(--line); }
.object-editor form > .primary { margin: 12px 18px 14px; justify-self: end; }
.object-editor form > [role=alert] { padding: 10px 18px 0; }
.object-workspace { display: grid; grid-template-columns: 186px minmax(0, 1fr); min-height: min(54vh, 440px); }
.object-tabs { padding: 13px 8px; background: #151b23; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.object-tab { background: transparent; border: 1px solid transparent; color: var(--muted); padding: 9px; border-radius: 6px; font-size: 12px; text-align: left; }
.object-tab:hover { background: var(--raised); }
.object-tab[aria-pressed=true] { background: #1b3437; border-color: #315353; color: #a1f2e3; }
.object-sections { min-width: 0; }
.object-section { padding: 18px; }
.object-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.object-section label { min-width: 0; color: #b6c4d1; }
.object-section input, .object-section select, .object-section textarea { width: 100%; min-width: 0; padding: 9px 10px; }
.object-section input[readonly] { color: var(--muted); background: #1a222d; }
.object-section .checkbox input { width: auto; }
.object-section textarea { color: inherit; font: inherit; border: 1px solid var(--line); background: var(--raised); border-radius: 7px; resize: vertical; }
.object-section p.footnote { margin-bottom: 9px; color: var(--muted); }
.object-appearance { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; display: grid; gap: 9px; }
.object-appearance h3 { font-size: 12px; font-weight: 620; color: var(--muted); }
.object-options { display: flex; flex-wrap: wrap; gap: 6px; }
.object-color, .object-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); }
.object-color { background: var(--object-color); }
.object-symbol { background: var(--raised); color: var(--accent); }
.object-color[aria-pressed=true], .object-symbol[aria-pressed=true] { outline: 2px solid #d9eeef; outline-offset: 1px; }
.object-preview { display: inline-flex; justify-self: start; align-items: center; gap: 12px; color: var(--object-color); background: var(--raised); padding: 8px 10px; border-radius: 7px; font-size: 12px; }
.object-preview strong { color: #e6edf3; overflow-wrap: anywhere; }
.object-repeat { display: grid; gap: 9px; }
.object-repeat-row { border: 1px solid var(--line); border-radius: 7px; padding: 9px; margin-bottom: 6px; }
.object-repeat-row button { justify-self: start; }
.vehicle-icon { color: var(--object-color, var(--tone)); }
.pin { color: var(--object-color, var(--tone)); }
@media (max-width: 640px) {
  .object-workspace { grid-template-columns: minmax(0, 1fr); }
  .object-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-block: 6px; }
  .object-tab { flex: 0 0 auto; }
  .object-section { padding: 12px; }
  .object-grid { gap: 9px; }
}
.object-glyph { display: block; width: 21px; height: 21px; fill: currentColor; flex: 0 0 auto; }
.object-symbol .object-glyph { width: 23px; height: 23px; }
.object-symbol { width: 38px; height: 35px; }
.tracker-endpoint { padding: 6px 9px; border: 1px solid var(--line); background: #1a222d; border-radius: 7px; display: grid; gap: 3px; }
.tracker-endpoint small { color: var(--muted); font-size: 11px; }
.tracker-endpoint strong { font-size: 13px; overflow-wrap: anywhere; }
.terminal-controls { display: grid; gap: 9px; }
.terminal-controls button { justify-self: start; }
.terminal-controls textarea { color: inherit; font: inherit; border: 1px solid var(--line); background: var(--raised); border-radius: 7px; padding: 9px; }
.meta-details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meta-details .badge { white-space: normal; overflow-wrap: anywhere; }
.fleet-group { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.fleet-group select { min-width: 0; width: 100%; }
.sensor-calibration, .sensor-preview { grid-column: 1 / -1; min-width: 0; }
.sensor-calibration { display: grid; justify-items: start; gap: 9px; }
.sensor-point-grid { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.sensor-point { display: contents; }
.sensor-point input { width: 100%; min-width: 0; }
.sensor-paste { width: 100%; }
.sensor-paste summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.sensor-paste[open] > :not(summary) { margin-top: 8px; }
.sensor-paste textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); color: inherit; font: inherit; }
.sensor-preview-result:not(:empty) { margin-top: 8px; }

@media (max-width: 760px) {
  .client-workspace .top {
    height: calc(var(--header) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  .client-workspace .workspace-switch, .client-workspace .mode, .client-shell .rail { display: none; }
  .client-workspace .top-actions .button { min-height: 44px; padding-inline: 12px; font-size: 13px; }
  .client-workspace .support-banner { flex-wrap: wrap; }
  .client-shell {
    padding: 0 env(safe-area-inset-right) calc(68px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
  .client-nav {
    position: fixed;
    z-index: 6;
    inset: auto 0 0;
    display: flex;
    gap: 3px;
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: #151a21;
  }
  .client-nav > .nav-item, .client-more { flex: 1 1 0; min-width: 0; }
  .client-nav > .nav-item, .client-more summary {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 4px 0;
    font-size: clamp(9px, 2.85vw, 12px);
    white-space: nowrap;
  }
  .client-nav .nav-icon { flex-basis: auto; }
  .client-more summary::-webkit-details-marker { display: none; }
  .client-more[open] summary, .client-more .active-section { color: #a1f2e3; background: #1b3437; border-color: #2a494a; }
  .client-menu {
    position: absolute;
    bottom: calc(66px + env(safe-area-inset-bottom));
    right: max(8px, env(safe-area-inset-right));
    width: min(240px, calc(100vw - 16px));
    max-height: 55dvh;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 0 8px 25px #0009;
    padding: 5px;
  }
  .client-menu a { min-height: 44px; padding-inline: 10px; font-size: 14px; }
  .client-shell .monitor { flex-direction: column; }
  .client-shell .monitor-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .monitor-switch .button[aria-pressed=true] { background: #1b3437; color: #a1f2e3; border-color: #426968; }
  .client-shell .monitor[data-view=map] .fleet, .client-shell .monitor[data-view=fleet] .map-panel { display: none; }
  .client-shell .map-panel { height: auto; min-height: 0; }
  .client-shell .map-panel .map-area { height: clamp(235px, 49dvh, 490px); }
  .client-shell .map-controls button, .client-shell .pin, .client-shell .icon-button { min-width: 44px; min-height: 44px; }
  .client-shell .map-info { position: static; width: auto; margin: 10px; padding: 12px; overflow-wrap: anywhere; }
  .client-shell .map-info .section-head { flex-wrap: wrap; gap: 6px; }
  .client-shell .details-actions { flex-wrap: wrap; justify-content: flex-start; }
  .client-shell .details-actions small { flex-basis: 100%; }
  .client-shell .details-actions .button { margin-left: 0; font-size: 13px; padding-inline: 10px; }
  .client-shell .fleet-list { max-height: none; }
  .client-shell .vehicle { grid-template-columns: 35px minmax(0, 1fr); }
  .client-shell .vehicle-meta { white-space: normal; overflow-wrap: anywhere; }
  .client-shell .vehicle-data { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .client-shell .vehicle-data small { margin: 0; }
  .client-shell .filter { min-height: 38px; }
  .client-shell .button, .client-shell select, .client-shell input:not([type=checkbox], [type=radio]),
  .client-workspace dialog .button, #login input { min-height: 44px; }
  .client-shell select, .client-shell input, .client-workspace dialog input, #login input { font-size: 16px; }
  .client-shell .page { padding: 14px 12px; }
  .client-shell .page-head { flex-wrap: wrap; }
  .client-shell .page-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); align-items: end; }
  .client-shell .page-tools > * { min-width: 0; }
  .client-shell .page-tools select, .client-shell .page-tools input { width: 100%; min-width: 0; }
  .client-shell :is(.messages-results, .report-results, .report-sections) { grid-template-columns: minmax(0, 1fr); }
  .client-shell .report-section .section-head { flex-wrap: wrap; }
  .client-shell .messages-grid :is(th, td):last-child { position: sticky; right: 0; box-shadow: -1px 0 var(--line); }
  .client-shell .messages-grid td:last-child { background: var(--surface); }
}
