:root {
  color-scheme: light;
  --navy: #081f33;
  --red: #e01a24;
  --blue: #0d579e;
  --teal: #007a85;
  --gold: #e08c1a;
  --ink: #293d52;
  --muted: #667785;
  --line: #d1e0ed;
  --ice: #edf7ff;
  --paper: rgba(255, 255, 255, 0.96);
  --page: #edf6fd;
  --green: #187f45;
  --warning: #a35b00;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at -18% -12%, rgba(224, 26, 36, 0.10), transparent 34%),
    radial-gradient(circle at 105% 82%, rgba(13, 87, 158, 0.12), transparent 38%),
    linear-gradient(135deg, #e6f2fc 0%, #ffffff 48%, #faebeb 100%);
  color: var(--ink);
}

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

a {
  color: var(--navy);
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: static;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 4px;
  color: var(--navy);
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.topbar .button {
  width: auto;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(8, 31, 51, 0.08);
}

.nav-user {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  padding: 7px;
  box-shadow: 0 8px 18px rgba(8, 31, 51, 0.12);
}

.brand strong,
.topbar-title {
  display: block;
  line-height: 1.05;
}

.brand span,
.topbar-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.page {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px);
}

.flow-page {
  width: min(480px, 100%);
}

.flow-page,
.spd-stop-page {
  padding-top: calc(env(safe-area-inset-top) + 18px);
}

.flow-page .back-row {
  margin-bottom: 10px;
}

.flow-page .mileage-screen {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 20px;
}

.flow-page .mileage-screen h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.flow-page .mileage-screen .field {
  margin: 10px 0;
}

.flow-page .mileage-screen .field input {
  min-height: 48px;
}

.flow-page .mileage-screen .button {
  min-height: 44px;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at -22% -16%, rgba(224, 26, 36, 0.10), transparent 34%),
    radial-gradient(circle at 108% 88%, rgba(13, 87, 158, 0.12), transparent 38%),
    linear-gradient(135deg, #e6f2fc 0%, #ffffff 48%, #faebeb 100%);
}

.login-panel {
  width: min(430px, 100%);
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 16px 26px rgba(8, 31, 51, 0.14);
}

.login-logo {
  width: min(148px, 42vw);
  height: 76px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  padding: 10px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 16px rgba(8, 31, 51, 0.12);
}

.login-panel h1,
.section h2,
.section h3 {
  color: var(--navy);
  letter-spacing: 0;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 9vw, 2.15rem);
  line-height: 1.05;
  text-align: center;
  font-weight: 950;
}

.quiet {
  color: var(--muted);
  font-weight: 650;
}

.centered {
  text-align: center;
}

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

.field label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  box-shadow: 0 5px 10px rgba(8, 31, 51, 0.05);
  font-weight: 750;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.35;
}

.field small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}

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

.toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.button {
  min-height: 46px;
  border: 1px solid var(--red);
  border-radius: 14px;
  padding: 10px 16px;
  background: var(--red);
  color: white;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 14px rgba(8, 31, 51, 0.08);
}

.button.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
}

.button.success {
  border-color: #14834a;
  background: #14834a;
}

.compact-heading {
  align-items: center;
}

