/* Rural Route — app screens (CR-002 to CR-008). Builds on rr.css tokens. */

[hidden] { display: none !important; }
body { min-height: 100vh; }
.splash { min-height: 100vh; display: grid; place-content: center; gap: 12px; padding: 24px; text-align: center; }
.splash .hand { font-size: 3rem; }
.splash > div { width: min(360px, 80vw); }

.ico.big-ico { width: 32px; height: 32px; color: var(--red); }
.icon-btn { background: none; border: 0; color: var(--ink); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn .ico { width: 26px; height: 26px; }

/* ---------- Home ---------- */
.home .hero { display: flex; flex-direction: column; gap: 10px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.home .hero h1 { font-size: 3.4rem; line-height: .95; }
.home-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 108px; padding: 14px 12px;
  background: var(--paper-shade); border: 2px solid var(--ink); border-radius: 4px; text-decoration: none; color: var(--ink);
}
.home-tile .ico { width: 30px; height: 30px; color: var(--red); }
.home-tile b { font: 700 var(--step-0)/1.15 var(--font-head); }
.home-tile span { font-size: .8125rem; color: var(--ink-soft); line-height: 1.3; }
.home-tile:active { background: var(--khaki); }
@media (max-width: 400px) { .home-nav { grid-template-columns: 1fr; } .home-tile { min-height: 64px; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; } .home-tile .ico { grid-row: span 2; } }
.notice { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.notice .ico { width: 28px; height: 28px; color: var(--red); }
.reminder-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.reminder-art { border: 2px solid var(--ink); line-height: 0; }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.install-steps .step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.install-steps .step p { font-size: .8125rem; line-height: 1.35; }
.install-steps .n { position: absolute; top: -6px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--olive); color: var(--paper); display: grid; place-items: center; font: 700 .8125rem/1 var(--font-type); }
.step-art { width: 60px; height: 90px; }

/* ---------- Generic bits ---------- */
.kv { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9375rem; }
.kv .ico { width: 22px; height: 22px; color: var(--olive); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.vocab { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.vocab dt { font: 700 var(--step-0)/1.4 var(--font-head); }
.vocab dd { margin: 0; color: var(--ink-soft); }
.vocab.about { grid-template-columns: 1fr; gap: 2px; }
.vocab.about dd { margin-bottom: 10px; font-size: .9375rem; }
@media (max-width: 420px) { .vocab { grid-template-columns: 1fr; gap: 2px 0; } .vocab dd { margin-bottom: 8px; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field input[type="text"], .field input[type="search"], .field textarea, .field select {
  font: 400 var(--step-0)/1.4 var(--font-body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 4px; padding: 12px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; cursor: pointer;
  font: 700 .875rem/1.2 var(--font-type); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 3px;
}
.chip label .ico { width: 18px; height: 18px; }
.chip input:checked + label { background: var(--olive); color: var(--paper); }
.chip input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip.warn input:checked + label { background: var(--red); }
.chip.add label { border-style: dashed; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 700 .75rem/1.2 var(--font-type); padding: 3px 7px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.badge .ico { width: 14px; height: 14px; }
.badge.lock { border-color: var(--olive); color: var(--olive-deep); }
.badge.need { background: var(--gold); }
.badge.recv { background: var(--khaki); }
.badge.unv i { width: 16px; border-top: 3px dotted var(--red); }

/* ---------- Sheets, progress, banners ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(31, 42, 68, .55); display: flex; align-items: flex-end; }
.sheet .panel {
  width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--paper) var(--grain); border-top: 4px solid var(--olive);
  padding-top: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; flex-direction: column; gap: 14px;
}
.sheet .panel.tone-red, .sheet .panel.tone-danger { border-top-color: var(--red); }
.sheet .panel > * { max-width: 600px; width: 100%; margin-inline: auto; }
.sheet .sheet-body { display: flex; flex-direction: column; gap: 10px; }
.sheet .btns { display: grid; gap: 10px; }
.sheet .btn.huge-ish { min-height: 76px; font-size: var(--step-2); }
.sheet.busy { align-items: center; }
.sheet.busy .panel { border-top: 0; border: 3px solid var(--ink); width: min(420px, calc(100% - 32px)); margin: auto; }
.pbar { height: 14px; border: 2px solid var(--ink); background: var(--paper); }
.pbar i { display: block; height: 100%; width: 0; background: var(--olive); transition: width .2s; }

.update-banner {
  position: fixed; z-index: 55; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 16px;
  font: 700 var(--step-0)/1.2 var(--font-head); color: var(--ink); background: var(--gold);
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 var(--ink); cursor: pointer;
}
#rr-toast { display: flex; align-items: center; gap: 14px; }
#rr-toast.has-action { pointer-events: auto; }
#rr-toast .toast-btn { font: 700 var(--step-0)/1 var(--font-head); color: var(--ink); background: var(--gold); border: 0; border-radius: 4px; min-height: 44px; padding: 0 16px; cursor: pointer; }

.parked-cover {
  position: fixed; inset: 0; z-index: 50; background: rgba(251, 247, 236, .96);
  display: grid; place-items: center; padding: 24px; text-align: center;
}
.parked-cover > div { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; }
.parked-cover .ico { width: 56px; height: 56px; color: var(--red); }
.parked-cover b { font: 700 var(--step-2)/1.2 var(--font-head); }

/* ---------- Driving screens (tracking, guidance) ---------- */
body.driving { overflow: hidden; background: var(--ink); }
.drive { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.drive-map { position: relative; min-height: 0; }
.readout {
  background: var(--ink) var(--grain); color: var(--paper);
  padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 14px; align-items: center; border-bottom: 3px solid var(--gold);
}
.rec { display: inline-flex; align-items: center; gap: 8px; font: 700 .8125rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.rec i { width: 12px; height: 12px; border-radius: 50%; background: #E0493F; box-shadow: 0 0 0 3px rgba(224,73,63,.3); animation: blink 1.6s infinite; }
.rec.paused i { background: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.3); animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.rd { display: flex; flex-direction: column; min-width: 0; }
.rd .v { font: 700 1.75rem/1 var(--font-type); font-variant-numeric: tabular-nums; }
.rd .k { font: 700 .6875rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); }
.acc-dot { width: 44px; height: 44px; display: grid; place-items: center; }
.acc-dot i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--paper); background: #8a8a8a; }
.acc-dot.good i { background: #5FA05A; } .acc-dot.ok i { background: var(--gold); } .acc-dot.poor i { background: #E0493F; }
.controls {
  background: var(--paper) var(--grain); border-top: 3px solid var(--ink);
  padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.controls .btn { min-height: 76px; font-size: var(--step-1); flex-direction: column; gap: 4px; border-radius: 8px; }
.controls .btn svg { width: 30px; height: 30px; }
@media (min-width: 720px) { .controls { grid-template-columns: repeat(4, 1fr); } }
@media (max-height: 560px) { .controls .btn { min-height: 58px; flex-direction: row; font-size: var(--step-0); } }
.car { width: 30px; height: 30px; }
.paused-banner, .drive-banner {
  position: absolute; z-index: 3; left: var(--gutter-l); right: var(--gutter-r); top: 10px; margin-inline: auto; max-width: 480px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px;
}
.paused-banner { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font: 700 var(--step-1)/1.2 var(--font-head); justify-content: center; }
.drive-banner { top: auto; bottom: 12px; background: rgba(251,247,236,.97); border: 2px solid var(--ink); font: 400 .9375rem/1.4 var(--font-type); cursor: pointer; }
.paused-banner ~ .drive-banner { bottom: 12px; }
.drive-banner .ico { flex: none; color: var(--red); width: 26px; height: 26px; }
.recenter { position: absolute; z-index: 3; right: var(--gutter-r); bottom: 64px; min-height: 56px; background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 rgba(31,42,68,.45), inset 0 0 0 2px var(--ink); }
body.driving #rr-toast { bottom: auto; top: calc(84px + env(safe-area-inset-top, 0px)); transform: translate(-50%, 0); opacity: 0; transition: opacity .2s; }
body.driving #rr-toast.show { opacity: 1; }

/* ---------- Start ---------- */
.tips { list-style: none; margin: 0; padding: 0; }
.tips li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1.5px dashed var(--rule); }
.tips li:last-child { border-bottom: 0; }
.tips .ico { width: 34px; height: 34px; color: var(--olive); }
.tips b { font-family: var(--font-head); display: block; }
.tips span { font-size: var(--step--1); color: var(--ink-soft); }
.tips.short li { padding: 6px 0; align-items: center; }
.tips.short span { display: none; }
.tips.short .ico { width: 26px; height: 26px; }
.passenger .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.passenger .choices .btn { min-height: 64px; flex-direction: column; gap: 4px; font-size: var(--step-0); text-align: center; }
.start-wrap { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; }

/* ---------- Review, Field Check ---------- */
.mapbox.tall { height: min(52vh, 440px); }
.toggle-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 .875rem/1.2 var(--font-type); cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--olive); }
.handle { width: 44px; height: 44px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.handle span { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 2px 0 rgba(31,42,68,.4); display: grid; place-items: center; font: 700 11px/1 var(--font-type); }
.handle.end span { background: var(--ink); color: var(--paper); }
.lock-tag { display: flex; align-items: center; gap: 4px; background: rgba(251,247,236,.92); border: 1.5px solid var(--ink-soft); border-radius: 3px; padding: 2px 6px; font: 700 11px/1 var(--font-type); color: var(--ink-soft); pointer-events: none; }
.lock-tag .ico { width: 13px; height: 13px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 .8125rem/1.3 var(--font-type); color: var(--ink-soft); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 22px; height: 0; border-top: 4px solid var(--red); }
.legend-row i.dot { border-top-style: dotted; }
.legend-row i.gray { border-top-color: #9a9a9a; border-top-width: 3px; }
.legend-row i.raw { border-top: 2px solid var(--ink-soft); }
.summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.summary-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .9375rem; }
.summary-list .ico { width: 22px; height: 22px; color: var(--olive); }
.surface-bar { display: flex; height: 18px; border: 2px solid var(--ink); }
.surface-bar .paved { background: var(--ink); }
.surface-bar .gravel { background: repeating-linear-gradient(90deg, var(--khaki-deep) 0 6px, var(--paper) 6px 9px); }
.surface-bar .unknown { background: repeating-linear-gradient(45deg, #d8d2c2 0 4px, var(--paper) 4px 8px); }
.surface-keys { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font: 700 var(--step--1)/1.2 var(--font-type); }

.progress-steps { display: grid; gap: 6px; }
.progress-steps .bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.progress-steps .bar i { height: 10px; border: 2px solid var(--ink); background: var(--paper); border-radius: 2px; }
.progress-steps .bar i.done { background: var(--olive); }
.progress-steps .bar i.now { background: var(--gold); }
.clue { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.clue .ico { width: 36px; height: 36px; color: var(--red); }
.clue p { font: 400 var(--step-0)/1.5 var(--font-type); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.facts div { border-top: 1.5px solid var(--ink); padding-top: 4px; min-width: 0; }
.facts b { display: block; font: 700 var(--step-1)/1.1 var(--font-type); }
.facts span { font: 700 .6875rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.clue-photos { display: flex; gap: 8px; overflow-x: auto; }
.clue-photos button { border: 2px solid var(--ink); padding: 0; background: none; width: 72px; height: 72px; flex: none; cursor: pointer; }
.clue-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.roads { display: flex; flex-direction: column; gap: 10px; }
.road {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  min-height: 64px; padding: 8px 14px; width: 100%; background: var(--paper); color: var(--ink); text-align: left;
  border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; font: 700 var(--step-0)/1.2 var(--font-head);
}
.road .sw { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); font: 700 var(--step-1)/1 var(--font-type); border: 2px solid var(--ink); }
.road .sw.gold { color: var(--ink); }
.road small { display: block; font: 400 .8125rem/1.3 var(--font-type); color: var(--ink-soft); }
.road .m { font: 700 var(--step-0)/1 var(--font-type); text-align: right; }
.road[aria-pressed="true"] { background: var(--khaki); box-shadow: inset 0 0 0 3px var(--ink); }
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alt .btn { min-height: 60px; }
.alt .btn[aria-pressed="true"] { background: var(--khaki); box-shadow: inset 0 0 0 4px var(--ink); }
.verdict { font: 400 var(--step--1)/1.5 var(--font-type); }
.trace-hint { position: absolute; z-index: 4; left: 10px; right: 10px; bottom: 10px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 4px; font: 700 .8125rem/1.3 var(--font-type); }
.trace-cv { position: absolute; inset: 0; z-index: 3; touch-action: none; display: none; }
.trace-cv.on { display: block; cursor: crosshair; }
.nav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cand-label { font: 700 12px/1 var(--font-type); color: var(--paper); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.end-tag { font: 700 11px/1 var(--font-type); background: var(--ink); color: var(--paper); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }

/* ---------- Journal ---------- */
.entry-head { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.entry-head h1 { font-family: var(--font-hand); font-weight: 400; font-size: 2.6rem; line-height: 1.05; color: var(--red); overflow-wrap: anywhere; }
.entry-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 var(--step--1)/1.4 var(--font-type); color: var(--ink-soft); }
.entry-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry-head .meta .ico { width: 18px; height: 18px; }
.private-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid var(--olive); border-radius: 4px; color: var(--olive-deep); font: 700 .9375rem/1.3 var(--font-type); background: var(--paper); }
.private-badge .ico { width: 24px; height: 24px; flex: none; }
.notes { display: flex; flex-direction: column; gap: 14px; }
.note-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-shade); }
.note-card .kind { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; }
.note-card .kind .ico { width: 26px; height: 26px; }
.note-card h3 { font-size: var(--step-0); }
.note-card .when { font: 700 .75rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.note-card p { font: 400 .9375rem/1.5 var(--font-type); white-space: pre-wrap; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photo-strip button, .photo-strip .ph { position: relative; flex: none; width: 96px; height: 96px; border: 2px solid var(--ink); padding: 0; background: var(--khaki); cursor: pointer; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.kind-grid label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; min-height: 76px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); cursor: pointer; text-align: center; font: 700 .75rem/1.2 var(--font-type); }
.kind-grid label .ico { width: 28px; height: 28px; }
.kind-grid input { position: absolute; opacity: 0; pointer-events: none; }
.kind-grid input:checked + label { background: var(--olive); color: var(--paper); }
.photo-view { position: fixed; inset: 0; z-index: 70; background: rgba(20,24,36,.94); display: grid; place-items: center; padding: 16px; }
.photo-view img { max-width: 100%; max-height: 82vh; border: 3px solid var(--paper); }
.photo-view .btn { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.warn-box { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; background: var(--paper); border: 2px solid var(--red); padding: 12px; border-radius: 4px; }
.warn-box .ico { color: var(--red); width: 30px; height: 30px; }
.warn-box p { font: 400 .9375rem/1.45 var(--font-type); }
.unverified-key { display: inline-flex; align-items: center; gap: 8px; font: 400 .8125rem/1.3 var(--font-type); color: var(--ink-soft); }
.unverified-key i { width: 26px; border-top: 4px dotted var(--red); }
.danger-zone { border-top: 2px dashed var(--rule); padding-top: 16px; }

/* ---------- My Drives ---------- */
.drive-list { display: flex; flex-direction: column; gap: 14px; }
.drive-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; text-decoration: none; color: var(--ink); }
.drive-card .thumb { border: 2px solid var(--ink); line-height: 0; background: var(--paper); }
.drive-card .thumb svg { width: 100%; height: auto; }
.drive-card .thumb-empty { aspect-ratio: 1; display: grid; place-items: center; background: var(--khaki); }
.drive-card .thumb-empty .ico { width: 36px; height: 36px; color: var(--ink-soft); }
.drive-card h2 { font-size: var(--step-1); overflow-wrap: anywhere; }
.drive-card .meta { font: 400 .875rem/1.4 var(--font-type); color: var(--ink-soft); display: flex; gap: 12px; }
.drive-card .tags .tag { font-size: .75rem; padding: 2px 8px; }
.card.link:active { background: var(--khaki); }
.filters { display: flex; flex-direction: column; gap: 10px; }
.search { position: relative; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.search input { padding-left: 44px !important; }
.empty { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; }
@media (min-width: 760px) { .drive-list { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- Share, import ---------- */
.check-line { display: flex; align-items: center; gap: 8px; font: 700 .9375rem/1.3 var(--font-type); color: var(--olive-deep); }
.check-line .ico { color: var(--olive); }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photo-pick label { position: relative; display: block; aspect-ratio: 1; border: 2px solid var(--ink); cursor: pointer; overflow: hidden; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick input { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; accent-color: var(--olive); z-index: 1; }
.photo-pick input:not(:checked) + img { opacity: .35; }
.size-est { font: 700 var(--step-0)/1.3 var(--font-type); }

/* ---------- Trip planner, guidance ---------- */
.trip-opt { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; padding: 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; }
.trip-opt.best { box-shadow: inset 0 0 0 3px var(--olive); }
.trip-opt[aria-pressed="true"] { background: var(--khaki); box-shadow: inset 0 0 0 4px var(--ink); }
.trip-opt h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.trip-opt .best-tag { font: 700 .75rem/1 var(--font-type); background: var(--olive); color: var(--paper); padding: 4px 6px; border-radius: 3px; }
.legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 400 .875rem/1.4 var(--font-type); }
.legs li { display: flex; justify-content: space-between; gap: 8px; }
.legs li.scenic { color: var(--red); font-weight: 700; }
.trip-total { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 6px; font: 700 var(--step-0)/1.2 var(--font-type); }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.results button { width: 100%; text-align: left; min-height: 56px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); cursor: pointer; font: 700 var(--step-0)/1.2 var(--font-head); color: var(--ink); }
.results small { display: block; font: 400 .8125rem/1.3 var(--font-type); color: var(--ink-soft); }
.turn-card {
  position: absolute; z-index: 4; left: var(--gutter-l); right: var(--gutter-r); top: 10px; margin-inline: auto; max-width: 520px;
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px 14px;
  background: var(--ink); color: var(--paper); border: 3px solid var(--gold); border-radius: 8px;
}
.turn-card .arrow { width: 76px; height: 76px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border-radius: 6px; }
.turn-card .arrow .ico { width: 60px; height: 60px; stroke-width: 2.6; }
.turn-card .dist { font: 700 2rem/1 var(--font-type); }
.turn-card .what { font: 700 var(--step-1)/1.2 var(--font-head); overflow-wrap: anywhere; }
.turn-card.off { background: var(--red); border-color: var(--paper); }
.turn-card.done { background: var(--olive); }
.guide-info { display: flex; justify-content: space-between; gap: 8px; }
.warn-strip { position: absolute; z-index: 4; left: var(--gutter-l); right: var(--gutter-r); bottom: 12px; margin-inline: auto; max-width: 520px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: 10px 14px; font: 700 .9375rem/1.35 var(--font-type); display: flex; gap: 10px; align-items: center; }
.warn-strip .ico { flex: none; }

.ink-frame { border: 2px solid var(--ink); line-height: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.inline-input { font: 400 var(--step-0)/1.4 var(--font-body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 10px 12px; min-height: 48px; }
.desc { font-size: var(--step-0); white-space: normal; }
.pin-edit .kind-grid span { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button.pin-marker { background: none; border: 0; padding: 0; cursor: pointer; }
