/* Swiss Express command centre — presentation over the current production app. */
body.cfi-command-design {
  --cfi-command-rail: 74px;
  --cfi-command-header: 84px;
  --cfi-command-paper: #f8f7f3;
  --cfi-command-ink: #0c303d;
  --cfi-command-muted: #72828e;
  --cfi-command-line: #e4e5df;
  --cfi-command-mint: #a9edd8;
  --cfi-command-map-height: clamp(505px, calc(100dvh - 326px), 820px);
  background: var(--cfi-command-paper);
  color: var(--cfi-command-ink);
  color-scheme: light;
}

.cfi-command-design .app-shell {
  display: block;
  min-height: 100dvh;
  padding: 0 0 0 var(--cfi-command-rail);
  background: radial-gradient(ellipse at 80% 0%, #fffdf9 0, #f8f7f3 62%);
}

.cfi-command-design .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: var(--cfi-command-rail);
  height: 100dvh;
  min-height: 0;
  padding: 14px 10px 18px;
  gap: 19px;
  transform: none !important;
  border: 0;
  border-right: 1px solid #1b464b;
  background: linear-gradient(170deg, #113b42, #083238 70%, #0a343b);
  color: #d4e7e6;
  box-shadow: none;
  backdrop-filter: none;
}

.cfi-command-design .sidebar .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  gap: 10px;
  flex: 0 0 54px;
}

.cfi-command-design .sidebar .brand-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #d5e7e5;
  box-shadow: none;
}

.cfi-command-design .sidebar .brand-icon svg {
  width: 29px;
  height: 29px;
}

.cfi-command-design .sidebar .brand-copy,
.cfi-command-design .sidebar .section-label,
.cfi-command-design .sidebar .demo-panel,
.cfi-command-design .sidebar .sidebar-footer,
.cfi-command-design .sidebar .nav-arrow {
  display: none;
}

.cfi-command-design .sidebar .nav-list {
  position: static;
  inset: auto;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Legacy unwrapped label text must never leak outside the compact icon rail during startup. */
.cfi-command-design .sidebar .nav-item {
  font-size: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 45px;
  width: 100%;
  min-width: 0;
  height: 45px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #c1d7d8;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.cfi-command-design .sidebar .nav-item:hover {
  background: #245359;
  color: #ffffff;
}

.cfi-command-design .sidebar .nav-item.is-active {
  border-color: #2a5b60;
  background: #205259;
  color: #edfffa;
  box-shadow: inset 0 1px 0 #ffffff08;
}

.cfi-command-design .sidebar .nav-item.is-active::before {
  position: absolute;
  inset: -1px auto -1px -11px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: #9ee8d2;
  content: "";
}

.cfi-command-design .sidebar .nav-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  font-size: 22px;
  line-height: 1;
  opacity: 1;
}

.cfi-command-design .sidebar .nav-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 15px);
  z-index: 65;
  display: block;
  width: max-content;
  max-width: 230px;
  padding: 10px 13px;
  transform: translate(0, -50%);
  border: 1px solid #315a5f;
  border-radius: 9px;
  background: #113b42;
  color: #eff9f7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 7px 22px #082c3824;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.cfi-command-design .sidebar .nav-item:hover .nav-label,
.cfi-command-design .sidebar .nav-item:focus-visible .nav-label {
  visibility: visible;
  opacity: 1;
}

.cfi-command-design .sidebar-bottom {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  margin: auto 0 0;
  padding: 0;
  gap: 8px;
}

.cfi-command-design .sidebar-bottom .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 43px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c3dad9;
  font-size: 0;
  cursor: pointer;
}

.cfi-command-design .sidebar-bottom .text-button:not(:has(svg))::before {
  font-size: 24px;
  line-height: 1;
  content: "⚙";
}

.cfi-command-design .sidebar-bottom .text-button:hover {
  background: #245359;
  color: white;
}

.cfi-command-design .app-shell .main {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.cfi-command-design .topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  min-height: var(--cfi-command-header);
  height: var(--cfi-command-header);
  margin: 0;
  padding: 10px 24px;
  gap: 22px;
  border-bottom: 1px solid #e1e3dc;
  background: #fcfbf8;
}

.cfi-command-design .cfi-command-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 22px 0 0;
  border-right: 1px solid #cdd3d0;
}

.cfi-command-design .cfi-command-brand img {
  display: block;
  width: 172px;
  height: 61px;
  object-fit: contain;
}

.cfi-command-design .cfi-command-heading {
  min-width: 0;
  margin-right: auto;
}

.cfi-command-design .cfi-command-heading h1 {
  margin: 0;
  color: #0b303d;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.8px;
}

.cfi-command-design .cfi-command-heading p {
  margin: 3px 0 0;
  color: var(--cfi-command-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.cfi-command-design .top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
  gap: 18px;
}

.cfi-command-design .demo-top {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  gap: 9px;
  border: 1px solid #efdabf;
  border-radius: 999px;
  background: #fff4e8;
  color: #a45820;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .25px;
  white-space: nowrap;
}

.cfi-command-design .demo-top .status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #d28a25;
  box-shadow: none;
}

.cfi-command-design .header-time {
  display: block;
  color: #74818a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cfi-command-design .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #15464b;
  border-radius: 50%;
  background: linear-gradient(150deg, #15474d, #07333b);
  color: #f0fbf7;
  font-size: 16px;
  font-weight: 750;
}

.cfi-command-design .cfi-command-notify {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 29px;
  width: 29px;
  height: 36px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #627c87;
  cursor: pointer;
}

.cfi-command-design .cfi-command-notify:hover {
  background: #edf3eb;
}

.cfi-command-design .cfi-command-notify i {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 7px;
  height: 7px;
  border: 1px solid #fcfbf8;
  border-radius: 50%;
  background: #c88029;
}

.cfi-command-design .mobile-menu {
  display: none;
}

.cfi-command-design .cfi-command-nav-close,
.cfi-command-design .cfi-command-nav-backdrop,
.cfi-command-design .cfi-command-coach-close {
  display: none;
}

.cfi-command-design .main-view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 22px 28px;
}

.cfi-command-design .cfi-icon {
  display: inline-block;
  width: 20px !important;
  height: 20px !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  vertical-align: middle;
}

.cfi-command-design .cfi-command-page {
  max-width: 1880px;
  margin: 0 auto;
}

.cfi-command-design .cfi-command-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 16px;
  gap: 12px;
}