.button.compact {
  width: auto;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.button.dark {
  border-color: var(--navy);
  background: var(--navy);
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.summary-card {
  display: grid;
  gap: 3px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.summary-card span,
.summary-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.summary-card strong {
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.1;
}

.compliance-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.compliance-status-tile {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  text-align: left;
}

.compliance-status-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.compliance-status-tile strong {
  font-size: 1.45rem;
  line-height: 1;
}

.compliance-status-tile.active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.compliance-status-tile.active span {
  color: rgba(255, 255, 255, 0.82);
}

.section,
.tile,
.record {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.section {
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 20px rgba(8, 31, 51, 0.08);
}

.sectionless {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.panel-stack {
  display: grid;
  gap: 14px;
}

.section h2,
.section h3 {
  margin: 0 0 12px;
}

.tile {
  min-height: 92px;
  padding: 18px;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 26, 36, 0.06));
  box-shadow: 0 9px 18px rgba(8, 31, 51, 0.09);
}

.tile strong {
  display: block;
  font-size: 1.05rem;
}

.tile[disabled] {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.record {
  display: grid;
  gap: 6px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.record-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.location-record .record-header strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.location-record .quiet {
  font-size: 0.86rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.stop-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--navy);
}

.stop-details summary::marker {
  color: var(--red);
}

.inspection-step-card > div:first-child {
  display: grid;
  gap: 4px;
}

.status {
  padding: 10px 12px;
  border-radius: 14px;
  background: #eef7f2;
  color: var(--green);
  font-weight: 850;
}

.status.error {
  background: #fff0f0;
  color: var(--red);
}

.status.warning {
  background: #fff6e8;
  color: var(--warning);
}

.camera-preview {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.file-input {
  width: 100%;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #edf1f5;
}

.install-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #edf1f5;
  color: var(--navy);
  font-weight: 750;
}

.brand-card {
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 12px 20px rgba(8, 31, 51, 0.10);
  text-align: center;
}

.signout-bottom {
  margin-top: 18px;
}

.back-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.back-pill {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(8, 31, 51, 0.08);
}

.back-pill.wide {
  padding-inline: 16px;
  white-space: nowrap;
}

.manager-back-row {
  display: flex;
  margin: 0 0 4px;
}

.flow-logo {
  width: 118px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 14px rgba(8, 31, 51, 0.12);
}

.manager-switcher {
  padding: 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(237, 247, 255, 0.94), rgba(224, 26, 36, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.90);
  border-radius: 30px;
  box-shadow: 0 12px 22px rgba(8, 31, 51, 0.10);
}

.manager-title-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.manager-title-row img {
  width: 74px;
  height: 48px;
  object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 10px rgba(8, 31, 51, 0.10);
}

.manager-title-row span {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.manager-title-row h1 {
  margin: 1px 0 0;
  color: var(--navy);
  font-size: 1.9rem;
  line-height: 1.02;
  font-weight: 950;
}

.manager-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.manager-mode-list {
  display: grid;
  gap: 10px;
}

.manager-mode-card {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(13, 87, 158, 0.07));
  box-shadow: 0 5px 10px rgba(8, 31, 51, 0.06);
  color: var(--navy);
  text-align: left;
}

.manager-mode-card.red {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 26, 36, 0.07));
}

.manager-mode-card.teal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(0, 122, 133, 0.07));
}

.manager-mode-card.active {
  border-color: rgba(255, 255, 255, 0.30);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: white;
  box-shadow: 0 8px 16px rgba(8, 31, 51, 0.12);
}

.manager-mode-card.active.red {
  background: linear-gradient(135deg, var(--red), var(--navy));
}

.manager-mode-card.active.teal {
  background: linear-gradient(135deg, var(--teal), var(--navy));
}

.manager-mode-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.manager-mode-copy strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
}

.manager-mode-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.26;
}

.manager-mode-card.active .manager-mode-copy small {
  color: rgba(255, 255, 255, 0.86);
}

.mode-chevron {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 950;
  text-align: center;
}

.manager-mode-card.active .mode-chevron {
  color: white;
}

.route-tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  padding: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.route-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.route-tab.active {
  background: var(--blue);
  color: white;
}

.route-panel-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.route-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.route-choice.active {
  background: var(--teal);
  color: white;
}

.intro-text {
  margin: 0 0 2px;
  padding-left: 2px;
}

.manager-dashboard {
  display: grid;
  gap: 14px;
}

.brand-card-logo {
  width: 148px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  padding: 12px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 8px 16px rgba(8, 31, 51, 0.12);
}

.route-action-card {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(209, 224, 237, 0.95);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.92));
  box-shadow: 0 9px 18px rgba(8, 31, 51, 0.08);
  color: var(--ink);
  text-align: left;
}

.route-action-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  color: white;
  font-weight: 950;
  font-size: 1.2rem;
}

.route-action-icon.blue {
  background: var(--blue);
}

.route-action-icon.teal {
  background: var(--teal);
}

.route-action-icon.red {
  background: var(--red);
}

.route-action-icon.gold {
  background: var(--gold);
}

.route-action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-action-copy strong {
  color: var(--navy);
  font-size: 1rem;
}

.route-action-copy span,
.route-action-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.route-action-chevron {
  color: var(--red);
  font-size: 1.45rem;
  font-weight: 950;
}

.brand-card h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(2rem, 9vw, 2.15rem);
  line-height: 1.05;
  font-weight: 950;
}

.brand-card .red-title {
  color: var(--red);
  font-size: 1.18rem;
  font-weight: 850;
}

.option-list {
  display: grid;
  gap: 14px;
}

