:root {
  color-scheme: light;
  --blue: #2464db;
  --blue-bg: #ebf2ff;
  --ink: #192737;
  --muted: #586a7d;
  --quiet: #66768a;
  --line: #dfe5ed;
  --canvas: #f5f7fa;
  --green: #158467;
  --amber: #9b660d;
  --red: #b54743;
  --sidebar: 210px;
  --radius: 13px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Inter', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.47;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #7daafa;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.icon {
  flex: none;
  vertical-align: middle;
}
.num,
.mono,
time,
td {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.skip {
  position: fixed;
  top: -55px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  z-index: 24;
}
.brand {
  height: 77px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 21px;
}
.brand img {
  width: 31px;
  height: 34px;
  object-fit: contain;
}
.brand b {
  font-size: 23px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  font-weight: 670;
}
.brand b span {
  font-weight: 440;
  color: #455467;
}
.workspace {
  margin: 12px 16px 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f7f9fc;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
}
.workicon {
  display: grid;
  place-items: center;
  color: #4d6681;
  width: 29px;
  height: 29px;
  background: #e9eff5;
  border-radius: 7px;
}
.workspace strong {
  font-size: 13px;
  font-weight: 630;
  display: block;
}
.workspace small {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  margin-top: 2px;
}
.navsection {
  padding: 0 13px;
}
.nav-label {
  font-size: 12px;
  color: #69798a;
  padding: 10px 14px 9px;
  font-weight: 520;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  margin: 3px 0;
  padding: 0 14px;
  border-radius: 7px;
  color: #4b5b6b;
  font-size: 14px;
  font-weight: 530;
}
.navitem:hover {
  background: #f2f5f8;
}
.navitem.selected {
  background: #eaf1ff;
  color: #205cce;
  font-weight: 630;
}
.nav-rule {
  height: 1px;
  background: #edf0f4;
  margin: 18px 11px 12px;
}
.navbottom {
  margin-top: auto;
  padding: 20px 16px;
}
.env {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin: 0 7px 17px;
}
.env i,
.inline-dot,
.badge i,
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.env i {
  background: #33816d;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 3px 0;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ecf0f6;
  color: #536782;
  display: grid;
  place-items: center;
}
.profile strong,
.profile small {
  display: block;
}
.profile strong {
  font-size: 13px;
  font-weight: 590;
}
.profile small {
  font-size: 11px;
  color: var(--quiet);
  margin-top: 2px;
}
.profile > .icon {
  margin-left: auto;
  color: var(--quiet);
}
.layout {
  margin-left: var(--sidebar);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
  background: #fff;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.crumb,
.topmeta,
.inline,
.legend,
.cardtitle,
.btn,
.segmented,
.heading-actions,
.overview-foot,
.metriclabel,
.statline,
.modal-title {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 12px;
  color: var(--quiet);
  font-size: 13px;
}
.crumb b {
  color: #344354;
  font-weight: 550;
}
.crumb .slash {
  color: #a8b3c0;
}
.topmeta {
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.topmeta time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.topmeta .sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6e1ee;
  padding: 4px 8px;
  border-radius: 5px;
  color: #526c87;
  background: #f5f8fc;
  font-size: 11px;
}
.iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--muted);
}
.iconbtn:hover {
  background: #edf1f6;
}
.notify::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #db7f33;
  top: 5px;
  right: 6px;
  border: 1px solid white;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1840px;
  margin: auto;
  padding: 25px 30px 22px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