.cfi-command-design .cfi-command-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  min-height: 107px;
  margin: 0;
  padding: 16px 18px;
  gap: 15px;
  border: 1px solid var(--cfi-command-line);
  border-radius: 15px;
  background: linear-gradient(130deg, #fffefb, #fcfbf8);
  color: var(--cfi-command-ink);
  font: inherit;
  text-align: left;
  box-shadow: 0 3px 13px #233e3d03;
}

.cfi-command-design button.cfi-command-kpi {
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.cfi-command-design button.cfi-command-kpi:hover {
  border-color: #bdcfc6;
  background: #ffffff;
}

.cfi-command-design .cfi-command-kpi-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #e8eeea;
  border-radius: 50%;
  background: #f0f5f2;
  color: #173e49;
}

.cfi-command-design .cfi-command-kpi-icon .cfi-icon {
  width: 23px !important;
  height: 23px !important;
}

.cfi-command-design .cfi-command-kpi-copy {
  min-width: 0;
}

.cfi-command-design .cfi-command-kpi-copy > small {
  display: block;
  margin: 1px 0 5px;
  color: #75838d;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.cfi-command-design .cfi-command-kpi-copy > strong {
  display: block;
  margin: 0;
  color: #103440;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(27px, 2.4vw, 35px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
}

.cfi-command-design .cfi-command-kpi-copy > p {
  margin: 4px 0 0;
  color: #74828d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.cfi-command-design .cfi-command-kpi.is-alert {
  border-color: #ece1d2;
  background: linear-gradient(130deg, #fffdf8, #fbf7ef);
}

.cfi-command-design .cfi-command-kpi.is-alert .cfi-command-kpi-icon {
  border-color: #f3e1c8;
  background: #fff1dd;
  color: #c47b17;
}

.cfi-command-design .cfi-command-kpi.is-alert > .cfi-icon {
  position: absolute;
  top: 45%;
  right: 10px;
  width: 13px !important;
  height: 13px !important;
  color: #899990;
}

.cfi-command-design .cfi-command-grid.atlas-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.28fr) minmax(338px, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 0;
  margin: 0;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  overflow: visible;
}

.cfi-command-design .cfi-command-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 12px;
}

.cfi-command-design .cfi-command-map {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: var(--cfi-command-map-height);
  border: 1px solid #dce2de;
  border-radius: 18px;
  background: #fffefb;
  box-shadow: 0 3px 12px #143b4204;
}

.cfi-command-design .cfi-command-map-head {
  position: relative;
  z-index: 15;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 9px 12px 9px 19px;
  gap: 12px;
  border-bottom: 1px solid #e2e8e2;
  border-radius: 18px 18px 0 0;
  background: #fefdfa;
}

.cfi-command-design .cfi-command-map-head h2 {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  gap: 11px;
  color: #123846;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.35px;
}

.cfi-command-design .cfi-command-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 7px;
}

.cfi-command-design .cfi-command-control,
.cfi-command-design .cfi-command-map-options > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 8px 11px;
  gap: 7px;
  border: 1px solid #dce2dd;
  border-radius: 10px;
  background: #fffefa;
  color: #123644;
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px #18394204;
}

.cfi-command-design select.cfi-command-control {
  text-align: left;
  padding-right: 9px;
}

.cfi-command-design .cfi-command-control:hover,
.cfi-command-design .cfi-command-map-options > summary:hover {
  border-color: #b9ccc3;
  background: #f2f7f3;
}

.cfi-command-design .cfi-command-control.is-primary {
  border-color: #15504f;
  background: linear-gradient(135deg, #195957, #104342);
  color: #f5fffb;
  box-shadow: 0 4px 9px #164f4912;
}

.cfi-command-design .cfi-command-control.is-primary:hover {
  background: #226b60;
}

.cfi-command-design .cfi-command-control.icon-only,
.cfi-command-design .cfi-command-map-options > summary {
  width: 37px;
  padding: 8px;
  flex: 0 0 37px;
}

.cfi-command-design .cfi-command-control .cfi-icon {
  width: 17px !important;
  height: 17px !important;
}

.cfi-command-design .cfi-command-tools .cfi-border-selected-badge {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.cfi-command-design .cfi-command-map-options {
  position: relative;
  min-width: 0;
}

.cfi-command-design .cfi-command-map-options > summary {
  list-style: none;
}

.cfi-command-design .cfi-command-map-options > summary::-webkit-details-marker {
  display: none;
}

.cfi-command-design .cfi-command-map-options[open] > summary {
  border-color: #90b9ac;
  background: #e8f3ec;
}

.cfi-command-design .cfi-command-map-options[open] > :not(summary) {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 90;
  display: grid;
  width: 276px;
  max-width: calc(100vw - 35px);
  padding: 15px;
  gap: 11px;
  border: 1px solid #d8e3dc;
  border-radius: 14px;
  background: #fffefa;
  color: #24434a;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 16px 38px #173f4230;
}

.cfi-command-design .cfi-command-map-options label {
  display: grid;
  gap: 6px;
  color: #637875;
  font-size: 11px;
}

.cfi-command-design .cfi-command-map-options select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  background: #fffefa;
  color: #24434a;
  font: inherit;
}

.cfi-command-design .cfi-command-options-panel > button {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  gap: 8px;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: #f4f8f1;
  color: #30524e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cfi-command-design .cfi-command-options-panel > button:hover {
  background: #e8f2e7;
}

.cfi-command-design .cfi-command-map .atlas-map {
  position: relative;
  inset: auto;
  display: block;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 0 0 17px 17px;
  background: #d5e6e2 !important;
  overflow: hidden;
  isolation: isolate;
}

.cfi-command-design .cfi-command-map .atlas-map::before {
  display: none !important;
}

.cfi-command-design .cfi-command-map .atlas-interactive-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
}

.cfi-command-design .cfi-command-map .atlas-map svg {
  min-height: 0 !important;
}

.cfi-command-design .cfi-command-map .cfi-fallback-svg {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}

.cfi-command-design .cfi-command-map .cfi-road-legend {
  position: absolute;
  inset: auto auto 14px 12px;
  z-index: 7;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
  padding: 8px 4px;
  gap: 0;
  border: 1px solid #e7f0e8;
  border-radius: 11px;
  background: #fffffff0;
  box-shadow: 0 3px 10px #1c514914;
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.cfi-command-design .cfi-command-map .cfi-road-legend span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 9px;
  gap: 6px;
  border: 0;
  border-right: 1px solid #e2e8e5;
  border-radius: 0;
  background: transparent;
  color: #315361;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: none;
}

