:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0c0c0c;
  --line: #2c2c2c;
  --text: #f3f3f3;
  --muted: #bdbdbd;
  --track: #3a3a3a;
  --fill: #e8e8e8;
  --danger: #ffd0d0;
  --ok: #d7f5d8;
  --section-indent: 0.85rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

button, .file-btn {
  background: #141414;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

button:hover, .file-btn:hover { border-color: #cfcfcf; }

a.primary, button.primary {
  display: inline-block;
  background: var(--text);
  color: #111;
  border: 1px solid var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 650;
}

.file-btn input { display: none; }

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex: none;
  border-right: 1px solid var(--line);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #000;
}

.brand {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}

.nav-label {
  margin: 1.1rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.nav a[aria-current="page"] { background: #1c1c1c; }

.nav-empty { margin: 0.2rem 0.55rem; color: var(--muted); }

.main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem 3rem;
  max-width: 1080px;
}

h1 { font-size: 1.8rem; margin: 0.2rem 0 0.4rem; }

.lede, .note { color: var(--muted); margin-top: 0; }

.main:not(.landing) > .lede { padding-left: var(--section-indent); }

.landing { max-width: 40rem; }

.landing h2 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }

.menu-btn { display: none; margin-bottom: 0.8rem; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20;
}

.summary {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #101820;
  border: 1px solid #3d7ea3;
  border-radius: 16px;
  padding: 1rem 1rem 0.8rem;
  margin: 1rem 0 1.2rem var(--section-indent);
}

.summary-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
  margin-bottom: 0.35rem;
}

.summary-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.summary-col + .summary-col {
  border-left: 1px solid #2c5168;
  padding-left: 1.5rem;
}

.summary-col-title {
  margin: 0;
  color: #9ec3d6;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.summary-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.35rem;
  margin: 0.55rem 0 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid #2c5168;
}

.summary-mix-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #d6e6ee;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.summary-mix-miles {
  color: var(--muted);
}

.summary-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-label, .stat-label { color: var(--muted); font-size: 0.82rem; }

.hero-number {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-value, .stat-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}

.pos { color: var(--ok); }
.neg { color: var(--danger); }

.statement { margin: 0.5rem 0 0.4rem; }

.statement-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.2fr) minmax(6rem, 1fr) minmax(5rem, 0.8fr);
  gap: 0.45rem;
  align-items: baseline;
  padding: 0.12rem 0;
}

.statement-head { color: var(--muted); font-size: 0.78rem; }

.statement-row .num,
.statement-row .stat-value { text-align: right; }

.statement-note { color: var(--muted); font-size: 0.82rem; margin: 0.35rem 0 0.6rem; }

.bars { margin-top: 0.3rem; }

.bar-row {
  display: grid;
  grid-template-columns: 13.5rem 1fr 7.2rem 5.4rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.8rem;
  margin: 0;
  padding: 0.85rem 0 0.15rem;
}

.bar-row.bar-head {
  padding-top: 0.15rem;
  padding-bottom: 0.2rem;
}

.bar-group {
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px solid #2c5168;
}

.bars > .bar-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bar-group-head {
  cursor: pointer;
}

.bar-group-head .bar-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #9ec3d6;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.bar-group-head .bar-label::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}

.bar-group.is-open .bar-group-head .bar-label::before {
  transform: rotate(45deg);
  margin-bottom: 0.08rem;
}

.bar-group-head .bar-money,
.bar-group-head .bar-mile { color: var(--text); font-weight: 650; }