.inspection-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 31, 51, 0.48);
  backdrop-filter: blur(14px);
}

.inspection-popup {
  width: min(100%, 380px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(224, 26, 36, 0.20);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 240, 0.94));
  box-shadow: 0 22px 52px rgba(8, 31, 51, 0.25);
  text-align: center;
}

.inspection-popup h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 950;
}

.inspection-popup p {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.3;
}

.inspection-popup small {
  color: var(--muted);
  font-weight: 850;
}

.inspection-popup-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.gps-permission-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.gps-permission-panel h2 {
  margin: 4px 0 0;
}

.gps-permission-panel .route-action-icon {
  width: 64px;
  height: 64px;
}

.option-button {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(224, 26, 36, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 26, 36, 0.07));
  box-shadow: 0 9px 18px rgba(8, 31, 51, 0.09);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.option-button.blue {
  border-color: rgba(13, 87, 158, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(13, 87, 158, 0.07));
}

.option-button.teal {
  border-color: rgba(0, 122, 133, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(0, 122, 133, 0.07));
}

.option-button.gold {
  border-color: rgba(224, 140, 26, 0.20);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 140, 26, 0.08));
}

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

.option-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), var(--navy));
  color: white;
  font-size: 1.55rem;
  font-weight: 950;
}

.option-button.blue .option-icon {
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.option-button.teal .option-icon {
  background: linear-gradient(135deg, var(--teal), var(--navy));
}

.option-button.gold .option-icon {
  background: linear-gradient(135deg, var(--gold), var(--navy));
}

.option-title {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.16;
}

.sf-icon,
.sf-mini {
  display: inline-grid;
  place-items: center;
  font-weight: 950;
  line-height: 1;
}

.sf-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: white;
  font-size: 1.35rem;
}

.manager-mode-card.red .sf-icon {
  background: linear-gradient(135deg, var(--red), var(--navy));
}

.manager-mode-card.teal .sf-icon {
  background: linear-gradient(135deg, var(--teal), var(--navy));
}

.sf-mini {
  font-size: 1.05rem;
}

.sf-icon.route::before,
.sf-mini.route::before {
  content: "↝";
}

.sf-icon.shield::before,
.sf-mini.shield::before {
  content: "✓";
}

.sf-icon.people::before,
.sf-mini.people::before {
  content: "◉";
}

.sf-icon.doc::before,
.sf-mini.doc::before {
  content: "▤";
}

.sf-icon.thermo::before,
.sf-mini.thermo::before {
  content: "°";
}

.sf-icon.checklist::before,
.sf-mini.checklist::before {
  content: "✓";
}

.sf-icon.box::before,
.sf-mini.box::before {
  content: "▱";
}

.sf-icon.wrench::before,
.sf-mini.wrench::before {
  content: "⌁";
}

.sf-icon.scan::before,
.sf-mini.scan::before {
  content: "▣";
}

.sf-icon.map::before,
.sf-mini.map::before {
  content: "◇";
}

.sf-icon.send::before,
.sf-mini.send::before {
  content: "➤";
}

.sf-icon.sensor::before,
.sf-mini.sensor::before {
  content: "⌁";
}

.sf-icon.fuel::before,
.sf-mini.fuel::before {
  content: "F";
}

.chevron {
  color: var(--red);
  font-size: 1.45rem;
  font-weight: 950;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 850;
}

.checkline input {
  width: 22px;
  height: 22px;
}

.fuel-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 232, 0.92)),
    var(--paper);
  border-color: rgba(215, 155, 40, 0.28);
}

.fuel-card-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.fuel-card-header h3 {
  margin: 0 0 3px;
}

.fuel-card-header p {
  margin: 0;
  line-height: 1.25;
}

.fuel-toggle {
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 155, 40, 0.30);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-weight: 900;
}