.cfi-command-design .cfi-command-map .cfi-road-legend span:last-of-type {
  border-right: 0;
}

.cfi-command-design .cfi-command-map .cfi-road-legend i {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background: var(--cfi-s, #299768);
  clip-path: polygon(50% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: none;
}

.cfi-command-design .cfi-command-map .cfi-road-legend small {
  margin: 2px 8px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #74868b;
  font-size: 9px;
  line-height: 1.5;
}

.cfi-command-design .cfi-command-map-summary {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 7;
  max-width: 43%;
  padding: 9px 11px;
  border: 1px solid #e7f0e8;
  border-radius: 11px;
  background: #fffffff0;
  color: #617987;
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
  box-shadow: 0 3px 10px #1c514914;
  pointer-events: none;
}

.cfi-command-design .cfi-command-map-summary > span + span::before {
  display: inline-block;
  margin-inline: 7px;
  color: #a1afa7;
  content: "·";
}

.cfi-command-design .cfi-command-map-zoom {
  position: absolute;
  right: 12px;
  bottom: 73px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  width: 35px;
  border: 1px solid #d8e6df;
  border-radius: 11px;
  background: #ffffffef;
  overflow: hidden;
  box-shadow: 0 3px 10px #1c514914;
}

.cfi-command-design .cfi-command-map-zoom > button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 31px;
  padding: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2a5261;
  cursor: pointer;
}

.cfi-command-design .cfi-command-map-zoom > button + button {
  border-top: 1px solid #e0e7e1;
}

.cfi-command-design .cfi-command-map-zoom > button:hover {
  background: #edf5ef;
}

.cfi-command-design .cfi-command-map-zoom .cfi-icon {
  width: 16px !important;
  height: 16px !important;
}

.cfi-command-design .cfi-command-map .atlas-map > .atlas-map-note {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  display: block;
  max-width: none;
  margin: 0;
  padding: 3px 10px;
  border: 0;
  border-radius: 0;
  background: #f5faf0d9;
  color: #647e7a;
  font-size: 7px;
  line-height: 1.4;
  text-align: right;
  pointer-events: none;
}

.cfi-command-design .cfi-command-map > .atlas-map-note {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-top: 1px solid #e0e7e0;
  border-radius: 0 0 17px 17px;
  background: #f4f8f4;
  color: #718480;
  font-size: 8px;
  line-height: 1.4;
  text-align: right;
}

.cfi-command-design .cfi-command-map .atlas-map #cfi-border-picker-panel {
  top: 12px;
  right: 12px;
  width: min(375px, calc(100% - 24px));
  max-height: calc(100% - 26px);
  border-color: #cadbd3;
}

.cfi-command-design .cfi-command-attention {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 10px 12px 10px 17px;
  gap: 12px;
  border: 1px solid var(--cfi-command-line);
  border-radius: 15px;
  background: #fffdf9;
  color: #163846;
  box-shadow: 0 3px 13px #233e3d03;
}

.cfi-command-design .cfi-command-attention > .cfi-icon,
.cfi-command-design .cfi-command-attention-icon {
  color: #bd7318;
}

.cfi-command-design .cfi-command-attention > strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.cfi-command-design .cfi-command-attention-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid #d8ddd8;
  color: #607382;
  font-size: 10px;
  line-height: 1.55;
}

.cfi-command-design .cfi-command-attention-copy strong,
.cfi-command-design .cfi-command-attention-copy b {
  color: #1d3b47;
  font-weight: 700;
}

.cfi-command-design .cfi-command-attention > button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 8px 11px;
  gap: 7px;
  border: 1px solid #d7dfd8;
  border-radius: 10px;
  background: #fffefa;
  color: #173947;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.cfi-command-design .cfi-command-coach {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 20px 21px 18px;
  border: 1px solid #214d51;
  border-radius: 20px;
  background: linear-gradient(155deg, #173f47 0%, #0a363c 48%, #073238 100%);
  color: #f4fbf8;
  box-shadow: 0 8px 20px #133d4412;
}

.cfi-command-design .cfi-command-coach-heading > small {
  display: block;
  margin: 0 0 8px;
  color: #c4d6d6;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.cfi-command-design .cfi-command-coach-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 9px;
}

.cfi-command-design .cfi-command-coach-title {
  min-width: 0;
}

.cfi-command-design .cfi-command-coach-title h2 {
  margin: 0;
  color: #f5fcf8;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.9px;
}

.cfi-command-design .cfi-command-coach-title p {
  margin: 4px 0 0;
  color: #d6e6e3;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cfi-command-design .cfi-command-status {
  --cfi-status-tone: #a3f1d1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 50%;
  min-height: 30px;
  padding: 6px 9px;
  gap: 6px;
  border: 1px solid #4c9c88;
  border-radius: 999px;
  background: #1b584c5c;
  color: var(--cfi-status-tone);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.cfi-command-design .cfi-command-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--cfi-status-tone);
  content: "";
}

.cfi-command-design .cfi-command-status > i {
  display: none;
}

.cfi-command-design .cfi-command-status[data-motion="idling"] {
  --cfi-status-tone: #f2cc86;
  border-color: #8b7c56;
  background: #8e652324;
}

.cfi-command-design .cfi-command-status[data-motion="stopped"] {
  --cfi-status-tone: #ffb8ae;
  border-color: #986c66;
  background: #9a4d4a24;
}

.cfi-command-design .cfi-command-status:is([data-motion="offroad"], [data-motion="offline"], [data-motion="maintenance"]) {
  --cfi-status-tone: #d2dddc;
  border-color: #708484;
  background: #86939320;
}

.cfi-command-design .cfi-command-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(160px, 11.8vw, 184px);
  min-height: 160px;
  margin: 12px 0;
  padding: 0;
  border: 1px solid #b2c3ca55;
  border-radius: 12px;
  background: linear-gradient(180deg, #a7b3bf, #c8cdd2);
  overflow: hidden;
}

.cfi-command-design .cfi-command-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  transform: none;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.cfi-command-design .cfi-coach-selection-halo {
  opacity: 0;
  transition: opacity 140ms ease;
}

.cfi-command-design .cfi-fallback-bus-marker.is-selected .cfi-coach-selection-halo {
  opacity: 1;
}

.cfi-command-design .cfi-fallback-bus-marker.is-selected:focus-visible .cfi-coach-selection-halo {
  opacity: 1;
  stroke-width: 3;
}

.cfi-command-design .cfi-fallback-bus-marker:not(.is-selected):focus-visible .cfi-coach-selection-halo {
  opacity: 1;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 3 2;
}

