/* Tailgate. Colors: Teton Cleaners blue (main) + hanger lime green (highlight);
   the pump readout stays amber like a real pump. One phone-width column,
   sticky top bar, bottom tab bar with the green Fill-Up button in the middle. */
:root {
  --bg: #E8EEF1; --surface: #FFFFFF; --surface-2: #F3F6F8; --ink: #172027; --ink-2: #44515B; --muted: #6B7882;
  --line: #D3DBE1; --accent: #1D64A0; --accent-soft: #DFEAF4; --on-accent: #FFFFFF;
  --green: #9AD14B; --on-green: #13250A; --led-bg: #16110A; --led: #FFB52E; --drum-bg: #1C2227; --drum-ink: #F4F1E8;
  --ok: #2B7A4B; --ok-soft: #E2F1E8; --warn: #9A6410; --warn-soft: #FBF0DA; --bad: #B83A26; --bad-soft: #F9E3DF;
  --shadow: 0 1px 2px rgba(23,32,39,.06), 0 6px 20px rgba(23,32,39,.06);
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-digit: "Share Tech Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0E1317; --surface: #161D22; --surface-2: #1C252B; --ink: #E6EBEE; --ink-2: #B4BFC6; --muted: #8995A0;
  --line: #2A353D; --accent: #5B9BD0; --accent-soft: #172B3D; --on-accent: #08121D;
  --green: #9AD14B; --on-green: #13250A; --led-bg: #0B0905; --drum-bg: #0A0D10;
  --ok: #5DBE85; --ok-soft: #15291E; --warn: #E3A743; --warn-soft: #2D2312; --bad: #EE6E58; --bad-soft: #321A16;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark } }

* { box-sizing: border-box }
html, body { overscroll-behavior: none }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg) }
[hidden] { display: none !important }
img { max-width: 100% }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px }
.num { font-variant-numeric: tabular-nums }

.app { max-width: 480px; margin: 0 auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 12px 10px; display: flex; align-items: center; gap: 10px }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; display: flex; align-items: center; gap: 8px; min-width: 0 }
.brand.small { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.brand svg { width: 26px; height: 26px; color: var(--green); flex: none }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center }
.back, .iconbtn { border: 0; background: var(--surface); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; box-shadow: var(--shadow); flex: none }
.back svg, .iconbtn svg { width: 20px; height: 20px }
.lotpick { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 8px; font-size: 14px; max-width: 170px }

h1.page { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; margin: 6px 0 2px; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance }
.sub { color: var(--muted); margin: 0 0 16px; font-size: 14px }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px }

/* The Lot */
.lot { display: grid; gap: 14px }
.car { display: block; width: 100%; text-align: left; border: 0; padding: 0; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow) }
.ph { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.ph .noimg { color: var(--accent); opacity: .5 }
.ph .noimg svg { width: 64px; height: 64px }
.ph::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,12,15,.78)) }
.nm { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 1; color: #fff }
.nm b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere }
.nm span { font-size: 13px; opacity: .88 }
.car .row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap }
.car .row .mpg { color: var(--ink-2); font-size: 13px }
.chip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.chip.overdue { color: var(--bad); background: var(--bad-soft) }
.chip.soon { color: var(--warn); background: var(--warn-soft) }
.chip.ok { color: var(--ok); background: var(--ok-soft) }
.chip.nostart { color: var(--ink-2); background: var(--surface-2) }
.chip.name { color: var(--accent); background: var(--accent-soft) }
.chip.name::before { display: none }
.row .chip:last-child { margin-left: auto }
.add { border: 2px dashed var(--line); background: transparent; border-radius: 18px; padding: 18px; display: flex; gap: 12px; align-items: center; color: var(--ink-2); text-align: left; width: 100% }
.add b { display: block; color: var(--ink); font-weight: 600 }
.add .plus { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 24px; color: var(--accent); flex: none }

