.fleet-portal {
  --fleet-tech: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fleet-command-line: #cf202b;
}

.fleet-portal .hero-command-kicker {
  max-width: 640px;
  margin: 22px 0 0;
  color: #20272b;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 900;
  line-height: 1.75;
}

.fleet-command-center {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(20, 25, 28, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 25, 28, .035) 1px, transparent 1px),
    #eef1f2;
  background-size: 56px 56px;
}

.fleet-command-center::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(34vw, 520px);
  height: 2px;
  background: var(--fleet-command-line);
  content: "";
}

.fleet-command-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  gap: clamp(36px, 7vw, 96px);
  margin-bottom: 48px;
}

.fleet-command-intro h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.14;
  letter-spacing: -.055em;
}

.fleet-command-intro > p {
  margin: 0 0 8px;
  color: #536067;
  font-size: 1rem;
  line-height: 1.95;
}

.fleet-command-scene {
  position: relative;
  min-width: 0;
}

.fleet-signal-cloud {
  display: none;
  position: absolute;
  z-index: 1;
  inset: -32px 0;
  pointer-events: none;
}

body.fleet-command-enhanced .fleet-signal-cloud {
  display: block;
}

.fleet-signal-cloud span {
  position: absolute;
  top: var(--signal-y);
  left: var(--signal-x);
  padding: 10px 14px;
  color: #323b3f;
  border: 1px solid #bfc7ca;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 35px rgba(21, 28, 31, .12);
  font: 800 .68rem/1.2 Cairo, sans-serif;
  opacity: 1;
  transform: rotate(var(--signal-r));
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1);
}

body.fleet-command-enhanced .fleet-command-center.is-organized .fleet-signal-cloud span {
  opacity: 0;
  transform: translateY(24px) scale(.92) rotate(0);
}

.fleet-command-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #222a2e;
  color: #fff;
  background: #111517;
  box-shadow: 28px 30px 0 rgba(116, 21, 26, .12), 0 38px 100px rgba(13, 18, 20, .2);
  transition:
    transform .9s cubic-bezier(.22, 1, .36, 1);
}

body.fleet-command-enhanced .fleet-command-center:not(.is-organized) .fleet-command-panel {
  opacity: 1;
  transform: translateY(32px) scale(.988);
}

.fleet-command-toolbar {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: #171c1f;
}

.fleet-command-toolbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.fleet-command-toolbar > div > span {
  width: 8px;
  height: 42px;
  background: var(--fleet-command-line);
}

.fleet-command-toolbar p,
.fleet-command-toolbar h3 {
  margin: 0;
}

.fleet-command-toolbar > div p {
  color: #7f8a8f;
  font: 700 .61rem/1.4 var(--fleet-tech);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fleet-command-toolbar h3 {
  margin-top: 4px;
  color: #fff;
  font-size: 1rem;
}

.fleet-sample-note {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: #e4e8ea;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .045);
  font-size: .72rem;
  font-weight: 800;
}

.fleet-sample-note i {
  display: grid;
  width: 24px;
  height: 24px;
  place-content: center;
  color: #fff;
  background: var(--fleet-command-line);
  font: 900 .7rem/1 var(--fleet-tech);
}

.fleet-command-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 1px;
  gap: 1px;
  color: #fff;
  background: #333b3f;
  list-style: none;
}

.fleet-command-stats li {
  min-width: 0;
  min-height: 150px;
  padding: 19px;
  background: #1b2124;
}

.fleet-command-stats span,
.fleet-command-stats strong,
.fleet-command-stats small {
  display: block;
}

.fleet-command-stats span {
  min-height: 34px;
  color: #929da2;
  font: 700 .59rem/1.5 var(--fleet-tech);
}

.fleet-command-stats strong {
  margin-top: 19px;
  overflow-wrap: anywhere;
  color: #fff;
  font: 800 clamp(1.55rem, 2.4vw, 2.45rem)/1.12 var(--fleet-tech);
}

.fleet-command-stats li:nth-child(5) strong {
  font-family: Cairo, sans-serif;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
}

.fleet-command-stats small {
  margin-top: 8px;
  color: #d05d64;
  font-size: .61rem;
  font-weight: 800;
}

.fleet-vehicle-register {
  min-width: 0;
  color: #20272b;
  background: #fff;
}

.fleet-vehicle-header,
.fleet-vehicle-list > li {
  display: grid;
  grid-template-columns:
    minmax(82px, .62fr)
    minmax(105px, .88fr)
    minmax(92px, .74fr)
    minmax(72px, .56fr)
    minmax(110px, .92fr)
    minmax(135px, 1.12fr)
    minmax(160px, 1.35fr)
    minmax(102px, .72fr);
  align-items: stretch;
}