/* Selected coach uses a transparent asset; registry retains the original 4:3 photograph. */
.cfi-command-design .cfi-command-photo.is-cutout {
  display: block;
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--cfi-cutout-ratio, 1.8);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cfi-command-design .cfi-command-photo.is-cutout > img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  max-height: none;
  transform: translateY(var(--cfi-cutout-offset, -50%));
  filter: drop-shadow(0 8px 8px #001b2033);
}

.cfi-command-design .fleet-visual:has(.cfi-photo-card) {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  padding: 0 !important;
  background: transparent !important;
}

.cfi-command-design .fleet-visual > .cfi-photo-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.cfi-command-design .cfi-command-route {
  margin: 0 0 8px;
  padding-top: 10px;
  border-top: 1px solid #c1e3df3a;
}

.cfi-command-design .cfi-command-route h3 {
  margin: 0;
  color: #f3fcf8;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}

.cfi-command-design .cfi-command-arrival {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: end;
  margin: 0 0 8px;
  column-gap: 12px;
  row-gap: 3px;
}

.cfi-command-design .cfi-command-arrival > small {
  grid-column: 1 / -1;
  color: #d2e3df;
  font-size: 10px;
  line-height: 1.4;
}

.cfi-command-design .cfi-command-arrival > div {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  gap: 12px;
}

.cfi-command-design .cfi-command-arrival > strong,
.cfi-command-design .cfi-command-arrival > div > strong {
  color: #f4fcf8;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.cfi-command-design .cfi-command-arrival > span,
.cfi-command-design .cfi-command-arrival > div > span {
  padding-bottom: 3px;
  color: #d8e9e4;
  font-size: 10px;
  line-height: 1.45;
}

.cfi-command-design .cfi-command-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px;
  gap: 10px;
  color: #e3efeb;
  font-size: 9px;
  line-height: 1.4;
}

.cfi-command-design .cfi-command-progress {
  width: 100%;
  height: 7px;
  flex: 0 0 7px;
  border: 0;
  border-radius: 999px;
  background: #396367;
  overflow: hidden;
}

.cfi-command-design .cfi-command-progress > span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a4ead3, #6ed9b6);
  /* The percentage and its fill must stay in sync, including after re-renders. */
  transition: none;
}

.cfi-command-design .cfi-command-telemetry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
  padding: 12px 0;
  gap: 12px;
  border-top: 1px solid #beddda3b;
  border-bottom: 1px solid #beddda3b;
}

.cfi-command-design .cfi-command-telemetry-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #e4f0eb;
}

.cfi-command-design .cfi-command-telemetry-item:first-child {
  padding-right: 11px;
  border-right: 1px solid #beddda40;
}

.cfi-command-design .cfi-command-telemetry-item .cfi-icon {
  width: 26px !important;
  height: 26px !important;
}

.cfi-command-design .cfi-command-telemetry-item > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cfi-command-design .cfi-command-telemetry-item > div > :first-child {
  margin: 0;
  color: #f3fcf8;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.cfi-command-design .cfi-command-telemetry-item > div > :last-child {
  margin: 0;
  color: #d9eae5;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.cfi-command-design .cfi-command-movements {
  min-width: 0;
}

.cfi-command-design .cfi-command-movement-list {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6c9691 transparent;
}

.cfi-command-design .cfi-command-empty {
  margin: 12px 0;
  color: #bfd5ce;
  font-size: 11px;
  line-height: 1.5;
}

.cfi-command-design .cfi-command-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin: 0 0 5px;
  gap: 10px;
}

.cfi-command-design .cfi-command-section-heading > small {
  color: #d3e1df;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cfi-command-design .cfi-command-section-heading > button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  padding: 2px 0 2px 5px;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #9ee8cd;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.cfi-command-design .cfi-command-section-heading > button .cfi-icon {
  width: 13px !important;
  height: 13px !important;
}

.cfi-command-design .cfi-command-movement {
  display: grid;
  grid-template-columns: 14px 60px minmax(0, 1fr) 13px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 8px 0;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid #beddda36;
  border-radius: 0;
  background: transparent;
  color: #e3f1ea;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.cfi-command-design .cfi-command-movement:hover {
  background: #d4f7e90b;
  color: #ffffff;
}

.cfi-command-design .cfi-command-movement > strong {
  color: #f2fbf6;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.cfi-command-design .cfi-command-movement > span {
  min-width: 0;
  overflow: hidden;
  color: #d9e9e3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfi-command-design .cfi-command-movement .cfi-icon {
  width: 13px !important;
  height: 13px !important;
  color: #9eebd0;
}

.cfi-command-design .cfi-command-movement > .cfi-command-movement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #92e6c8;
}