h1 {
  font-size: clamp(26px, 2.1vw, 34px);
  letter-spacing: -0.045em;
  font-weight: 640;
  line-height: 1.35;
}
.pagehead p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.heading-actions {
  gap: 12px;
}
.segmented {
  border: 1px solid #dae1e9;
  background: #ebeff4;
  padding: 3px;
  border-radius: 8px;
  gap: 1px;
}
.segmented button {
  font-size: 12px;
  color: #5c6a7b;
  padding: 5px 13px;
  border-radius: 5px;
  min-height: 28px;
  white-space: nowrap;
}
.segmented button[aria-pressed='true'] {
  background: white;
  color: #23344b;
  box-shadow: 0 1px 4px #2232461a;
  font-weight: 600;
}
.panel,
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px #2b455804;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric {
  padding: 15px 18px 14px;
  position: relative;
  overflow: hidden;
}
.metriclabel {
  gap: 8px;
  color: #425367;
  font-size: 13px;
  font-weight: 540;
}
.metric-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.tone-blue {
  background: #eaf1fe;
  color: #2969d6;
}
.tone-green {
  background: #e4f3ed;
  color: #208365;
}
.tone-amber {
  background: #fcf2df;
  color: #a77321;
}
.tone-violet {
  background: #f0edfa;
  color: #7664a4;
}
.metricval {
  font-size: clamp(30px, 2.55vw, 43px);
  font-weight: 610;
  letter-spacing: -0.047em;
  margin: 10px 0 5px;
  line-height: 1.1;
}
.metricval small {
  font-size: 0.47em;
  font-weight: 520;
  color: #536377;
  letter-spacing: -0.01em;
  padding-left: 4px;
}
.metricdesc {
  font-size: 12px;
  color: var(--quiet);
}
.metricdesc b {
  font-weight: 590;
  color: #3f5369;
}
.metric svg.metric-art {
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 54px;
  height: 33px;
  opacity: 0.92;
}
.middle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(265px, 1fr);
  gap: 16px;
}
.map-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid #e8ecf1;
  min-height: 52px;
}
.panelhead.noline {
  border: 0;
}
.cardtitle {
  gap: 9px;
}
.cardtitle .icon {
  color: #586e83;
}
.cardtitle h2,
.panel h2 {
  font-size: 16px;
  font-weight: 630;
  letter-spacing: -0.025em;
}
.subid {
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.035em;
}
.textbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #45617e;
  font-size: 12px;
  padding: 4px;
}
.textbtn:hover {
  color: var(--blue);
}
.overview-field {
  min-height: 335px;
  flex: 1;
  position: relative;
}
.overview-foot {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.inline {
  gap: 6px;
}
.rail {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
}
.types {
  padding: 0 18px 13px;
}
.type-row {
  display: grid;
  grid-template-columns: 27px 1fr 48px 32px;
  gap: 8px;
  align-items: center;
  min-height: 23px;
  font-size: 12px;
}
.type-row b {
  font-weight: 590;
  color: #41546a;
}
.track {
  height: 5px;
  border-radius: 3px;
  background: #ebeff4;
  overflow: hidden;
}
.track > i {
  height: 100%;
  display: block;
  background: #5286e2;
  border-radius: inherit;
}
.type-row .fraction {
  color: #64748a;
  text-align: right;
  font-size: 11px;
}
.type-row strong {
  text-align: right;
  font-weight: 590;
  font-size: 12px;
}
.chart-panel {
  display: flex;
  flex-direction: column;
}
.chart-wrap {
  padding: 0 14px;
}
.chart-wrap svg {
  width: 100%;
  height: 109px;
  display: block;
}
.legend {
  gap: 10px;
  font-size: 11px;
  color: #66778b;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 13px;
  height: 2px;
  border-radius: 2px;
}
.legend .actual {
  background: #3574e0;
}
.legend .plan {
  background: repeating-linear-gradient(
    90deg,
    #98a5b6 0 4px,
    transparent 4px 6px
  );
}
.chart-note {
  margin: 0 15px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.chart-note strong {
  font-weight: 600;
  color: #936b25;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.fleet-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  padding: 3px 18px 16px;
}
.mini-device {
  border-radius: 6px;
  text-align: left;
  padding: 5px 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-device:hover {
  background: var(--canvas);
}
.device-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #329e7c;
}
.device-led.fault {
  background: #cc6158;
}
.device-led.idle {
  background: #9aa7b8;
}
.device-led.warn {
  background: #ce943c;
}
.mini-device b,
.mini-device small {
  display: block;
}
.mini-device b {
  font-weight: 590;
  font-size: 13px;
}
.mini-device small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.alertrows {
  padding: 0 16px 9px;
}
.alert-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  font-size: 13px;
}
.alert-link + .alert-link {
  border-top: 1px solid #edf0f4;
}
.alert-link .arr {
  margin-left: auto;
  color: var(--quiet);
}
.alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.alert-icon.fault {
  background: #faeae6;
  color: #b75b47;
}
.alert-icon.clearance,
.alert-icon.warning {
  background: #fcf3df;
  color: #986d23;
}
.footnote {
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footnote .inline {
  gap: 7px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge i {
  width: 5px;
  height: 5px;
}
.neutral {
  background: #f0f3f7;
  color: #536476;
}
.green {
  background: #e6f3ed;
  color: #28775a;
}
.blue {
  background: #eaf1fd;
  color: #295fbd;
}
.red {
  background: #f9eae7;
  color: #a74b40;
}
.amber {
  background: #f9efd9;
  color: #89621a;
}
.btn {
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 13px;
  border: 1px solid #d5dee8;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 540;
}
.btn:hover:enabled {
  background: #f3f6fb;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.primary:hover:enabled {
  background: #1955c7;
}
.btn.danger {
  color: var(--red);
}
.buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.section-gap {
  margin-top: 16px;
}
.panel-body {
  padding: 18px;
}
.dense {
  padding: 13px 18px;
}
.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(255px, 1fr);
  gap: 16px;
  align-items: start;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #45566a;
  font-size: 13px;
}
.input,
select {
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}
.field-label small,
.help,
.minor {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.help {
  margin-top: 10px;
}
.blank {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f1f5fb;
  color: #4f6580;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.6;
}
.callout .icon {
  margin-top: 2px;
}
.callout.amber {
  background: #fbf4e5;
  color: #815f20;
}
.callout.red {
  background: #fcf0ed;
  color: #99453b;
}
.callout.green {
  background: #eef7f2;
  color: #276b50;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f7f9fb;
  color: #617185;
  font-size: 12px;
  font-weight: 530;
}
th,
td {
  padding: 11px 16px;
  white-space: nowrap;
  border-bottom: 1px solid #e8edf2;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.rowbtn {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.taskrow:hover td {
  background: #f8fafd;
}
.taskrow.current td {
  background: #f1f6ff;
}
.taskrow {
  cursor: pointer;
}
.step-seq {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 17px 9px 15px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--quiet);
  font-size: 12px;
  position: relative;
}
.step i {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff2f6;
  color: #788798;
  font-size: 11px;
  font-style: normal;
  z-index: 1;
}
.step:before {
  position: absolute;
  content: '';
  height: 1px;
  background: var(--line);
  width: 100%;
  top: 11px;
  right: 50%;
}
.step:first-child:before {
  display: none;
}
.step.done i {
  background: #dcefe7;
  color: #20785c;
}
.step.now {
  color: #235dc4;
  font-weight: 600;
}
.step.now i {
  background: #2964d3;
  color: #fff;
}
.desc-list {
  margin: 0;
}
.desc-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}
.desc-list > div:last-child {
  border-bottom: 0;
}
.desc-list dt {
  color: var(--muted);
  font-size: 13px;
}
.desc-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.route-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.process-step {
  padding: 16px 13px;
  background: #f5f8fc;
  border-radius: 8px;
}
.process-step small {
  font-size: 12px;
  color: #607993;
}
.process-step strong {
  display: block;
  margin-top: 7px;
  font-weight: 570;
}
.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.events-list li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}
.events-list li:last-child {
  border: 0;
}
.events-list p {
  font-size: 13px;
  line-height: 1.7;
}
.events-list small {
  font-size: 12px;
  color: var(--muted);
}
.queue-top {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 7px;
}
.checks li {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.checks .ok {
  color: var(--green);
}
.checks .bad {
  color: var(--red);
}
details summary {
  cursor: pointer;
  color: #355779;
  font-size: 13px;
  font-weight: 550;
  padding: 8px 0;
}
.limit-scroll {
  max-height: 230px;
  overflow: auto;
}
.mobile-overlay {
  display: none;
}
#dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  width: min(438px, calc(100vw - 32px));
  color: var(--ink);
  box-shadow: 0 20px 90px #1a2d4940;
}
#dialog::backdrop {
  background: #18263860;
  backdrop-filter: blur(2px);
}
.modal-title {
  justify-content: space-between;
  padding: 16px 20px 10px;
}
.modal-title h2 {
  font-size: 19px;
}
.modal-body {
  padding: 4px 20px 20px;
}
.modal-body > .field-label {
  margin-top: 14px;
}
.modal-body .buttons {
  margin-top: 18px;
  justify-content: flex-end;
}
.modal-error,
.error-line {
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 9px;
}
.modal-error:empty,
.error-line:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translateX(-50%);
  background: #203348;
  color: white;
  padding: 11px 17px;
  border-radius: 9px;
  z-index: 55;
  max-width: 90vw;
  box-shadow: 0 6px 24px #273a5726;
}
#toast:empty {
  display: none;
}
.loading {
  padding: 40px 15px;
  color: var(--muted);
}
.warn-count {
  font-size: 11px;
  background: #faf0dd;
  color: #865d21;
  border-radius: 5px;
  padding: 2px 6px;
}
.pillrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  font-size: 12px;
  background: #f2f5f8;
  border-radius: 5px;
  padding: 5px 8px;
  color: #4a6177;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