.fuel-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.fuel-receipt-field {
  padding: 12px;
  border: 1px dashed rgba(13, 87, 158, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.fuel-photo-button {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), #0d579e);
  color: white;
}

.fuel-submit {
  width: 100%;
  border-color: rgba(13, 87, 158, 0.24);
  background: linear-gradient(135deg, white, rgba(237, 247, 255, 0.92));
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.inspection-photo-list,
.route-list {
  display: grid;
  gap: 12px;
}

.review-photo-card,
.route-detail {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(209, 224, 237, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.review-photo-card {
  grid-template-columns: 108px minmax(0, 1fr);
}

.review-photo-card img {
  width: 108px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.review-photo-card strong,
.assignment-row strong,
.route-detail strong {
  color: var(--navy);
}

.review-photo-card small,
.assignment-row small,
.route-detail small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.compact-grid {
  gap: 8px;
}

.compact-grid .field {
  margin: 8px 0;
}

.route-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.route-section-heading h2,
.route-section-heading p,
.route-edit-form h3,
.route-assignment-block h3 {
  margin: 0;
}

.inline-route-form {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(209, 224, 237, 0.82);
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.74);
}

.route-assignment-block {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(209, 224, 237, 0.82);
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(209, 224, 237, 0.82);
}

.route-edit-form {
  padding-top: 10px;
  border-top: 1px solid rgba(209, 224, 237, 0.82);
}

.route-stop-editor {
  display: grid;
  gap: 10px;
}

.route-stop-editor-heading,
.route-stop-toolbar,
.route-stop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-stop-editor-heading h3,
.route-stop-editor-heading p {
  margin: 0;
}

.route-stop-rows {
  display: grid;
  gap: 10px;
}

.route-stop-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(209, 224, 237, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.route-stop-number {
  color: var(--navy);
}

.route-stop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-stop-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.7fr) minmax(150px, 1.2fr) minmax(220px, 2fr) minmax(130px, 1fr) minmax(82px, 0.65fr) minmax(90px, 0.7fr);
  gap: 8px;
  align-items: end;
}

.route-stop-grid .field {
  margin: 0;
}

.route-stop-status {
  min-height: 18px;
  text-align: right;
}

.route-assignment-block h3 {
  font-size: 0.98rem;
}

.route-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.route-detail summary::-webkit-details-marker {
  display: none;
}

.inspection-review-record {
  margin: 10px 0;
  padding: 12px;
}

.inspection-review-record summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.inspection-review-record summary::-webkit-details-marker {
  display: none;
}

.inspection-review-record small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.inspection-review-list {
  display: grid;
  gap: 10px;
}

.inspection-review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspection-single-review {
  display: grid;
  gap: 12px;
}

.inspection-single-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.inspection-review-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(13, 87, 158, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.94)),
    linear-gradient(135deg, rgba(224, 26, 36, 0.08), rgba(13, 87, 158, 0.08));
  box-shadow: 0 20px 42px rgba(8, 31, 51, 0.16);
}

.inspection-review-topline {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(209, 224, 237, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.inspection-review-topline h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.inspection-review-topline p {
  margin: 2px 0 0;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
}

.photo-nav-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(13, 87, 158, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, white, rgba(237, 247, 255, 0.94));
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(8, 31, 51, 0.08);
}

.photo-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.inspection-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.inspection-review-badge.approved {
  background: rgba(20, 131, 74, 0.12);
  color: #0f6d3e;
}

.inspection-review-badge.rejected {
  background: rgba(225, 22, 38, 0.1);
  color: var(--red);
}

.inspection-review-badge.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #9a5d00;
}

.inspection-review-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: min(62vh, 540px);
  padding: 10px;
  border: 4px solid white;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(8, 31, 51, 0.98), rgba(18, 55, 85, 0.96)),
    #07111d;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 24px rgba(8, 31, 51, 0.14);
}

.inspection-review-image-frame img {
  width: 100%;
  height: 100%;
  max-height: min(58vh, 510px);
  object-fit: contain;
  border-radius: 14px;
}

.inspection-review-actions,
.inspection-review-footer,
.non-compliant-note-panel .actions {
  display: flex;
  gap: 10px;
}

.inspection-review-actions .button,
.inspection-review-footer .button {
  flex: 1;
}

.non-compliant-note-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(225, 22, 38, 0.16);
  border-radius: 16px;
  background: rgba(225, 22, 38, 0.05);
}

.account-create-section {
  border-color: rgba(13, 87, 158, 0.18);
}

.account-create-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(209, 224, 237, 0.75);
}

.inspection-intro h2 {
  text-align: center;
  font-size: 2rem;
  line-height: 1.08;
}

.instruction-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.instruction-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.instruction-line span {
  color: var(--red);
  font-weight: 950;
}