.fleet-vehicle-header {
  min-height: 52px;
  color: #677279;
  border-bottom: 1px solid #dfe4e6;
  background: #f1f3f4;
  font: 800 .57rem/1.4 var(--fleet-tech);
}

.fleet-vehicle-header span {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-left: 1px solid #dfe4e6;
}

.fleet-vehicle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fleet-vehicle-list > li {
  min-height: 112px;
  border-bottom: 1px solid #e1e5e7;
  background: #fff;
  transition: background-color .24s ease;
}

.fleet-vehicle-list > li:last-child {
  border-bottom: 0;
}

.fleet-vehicle-list > li:hover,
.fleet-vehicle-list > li:focus-within {
  background: #fbf4f4;
}

.fleet-vehicle-cell,
.fleet-vehicle-action {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 14px 12px;
  border-left: 1px solid #e5e8ea;
  font-size: .7rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.fleet-vehicle-number strong {
  font: 850 .8rem/1.3 var(--fleet-tech);
  letter-spacing: .035em;
}

.fleet-cell-label {
  font-weight: 900;
}

.fleet-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1.3;
}

.fleet-status i {
  display: grid;
  width: 20px;
  height: 20px;
  place-content: center;
  color: #fff;
  background: #4d5a60;
  font: 900 .62rem/1 var(--fleet-tech);
}