.cfi-command-design .cfi-command-movement > .cfi-command-movement-icon[data-motion="idling"] { color: #e9b86a; }
.cfi-command-design .cfi-command-movement > .cfi-command-movement-icon[data-motion="stopped"] { color: #ef9d93; }
.cfi-command-design .cfi-command-movement > .cfi-command-movement-icon[data-motion="offroad"] { color: #aebfbd; }
.cfi-command-design .cfi-command-movement .cfi-command-movement-icon .cfi-icon { color: inherit; }

.cfi-command-design .cfi-command-coach-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-top: auto;
  padding-top: 13px;
  gap: 9px;
}

.cfi-command-design .cfi-command-coach-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 9px 9px;
  gap: 7px;
  border: 1px solid #b6d8d3;
  border-radius: 11px;
  background: transparent;
  color: #effbf6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}

.cfi-command-design .cfi-command-coach-actions > button:hover {
  background: #d9f7ec10;
}

.cfi-command-design .cfi-command-coach-actions > button.is-primary {
  border-color: #adebd7;
  background: #adebd7;
  color: #0a3541;
}

.cfi-command-design .cfi-command-coach-actions > button.is-primary:hover {
  border-color: #c4f6e6;
  background: #c4f6e6;
}

.cfi-command-design .cfi-command-coach-actions .cfi-icon {
  width: 17px !important;
  height: 17px !important;
}

.cfi-command-design .cfi-command-page-footer {
  margin: 10px 2px 0;
  color: #8a989e;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.cfi-command-design .cfi-command-page-footer > span + span::before {
  display: inline-block;
  margin-inline: 8px;
  color: #b3bdb5;
  content: "·";
}

.cfi-command-design .cfi-command-insights {
  margin: 18px 0 0;
  border-top: 1px solid #e0e6dd;
  color: #34544f;
}

.cfi-command-design .cfi-command-insights > summary {
  width: fit-content;
  padding: 13px 0;
  color: #647d76;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.cfi-command-design .cfi-command-insights[open] > summary {
  margin-bottom: 5px;
}

.cfi-command-design :is(.nav-item, .text-button, .mobile-menu, .cfi-command-nav-close, .cfi-command-coach-close, .cfi-command-control, .cfi-command-notify, .cfi-command-map-zoom > button, .cfi-command-options-panel > button, .cfi-command-map-options > summary, .cfi-command-kpi, .cfi-command-attention > button, .cfi-command-movement, .cfi-command-coach-actions > button, .cfi-command-section-heading > button, .cfi-command-insights > summary):focus-visible {
  outline: 3px solid #6bbda7;
  outline-offset: 3px;
}

.cfi-command-design .cfi-command-map-zoom > button:focus-visible {
  outline-offset: -3px;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-sidebar-collapsed > .cfi-command-coach {
  display: none !important;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode {
  position: fixed !important;
  inset: 10px !important;
  z-index: 1500 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  align-items: stretch;
  width: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  height: calc(100dvh - 20px);
  margin: 0 !important;
  padding: 12px;
  gap: 12px;
  border: 1px solid #d6e3d9;
  border-radius: 20px !important;
  background: #f7f8f2;
  overflow: hidden;
  box-shadow: 0 0 0 100vmax #05252cc9 !important;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode.map-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-left {
  height: 100%;
  min-height: 0;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-map {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .atlas-map {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 0;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-attention {
  display: none;
}

.cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach {
  min-height: 0;
  overflow-y: auto;
}

@media (min-width: 1550px) {
  .cfi-command-design .main-view { padding-inline: 24px; }
  .cfi-command-design .cfi-command-kpi { padding: 17px 20px; gap: 17px; }
  .cfi-command-design .cfi-command-kpi-copy > small { font-size: 10px; }
  .cfi-command-design .cfi-command-kpi-copy > p { font-size: 12px; }
  .cfi-command-design .cfi-command-coach { padding: 22px 24px 20px; }
  .cfi-command-design .cfi-command-coach-title h2 { font-size: 32px; }
  .cfi-command-design .cfi-command-status { font-size: 10px; padding-inline: 11px; }
  .cfi-command-design .cfi-command-route h3 { font-size: 18px; }
  .cfi-command-design .cfi-command-arrival > strong, .cfi-command-design .cfi-command-arrival > div > strong { font-size: 34px; }
  .cfi-command-design .cfi-command-movement { min-height: 37px; grid-template-columns: 15px 65px minmax(0, 1fr) 14px; }
  .cfi-command-design .cfi-command-movement > span { font-size: 10px; }
  .cfi-command-design .cfi-command-coach-actions > button { font-size: 12px; }
}

@media (max-width: 1180px) {
  .cfi-command-design .topbar { padding-inline: 20px; gap: 17px; }
  .cfi-command-design .cfi-command-brand { padding-right: 17px; }
  .cfi-command-design .cfi-command-brand img { width: 148px; }
  .cfi-command-design .cfi-command-heading h1 { font-size: 21px; }
  .cfi-command-design .header-time { display: none; }
  .cfi-command-design .top-actions { gap: 12px; }
  .cfi-command-design .cfi-command-kpi { grid-template-columns: 39px minmax(0, 1fr); padding: 14px 13px; gap: 10px; }
  .cfi-command-design .cfi-command-kpi-icon { width: 39px; height: 39px; }
  .cfi-command-design .cfi-command-kpi-copy > strong { font-size: 27px; }
  .cfi-command-design .cfi-command-kpi-copy > small { font-size: 8px; letter-spacing: .8px; }
  .cfi-command-design .cfi-command-kpi-copy > p { font-size: 10px; }
  .cfi-command-design .cfi-command-map-head { padding-left: 13px; gap: 8px; }
  .cfi-command-design .cfi-command-map-head h2 { font-size: 14px; gap: 7px; }
  .cfi-command-design .cfi-command-tools { gap: 5px; }
  .cfi-command-design .cfi-command-control { padding-inline: 8px; }
  .cfi-command-design .cfi-command-map-summary { bottom: 54px; max-width: calc(100% - 24px); }
  .cfi-command-design .cfi-command-attention { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .cfi-command-design .cfi-command-attention-copy { flex-basis: 140px; }
}

@media (max-width: 1100px) {
  .cfi-command-design .main-view { padding-inline: 16px; }
  .cfi-command-design .cfi-command-grid.atlas-shell { grid-template-columns: minmax(0, 1fr) 328px; gap: 12px; }
  .cfi-command-design .cfi-command-coach { padding: 17px 17px 16px; }
  .cfi-command-design .cfi-command-coach-title h2 { font-size: 27px; }
  .cfi-command-design .cfi-command-status { font-size: 8px; padding-inline: 8px; gap: 5px; }
  .cfi-command-design .cfi-command-movement { grid-template-columns: 13px 56px minmax(0, 1fr) 12px; gap: 6px; }
  .cfi-command-design .cfi-command-map-head { flex-wrap: wrap; }
  .cfi-command-design .cfi-command-map-head h2 { flex: 1 0 100%; }
  .cfi-command-design .cfi-command-tools { width: 100%; justify-content: flex-start; }
  .cfi-command-design .cfi-command-map-options[open] > :not(summary) { right: -44px; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode { grid-template-columns: minmax(0, 1fr) 328px; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .cfi-command-design .cfi-command-grid.atlas-shell { grid-template-columns: minmax(0, 1fr); }
  .cfi-command-design .cfi-command-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfi-command-design .cfi-command-kpi { min-height: 104px; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 15px 17px; }
  .cfi-command-design .cfi-command-kpi-icon { width: 44px; height: 44px; }
  .cfi-command-design .cfi-command-kpi-copy > small { font-size: 9px; letter-spacing: 1px; }
  .cfi-command-design .cfi-command-kpi-copy > strong { font-size: 30px; }
  .cfi-command-design .cfi-command-kpi-copy > p { font-size: 11px; }
  .cfi-command-design .cfi-command-map { flex: 0 0 auto; height: clamp(475px, 68dvh, 700px); }
  .cfi-command-design .cfi-command-map-head { flex-wrap: nowrap; }
  .cfi-command-design .cfi-command-map-head h2 { flex: 0 0 auto; }
  .cfi-command-design .cfi-command-tools { width: auto; justify-content: flex-end; }
  .cfi-command-design .cfi-command-map-options[open] > :not(summary) { right: 0; }
  .cfi-command-design .cfi-command-map-summary { bottom: 14px; max-width: 43%; }
  .cfi-command-design .cfi-command-coach { padding: 23px; }
  .cfi-command-design .cfi-command-coach-title h2 { font-size: 31px; }
  .cfi-command-design .cfi-command-status { font-size: 11px; padding: 7px 12px; }
  .cfi-command-design .cfi-command-photo { height: clamp(205px, 40vw, 330px); }
  .cfi-command-design .cfi-command-route h3 { font-size: 19px; }
  .cfi-command-design .cfi-command-arrival > strong, .cfi-command-design .cfi-command-arrival > div > strong { font-size: 35px; }
  .cfi-command-design .cfi-command-arrival > span, .cfi-command-design .cfi-command-arrival > div > span { font-size: 12px; }
  .cfi-command-design .cfi-command-progress-label { font-size: 11px; }
  .cfi-command-design .cfi-command-telemetry { padding-block: 17px; margin-block: 16px; }
  .cfi-command-design .cfi-command-telemetry-item > div > :first-child { font-size: 11px; }
  .cfi-command-design .cfi-command-telemetry-item > div > :last-child { font-size: 12px; }
  .cfi-command-design .cfi-command-movement { grid-template-columns: 16px 72px minmax(0, 1fr) 16px; min-height: 43px; gap: 10px; }
  .cfi-command-design .cfi-command-movement > strong { font-size: 12px; }
  .cfi-command-design .cfi-command-movement > span { font-size: 11px; }
  .cfi-command-design .cfi-command-coach-actions > button { min-height: 46px; font-size: 13px; }
  .cfi-command-design .cfi-command-section-heading > small { font-size: 11px; }
  .cfi-command-design .cfi-command-section-heading > button { font-size: 12px; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode { grid-template-columns: minmax(0, 1fr); }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach { position: absolute; z-index: 20; top: 118px; right: 23px; bottom: 23px; width: min(335px, calc(100% - 46px)); padding: 17px; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-photo { height: 160px; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-map-head { flex-wrap: wrap; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-map-head h2 { flex-basis: 100%; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-tools { width: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .cfi-command-design .topbar { padding-inline: 16px; gap: 13px; }
  .cfi-command-design .cfi-command-brand { padding-right: 13px; }
  .cfi-command-design .cfi-command-brand img { width: 114px; height: 51px; }
  .cfi-command-design .cfi-command-heading h1 { font-size: 19px; }
  .cfi-command-design .cfi-command-heading p { font-size: 11px; }
  .cfi-command-design .top-actions { gap: 10px; }
  .cfi-command-design .demo-top { min-height: 30px; padding: 7px 9px; gap: 6px; font-size: 8px; }
  .cfi-command-design .avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 13px; }
  .cfi-command-design .cfi-command-map-head { flex-wrap: wrap; }
  .cfi-command-design .cfi-command-map-head h2 { flex: 1 0 100%; }
  .cfi-command-design .cfi-command-tools { width: 100%; justify-content: flex-start; }
  .cfi-command-design .cfi-command-map-summary { bottom: 55px; }
  .cfi-command-design .cfi-command-map .atlas-map #cfi-border-picker-panel { position: fixed; inset: 90px 12px auto; z-index: 1900; width: auto; max-height: calc(100dvh - 110px); }
}

@media (max-width: 640px) {
  body.cfi-command-design { --cfi-command-rail: 0px; --cfi-command-header: 74px; }
  .cfi-command-design .app-shell { padding-left: 0; }
  .cfi-command-design .sidebar { inset: 0 auto 0 0; z-index: 1800; align-items: stretch; width: 252px; height: 100dvh; padding: 15px 12px; gap: 16px; transform: translateX(-105%) !important; transition: transform 180ms ease; }
  .cfi-command-design .sidebar.open { transform: translateX(0) !important; box-shadow: 15px 0 50px #092e375c; }
  .cfi-command-design .sidebar .brand { justify-content: flex-start; padding-inline: 6px; }
  .cfi-command-design .sidebar .brand-copy { display: block; }
  .cfi-command-design .sidebar .brand-copy strong { color: #e8f5ef; font-size: 16px; }
  .cfi-command-design .sidebar .brand-copy strong span { color: #a9e9d6; }
  .cfi-command-design .sidebar .brand-copy small { color: #accac4; }
  .cfi-command-design .sidebar .nav-list { flex: 1 1 auto; gap: 4px; overflow-y: auto; overflow-x: hidden; }
  .cfi-command-design .sidebar .nav-item { justify-content: flex-start; min-height: 44px; padding-inline: 15px; gap: 13px; }
  .cfi-command-design .sidebar .nav-label { position: static; width: auto; max-width: none; padding: 0; transform: none; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 12px; box-shadow: none; visibility: visible; opacity: 1; }
  .cfi-command-design .sidebar .nav-ic { display: inline-flex; }
  .cfi-command-design .sidebar-bottom .text-button { justify-content: flex-start; padding-inline: 15px; gap: 12px; font-size: 12px; }
  .cfi-command-design .sidebar-bottom .text-button:not(:has(svg))::before { font-size: 20px; }
  .cfi-command-design .mobile-menu { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 36px; padding: 5px; border: 1px solid #d8e3da; border-radius: 9px; background: #f5f8f1; color: #164447; font-size: 18px; }
  .cfi-command-design .topbar { padding: 10px 13px; gap: 11px; }
  .cfi-command-design .cfi-command-brand { display: none; }
  .cfi-command-design .cfi-command-heading h1 { font-size: 18px; letter-spacing: -.6px; }
  .cfi-command-design .cfi-command-heading p { max-width: 180px; font-size: 10px; }
  .cfi-command-design .top-actions { gap: 8px; }
  .cfi-command-design .demo-top { padding: 7px 8px; gap: 5px; font-size: 7px; letter-spacing: .1px; }
  .cfi-command-design .demo-top .status-dot { width: 5px; height: 5px; flex-basis: 5px; }
  .cfi-command-design .avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
  .cfi-command-design .main-view { padding: 13px 12px 25px; }
  .cfi-command-design .cfi-command-kpis { gap: 9px; margin-bottom: 12px; }
  .cfi-command-design .cfi-command-kpi { grid-template-columns: 33px minmax(0, 1fr); min-height: 109px; padding: 12px 11px; gap: 8px; border-radius: 13px; }
  .cfi-command-design .cfi-command-kpi-icon { width: 33px; height: 33px; }
  .cfi-command-design .cfi-command-kpi-icon .cfi-icon { width: 18px !important; height: 18px !important; }
  .cfi-command-design .cfi-command-kpi-copy > small { font-size: 7px; line-height: 1.5; letter-spacing: .5px; }
  .cfi-command-design .cfi-command-kpi-copy > strong { font-size: 25px; letter-spacing: -.8px; }
  .cfi-command-design .cfi-command-kpi-copy > p { font-size: 9px; line-height: 1.45; }
  .cfi-command-design .cfi-command-map { height: clamp(455px, 70dvh, 600px); border-radius: 15px; }
  .cfi-command-design .cfi-command-map-head { padding: 11px; border-radius: 15px 15px 0 0; }
  .cfi-command-design .cfi-command-map-head h2 { font-size: 16px; }
  .cfi-command-design .cfi-command-tools { gap: 6px; }
  .cfi-command-design .cfi-command-control { min-height: 36px; padding-inline: 9px; font-size: 9px; }
  .cfi-command-design .cfi-command-control.icon-only, .cfi-command-design .cfi-command-map-options > summary { width: 35px; flex-basis: 35px; }
  .cfi-command-design .cfi-command-map-options[open] > :not(summary) { right: -43px; }
  .cfi-command-design .cfi-command-map .cfi-road-legend { left: 9px; bottom: 13px; max-width: calc(100% - 18px); padding: 8px 3px; border-radius: 9px; }
  .cfi-command-design .cfi-command-map .cfi-road-legend span { padding-inline: 6px; gap: 5px; font-size: 8px; }
  .cfi-command-design .cfi-command-map .cfi-road-legend i { width: 10px; height: 12px; flex-basis: 10px; }
  .cfi-command-design .cfi-command-map-summary { top: 10px; right: 9px; bottom: auto; max-width: calc(100% - 18px); padding: 7px 9px; font-size: 8px; }
  .cfi-command-design .cfi-command-attention { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; min-height: 68px; padding: 12px; gap: 8px; }
  .cfi-command-design .cfi-command-attention > strong { font-size: 12px; }
  .cfi-command-design .cfi-command-attention-copy { grid-column: 1 / 3; grid-row: 2; padding-left: 0; border: 0; font-size: 10px; }
  .cfi-command-design .cfi-command-attention > button { grid-column: 3; grid-row: 1 / 3; max-width: 115px; padding-inline: 9px; font-size: 9px; }
  .cfi-command-design .cfi-command-coach { padding: 20px; border-radius: 17px; }
  .cfi-command-design .cfi-command-coach-title h2 { font-size: 29px; }
  .cfi-command-design .cfi-command-photo { height: clamp(205px, 56vw, 270px); }
  .cfi-command-design .cfi-command-route h3 { font-size: 18px; }
  .cfi-command-design .cfi-command-arrival > strong, .cfi-command-design .cfi-command-arrival > div > strong { font-size: 34px; }
  .cfi-command-design .cfi-command-coach-actions > button { font-size: 12px; }
  .cfi-command-design .cfi-command-page-footer { margin-top: 10px; font-size: 8px; }
  .cfi-command-design .cfi-command-insights { margin-top: 14px; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode { inset: 0 !important; width: 100vw !important; height: 100dvh; padding: 8px; border: 0; border-radius: 0 !important; }
  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach { top: 118px; right: 16px; bottom: 16px; width: min(325px, calc(100% - 32px)); }
}

@media (max-width: 380px) {
  .cfi-command-design .topbar { gap: 8px; padding-inline: 10px; }
  .cfi-command-design .cfi-command-heading h1 { font-size: 16px; }
  .cfi-command-design .cfi-command-heading p { font-size: 9px; }
  .cfi-command-design .top-actions { gap: 5px; }
  .cfi-command-design .cfi-command-notify { display: none; }
  .cfi-command-design .avatar { width: 27px; height: 27px; flex-basis: 27px; }
  .cfi-command-design .cfi-command-kpi { grid-template-columns: minmax(0, 1fr); gap: 6px; min-height: 142px; }
  .cfi-command-design .cfi-command-kpi-icon { width: 29px; height: 29px; }
  .cfi-command-design .cfi-command-kpi-copy > small { font-size: 8px; }
  .cfi-command-design .cfi-command-kpi-copy > strong { font-size: 25px; }
  .cfi-command-design .cfi-command-kpi-copy > p { font-size: 9px; }
  .cfi-command-design .cfi-command-coach { padding: 16px; }
  .cfi-command-design .cfi-command-status { font-size: 9px; padding-inline: 9px; }
  .cfi-command-design .cfi-command-movement { grid-template-columns: 13px 59px minmax(0, 1fr) 13px; gap: 6px; }
  .cfi-command-design .cfi-command-movement > strong { font-size: 11px; }
  .cfi-command-design .cfi-command-movement > span { font-size: 10px; }
}

/* Narrow-screen controls remain reachable when the toolbar wraps or a panel opens. */
@media (max-width: 900px) {
  .cfi-command-design .cfi-command-heading h1,
  .cfi-command-design .cfi-command-heading p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cfi-command-design .cfi-command-tools .cfi-command-control,
  .cfi-command-design .cfi-command-map-options > summary,
  .cfi-command-design .cfi-command-options-panel > button,
  .cfi-command-design .cfi-command-options-panel select {
    min-height: 44px;
  }

  .cfi-command-design .cfi-command-tools .cfi-command-control.icon-only,
  .cfi-command-design .cfi-command-map-options > summary {
    width: 44px;
    flex-basis: 44px;
  }

  .cfi-command-design .cfi-command-map-options {
    position: static;
  }

  .cfi-command-design .cfi-command-map-options[open] > .cfi-command-options-panel {
    top: calc(100% + 6px);
    right: 11px;
    left: auto;
    width: min(310px, calc(100% - 22px));
    max-width: none;
    max-height: min(440px, calc(100dvh - 150px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .cfi-command-design .cfi-command-map-zoom {
    right: 10px;
    bottom: 82px;
    width: 44px;
  }

  .cfi-command-design .cfi-command-map-zoom > button {
    width: 42px;
    height: 44px;
  }

  .cfi-command-design .cfi-command-movement,
  .cfi-command-design .cfi-command-section-heading > button {
    min-height: 44px;
  }

  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode .cfi-command-map-head {
    z-index: 35;
  }

  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach .cfi-command-coach-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px 12px;
  }

  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach .cfi-command-coach-heading > small {
    margin: 0;
  }

  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach .cfi-command-coach-identity {
    grid-column: 1 / -1;
  }

  .cfi-command-design .cfi-command-grid.atlas-shell.map-focus-mode > .cfi-command-coach .cfi-command-coach-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: end;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 11px;
    gap: 7px;
    border: 1px solid #78a49a;
    border-radius: 9px;
    background: #13494a;
    color: #e4f7ed;
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
  }
}

@media (max-width: 640px) {
  .cfi-command-design .sidebar {
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, visibility 0s linear 180ms;
  }

  .cfi-command-design .sidebar.open {
    visibility: visible;
    pointer-events: auto;
    transition: transform 180ms ease, visibility 0s;
  }

  .cfi-command-design .sidebar:not(.open) .nav-label {
    visibility: hidden;
  }

  .cfi-command-design .sidebar .brand {
    padding-right: 36px;
  }

  .cfi-command-design .sidebar .nav-list {
    min-height: 0;
    overscroll-behavior: contain;
  }

  .cfi-command-design .sidebar .nav-item:focus-visible {
    outline-offset: -3px;
  }

  .cfi-command-design .cfi-command-nav-close {
    position: absolute;
    top: 19px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #396266;
    border-radius: 10px;
    background: #19464b;
    color: #e4f4ed;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
  }

  .cfi-command-design:has(.sidebar.open) .cfi-command-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: block;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #082c386b;
    cursor: pointer;
  }

  body.cfi-command-design:has(.sidebar.open) {
    overflow: hidden;
  }

  .cfi-command-design .mobile-menu {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .cfi-command-design .cfi-command-notify {
    display: none;
  }

  .cfi-command-design .demo-top {
    font-size: 8px;
  }

  .cfi-command-design .cfi-command-tools {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) repeat(3, 44px);
    align-items: center;
    width: 100%;
    gap: 5px;
  }

  .cfi-command-design .cfi-command-tools > .cfi-command-control {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
    gap: 3px;
  }

  .cfi-command-design .cfi-command-tools > .cfi-command-control.is-primary > span {
    display: none;
  }

  .cfi-command-design .cfi-command-map-options[open] > .cfi-command-options-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: min(420px, calc(100dvh - 135px));
  }

  .cfi-command-design .cfi-command-attention > button {
    min-height: 44px;
  }

  .cfi-command-design .cfi-command-arrival > div {
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 3px;
  }

  .cfi-command-design .cfi-command-arrival > div > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cfi-command-design .cfi-command-coach .cfi-command-movement:focus-visible {
    outline-offset: -3px;
  }
}

@media (max-width: 340px) {
  .cfi-command-design .cfi-command-tools {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cfi-command-design .cfi-command-tools > :nth-child(-n + 2) {
    grid-column: span 3;
  }

  .cfi-command-design .cfi-command-tools > :nth-child(n + 3) {
    grid-column: span 2;
  }

  .cfi-command-design .cfi-command-tools .cfi-command-map-options > summary {
    width: 100%;
  }
}

@media (max-height: 690px) and (min-width: 641px) {
  .cfi-command-design .sidebar { padding-top: 7px; padding-bottom: 8px; gap: 8px; }
  .cfi-command-design .sidebar .brand { height: 44px; flex-basis: 44px; }
  .cfi-command-design .sidebar .nav-list { gap: 3px; }
  .cfi-command-design .sidebar .nav-item { height: 39px; flex-basis: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  .cfi-command-design .sidebar,
  .cfi-command-design .sidebar .nav-item,
  .cfi-command-design .cfi-command-kpi,
  .cfi-command-design .cfi-command-progress > span {
    transition: none;
  }
}

/* Trip & status selector: companion control to the existing vehicle focus. */
.cfi-command-design .cfi-command-tools select.cfi-atlas-trip-select {
  flex: 0 1 247px;
  width: clamp(185px, 19vw, 247px);
  min-width: 167px;
  max-width: 247px;
  text-overflow: ellipsis;
  border-color: #b8d5c9;
  background-color: #f8fffb;
  color: #154e48;
  font-weight: 750;
}
.cfi-command-design .cfi-command-tools select.cfi-atlas-trip-select:focus-visible {
  outline: 2px solid #16785e;
  outline-offset: 2px;
}
.cfi-command-design .cfi-atlas-empty {
  position: absolute;
  z-index: 9;
  inset: 42% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  width: min(335px, calc(100% - 28px));
  padding: 21px 23px;
  border: 1px solid #cadbd4;
  border-radius: 14px;
  box-shadow: 0 15px 32px #173c4226;
  background: #fffefbf5;
  color: #264a4d;
  text-align: center;
  pointer-events: none;
}
.cfi-command-design .cfi-atlas-empty[hidden] { display: none; }
.cfi-command-design .cfi-atlas-empty strong { font-size: 13px; }
.cfi-command-design .cfi-atlas-empty span { font-size: 11px; line-height: 1.6; color: #647d7b; }
@media (max-width: 760px) {
  .cfi-command-design .cfi-command-tools select.cfi-atlas-trip-select {
    flex: 1 1 180px;
    width: auto;
    min-width: 150px;
    max-width: 100%;
  }
}
@media (max-width: 430px) {
  .cfi-command-design .cfi-command-tools select.cfi-atlas-trip-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

/* Shared movement rows: one identity line and one route line at every width. */
body.cfi-command-design .cfi-command-movement {
 grid-template-columns:24px minmax(0,1fr) 16px!important;
 grid-template-rows:auto auto;column-gap:10px!important;row-gap:3px!important;
 min-height:64px!important;padding:12px 0;align-items:center;
}
body.cfi-command-design .cfi-command-movement>strong {
 grid-column:2;grid-row:1;min-width:0;white-space:normal;overflow-wrap:anywhere;
 font-size:13px;line-height:1.35;
}
body.cfi-command-design .cfi-command-movement>.cfi-command-movement-route {
 grid-column:2;grid-row:2;min-width:0;white-space:normal;overflow-wrap:anywhere;
 font-size:12px;line-height:1.4;text-overflow:clip;
}
body.cfi-command-design .cfi-command-movement>.cfi-command-movement-icon {grid-column:1;grid-row:1 / 3;}
body.cfi-command-design .cfi-command-movement>svg {grid-column:3;grid-row:1 / 3;}

/* Photographs fill their cards; transparent coach identities retain their full silhouette. */
body.cfi-command-design .cfi-command-photo:not(.is-cutout)>img,
body.cfi-command-design .fleet-visual>.cfi-photo-card,
.fgr-photo>img{object-fit:cover!important}