/* Odometer drums */
.drums { display: inline-flex; gap: 2px; background: var(--drum-bg); padding: 3px; border-radius: 6px }
.drums i { font-style: normal; font-family: var(--f-digit); color: var(--drum-ink); font-size: 15px; width: 13px; text-align: center; line-height: 20px; border-radius: 2px; background: linear-gradient(#2c343a, #151a1e 45%, #151a1e 55%, #2c343a) }
.drums.big i { font-size: 26px; width: 22px; line-height: 36px; border-radius: 3px }
.drums small { color: var(--drum-ink); font-size: 10px; opacity: .7; align-self: flex-end; padding: 0 3px 2px; letter-spacing: .05em }

/* A vehicle's page */
.hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(8,12,15,.82)) }
.hero .nm { left: 16px; right: 16px; bottom: 14px }
.hero .nm b { font-size: 52px; line-height: .9; text-wrap: balance }
.hero .nm span { font-size: 14px }
.over { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; background: rgba(8,12,15,.55); color: #fff; border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin-top: 14px }
.stats > div { background: var(--surface); padding: 12px; min-width: 0 }
.stats b { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 700; line-height: 1.05 }
.stats span { font-size: 12px; color: var(--muted) }
.stats button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 14px; text-align: left }
.odo-card { background: var(--surface); border-radius: 16px; padding: 14px; margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow) }
.odo-card .lbl { font-size: 12px; color: var(--muted) }
.notes { background: var(--surface); border-radius: 16px; padding: 14px; margin-top: 14px; border: 1px solid var(--line) }
.notes h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.notes p { margin: 0; white-space: pre-line; font-family: var(--f-digit); font-size: 14px; overflow-wrap: anywhere }
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; margin: 20px 0 12px; gap: 3px }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2) }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow) }

/* Lists */
.list { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow) }
.item { display: flex; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); align-items: flex-start; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0 }
.list > .item:first-child { border-top: 0 }
button.item:active { background: var(--surface-2) }
.item .grow { flex: 1; min-width: 0 }
.item .t { font-weight: 600; overflow-wrap: anywhere }
.item .m { font-size: 13px; color: var(--muted); overflow-wrap: anywhere }
.item .c { font-size: 13px; color: var(--ink-2); margin-top: 3px; font-style: italic; overflow-wrap: anywhere }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2) }
.item .date { width: 54px; flex: none; text-align: center; font-family: var(--f-display); line-height: 1 }
.item .date b { display: block; font-size: 24px; font-weight: 700 }
.item .date span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.bar { height: 5px; background: var(--surface-2); border-radius: 99px; margin-top: 7px; overflow: hidden }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok) }
.bar.soon i { background: var(--warn) } .bar.overdue i { background: var(--bad) }
.yr { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin: 18px 0 6px; color: var(--ink-2) }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap }

.btn { border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: 16px; background: var(--accent); color: var(--on-accent); width: 100%; display: block; text-align: center; text-decoration: none }
.btn.green { background: var(--green); color: var(--on-green) }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow) }
.btn.danger { background: var(--bad-soft); color: var(--bad) }
.btn.small { width: auto; display: inline-block; padding: 9px 14px; font-size: 14px; border-radius: 11px }
.btn:disabled { opacity: .5 }
.btns { display: grid; gap: 8px; margin-top: 14px }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 8px 0 }
.empty { background: var(--surface); border-radius: 16px; padding: 22px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line) }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px }
.callout { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink) }
.error { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0 }

/* Chart */
.chartbox { background: var(--surface); border-radius: 16px; padding: 14px 10px 8px; box-shadow: var(--shadow); position: relative }
.chartbox h3 { margin: 0 4px 2px; font-size: 15px }
.chartbox .cap { margin: 0 4px 6px; font-size: 13px; color: var(--muted) }
.chartbox svg { width: 100%; height: auto; display: block; touch-action: pan-y }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -100%); z-index: 2 }
.tip b { font-size: 14px }

/* Tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)) }
.tabs .in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600 }
.tabs a svg { width: 23px; height: 23px }
.tabs a[aria-current="page"] { color: var(--accent) }
.tabs .fab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); font-size: 11px; font-weight: 700; padding: 0 0 9px }
.tabs .fab span { width: 64px; height: 64px; border-radius: 22px; background: var(--green); color: var(--on-green); display: grid; place-items: center; margin-top: -26px; border: 5px solid var(--surface); box-shadow: 0 -1px 0 var(--line), 0 6px 14px rgba(23,32,39,.12) }
.tabs .fab svg { width: 28px; height: 28px }

/* Sheets */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: env(safe-area-inset-top, 0px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) }
.sheet .wrapin { max-width: 480px; margin: 0 auto }
.steps { display: flex; gap: 6px; margin: 4px 0 14px }
.steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--line) }
.steps span.on { background: var(--green) }
.stepname { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.carpick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none }
.carpick::-webkit-scrollbar { display: none }
.carpick button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px 5px 5px; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px }
.carpick img, .carpick .dot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--accent-soft) }
.carpick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }
.finder { position: relative; border: 0; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 22px; background: #0B0F12; color: #E8EDF0; display: grid; place-items: center; overflow: hidden; cursor: pointer }
.finder input { position: absolute; width: 1px; height: 1px; opacity: 0 }
.finder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.finder .corners { position: absolute; inset: 14%; border-radius: 10px;
  background: linear-gradient(var(--green),var(--green)) 0 0/26px 3px no-repeat, linear-gradient(var(--green),var(--green)) 0 0/3px 26px no-repeat,
  linear-gradient(var(--green),var(--green)) 100% 0/26px 3px no-repeat, linear-gradient(var(--green),var(--green)) 100% 0/3px 26px no-repeat,
  linear-gradient(var(--green),var(--green)) 0 100%/26px 3px no-repeat, linear-gradient(var(--green),var(--green)) 0 100%/3px 26px no-repeat,
  linear-gradient(var(--green),var(--green)) 100% 100%/26px 3px no-repeat, linear-gradient(var(--green),var(--green)) 100% 100%/3px 26px no-repeat }
.finder .hint { position: relative; text-align: center; display: grid; gap: 8px; justify-items: center; font-weight: 600; padding: 0 20px }
.finder .hint svg { width: 44px; height: 44px; color: var(--green) }
.finder .hint small { font-weight: 400; opacity: .7; font-size: 13px }
.stations .item { cursor: pointer; align-items: center }
.stations .item[aria-pressed="true"] { background: var(--accent-soft) }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none }
[aria-pressed="true"] > .radio { border: 7px solid var(--accent) }
.locating { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; margin-bottom: 10px }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; flex: none }
@keyframes pulse { 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none } }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block }
.shots a { display: block }

/* Forms */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.field { display: grid; gap: 4px; min-width: 0; align-content: start }
.field.full { grid-column: 1 / -1 }
.field label, .field .lbl { font-size: 12px; font-weight: 600; color: var(--muted) }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 12px; font-size: 16px; min-width: 0 }
.field input.digits { font-family: var(--f-digit); font-size: 18px }
.field textarea { min-height: 84px; resize: vertical }
.tick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); font-size: 14px; cursor: pointer }
.tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none }
.tick b { display: block }
.tick span span { color: var(--muted); font-size: 13px }
.ticks { display: grid; gap: 8px }
.result { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap }
.result b { font-family: var(--f-display); font-size: 56px; font-weight: 800; line-height: .9 }
.result span { color: var(--muted) }
.checks { display: grid; gap: 8px; margin-bottom: 14px }
.check { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: 14px }
.check i { font-style: normal; font-weight: 800; width: 20px; flex: none; text-align: center }
.check.ok { background: var(--ok-soft) } .check.ok i { color: var(--ok) }
.check.warn { background: var(--warn-soft) } .check.warn i { color: var(--warn) }
.check.bad { background: var(--bad-soft) } .check.bad i { color: var(--bad) }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px }
.presets button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; font-size: 14px; font-weight: 500 }
.presets button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }
.every { background: var(--surface); border-radius: 16px; padding: 14px; display: grid; gap: 12px; box-shadow: var(--shadow) }
.every .ln { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.every input[type=number] { width: 96px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-family: var(--f-digit); font-size: 18px }
.every select { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 16px }
.every label.tog { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 64px }
.every input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent) }
.every .or { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700 }
.sentence { margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 15px }
.confirm { background: var(--bad-soft); border-radius: 14px; padding: 14px; margin-top: 12px }
.confirm p { margin: 0 0 10px; color: var(--bad); font-weight: 600 }
.confirm .row2 { display: flex; gap: 8px }