.fleet-status--ready { color: #176345; background: #eef8f3; }
.fleet-status--needs_preparation { color: #95530a; background: #fff8e9; }
.fleet-status--waiting_approval { color: #8e381c; background: #fff2ed; }
.fleet-status--due_soon { color: #a01822; background: #fff0f1; }
.fleet-status--in_inspection { color: #226b91; background: #edf7fc; }
.fleet-status--closed { color: #4d5a60; background: #f0f3f4; }
.fleet-status--ready i { background: #176345; }
.fleet-status--needs_preparation i { background: #95530a; }
.fleet-status--waiting_approval i { background: #8e381c; }
.fleet-status--due_soon i { background: #a01822; }
.fleet-status--in_inspection i { background: #226b91; }
.fleet-status--closed i { background: #4d5a60; }

.fleet-vehicle-action {
  border-left: 0;
}

.fleet-vehicle-action button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid #1b2225;
  background: #1b2225;
  font-size: .64rem;
  font-weight: 900;
  text-align: right;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.fleet-vehicle-action button:hover {
  border-color: var(--fleet-command-line);
  background: var(--fleet-command-line);
}

.fleet-vehicle-action button:focus-visible,
.fleet-dialog-header button:focus-visible {
  outline: 3px solid rgba(207, 32, 43, .32);
  outline-offset: 3px;
}

.fleet-vehicle-action [data-vehicle-fallback] {
  color: #69757a;
  font-size: .61rem;
}

.fleet-command-enhanced .fleet-vehicle-action [data-vehicle-fallback] {
  display: none;
}

.fleet-command-caption,
.fleet-command-noscript {
  max-width: 960px;
  margin: 27px 0 0;
  color: #5c686d;
  font-size: .76rem;
  line-height: 1.85;
}

.fleet-command-noscript {
  padding: 15px;
  border-right: 3px solid var(--fleet-command-line);
  background: #fff;
}

.fleet-command-empty {
  padding: 42px;
  color: #273034;
  background: #fff;
}

.fleet-command-empty h3,
.fleet-command-empty p {
  margin: 0;
}

.fleet-command-empty p {
  margin-top: 8px;
  color: #647076;
}

.fleet-vehicle-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(720px, calc(100% - 32px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #1d2428;
  border: 0;
  background: #f5f6f6;
  box-shadow: -28px 0 90px rgba(10, 14, 16, .28);
}

.fleet-vehicle-dialog:not([open]) {
  display: none;
}

.fleet-vehicle-dialog[open] {
  display: block;
  animation: fleetDrawerIn .42s cubic-bezier(.22, 1, .36, 1) both;
}

.fleet-vehicle-dialog::backdrop {
  background: rgba(8, 11, 13, .58);
  backdrop-filter: blur(4px);
}

@keyframes fleetDrawerIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

body.fleet-dialog-open {
  overflow: hidden;
}

.fleet-dialog-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.fleet-dialog-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #151a1d;
}

.fleet-dialog-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 34%;
  height: 2px;
  background: var(--fleet-command-line);
  content: "";
}

.fleet-dialog-header p,
.fleet-dialog-header h2 {
  margin: 0;
}

.fleet-dialog-header p {
  color: #9da8ad;
  font: 700 .62rem/1.4 var(--fleet-tech);
}

.fleet-dialog-header h2 {
  margin-top: 5px;
  color: #fff;
  font: 850 clamp(1.5rem, 3vw, 2.35rem)/1.2 var(--fleet-tech);
}

.fleet-dialog-header button {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  font: 400 1.8rem/1 Arial, sans-serif;
}

.fleet-dialog-header button:hover {
  background: var(--fleet-command-line);
}

.fleet-dialog-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px 70px;
  scrollbar-gutter: stable;
}

.fleet-dialog-description {
  margin: 0 0 20px;
  color: #68747a;
  font-size: .78rem;
  line-height: 1.8;
}

.fleet-dialog-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr);
  gap: 1px;
  margin-bottom: 34px;
  padding: 1px;
  background: #dce1e3;
}

.fleet-dialog-overview dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: #dce1e3;
}

.fleet-dialog-overview dl div {
  min-height: 108px;
  padding: 16px;
  background: #fff;
}

.fleet-dialog-overview dt {
  color: #737f85;
  font-size: .67rem;
  font-weight: 800;
}

.fleet-dialog-overview dd {
  margin: 22px 0 0;
  font-size: .86rem;
  font-weight: 900;
}

.fleet-dialog-next {
  display: flex;
  min-height: 217px;
  flex-direction: column;
  padding: 20px;
  color: #fff;
  background: #1b2124;
}

.fleet-dialog-next span {
  color: #ef777c;
  font: 800 .65rem/1.4 var(--fleet-tech);
}

.fleet-dialog-next strong {
  margin: 32px 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.fleet-dialog-next small {
  padding-top: 15px;
  color: #aeb7bb;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .7rem;
  line-height: 1.7;
}

.fleet-dialog-section {
  margin-top: 34px;
}

.fleet-dialog-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fleet-dialog-section-heading span {
  color: var(--fleet-command-line);
  font: 900 .66rem/1 var(--fleet-tech);
}

.fleet-dialog-section-heading h3 {
  margin: 0;
  font-size: 1.12rem;
}

.fleet-dialog-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
}

.fleet-dialog-timeline::before {
  position: absolute;
  top: 18px;
  right: 15px;
  bottom: 18px;
  width: 2px;
  background: #d6dcde;
  content: "";
}

.fleet-dialog-timeline li {
  position: relative;
  display: grid;
  min-height: 86px;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding-bottom: 18px;
}

.fleet-dialog-timeline li > i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-content: center;
  color: #68747a;
  border: 2px solid #cbd2d5;
  border-radius: 50%;
  background: #f5f6f6;
  font: 900 .62rem/1 var(--fleet-tech);
}

.fleet-dialog-timeline li.is-complete > i,
.fleet-dialog-timeline li.is-current > i {
  color: #fff;
  border-color: var(--fleet-command-line);
  background: var(--fleet-command-line);
}

.fleet-dialog-timeline li.is-current > i {
  box-shadow: 0 0 0 6px rgba(207, 32, 43, .1);
}

.fleet-dialog-timeline h4,
.fleet-dialog-timeline p {
  margin: 0;
}

.fleet-timeline-state {
  display: inline-flex;
  margin-top: 5px;
  color: #8c373d;
  font-size: .64rem;
  font-weight: 900;
}

.fleet-dialog-timeline h4 {
  font-size: .87rem;
}

.fleet-dialog-timeline p {
  margin-top: 5px;
  color: #68747a;
  font-size: .73rem;
  line-height: 1.75;
}

.fleet-dialog-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fleet-dialog-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px;
  border: 1px solid #dce1e3;
  background: #fff;
}

.fleet-dialog-list strong,
.fleet-dialog-list small {
  display: block;
}

.fleet-dialog-list strong {
  font-size: .8rem;
}

.fleet-dialog-list small {
  margin-top: 4px;
  color: #6a767b;
  font-size: .68rem;
}

.fleet-approval-state {
  align-self: start;
  padding: 5px 8px;
  color: #8d351a;
  border: 1px solid currentColor;
  background: #fff2ed;
  font-size: .61rem;
  font-weight: 900;
}

.fleet-approval-state.is-approved {
  color: #176345;
  background: #eef8f3;
}

.fleet-dialog-works li {
  grid-template-columns: 24px 1fr;
}

.fleet-dialog-works li::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-content: center;
  color: #fff;
  background: #176345;
  content: "✓";
  font: 900 .61rem/1 var(--fleet-tech);
}

.fleet-dialog-works li.is-empty::before {
  color: #69757a;
  background: #e4e8e9;
  content: "—";
}

.fleet-dialog-report {
  padding: 22px;
  color: #fff;
  border-right: 3px solid var(--fleet-command-line);
  background: #1a2023;
}

.fleet-dialog-report strong,
.fleet-dialog-report p {
  margin: 0;
}

.fleet-dialog-report strong {
  font-size: .94rem;
}

.fleet-dialog-report p {
  margin-top: 7px;
  color: #adb7bb;
  font-size: .74rem;
  line-height: 1.8;
}

.fleet-portal .fleet-service-timeline {
  --journey-progress: 84%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: visible;
  padding: 1px;
  border: 0;
  background: #d9ddde;
}

.fleet-portal .fleet-service-timeline::before,
.fleet-portal .fleet-service-timeline::after {
  position: absolute;
  z-index: 2;
  top: 83px;
  right: 8%;
  height: 2px;
  content: "";
  pointer-events: none;
}

.fleet-portal .fleet-service-timeline::before {
  left: 8%;
  background: #cbd1d3;
}

.fleet-portal .fleet-service-timeline::after {
  width: var(--journey-progress);
  max-width: 84%;
  background: var(--fleet-command-line);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}

.fleet-portal .fleet-service-timeline li {
  z-index: 3;
  min-width: 0;
  min-height: 190px;
  background: #fff;
}

.fleet-portal .fleet-service-timeline li::after {
  display: none !important;
}

.fleet-portal .fleet-service-timeline li i {
  position: relative;
  z-index: 3;
  color: #737f84;
  border: 2px solid #cbd1d3;
  background: #fff;
  transition: color .32s ease, border-color .32s ease, background-color .32s ease, box-shadow .32s ease;
}

.fleet-portal .fleet-service-timeline li.is-active i {
  color: #fff;
  border-color: var(--fleet-command-line);
  background: var(--fleet-command-line);
  box-shadow: 0 0 0 6px rgba(207, 32, 43, .09);
}

.fleet-portal .fleet-service-timeline li.is-active b {
  color: var(--fleet-command-line);
}

.fleet-portal .journey-policies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0 0;
  padding: 1px;
  color: #fff;
  background: #333b3f;
  list-style: none;
}

.fleet-portal .journey-policies li {
  display: grid;
  min-height: 104px;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: #1b2124;
}

.fleet-portal .journey-policies i {
  color: #ef777c;
  font: 900 .65rem/1 var(--fleet-tech);
}

.fleet-portal .journey-policies span {
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.7;
}

.fleet-portal-nav .container {
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 32, 43, .46) transparent;
}

.fleet-portal-nav .container::-webkit-scrollbar {
  display: block;
  height: 3px;
}

.fleet-portal-nav .container::-webkit-scrollbar-thumb {
  background: rgba(207, 32, 43, .46);
}

@media (min-width: 901px) {
  .fleet-cell-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 1120px) {
  .fleet-command-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .fleet-vehicle-header,
  .fleet-vehicle-list > li {
    grid-template-columns:
      minmax(76px, .58fr)
      minmax(94px, .75fr)
      minmax(86px, .68fr)
      minmax(66px, .5fr)
      minmax(105px, .86fr)
      minmax(120px, 1fr)
      minmax(140px, 1.2fr)
      minmax(94px, .68fr);
  }

  .fleet-vehicle-cell,
  .fleet-vehicle-action {
    padding-inline: 9px;
    font-size: .64rem;
  }
}

@media (max-width: 900px) {
  .fleet-command-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fleet-command-intro h2 {
    max-width: 16ch;
  }

  .fleet-vehicle-header {
    display: none;
  }

  .fleet-vehicle-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #e5e9ea;
  }

  .fleet-vehicle-list > li {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    border: 1px solid #d6dcde;
    background: #fff;
  }

  .fleet-vehicle-cell,
  .fleet-vehicle-action {
    display: block;
    padding: 13px;
    border: 0;
    border-bottom: 1px solid #e1e5e7;
    font-size: .74rem;
  }

  .fleet-vehicle-cell:nth-child(6),
  .fleet-vehicle-cell:nth-child(7),
  .fleet-vehicle-action {
    grid-column: 1 / -1;
  }

  .fleet-cell-label {
    display: block;
    margin-bottom: 6px;
    color: #78848a;
    font: 800 .57rem/1.35 var(--fleet-tech);
  }

  .fleet-vehicle-action {
    border-bottom: 0;
  }

  .fleet-portal .fleet-service-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-portal .fleet-service-timeline::before,
  .fleet-portal .fleet-service-timeline::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .fleet-portal .hero-command-kicker {
    color: rgba(255, 255, 255, .9);
  }

  .fleet-command-center {
    background-size: 42px 42px;
  }

  .fleet-command-intro {
    margin-bottom: 30px;
  }

  .fleet-command-intro h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .fleet-command-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .fleet-sample-note {
    width: 100%;
  }

  body.fleet-command-enhanced .fleet-signal-cloud {
    display: none;
  }

  body.fleet-command-enhanced .fleet-command-center:not(.is-organized) .fleet-command-panel {
    opacity: 1;
    transform: none;
  }

  .fleet-command-panel {
    box-shadow: 12px 14px 0 rgba(116, 21, 26, .11), 0 24px 65px rgba(13, 18, 20, .16);
  }

  .fleet-command-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-command-stats li {
    min-height: 132px;
    padding: 15px;
  }

  .fleet-command-stats strong {
    font-size: 1.65rem;
  }

  .fleet-vehicle-list {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .fleet-command-caption,
  .fleet-command-noscript {
    font-size: .8rem;
  }

  .fleet-vehicle-dialog {
    inset: 0;
    width: 100%;
    height: 100dvh;
  }

  .fleet-dialog-header {
    min-height: 92px;
    padding: 16px;
  }

  .fleet-dialog-body {
    padding: 18px 14px 54px;
  }

  .fleet-dialog-overview {
    grid-template-columns: 1fr;
  }

  .fleet-dialog-next {
    min-height: 190px;
  }

  .fleet-portal .fleet-service-timeline {
    --journey-progress: 84%;
    display: block;
    padding: 0;
    background: transparent;
  }

  .fleet-portal .fleet-service-timeline::before,
  .fleet-portal .fleet-service-timeline::after {
    display: block;
    top: 24px;
    right: 34px;
    left: auto;
    width: 2px;
    height: calc(100% - 48px);
  }

  .fleet-portal .fleet-service-timeline::before {
    background: #cbd1d3;
  }

  .fleet-portal .fleet-service-timeline::after {
    height: var(--journey-progress);
    max-height: calc(100% - 48px);
    background: var(--fleet-command-line);
    transition: height .5s cubic-bezier(.22, 1, .36, 1);
  }

  .fleet-portal .fleet-service-timeline li {
    display: grid;
    min-height: 118px;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 17px;
    padding: 18px 10px;
    border-bottom: 1px solid #dde1e2;
  }

  .fleet-portal .fleet-service-timeline li b {
    position: absolute;
    top: 13px;
    left: 12px;
  }

  .fleet-portal .fleet-service-timeline li i {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 50%;
  }

  .fleet-portal .fleet-service-timeline li span {
    max-width: none;
    font-size: .95rem;
  }

  .fleet-portal .journey-policies {
    grid-template-columns: 1fr;
  }

  .fleet-portal .journey-policies li {
    min-height: 86px;
  }
}

@media (max-width: 430px) {
  .fleet-portal-nav .container {
    gap: 4px;
  }

  .fleet-portal-nav a {
    min-width: 44px;
    padding-inline: 2px;
    font-size: .54rem;
  }

  .fleet-command-stats {
    grid-template-columns: 1fr 1fr;
  }

  .fleet-command-stats span {
    min-height: 40px;
  }

  .fleet-vehicle-list > li {
    grid-template-columns: 1fr;
  }

  .fleet-vehicle-cell:nth-child(n),
  .fleet-vehicle-action {
    grid-column: 1;
  }

  .fleet-dialog-overview dl {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-signal-cloud {
    display: none !important;
  }

  .fleet-command-panel,
  .fleet-service-timeline::after,
  .fleet-vehicle-list > li,
  .fleet-vehicle-dialog[open] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .fleet-status,
  .fleet-approval-state,
  .fleet-sample-note,
  .fleet-vehicle-action button {
    border: 1px solid ButtonText;
  }

  .fleet-status i,
  .fleet-service-timeline li.is-active i {
    color: HighlightText;
    background: Highlight;
  }
}

@media print {
  .fleet-signal-cloud,
  .fleet-vehicle-action,
  .fleet-vehicle-dialog {
    display: none !important;
  }

  .fleet-command-panel {
    color: #000;
    border: 1px solid #000;
    background: #fff;
    box-shadow: none;
  }
}

/* WCAG AA contrast corrections for the command-center labels. */
.fleet-command-toolbar > div p {
  color: #b7c0c4;
}

.fleet-command-stats span {
  color: #d8e0e3;
}

.fleet-command-stats small {
  color: #ff9aa0;
}

.fleet-vehicle-header {
  color: #46545a;
}

@media (max-width: 980px) {
  .fleet-cell-label {
    color: #59666b;
  }
}
