:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --text: #17201a;
  --muted: #5c6b61;
  --line: #dde4df;
  --brand: #1f6f43;
  --brand-ink: #ffffff;
  --ok: #1d7a3e;
  --ok-bg: #e3f4e8;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --warn: #9a5b00;
  --warn-bg: #fff3d6;
  --info: #1f5fa8;
  --info-bg: #e5effb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101512;
    --surface: #182019;
    --text: #e6ece8;
    --muted: #97a69c;
    --line: #2a352d;
    --brand: #3fa66b;
    --ok: #58c27f;
    --ok-bg: #173323;
    --bad: #ff7b6e;
    --bad-bg: #3a1714;
    --warn: #f0b44c;
    --warn-bg: #352712;
    --info: #79aef0;
    --info-bg: #142538;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: calc(16px * var(--text-scale, 1)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: .9375rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.no-scroll { overflow: hidden; }
a { color: var(--brand); }
h1 { font-size: 1.45rem; margin: .4rem 0 .8rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.error, .bad-text { color: var(--bad); }
.ok-text { color: var(--ok); font-weight: 600; }
.warn-text { color: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 8px max(16px, env(safe-area-inset-left));
  background: var(--brand); color: var(--brand-ink);
}
.brand { color: inherit; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; }
.nav a { color: inherit; text-decoration: none; padding: 6px 10px; border-radius: 8px; opacity: .85; white-space: nowrap; }
.nav a.on, .nav a:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.who select { background: rgba(255, 255, 255, .15); color: inherit; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; padding: 6px 8px; max-width: 150px; }
.who select option { color: #000; }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; }
  .who { margin-left: auto; }
}

main { max-width: 1100px; margin: 0 auto; padding: 16px; padding-bottom: 80px; }

/* components */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 520px; margin: 24px auto; }
.center { text-align: center; }
.left { text-align: left; }
.big-icon { font-size: 3rem; }
.cols { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1, .page-head h2, .page-head h3 { margin: 0; }
.back { display: inline-block; margin-bottom: 6px; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 5px 10px; min-height: 32px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.actions.wrap { flex-wrap: wrap; margin-bottom: 12px; }
.actions.center { justify-content: center; flex-wrap: wrap; }
.form .actions { justify-content: flex-end; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); color: var(--text); white-space: nowrap; text-transform: capitalize; }
.st-available { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.st-checked_out { background: var(--info-bg); color: var(--info); border-color: transparent; }
.st-out_of_service { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.st-retired { opacity: .7; }
.sf-ok { color: var(--ok); }
.sf-faulty { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.sf-unknown { color: var(--muted); }
.badge.ext { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.inh { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badges, .alerts { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.alert { font-size: .78rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.al-danger { background: var(--bad-bg); color: var(--bad); }
.al-warn { background: var(--warn-bg); color: var(--warn); }
.al-info { background: var(--info-bg); color: var(--info); }
.chip { padding: 6px 10px; border-radius: 999px; background: var(--info-bg); color: var(--info); text-decoration: none; font-size: .85rem; }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tile b { font-size: 1.7rem; line-height: 1.1; }
.tile span { color: var(--muted); font-size: .85rem; }
.tile.ok b { color: var(--ok); }
.tile.info b { color: var(--info); }
.tile.bad { background: var(--bad-bg); } .tile.bad b { color: var(--bad); }
.tile.warn { background: var(--warn-bg); } .tile.warn b { color: var(--warn); }

.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 10px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list a { text-decoration: none; }
.list.compact > li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.events li { display: flex; gap: 10px; align-items: flex-start; }
.ev-type { flex: none; min-width: 84px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding-top: 2px; }
.ev-checkout, .ev-checkin { color: var(--info); }
.ev-service { color: var(--warn); }
.ev-status { color: var(--bad); }

/* carts */
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 8px; margin-bottom: 14px; align-items: center; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters input[type=search] { grid-column: 1 / -1; } }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; min-height: 40px;
}
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand); }
input[type=range] { padding: 0; border: 0; accent-color: var(--brand); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; }
.pick { display: grid; gap: 6px; margin-top: 4px; }
.pick select, .pick input { font-weight: 400; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.seg-field { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-field legend { width: 100%; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 0; font-weight: 500; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--brand); background: var(--ok-bg); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
form.inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
form.inline label { margin: 0; flex: 1; min-width: 160px; }
form.inline > input { flex: 1; min-width: 140px; }
form.inline select { width: auto; }
form.inline .form-error { flex-basis: 100%; }

.cart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cart-card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.cart-card:hover { border-color: var(--brand); }
.thumb { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.big { width: 180px; }
.cc-body { min-width: 0; flex: 1; }
.cc-title { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 1.1rem; }
.empty { text-align: center; }

.cart-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.cart-head h1 { margin-top: 0; }
@media (max-width: 560px) { .cart-head { flex-direction: column; } .thumb.big { width: 100%; } }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.dl { display: grid; grid-template-columns: 1fr; margin: 0; }
.dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.notes { white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: 8px; }
.quick { display: grid; gap: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 4px; }
.seg button, .seg label { border: 0; background: var(--surface); color: var(--text); padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; margin: 0; border-left: 1px solid var(--line); }
.seg > :first-child { border-left: 0; }
.seg button.on { background: var(--brand); color: var(--brand-ink); }
.seg button.on.faulty { background: var(--bad); }
.seg.ck label { padding: 0; }
.seg.ck input { position: absolute; opacity: 0; pointer-events: none; }
.seg.ck span { display: block; padding: 8px 14px; }
.seg.ck label:has(input[value=pass]:checked), .seg.ck label:has(input[value=ok]:checked) { background: var(--ok); color: #fff; }
.seg.ck label:has(input[value=fail]:checked), .seg.ck label:has(input[value=faulty]:checked) { background: var(--bad); color: #fff; }
.seg.ck label:has(input[value=na]:checked), .seg.ck label:has(input[value=""]:checked) { background: var(--muted); color: #fff; }
.seg.ck label:has(input:focus-visible) { outline: 2px solid var(--brand); }

/* checklist */
.checklist { list-style: none; counter-reset: ck; padding: 0; margin: 0 0 12px; }
.checklist li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li.failed { background: var(--bad-bg); margin: 0 -16px; padding: 12px 16px; }
.checklist .ck-note { grid-column: 1 / -1; }
@media (max-width: 520px) { .checklist li { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 8px 0; }
.checks li { padding: 4px 0; }
.checks li > span { display: inline-block; width: 18px; font-weight: 700; }
.checks .r-pass > span { color: var(--ok); }
.checks .r-fail { color: var(--bad); }
details summary { cursor: pointer; }

/* photos */
.angle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.angle-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.angle-card.missing { border-style: dashed; }
.angle-img { aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.angle-img img { width: 100%; height: 100%; object-fit: cover; }
.angle-img.sm { width: 120px; flex: none; border-radius: 8px; }
.angle-body { padding: 10px; }
.guide-svg.static { width: 100%; height: 100%; }
.guide-svg.static .g-shape, .guide-svg.static .g-ground { stroke: var(--muted); }
.angle-setting { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.angle-setting .grow { flex: 1; display: grid; gap: 6px; }
.angle-setting label.check { margin: 0; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ptile { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ptile.ref { border: 2px solid var(--brand); }
.ptile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ptile figcaption { padding: 8px; }
.ptile .actions { margin-top: 6px; }

.compare { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #000; max-width: 900px; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare img.top { clip-path: inset(0 0 0 var(--pos)); z-index: 1; }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; box-shadow: 0 0 4px #000; pointer-events: none; z-index: 2; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.compare .lbl { position: absolute; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; pointer-events: none; z-index: 2; }
.compare .lbl.l { left: 8px; } .compare .lbl.r { right: 8px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; border-top: 0; }
tr.overdue { background: var(--warn-bg); }
table.settings input:not([type=checkbox]), table.settings select { min-width: 110px; }
table.settings td:first-child input { min-width: 240px; }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(92vw, 420px); }
.toast { background: #17201a; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: opacity .3s, transform .3s; }
.toast.bad { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- guided camera ---------- */
.cam {
  position: fixed; inset: 0; z-index: 50; background: #000; color: #fff;
  display: grid; grid-template-columns: 1fr minmax(240px, 300px);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.cam.portrait { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.cam.portrait .cam-main { order: 0; }
.cam.portrait .cam-side { order: 1; overflow-y: auto; }
.cam.flash .cam-stage { filter: brightness(2.2); }
.cam-main { display: grid; place-items: center; min-height: 0; min-width: 0; padding: 6px; }
.cam-stage {
  position: relative; background: #111; overflow: hidden; border-radius: 8px;
  aspect-ratio: 4 / 3; width: min(100%, calc((100dvh - 12px) * 4 / 3)); max-height: calc(100dvh - 12px);
  transition: filter .15s;
}
.cam.portrait .cam-stage { width: 100%; max-height: none; }
.cam-stage video, .cam-ghost, .cam-edges, .cam-stage .guide-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-stage video { object-fit: cover; }
.cam-ghost { object-fit: cover; pointer-events: none; mix-blend-mode: normal; }
.cam-edges { pointer-events: none; }
.guide-svg { pointer-events: none; }
.guide-svg .g-shape { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)); vector-effect: non-scaling-stroke; }
.guide-svg .g-roof { fill: rgba(255, 255, 255, .08); }
.guide-svg .g-ground { stroke: #ffd400; stroke-width: 2; stroke-dasharray: 10 8; vector-effect: non-scaling-stroke; }
.guide-svg .g-frame { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 3; vector-effect: non-scaling-stroke; }
.guide-svg .g-text { fill: #fff; stroke: none; font-size: 14px; }
.cam-horizon { position: absolute; left: 15%; right: 15%; top: 50%; height: 0; pointer-events: none; transition: transform .1s linear; }
.cam-horizon span { position: absolute; left: 0; right: 0; top: -1px; border-top: 2px solid rgba(255, 80, 80, .9); }
.cam-horizon.level span { border-color: #3ddc84; }
.cam-score-badge { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 1.1rem; background: rgba(0, 0, 0, .6); }
.cam-score-badge.ok { background: rgba(29, 122, 62, .9); }
.cam-score-badge.bad { background: rgba(180, 35, 24, .85); }
.cam-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; background: rgba(0, 0, 0, .78); font-size: 1rem; line-height: 1.5; }
.rotate-icon { font-size: 3rem; }
.cam-side { display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow-y: auto; background: #0d0f0e; }
.cam-head { display: flex; gap: 8px; align-items: flex-start; }
.cam-head .btn { color: #fff; border-color: #444; min-height: 36px; padding: 4px 10px; }
.cam-title { font-weight: 700; }
.cam-src { font-size: .78rem; color: #b8c2bc; }
.cam-instr { font-size: .85rem; color: #dfe6e1; margin: 0; }
.cam-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chk { background: #1c211e; border-radius: 8px; padding: 6px; text-align: center; border: 1px solid #2c332e; }
.chk b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #9aa69f; }
.chk span { font-weight: 700; font-size: .95rem; }
.chk.ok { border-color: #2f9e57; background: #12301d; }
.chk.bad { border-color: #c4392c; background: #3a1512; }
.cam-gps { color: #b8c2bc; }
.cam-hint { min-height: 1.2em; font-size: .85rem; color: #ffd400; }
.cam-overlay-ctl { display: grid; gap: 8px; }
.cam-overlay-ctl .seg { border-color: #333; }
.cam-overlay-ctl .seg button { background: #1c211e; color: #fff; border-color: #333; padding: 6px 10px; }
.cam-overlay-ctl .seg button.on { background: var(--brand); }
.cam .opacity { color: #cfd8d2; font-size: .8rem; margin: 0; }
.cam-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cam .file-btn { color: #fff; border-color: #444; }
.shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; flex: none; }
.shutter.ready { background: #3ddc84; border-color: #d6ffe6; }
.shutter:disabled { opacity: .3; }
.cam-review { position: absolute; inset: 0; background: #0b0d0c; display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 10px; padding: 10px; overflow-y: auto; }
.cam.portrait .cam-review { grid-template-columns: 1fr; align-content: start; }
.rev-images { display: grid; place-items: center; min-width: 0; }
.rev-images .compare { width: 100%; }
.rev-images img.single { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.rev-side { display: flex; flex-direction: column; gap: 10px; }
.rev-side h3 { margin: 0; }
.rev-side .muted { color: #b8c2bc; margin: 0; font-size: .85rem; }
.rev-side label { color: #e6ece8; margin: 0; }
.rev-side input { background: #1c211e; color: #fff; border-color: #333; }
.rev-actions { display: flex; gap: 8px; margin-top: auto; }
.rev-actions .btn { flex: 1; }
.rev-actions .btn.ghost { color: #fff; border-color: #444; }
.cam .error { color: #ff8b80; }
@media (max-width: 700px) and (orientation: landscape) {
  .cam { grid-template-columns: 1fr 220px; }
  .cam-instr { display: none; }
  .shutter { width: 60px; height: 60px; }
}

/* modal + suggestion banner */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 18px; width: min(440px, 100%); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.modal h3 { margin-top: 0; }
.modal .actions { justify-content: flex-end; flex-wrap: wrap; }
.suggest { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--info-bg); color: var(--text); border: 1px solid var(--info); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.suggest .actions { margin: 0; }
.coord { width: 110px; }
.loc-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.loc-row:first-child { border-top: 0; }
.loc-row b { flex: 1; min-width: 130px; }

.info-text { color: var(--info); }
.loc-table td:not(:first-child), .loc-table th:not(:first-child) { text-align: center; }
.loc-table tfoot th { border-top: 2px solid var(--line); color: var(--text); }
.loc-table .empty-row td { color: var(--muted); }
.nowrap { white-space: nowrap; }
.avail-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-now { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.rs-upcoming { background: var(--info-bg); color: var(--info); border-color: transparent; }
.rs-missed { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.rs-cancelled { opacity: .7; }

/* text size control */
.text-size { display: flex; gap: 2px; }
.text-size button { font: inherit; font-weight: 700; color: inherit; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; min-width: 2.6rem; min-height: 2.2rem; cursor: pointer; }
.text-size button:first-child { font-size: .85rem; }
.text-size button:last-child { font-size: 1.1rem; }

/* cart fleet sub-navigation, shown only inside the fleet section */
.subnav { display: none; gap: 2px; overflow-x: auto; padding: 6px max(16px, env(safe-area-inset-left)); background: var(--surface); border-bottom: 1px solid var(--line); }
body[data-section="fleet"] .subnav { display: flex; }
.subnav a { text-decoration: none; color: var(--text); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.subnav a.on { background: var(--ok-bg); color: var(--brand); font-weight: 600; }

/* reports: large, simple touch targets */
.btn.huge { min-height: 3.6rem; padding: .8rem 1.2rem; font-size: 1.15rem; border-radius: 14px; width: 100%; }
.rp-start { margin: 8px 0 20px; }
.rp-week { margin: 18px 0 8px; color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-list a { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.rp-thumb { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; font-size: 1.8rem; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-info { display: grid; gap: 2px; font-size: 1rem; }
.rp-info b { font-size: 1.1rem; }
.rp-empty { padding: 24px 0; font-size: 1.05rem; }
.rp-near { font-size: 1.05rem; }
.rp-sites { display: grid; gap: 10px; }
@media (min-width: 640px) { .rp-sites { grid-template-columns: 1fr 1fr; } }
.rp-date { margin-top: 18px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-date label { margin: 0; position: relative; overflow: hidden; }
.rp-date-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rp-title { font-size: 1.6rem; margin-bottom: .2rem; }
.rp-sub { margin: 0 0 14px; font-size: 1.05rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-add, .rp-pdf { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 640px) { .rp-add, .rp-pdf { grid-template-columns: 1fr 1fr; } .rp-pdf .btn:only-child { grid-column: 1 / -1; } }
.rp-add label.btn { margin: 0; font-weight: 600; }
.rp-busy { text-align: center; font-weight: 600; color: var(--info); font-size: 1.05rem; }
.rp-photos { display: grid; gap: 14px; margin: 16px 0; }
.rp-photo { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rp-photo img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.rp-photo figcaption { padding: 12px; }
.rp-photo label, .rp-notes { font-size: 1rem; margin: 0; }
.rp-photo textarea, .rp-notes textarea { font-size: 1.05rem; margin-top: 6px; }
.rp-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.rp-meta .saved { color: var(--ok); margin-left: auto; }
.rp-notes { display: block; margin: 16px 0; }
