:root {
  --blue-900: #064f98;
  --blue-700: #0877bc;
  --blue-500: #08a8db;
  --blue-100: #e8f7fd;
  --ink: #080b10;
  --panel: #ffffff;
  --page: #f3f6f8;
  --line: #dce3e8;
  --silver: #8d8f93;
  --silver-2: #c7c9cc;
  --text: #18212b;
  --muted: #697681;
  --danger: #c8392b;
  --warning: #b06a00;
  --success: #247a47;
  --shadow: 0 18px 42px rgba(8, 11, 16, .14);
}

body.dark-mode {
  --blue-100: #08263d;
  --panel: #111821;
  --page: #070b10;
  --line: #253343;
  --text: #edf4f8;
  --muted: #9fafba;
  --silver-2: #56616d;
  --shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.launch {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(320px, .72fr);
  align-items: stretch;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .82) 100%),
    url("assets/fleet-sidebar.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.launch-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 7vw, 88px);
}

.launch-brand-content {
  max-width: 700px;
}

.launch-logo {
  max-width: min(540px, 78vw);
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .55));
}

.launch-copy {
  max-width: 600px;
  margin: 26px 0 0;
  color: #e8eef2;
  font-size: 18px;
  line-height: 1.5;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .66);
}

.login-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 28px clamp(20px, 5vw, 70px) 28px 28px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  color: #18212b;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .42);
}

.launch .login-panel input {
  background: #111821;
  color: #f6fbff;
  border-color: #263443;
}

.launch .login-panel input::placeholder {
  color: #8f9ca8;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.7vw, 44px);
  line-height: 1.05;
}

.login-panel p {
  color: #697681;
  line-height: 1.5;
}

.login-error {
  margin: 16px 0;
  padding: 11px 12px;
  border: 1px solid rgba(200, 57, 43, .28);
  border-radius: 6px;
  background: rgba(200, 57, 43, .09);
  color: #9f261d;
  font-size: 14px;
  font-weight: 700;
}

.login-message {
  margin: 16px 0;
  padding: 11px 12px;
  border: 1px solid rgba(8, 119, 188, .24);
  border-radius: 6px;
  background: rgba(8, 168, 219, .09);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.field span,
.form-grid label span {
  color: #374653;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--panel);
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  border-radius: 6px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-900));
  color: #fff;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--blue-900);
}

.dark-mode .secondary-btn,
.dark-mode .ghost-btn {
  color: #d8f5ff;
}

.ghost-btn {
  background: transparent;
  color: var(--blue-900);
}

.link-btn {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
}

.sidebar {
  background: #020509;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}

.side-logo {
  width: 188px;
  display: block;
  margin: 0 auto 24px;
}

.nav-btn {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #d7dde2;
  text-align: left;
  font-weight: 800;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(8, 168, 219, .18);
  color: #fff;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  color: var(--blue-500);
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.fleet-photo {
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(2, 5, 9, .06), rgba(2, 5, 9, .84)),
    url("assets/fleet-sidebar.png"),
    linear-gradient(135deg, rgba(8, 168, 219, .42), rgba(141, 143, 147, .18) 48%, rgba(2, 5, 9, .95));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(8, 168, 219, .12);
}

.fleet-photo div {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
}

.fleet-photo strong {
  font-size: 15px;
}

.fleet-photo span {
  color: #c9d3da;
  font-size: 12px;
  line-height: 1.35;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
  font-weight: 800;
}

.live-chip {
  border: 1px solid rgba(36, 122, 71, .24);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--success);
  background: rgba(36, 122, 71, .09);
  font-size: 13px;
  font-weight: 900;
}

.theme-switch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 900;
}

.theme-label {
  font-size: 12px;
}

.switch-track {
  width: 46px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: var(--silver-2);
  transition: background .2s ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(8, 11, 16, .24);
  transition: transform .2s ease;
}

.theme-switch[aria-checked="true"] {
  color: #d8f5ff;
}

.theme-switch[aria-checked="true"] .switch-track {
  background: var(--blue-700);
}

.theme-switch[aria-checked="true"] .switch-thumb {
  transform: translateX(22px);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.filter-control {
  display: grid;
  gap: 6px;
}

.filter-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-filter {
  grid-column: span 2;
}

.content {
  padding: 24px 28px 36px;
}

.sync-banner {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(8, 119, 188, .24);
  border-radius: 6px;
  background: rgba(8, 168, 219, .09);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
}

.dark-mode .sync-banner {
  color: #d8f5ff;
}

.sync-banner.danger {
  border-color: rgba(200, 57, 43, .3);
  background: rgba(200, 57, 43, .1);
  color: var(--danger);
}

.metric-grid,
.dashboard-grid,
.record-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  margin-top: -6px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 30px;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.account-form {
  display: grid;
  gap: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.panel-body {
  padding: 16px 18px;
}

.alert-list,
.issue-list,
.driver-list,
.rental-list,
.asset-list {
  display: grid;
  gap: 10px;
}

.alert-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.alert-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), var(--blue-100) 45%);
}

.alert-summary strong {
  display: block;
  font-size: 24px;
}