.bar-group-head .bar-fill { background: #5a8eaa; }

.bar-label, .bar-head { color: var(--muted); }

.bar-details .bar-label {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bar-nest { margin: 0; }

.bar-nest-head { cursor: pointer; }

.bar-nest-head .bar-label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.bar-nest-head .bar-label::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  margin-top: 0.28rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}

.bar-nest.is-open .bar-nest-head .bar-label::before {
  transform: rotate(45deg);
  margin-top: 0.18rem;
}

.bar-nest-details {
  padding-left: 0.85rem;
}

.bar-track { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }

.bar-fill { display: block; height: 100%; background: var(--fill); border-radius: 99px; }

.bar-row.is-fixed .bar-fill { background: #3ecf7a; }

.bar-money, .bar-mile { text-align: right; font-variant-numeric: tabular-nums; }

.situations, .section-block {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0 1rem;
}

.situations { padding-left: var(--section-indent); }

.section-block { position: relative; }

.section-block.is-open .section-title {
  white-space: normal;
}

.situations h2, .section-title {
  font-size: 1.12rem;
  font-weight: 680;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
}

.section-body { padding-left: var(--section-indent); }

.section-summary {
  padding-left: var(--section-indent);
  margin-top: 0.45rem;
}

.section-summary .preset-row { margin-top: 0.15rem; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  flex: 1;
}

.section-fold {
  display: flex;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  white-space: normal;
  text-align: left;
  min-width: 0;
  flex: 0 1 auto;
}

.section-fold:hover { border-color: transparent; }

.section-fold::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 0.5rem;
}

.section-block.is-collapsed .section-fold::before {
  transform: rotate(-45deg);
}

.section-title {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.section-header-cost {
  margin-left: auto;
  padding-left: 0.75rem;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}

.merged-head {
  width: 100%;
  margin: 1rem 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.merged-head:first-child { margin-top: 0.2rem; }

.section-help {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  padding: 0;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  color: #5eb0e8;
  border-color: #5eb0e8;
  background: transparent;
}

.section-block.is-collapsed .section-help,
.section-help[hidden] {
  display: none;
}

.section-help[aria-expanded="true"] {
  color: #8ecbf3;
  border-color: #8ecbf3;
  background: #163044;
}

.section-help-panel {
  margin: 0.55rem 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101010;
}

.section-help-panel p {
  color: var(--muted);
  margin: 0 0 0.55rem;
}

.section-help-panel p:last-child { margin-bottom: 0; }

.section-reset { margin: 0 0 0 auto; flex: none; }

.row-actions, .preset-row, .situation-row, .example-fleets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.7rem 0;
}

.fleet-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.35rem 0 0;
  padding-bottom: 1rem;
}

.example-fleets { margin: 0; padding-bottom: 0; }

.fleet-bar .status { margin: 0; }

.fleet-bar #reset-all {
  margin-left: auto;
  flex: none;
}

.example-fleets .fleet-pick {
  -webkit-appearance: none;
  appearance: none;
  background: #141414;
  color: var(--text);
  border-color: #4a4a4a;
}

.example-fleets .fleet-pick.is-on {
  background: #1d3a4f;
  border-color: #3d7ea3;
}