@media (min-width: 1600px) {
  :root {
    --sidebar: 230px;
  }
  main {
    padding: 32px 38px;
  }
  .metric {
    padding: 20px 22px;
  }
  .overview-field {
    min-height: 430px;
  }
  .type-row {
    min-height: 29px;
  }
  .chart-wrap svg {
    height: 135px;
  }
  .topbar {
    padding: 0 38px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 183px;
  }
  main {
    padding: 22px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .brand {
    padding: 0 17px;
  }
  .brand b {
    font-size: 21px;
  }
  .workspace {
    margin: 7px 12px 16px;
  }
  .middle-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  }
  .metric {
    padding: 13px;
  }
  .metric svg.metric-art {
    width: 41px;
    right: 9px;
    bottom: 27px;
  }
  .metrics {
    gap: 10px;
  }
  .panelhead {
    padding: 13px 14px;
  }
  .type-row {
    gap: 6px;
  }
  .twocol {
    grid-template-columns: 1.25fr 1fr;
  }
}
@media (max-width: 1000px) {
  :root {
    --sidebar: 166px;
  }
  .brand b {
    font-size: 19px;
  }
  .brand img {
    width: 26px;
  }
  .workspace {
    padding: 9px;
  }
  .navitem {
    padding: 0 9px;
    gap: 9px;
  }
  .metric svg.metric-art {
    display: none;
  }
  .topmeta {
    gap: 9px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fleet-mini {
    grid-template-columns: 1fr 1fr;
  }
  .middle-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(230px, 1fr);
  }
  .panelhead {
    min-height: 48px;
  }
  .cardtitle {
    gap: 6px;
  }
  .cardtitle h2 {
    font-size: 15px;
  }
  .subid {
    display: none;
  }
}
@media (max-width: 799px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 218px;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }
  .navopen .sidebar {
    transform: translateX(0);
  }
  .navopen .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 22;
    background: #1c2c434f;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 51px;
    padding: 0 15px;
  }
  .crumb {
    gap: 7px;
  }
  .topmeta time,
  .topmeta .sep {
    display: none;
  }
  main {
    padding: 20px 15px;
  }
  .pagehead {
    margin-bottom: 16px;
  }
  .pagehead p {
    font-size: 12px;
  }
  .metrics {
    gap: 9px;
  }
  .metriclabel {
    font-size: 12px;
    gap: 5px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
  }
  .metricval {
    font-size: 29px;
  }
  .middle-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(215px, 1fr);
    gap: 10px;
  }
  .rail {
    gap: 10px;
  }
  .bottom-grid {
    gap: 10px;
    margin-top: 10px;
  }
  .types {
    padding: 0 12px 10px;
  }
  .legend {
    gap: 6px;
  }
  .footnote {
    align-items: flex-start;
  }
  .overview-foot {
    padding: 8px 10px;
  }
  .demo-pill {
    padding: 3px 6px;
  }
}
@media (max-width: 650px) {
  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .heading-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }
  .metric {
    padding: 13px 14px;
  }
  .metricval {
    margin: 8px 0 3px;
  }
  .metricdesc {
    font-size: 11px;
  }
  .metric svg.metric-art {
    display: block;
    width: 40px;
    right: 9px;
    bottom: 22px;
  }
  .middle-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .overview-field {
    min-height: 300px;
  }
  .rail {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .panelhead {
    padding: 12px;
  }
  .rail .cardtitle > .icon {
    display: none;
  }
  .chart-panel .panelhead {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
  }
  .type-row {
    grid-template-columns: 22px 1fr 28px;
    gap: 4px;
  }
  .type-row .fraction {
    display: none;
  }
  .chart-note {
    font-size: 11px;
    margin: 0 8px 9px;
  }
  .chart-wrap {
    padding: 0 5px;
  }
  .chart-wrap svg {
    height: 99px;
  }
  .fleet-mini {
    grid-template-columns: repeat(3, 1fr);
  }
  .segmented button {
    padding: 4px 13px;
  }
  .bottom-grid {
    gap: 12px;
    margin-top: 12px;
  }
  .footnote {
    flex-direction: column;
    gap: 7px;
  }
  .topmeta {
    gap: 3px;
  }
  .topmeta .online-label {
    display: none;
  }
  .pagehead h1 {
    font-size: 27px;
  }
  .route-steps {
    gap: 6px;
  }
  .process-step {
    padding: 10px 6px;
  }
  .fields {
    gap: 8px;
  }
  td,
  th {
    padding: 10px;
  }
  .panel-body {
    padding: 14px;
  }
  .fields .field-label {
    min-width: 0;
  }
  .crumb {
    font-size: 12px;
  }
  .overview-foot .minor {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.statline {
  justify-content: space-between;
  gap: 9px;
}
.statline b {
  font-weight: 580;
}
.alert-actions > li {
  display: block;
}
.alert-actions .statline {
  justify-content: flex-start;
}
.alert-actions .statline strong {
  font-weight: 550;
  font-size: 13px;
}
.alert-actions p {
  margin: 6px 0;
}
.alert-actions .buttons {
  margin-top: 8px;
}
.alert-actions button {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}
.events-list li > small {
  white-space: nowrap;
}
.preview-result {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 13px;
}
.preview-result > strong {
  font-size: 14px;
}
.preview-result .pillrow {
  margin-top: 8px;
}
.ops-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(305px, 1fr);
}
@media (max-width: 1100px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .ops-grid .statline {
    flex-wrap: wrap;
  }
}
.online-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.online-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #248468;
}
.online-label.stale {
  color: #9f472a;
}
.online-label.stale i {
  background: #b75938;
}
.fleet-tallies {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 18px 6px;
  color: var(--muted);
  font-size: 12px;
}
.fleet-tallies b {
  font-weight: 590;
  color: #32485c;
}
.chart-panel .chart-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}
.chart-panel .chart-wrap svg {
  height: 100%;
  max-height: 160px;
  min-height: 110px;
}
@media (max-width: 650px) {
  .chart-panel .chart-wrap svg {
    min-height: 90px;
  }
  .online-label {
    display: none;
  }
}