.alert-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.alert-overflow-note {
  padding: 12px;
  border: 1px dashed var(--silver-2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.row-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.row-card.archived {
  background: color-mix(in srgb, var(--panel), var(--page) 38%);
  color: #56636e;
}

.dark-mode .row-card.archived {
  color: #a6b4bf;
}

.row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.row-title {
  font-weight: 900;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 900;
}

.badge.danger {
  background: #fdebe8;
  color: var(--danger);
}

.badge.warning {
  background: #fff4dd;
  color: var(--warning);
}

.badge.success {
  background: #e9f7ef;
  color: var(--success);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.action-tabs {
  align-items: center;
  justify-content: space-between;
}

.tabs-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-900);
}

.record-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.data-table {
  display: grid;
  gap: 8px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(120px, .9fr) minmax(130px, .9fr) minmax(170px, 1.1fr) minmax(105px, .65fr) minmax(180px, 1.2fr) minmax(92px, .55fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.homebase-row {
  grid-template-columns: minmax(160px, 1.1fr) minmax(80px, .45fr) minmax(130px, .8fr) minmax(210px, 1.3fr) minmax(150px, .9fr) minmax(180px, 1fr);
}

.partner-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(190px, 1.1fr) minmax(90px, .55fr) minmax(100px, .6fr) minmax(210px, 1.35fr) minmax(180px, 1fr);
}

.damage-row {
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr) minmax(150px, .9fr) minmax(160px, .95fr) minmax(105px, .65fr) minmax(220px, 1.25fr);
}

.data-head {
  min-height: 38px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: color-mix(in srgb, var(--panel), var(--blue-100) 52%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-row span {
  min-width: 0;
}

.data-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue-700);
  padding: 0;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.unit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: color-mix(in srgb, var(--panel), var(--blue-100) 55%);
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 900;
}

.unit-chip:hover,
.unit-chip:focus-visible {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.dark-mode .unit-chip {
  color: #d8f5ff;
}

.dark-mode .link-btn {
  color: #62d6ff;
}

.danger-btn {
  min-height: 34px;
  border: 1px solid #f0bbb5;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff5f3;
  color: var(--danger);
  font-weight: 900;
}

.solid-danger {
  min-height: 40px;
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.dark-mode .danger-btn {
  border-color: #78352f;
  background: #2a1413;
  color: #ff9c90;
}

.icon-danger-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--danger);
}

.icon-danger-btn:hover,
.icon-danger-btn:focus-visible {
  border-color: #f0bbb5;
  background: #fff5f3;
}

.dark-mode .icon-danger-btn {
  color: #ff9c90;
}

.dark-mode .icon-danger-btn:hover,
.dark-mode .icon-danger-btn:focus-visible {
  border-color: #78352f;
  background: #2a1413;
}

.icon-danger-btn svg {
  width: 19px;
  height: 19px;
}

.expiration-stack {
  display: grid;
  gap: 4px;
}

.expiration-stack small {
  margin: 0;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.issue-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}

.issue-timeline span,
.issue-resolve-summary {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), var(--page) 34%);
}

.issue-timeline strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.issue-resolve-summary {
  display: grid;
  gap: 6px;
}

.issue-resolve-summary span,
.issue-resolve-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.gis-panel {
  margin-bottom: 16px;
}

.standalone-gis .gis-map {
  min-height: 480px;
}

.gis-body {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(240px, .65fr);
  gap: 16px;
  padding: 16px 18px;
}

.gis-filter-bar {
  grid-template-columns: repeat(2, minmax(180px, 240px));
}

.gis-map-wrap {
  position: relative;
  min-height: 540px;
}

.gis-photo-band {
  min-height: 112px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 9, .74), rgba(2, 5, 9, .18)),
    url("assets/fleet-sidebar.png");
  background-position: center 54%;
  background-size: cover;
}

.leaflet-map {
  position: relative;
  min-height: 428px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: color-mix(in srgb, var(--panel), var(--blue-100) 32%);
  overflow: hidden;
}

.leaflet-popup-content {
  color: #18212b;
  line-height: 1.45;
}

.map-expanded {
  position: fixed;
  inset: 14px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  margin: 0;
  box-shadow: var(--shadow);
}

.map-expanded .gis-body {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(320px, 1fr) 320px;
}

.map-expanded .gis-map-wrap {
  min-height: 0;
}

.map-expanded .leaflet-map {
  min-height: calc(100vh - 240px);
}

.map-expanded .gis-list {
  max-height: calc(100vh - 132px);
  overflow: auto;
}

.gis-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.gis-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gis-item span,
.gis-item small {
  color: var(--muted);
}

.map-empty {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .76);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.form-section {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), var(--page) 28%);
}

.form-section h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 15px;
}

.dark-mode .form-section h3 {
  color: #62d6ff;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.file-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 5, 9, .46);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 5, 9, .58);
}

.confirm-modal {
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.confirm-modal h2 {
  margin-bottom: 8px;
}

.confirm-modal p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.drawer {
  width: min(720px, 100vw);
  height: 100vh;
  overflow: auto;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 21px;
}

.drawer-body {
  padding: 20px 22px 28px;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--silver-2);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search {
  min-width: min(330px, 100%);
}

@media (max-width: 900px) {
  .launch,
  .app-shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .fleet-photo {
    display: none;
  }

  .side-logo {
    width: 116px;
    margin: 0;
  }

  .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .nav-btn {
    width: auto;
    white-space: nowrap;
    margin: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .alert-summary {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .search-filter {
    grid-column: 1 / -1;
  }

  .gis-body {
    grid-template-columns: 1fr;
  }

  .data-head {
    display: none;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .issue-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .data-row span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .launch-brand,
  .content,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-panel {
    margin: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .form-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .search-filter {
    grid-column: auto;
  }

  .issue-timeline {
    grid-template-columns: 1fr;
  }
}