.instruction-line p,
.step-instructions {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.slide-confirm {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(224, 26, 36, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(13, 87, 158, 0.18);
}

.inspection-nav {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.inspection-nav strong {
  color: var(--navy);
  text-align: center;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(209, 224, 237, 0.92);
}

.spd-stop-page {
  font-size: 0.94rem;
}

.spd-stop-page .inspection-nav {
  grid-template-columns: 78px minmax(0, 1fr) 108px;
  gap: 6px;
  margin-bottom: 6px;
}

.spd-stop-page .inspection-nav .back-pill {
  min-height: 40px;
  padding-inline: 10px;
  font-size: 0.76rem;
}

.spd-stop-page .inspection-nav strong {
  font-size: 0.86rem;
  line-height: 1.1;
}

.spd-stop-page .progress-track {
  height: 5px;
  margin-bottom: 10px;
}

.spd-stop-page .section {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
}

.spd-stop-page .section h2 {
  margin-bottom: 6px;
  font-size: 1.28rem;
  line-height: 1.12;
}

.spd-stop-page .quiet {
  margin: 3px 0;
  line-height: 1.25;
}

.spd-stop-page .record {
  gap: 4px;
  padding: 9px;
  margin-top: 8px;
  border-radius: 14px;
}

.spd-stop-page .record-header {
  align-items: center;
}

.spd-stop-page .record-header strong {
  font-size: 0.92rem;
}

.spd-stop-page .sensor-reading-card {
  min-height: 58px;
  padding: 10px;
}

.spd-stop-page .sensor-reading-card strong {
  font-size: 1.6rem;
}

.spd-stop-page .fuel-card {
  padding: 12px;
}

.spd-stop-page .fuel-card-header {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.spd-stop-page .fuel-card-header p {
  display: none;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.strong-note {
  font-weight: 850;
  color: var(--red);
}

.inspection-requirement {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.inspection-requirement.camera-required {
  color: var(--red);
  background: rgba(224, 26, 36, 0.10);
}

.inspection-requirement.document-allowed {
  color: var(--navy);
  background: rgba(13, 87, 158, 0.10);
}

.photo-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.photo-summary strong {
  color: var(--navy);
}

.photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.photo-strip figure {
  flex: 0 0 auto;
  width: 96px;
  margin: 0;
}

.photo-strip img {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.photo-strip figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-align: center;
}

.camera-capture-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 31, 51, 0.74);
}

.camera-capture-panel {
  width: min(100%, 460px);
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 60px rgba(8, 31, 51, 0.34);
}

.camera-capture-panel video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #06131f;
}

.camera-capture-actions {
  display: grid;
  gap: 10px;
}

.submitted-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px;
  text-align: center;
}

.submitted-mark {
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: 3.6rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(13, 87, 158, 0.18);
}

.request-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.request-heading h2 {
  margin: 0 0 4px;
}

.pretrip-card {
  padding: 22px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 16px rgba(8, 31, 51, 0.06);
}

.pretrip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.42;
}

.mileage-screen {
  text-align: center;
}

.big-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(224, 26, 36, 0.08);
  font-size: 3rem;
  font-weight: 950;
}

.flow-page .mileage-screen .big-symbol {
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  font-size: 2rem;
}

.big-number-input {
  min-height: 66px !important;
  text-align: center;
  font-size: 1.9rem !important;
  font-weight: 950 !important;
  border-width: 2px !important;
  border-color: rgba(224, 26, 36, 0.28) !important;
}

.compact-button {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.sensor-reading-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid rgba(209, 224, 237, 0.92);
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.92);
}

.sensor-reading-card strong {
  color: var(--red);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 950;
}

.sensor-reading-card span {
  color: var(--muted);
  font-weight: 850;
}

.sensor-reading-card.fresh {
  background: rgba(238, 247, 242, 0.96);
  border-color: rgba(24, 127, 69, 0.24);
}

.sensor-reading-card.fresh strong {
  color: var(--green);
}

.sensor-page .section {
  border-radius: 20px;
}

.sensor-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 232, 0.92));
  border-color: rgba(224, 140, 26, 0.24);
}

.sensor-hero h2,
.sensor-hero p {
  margin: 0;
}

.sensor-hero #sensorStatus {
  grid-column: 1 / -1;
}

#sensorAssignments,
#goveeDevices {
  display: grid;
  gap: 10px;
}

.sensor-assignment-card,
.sensor-device-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(209, 224, 237, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 16px rgba(8, 31, 51, 0.06);
}

.sensor-assignment-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
}

.sensor-assignment-card .route-action-icon,
.sensor-card-head .route-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.sensor-assignment-copy,
.sensor-card-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sensor-assignment-copy strong,
.sensor-card-head strong {
  color: var(--navy);
  line-height: 1.15;
}