/* Keys */
.member { display: flex; gap: 12px; align-items: center }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--on-accent); background: var(--accent); flex: none }
.av.co { background: var(--ok) } .av.driver { background: var(--muted) }
.keycard { background: var(--drum-bg); color: var(--drum-ink); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center }
.keycard .qr { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: #fff }
.keycard .qr svg { width: 100%; height: 100%; display: block }
.keycard .code { font-family: var(--f-digit); font-size: 24px; letter-spacing: .06em; color: var(--led); overflow-wrap: anywhere; user-select: all }
.keycard small { display: block; opacity: .75; font-size: 13px }
@media (max-width: 360px) { .keycard { grid-template-columns: 1fr } }
.roles { display: grid; gap: 8px }

/* Tow-In */
.tow { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden }
.tow + .tow { margin-top: 10px }
.tow .hd { display: flex; align-items: center; gap: 12px; padding: 12px 14px }
.tow .hd .grow { flex: 1; min-width: 0 }
.tow input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none }
.tow .more { border: 0; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none }
.tow .body { border-top: 1px solid var(--line); padding: 8px 14px 12px; display: grid; gap: 2px }
.tow .opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px }
.tow .opt.off { color: var(--muted) }
.tow .opt .grow { flex: 1; min-width: 0 }
.tow .recs { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin: 4px 0 6px }
.tow .recs label { display: flex; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; align-items: flex-start }
.tow .recs label:first-child { border-top: 0 }
.tow .recs input { width: 18px; height: 18px; margin-top: 1px }
.towbar { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); margin-top: 16px; z-index: 3 }

/* Welcome */
.welcome { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; gap: 18px; padding-block: 32px }
.welcome .mark { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 54px; text-transform: uppercase; line-height: 1 }
.welcome .mark svg { width: 54px; height: 54px; color: var(--green) }
.welcome .lead { font-size: 17px; color: var(--ink-2); margin: 0 }
.panel { background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px }
.panel h2 { margin: 0; font-size: 17px }
.panel p { margin: 0; color: var(--ink-2); font-size: 14px }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow) }
.foot { color: var(--muted); font-size: 12px; text-align: center; margin: 28px 0 8px }
.install { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start }
.install button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px }
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; transform: translate(-50%, 0); z-index: 35; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); pointer-events: none }
/* Odometer card: reading and VIN on the left, what it's worth on the right */
.odo-card { align-items: flex-start }
.odo-left { display: grid; gap: 6px; min-width: 0 }
.vin { font-size: 12px; color: var(--muted) }
.vin b { font-family: var(--f-digit); font-weight: 400; font-size: 14px; color: var(--ink); letter-spacing: .04em; user-select: all; overflow-wrap: anywhere }
.worth { margin-left: auto; text-align: right; min-width: 0 }
.worth .big { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.05; white-space: nowrap }
.worth .lbl { font-size: 11px }
.worth .pend { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); margin-top: 4px }
.odo-card:has(.worth) { flex-wrap: nowrap; gap: 10px }
.odo-card:has(.worth) .odo-left { flex: 1 1 auto }
.worth { flex: 0 1 auto }
@media (max-width: 440px) {
  .odo-card:has(.worth) .drums.big i { font-size: 20px; width: 16px; line-height: 30px }
  .odo-card:has(.worth) .drums small { display: none }
  .worth .big { font-size: 20px }
}
/* The Glovebox: label / value pairs */
.glove { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 }
.glove div { min-width: 0 }
.glove dt { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase }
.glove dd { margin: 1px 0 0; font-family: var(--f-digit); font-size: 15px; overflow-wrap: anywhere }
.notes h3.hd { display: flex; align-items: center; justify-content: space-between }
.notes h3.hd .link { padding: 0; font-size: 14px; letter-spacing: 0; text-transform: none }
/* iPhones give date boxes a fixed minimum width that ignores the grid, so
   they spill into the box beside them. Keep them inside their column. */
.field input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 46px; text-align: left; font-family: var(--f-body); font-size: 16px; line-height: 1.3 }
.field input[type=date]::-webkit-date-and-time-value { text-align: left }
.every input[type=date], .panel input[type=date] { min-width: 0; max-width: 100% }