.example-fleets .custom-btn[aria-expanded="true"] { border-color: #cfcfcf; }

.situation-row[hidden] { display: none !important; }

input[type="text"], input[type="search"], select {
  background: #0a0a0a;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

input[type="search"], #scenario-name { min-width: 14rem; }

.control { margin: 0.85rem 0 1rem; }

.control-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 0.55rem;
  align-items: start;
}

.control-top label {
  white-space: normal;
  overflow: visible;
  line-height: 1.3;
  padding-top: 0.35rem;
}

.value {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  justify-self: end;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.value input {
  appearance: none;
  box-sizing: content-box;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-align: left;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

.value-plain {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #5c5c5c;
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  background: #0a0a0a;
}

.value-pill .prefix { color: var(--muted); }

.value .unit:not(.prefix) { margin-left: 0.2em; }

.value .unit-glue { margin-left: 0; }

.unit { color: var(--muted); }

.slider-hit {
  position: relative;
  height: 8px;
  margin: 0.45rem 0 0;
  z-index: 1;
}

.slider-hit input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  --slider-fill: 0%;
  background-color: transparent;
  background-image: linear-gradient(90deg, #d0d0d0 var(--slider-fill), #3a3a3a var(--slider-fill));
  background-size: 100% 8px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  touch-action: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 44px;
  background: transparent;
  border: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 11px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 44px;
  background: transparent;
  border: 0;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem 1rem;
  margin: 0.4rem 0 0.8rem;
  padding: 0.75rem 0.9rem;
  background: #101820;
  border: 1px solid #2c5168;
  border-radius: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.stat-label { display: block; }

.stats .stat-label { color: #9ec3d6; }

.stats .stat-range {
  grid-column: 1 / -1;
}

.stats .stat-range .stat-value {
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

.stats-block .stats {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.stats-block .stat-note {
  margin: 0 0 0.8rem;
  padding: 0.4rem 0.9rem 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  background: #101820;
  border: 1px solid #2c5168;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.stats-block .stat-note:empty,
.stats-block .stat-note[hidden] { display: none; }

.stats-block:has(.stat-note[hidden]) .stats,
.stats-block:has(.stat-note:empty) .stats {
  margin-bottom: 0.8rem;
  border-radius: 12px;
}

.metro-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.6rem 0;
}

.metro-tools input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.metro-counts {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.85rem;
  padding-left: 0.35rem;
  white-space: nowrap;
}

#out-selected,
#out-selected-pop {
  flex: none;
}

.quick-cities { margin-top: 0; margin-bottom: 0; padding-bottom: 1rem; }

.quick-cities .metro-tools { margin: 0.25rem 0 0.4rem; }

.quick-scale { margin-top: 0.35rem; }

.quick-scale .control { margin: 0.4rem 0 0.15rem; }

.metro-list {
  height: 192px;
  min-height: 192px;
  max-height: 192px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.3rem;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 4.4rem 3.6rem 3.6rem;
  gap: 0.4rem 0.5rem;
  align-items: start;
  padding: 0.32rem 0.4rem;
  border-radius: 8px;
}

.check-name {
  min-width: 0;
  line-height: 1.3;
}

.check-fleets {
  white-space: nowrap;
  padding-top: 0.05rem;
}

.check-row:hover { background: #141414; }

.check-row[hidden],
.check-row.is-hidden { display: none !important; }

.city-actions { white-space: nowrap; }

.city-actions button { margin: 0.1rem 0.2rem 0.1rem 0; }

.check-pop {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  padding-top: 0.05rem;
}

.legend { color: var(--muted); font-size: 0.82rem; margin: 0.2rem 0 0.4rem; }

button.fleet-tag {
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 0 0.15rem;
  color: #ffcc66;
  font-weight: 800;
  line-height: inherit;
  min-height: 1.5em;
  cursor: pointer;
}

button.fleet-tag:hover { border-color: transparent; background: #2a2210; }

.check-row .fleet-tag {
  font-size: 1.05em;
  min-width: 2.4rem;
  text-align: left;
}

.fleet-tip {
  position: fixed;
  z-index: 40;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.6rem 0.75rem;
  background: #161616;
  border: 1px solid #5a5a5a;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 10px 28px #000a;
}

.fleet-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.vehicle-error { color: #f3c56b; min-height: 1.2rem; margin: 0; }

.vehicle-error[hidden] { display: none !important; }

.preset-row button.is-on {
  background: #1d3a4f;
  border-color: #3d7ea3;
}

#roadside-mode button {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
  flex-wrap: nowrap;
  font-size: 0.92rem;
}

#roadside-mode .preset-cost {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#roadside-mode button.is-on .preset-cost {
  color: inherit;
}

.check-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.6rem 0;
  color: var(--text);
}

.city-list { margin-top: 0.4rem; }

.city-card {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0.15rem 0.75rem;
}

.city-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.city-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  margin-top: 0.4rem;
  padding-left: var(--section-indent);
}

.city-facts { padding-left: var(--section-indent); }

.city-airport {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 1rem;
  flex: none;
}

.city-name { font-weight: 650; }

.city-edit > .city-remove { margin-left: auto; align-self: end; }

.city-lock {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.city-lock[hidden] { display: none !important; }

.city-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.city-facts b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

.city-edit label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: left;
}

.city-edit input[type="text"] {
  box-sizing: content-box;
  width: 7ch;
  min-width: 0;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: #0a0a0a;
  font-variant-numeric: tabular-nums;
}

.city-edit input[data-field="avs"] { width: 7ch; }

.city-edit input[data-field="serviceArea"] { width: 6ch; }

.city-edit input[data-field="col"] { width: 4ch; }

.city-edit input[data-field="airportFee"] { width: 5ch; }

.city-edit input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 2.05rem;
  height: 2.05rem;
  margin: 0;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: #0a0a0a;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.city-edit input[type="checkbox"]::before {
  content: "";
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid #f3f3f3;
  border-bottom: 2px solid #f3f3f3;
  transform: rotate(-45deg) translateY(-0.08rem);
  opacity: 0;
}

.city-edit input[type="checkbox"]:checked {
  background: #1d3a4f;
  border-color: #3d7ea3;
}

.city-edit input[type="checkbox"]:checked::before { opacity: 1; }

.city-edit input.locked {
  color: #f3c56b;
  border-color: #c4922e;
  background: #2a220f;
}

.table-wrap { overflow-x: auto; margin-top: 0.8rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 0.4rem;
}

td { padding: 0.35rem 0.4rem; border-top: 1px solid var(--line); vertical-align: middle; }

td input[type="text"] {
  width: 7rem;
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
}

td input.name { width: 100%; min-width: 8rem; }

.lock-flag { color: var(--muted); font-size: 0.75rem; margin-left: 0.3rem; }

.vehicle {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem 0.5rem;
  margin: 0.35rem 0;
}

.vehicle-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  align-items: end;
}

.vehicle-line .control { margin: 0; }

.vehicle-line input[type="text"] { width: 7.2rem; padding: 0.28rem 0.55rem; }

.vehicle-line input[data-field="existing"],
.vehicle-line input[data-field="minCount"],
.vehicle-line input[data-field="maxCount"] { width: 8.2rem; }

.vehicle-line input[data-field="share"] { width: 5.2rem; }

.vehicle-line input.name { width: 14rem; }

.vehicle-line .buyer-tag {
  color: var(--muted);
  font-size: 0.75rem;
  padding-bottom: 0.45rem;
}

.vehicle-line > button { margin-left: auto; }

.preset-row button:disabled { opacity: 0.35; }

.status { color: var(--muted); }

.status:empty { display: none; }

.source { color: var(--muted); font-size: 0.8rem; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 800px) {
  .menu-btn {
    display: inline-flex;
    position: fixed;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 40;
    background: #111;
  }
  .sidebar { padding-top: 3.2rem; }
  .main { padding-top: 3.2rem; }
  .sidebar {
    position: fixed;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.16s ease;
  }
  .sidebar.open { transform: none; }
  .summary { position: static; }
  .summary-split, .split { grid-template-columns: 1fr; }
  .summary-col + .summary-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #2c5168;
    padding-top: 0.85rem;
  }
  .bar-head { display: none; }
  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 1.05rem;
    padding-bottom: 0.25rem;
    row-gap: 0.35rem;
  }
  .bar-label { grid-column: 1; grid-row: 1; }
  .bar-money { grid-column: 2; grid-row: 1; text-align: right; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-mile { display: none; }
  .check-row {
    grid-template-columns: auto minmax(0, 1fr) 3.8rem 3.2rem 3.2rem;
    gap: 0.35rem 0.4rem;
    padding: 0.42rem 0.25rem;
  }
  .check-name { font-size: 0.9rem; }
  .check-pop { font-size: 0.78rem; }
  .main { padding: 3.2rem 0.9rem 2.5rem; }
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
  }
  .app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
  }
}