.sensor-assignment-copy span,
.sensor-assignment-copy small,
.sensor-card-head small,
.sensor-meta-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.25;
}

.sensor-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sensor-temp-pill {
  min-width: 58px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(237, 247, 255, 0.96);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
}

.sensor-temp-pill.fresh {
  background: rgba(238, 247, 242, 0.96);
  color: var(--green);
}

.sensor-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sensor-meta-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(244, 248, 251, 0.92);
}

.sensor-assign-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sensor-device-card .button {
  justify-self: end;
}

.sensor-manual-card {
  background: rgba(244, 248, 251, 0.92);
}

.end-step-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.end-step-pills span {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
}

.end-step-pills .active {
  background: white;
  color: var(--navy);
  box-shadow: 0 6px 12px rgba(8, 31, 51, 0.08);
}

.checklist {
  display: grid;
  gap: 8px;
  padding: 16px;
  margin: 14px 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.checklist p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.3;
}

.structure-list {
  display: grid;
  gap: 10px;
}

.structure-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  cursor: pointer;
  color: var(--navy);
}

.structure-card summary span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
}

.account-tree,
.account-grid,
.account-children {
  display: grid;
  gap: 10px;
}

.account-node {
  margin-left: calc(var(--account-depth, 0) * 10px);
}

.account-card {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(209, 224, 237, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.account-card > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-card .actions {
  justify-content: flex-start;
}

.account-card strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.account-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.account-card .account-label {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

.status-pill.good {
  color: #096b3f !important;
  background: rgba(9, 107, 63, 0.12);
}

.status-pill.bad {
  color: var(--red) !important;
  background: rgba(224, 26, 36, 0.12);
}

.status-pill.warning {
  color: #916105 !important;
  background: rgba(145, 97, 5, 0.14);
}

.status-pill.info {
  color: var(--navy) !important;
  background: rgba(8, 31, 51, 0.10);
}

.depth-0 {
  --account-depth: 0;
}

.depth-1 {
  --account-depth: 1;
}

.depth-2 {
  --account-depth: 2;
}

.depth-3,
.depth-4 {
  --account-depth: 3;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-list > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(209, 224, 237, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.mini-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.assignment-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

@media (max-width: 640px) {
  .topbar {
    align-items: center;
  }

  .page {
    padding: 18px 12px calc(env(safe-area-inset-bottom) + 18px);
  }

  .flow-page,
  .spd-stop-page {
    padding-top: calc(env(safe-area-inset-top) + 16px);
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .topbar .button {
    width: auto;
  }

  .button.compact {
    width: auto;
  }

  .route-stop-editor-heading,
  .route-stop-toolbar,
  .route-stop-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .route-stop-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .route-stop-tools .button,
  .route-stop-footer .button {
    width: 100%;
  }

  .route-stop-grid {
    grid-template-columns: 1fr;
  }

  .route-stop-status {
    text-align: left;
  }

  .inspection-review-summary,
  .inspection-single-header,
  .inspection-review-actions,
  .inspection-review-footer,
  .non-compliant-note-panel .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inspection-review-summary .button,
  .inspection-single-header .button,
  .inspection-review-actions .button,
  .inspection-review-footer .button,
  .non-compliant-note-panel .button {
    width: 100%;
  }

  .inspection-review-topline {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .inspection-review-badge {
    grid-column: 2;
    justify-self: start;
  }

  .inspection-review-image-frame {
    min-height: 260px;
    max-height: 52vh;
  }

  .inspection-review-image-frame img {
    max-height: calc(52vh - 16px);
  }

  .review-photo-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .review-photo-card img {
    width: 86px;
  }

  .route-detail summary {
    align-items: flex-start;
  }

  .record-header,
  .toolbar {
    display: grid;
  }

  .account-node {
    margin-left: 0;
  }

  .brand-card {
    padding: 14px;
    margin-bottom: 12px;
  }

  .brand-card-logo {
    width: 118px;
    height: 72px;
    margin-bottom: 10px;
  }

  .manager-switcher {
    padding: 18px;
  }

  .manager-title-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .manager-title-row h1 {
    font-size: 1.85rem;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap th,
  .table-wrap td,
  .table-wrap tr {
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(209, 224, 237, 0.72);
    word-break: break-word;
  }

  .table-wrap td:last-child {
    border-bottom: 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
  }
}
