:root {
  color-scheme: light;
  --ink: #121a2a;
  --muted: #566376;
  --line: #dce1e6;
  --wash: #f7f8fa;
  --blue: #164e89;
  --focus: #1474bf;
  --button-bg: #194f89;
  --button-hover: #123d6c;
  --button-text: #fff;
  --control-height: 50px;
  --gutter: clamp(20px, 3.4vw, 38px);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.land-notice { margin: 12px 0; padding: 12px 14px; border: 1px solid #dcaca8; border-inline-start: 4px solid #b7312c; border-radius: 10px; background: #fff0ef; color: #812924; }
[data-theme="dark"] .land-notice { border-color: #ad6464; border-inline-start-color: #fa8882; background: #48262b; color: #ffc8c4; }
.land-notice strong { display: block; }
.contact-actions { display: flex; align-items: stretch; gap: 8px; margin-top: 16px; }
.contact-actions .compact-label { display: none; }
#contactAccount { display: contents; }
#anonymousMode[aria-pressed="true"] + #contactAccount { display: none; }
#contactAccountText:not(:empty) { margin-top: 12px; color: var(--muted); font-size: .93rem; }
#contactLogin { width:min(26rem,calc(100% - 32px)); max-height:85dvh; padding:clamp(20px,4vw,32px); color:var(--ink); border:1px solid var(--line); border-radius:18px; box-shadow:0 18px 60px #152f372b; }
#contactLogin::backdrop { background:#14272f77; }
#contactLogin label { margin-top:16px; }
#contactLogin form > a { display:inline-block; margin-top:16px; font-size:.9rem; }
#contactLoginError:empty { display:none; }
.login-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin-top:18px; }
.login-actions .forgot-password { display:inline-flex; align-items:center; min-height:44px; margin:0; padding:0; color:var(--blue); font-size:.85rem; font-weight:500; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.contact-password { position:relative; }
#contactLogin .contact-password input { padding-inline-end:50px; }
.contact-password button { position:absolute; top:50%; right:3px; transform:translateY(-50%); width:44px; min-height:44px; padding:0; }
.contact-password svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; vertical-align:middle; }
.google-login:not(:empty) { margin:16px 0; min-height:44px; }
.social-logins { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:10px; width:100%; max-width:360px; margin:16px 0 4px; }
.social-logins:has(.google-login:empty), .social-logins:not(:has([data-facebook]:not([hidden]))) { grid-template-columns:minmax(0,1fr); }
.social-logins:has(.google-login:empty):not(:has([data-facebook]:not([hidden]))) { display:none; }
.social-logins > .google-login:not(:empty), .social-logins > button { min-width:0; width:100%; margin:0; }
.social-logins > .google-login:empty { display:none; }
.social-logins .google-login > .social-login-button { width:100%; }
body .social-login-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:var(--wash); color:var(--ink); font-size:.92rem; font-weight:600; white-space:nowrap; }
body .social-login-button:not(:disabled):is(:hover,:active) { background:var(--wash); border-color:var(--focus); }
body .social-login-button > svg { width:20px; height:20px; flex:none; stroke:none; }
.profile-shell .google-login .social-login-button > svg, .profile-shell .social-logins .social-login-button > svg { width:20px; height:20px; stroke:none; }
@media (max-width:380px) {
  body .social-login-button { padding-inline:8px; gap:6px; font-size:.85rem; }
}
body, h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -6rem; z-index: 1500; padding: 10px; background: white; }
.skip-link:focus { top: 8px; }
header { background: white; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.masthead, main { width: min(calc(100% - 48px), 1096px); margin-inline: auto; }
.masthead { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pilot { font-size: .84rem; color: var(--muted); text-align: right; }
.pilot b { color: var(--ink); font-weight: 580; }
.pilot span { margin-inline: .25em; }
.layout { display: grid; align-items: start; grid-template-columns: minmax(0, .82fr) minmax(0, 1.58fr); gap: clamp(48px, 6vw, 92px); padding-block: clamp(38px, 5vw, 76px) 72px; }
.sidebar { position: sticky; top: 28px; }
h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 670; line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.intro > p:first-of-type { margin-top: 18px; font-size: 1.06rem; color: var(--muted); max-width: 34ch; }
#reportSteps { display: grid; margin-top: 32px; }
#reportSteps a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 16px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); font-size: .95rem; }
#reportSteps a:hover { color: var(--ink); }
#reportSteps a[aria-current] { border-color: #fd650b; color: var(--ink); font-weight: 640; }
.content, .fields > div { min-width: 0; }
.form-progress { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px var(--gutter); margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.progress-copy { flex: 1; min-width: 0; }
#progressText { display: block; font-size: .9rem; line-height: 1.3; font-weight: 620; }
#progressBar { display: block; appearance: none; width: 100%; height: 5px; margin-top: 8px; border: 0; border-radius: 5px; overflow: hidden; background: #e7ecf0; color: var(--blue); }
#progressBar::-webkit-progress-bar { background: #e7ecf0; }
#progressBar::-webkit-progress-value { background: var(--blue); border-radius: 5px; }
#progressBar::-moz-progress-bar { background: var(--blue); border-radius: 5px; }
.tow-scene { width: clamp(112px, 36%, 178px); height: auto; flex: none; overflow: hidden; }
.tow-frame:not([hidden]) { animation: scene-appear .23s ease-out; }
.arriving-rig { animation: truck-arrive .55s ease-out; }
.departing-rig { animation: truck-leave 1.35s ease-in .5s forwards; }
@keyframes scene-appear { from { opacity: .45; } to { opacity: 1; } }
@keyframes truck-arrive { from { transform: translateX(35px); } to { transform: translateX(0); } }
@keyframes truck-leave { to { transform: translateX(134px); } }
@media (prefers-reduced-motion: reduce) {
  .tow-frame:not([hidden]), .arriving-rig, .departing-rig { animation: none; }
}
.content :is(.panel, input, button, .challenge, #addressHint, #result, #reviewTitle, #delivery) { scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px)); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: var(--gutter); margin-bottom: 18px; scroll-margin-top: 22px; }
#reportDetails { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
#reportDetails:disabled .panel { background: #f3f4f5; filter: grayscale(1); }
#reportDetails:disabled :is(input, button) { background: #e2e5e8; border-color: #c9cdd1; color: #596169; opacity: 1; }
#reportDetails:disabled #map { opacity: .55; }
h2 { font-size: clamp(1.4rem, 2.25vw, 1.9rem); line-height: 1.14; letter-spacing: -.038em; font-weight: 670; }
h3 { margin-block: 22px 8px; font-size: 1rem; }
.panel > p { color: var(--muted); margin-top: 8px; }
label { display: block; margin-bottom: 7px; font-size: .94rem; font-weight: 620; }
input:not([type="file"], [type="hidden"], [type="checkbox"]) { display: block; width: 100%; height: var(--control-height); min-width: 0; border: 1px solid #aeb9c5; border-radius: 11px; background: white; color: var(--ink); padding: 0 14px; font-size: 1rem; }
#scanStatus:not(:empty) { padding: 10px 12px; border-radius: 9px; background: #eaf2fa; color: #173e68; font-weight: 600; scroll-margin-block-start: 90px; }
#plateReportNotice { display: block; margin-block: .65rem; padding: .65rem .85rem; border-inline-start: 4px solid var(--blue); font-weight: 600; }
#plateReportNotice[data-state="checking"] { font-weight: 400; }
#scanStatus[data-state="success"] { background: #e8f3ed; color: #225a42; }
#scanStatus[data-state="notice"] { background: #fbf2e6; color: #624723; }
#retryScan { margin-block-start: 8px; }
#changePlateMode { margin-top: 12px; }
.process-note { margin: 10px 0 14px; color: var(--muted); font-size: .9rem; }
.process-note summary { color: var(--blue); cursor: pointer; padding: 6px 0; }
.process-note p { margin: 3px 0; }
.report-email-choices { margin-top: 20px; border-block: 1px solid var(--line); }
.report-email-choices summary { padding: 13px 0; cursor: pointer; color: var(--ink); font-size: .94rem; }
.report-email-choices summary small { display: inline; margin-left: 8px; font-weight: 400; }
.report-email-options { padding-bottom: 16px; }
.report-email-options label { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0; font-size: .9rem; font-weight: 400; line-height: 1.5; }
.report-email-options input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
#registryFields > p { color: var(--muted); }
input::placeholder { color: #637083; opacity: 1; }
input:focus-visible { border-color: var(--focus); }
.fields { display: grid; gap: 20px; margin-top: 24px; }
small, .copy-note { display: block; margin-top: 7px; font-size: .87rem; line-height: 1.45; color: var(--muted); }
button, .pick-action, .new-report { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 0; border-radius: 12px; padding: 11px 19px; font-family: inherit; font-size: .95rem; font-weight: 615; line-height: 1.35; cursor: pointer; color: var(--button-text); background-color: var(--button-bg); text-align: center; }
button:not(:disabled):hover, .photo-picker:hover .pick-action, .new-report:hover { background-color: var(--button-hover); }
button:not(:disabled):active, .photo-picker:active .pick-action, .new-report:active { background-color: var(--button-hover); }
.photo-picker:focus-within .pick-action { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .58; cursor: default; }
.button-row, .actions, .challenge { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button-row { margin-top: 22px; }
.photo-grid { max-width: 480px; margin: 22px auto 0; }
.photo-picker { position: relative; isolation: isolate; margin: 0; display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 12px; border-radius: 12px; cursor: pointer; }
.photo-frame { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f5f8; }
.photo-placeholder { color: var(--muted); }
.photo-picker .pick-action { width: 100%; min-height: 54px; padding: 10px 8px; }
.photo-picker .plus { flex-shrink: 0; }
.photo-frame:has(img:not([hidden])) :is(.finder,.street-art,.photo-placeholder) { display: none; }
.photo-picker:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.finder { display: grid; place-items: center; width: 178px; height: 66px; position: relative; }
.finder i { position: absolute; inset: 0; pointer-events: none; }
.finder i::before, .finder i::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border: solid #8294ab; border-width: 2px 0 0 2px; border-radius: 5px 0 0 0; }
.finder i::after { left: auto; right: 0; transform: rotate(90deg); }
.finder i:last-child { transform: rotate(180deg); }
.sample-plate { display: inline-flex; align-items: center; height: 32px; gap: 7px; padding-right: 8px; border-radius: 5px; border: 1px solid #8997a8; background: white; color: #39475c; font: 670 17px/1 ui-monospace, monospace; letter-spacing: .025em; overflow: hidden; }
.sample-plate b { align-self: stretch; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 0 3px; background: #445977; color: white; font: bold 7px/1 system-ui; }
.pick-action { gap: 9px; border-radius: 24px; }
.plus { width: 14px; height: 14px; background: linear-gradient(white,white) center/12px 2px no-repeat, linear-gradient(white,white) center/2px 12px no-repeat; }
#preview, #previewExtra { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.extra-photo { min-width: 0; margin-top: 14px; }
.extra-photo > summary { width: fit-content; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; color: var(--blue); cursor: pointer; font-size: .9rem; list-style: none; }
.extra-photo > summary::-webkit-details-marker { display: none; }
.extra-photo > summary::before { content: '+'; font-size: 1.15rem; margin-right: 2px; }
.extra-photo[open] > summary::before { content: '−'; }
.extra-photo > summary small { margin: 0; font-size: .8rem; font-weight: 400; }
.extra-photo > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.extra-photo[open] > .photo-picker { margin-top: 10px; }
.photo-remove { width: 100%; margin-top: 10px; font-size: .82rem; padding: 8px; }
.review-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 480px; }
.review-photos:has(#reviewPhotoExtra:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.review-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #f3f5f8; }

.photo-picker:has(#preview:not([hidden])) .finder { display: none; }
.plate-field { margin-top: 24px; scroll-margin-top: 22px; }
.plate { display: flex; align-items: stretch; width: 100%; }
.plate > span { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 38px; border-radius: 10px 0 0 10px; background: #003399; color: white; font: 700 12px/1 system-ui; }
.plate #plate { border-radius: 0 10px 10px 0; font-weight: 660; font-size: 1.15rem; letter-spacing: .085em; text-transform: uppercase; }
.code-box { margin-top: 16px; padding: clamp(12px, 2.5vw, 20px); background: #eef4f8; border: 1px solid #b5c7d5; border-radius: 14px; }
.code-box > label { font-size: 1.06rem; font-weight: 680; margin-bottom: 10px; }
.challenge img { max-width: 100%; width: auto; height: auto; max-height: 60px; border: 1px solid #aebdcb; border-radius: 6px; background: white; }
#reload { gap: 7px; min-height: 46px; padding: 8px 14px; }
.code-box .actions { margin-top: 12px; }
.code-box #code { min-width: 0; height: 52px; border: 2px solid #457398; background: white; color: var(--ink); font-size: 1.25rem; font-weight: 650; letter-spacing: .12em; }
.code-box #code::placeholder { color: #566e82; font-size: 1rem; font-weight: 500; letter-spacing: normal; }
.code-box #code:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) {
  .code-box .actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .code-box .actions button { width: 100%; }
  .challenge img { max-width: calc(100% - 120px); }
}
.actions { flex-wrap: nowrap; }
.actions input { flex: 1; }
.actions button { min-height: var(--control-height); }
#map { height: clamp(245px, 30vw, 315px); margin: 20px 0 12px; border: 1px solid var(--line); border-radius: 13px; background: #eef2f4; isolation: isolate; }
#map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
output:not(:empty) { display: block; margin-top: 12px; color: var(--muted); font-size: .93rem; white-space: pre-line; overflow-wrap: anywhere; }
#delivery:not(:empty) { padding: 13px 16px; border-radius: 12px; background: #f1f3f5; color: #374151; }
#result[data-state] { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:4px 11px; padding:16px; margin-top:16px; border:1px solid currentColor; border-inline-start-width:4px; border-radius:13px; background:#fff5dc; color:#69480b; white-space:normal; }
#result[data-state] svg { grid-row:span 2; }
#result[data-state] strong { font-size:1.1rem; line-height:1.35; }
#result[data-state] span { grid-column:2; font-size:.96rem; line-height:1.5; }
#result[data-state="valid"], #result[data-state="recent"], #result[data-state="error"] { background:#fff0ef; color:#812924; }
#result[data-state="invalid"], #delivery[data-state="sent"] { background: #e8f4ed; color: #246138; }
#result svg, #gps svg, .contact-input svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#gps { display:flex; width:fit-content; gap:9px; margin-block:18px 16px; }
#location > p { margin-top:0; }
#locationSearch { margin: -4px 0 16px; }
#locationSearch summary { width: fit-content; min-height: 44px; align-content: center; cursor: pointer; color: var(--blue); font-weight: 650; }
#locationSearch label { margin-top: 4px; }
.address-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
#addressMatches { list-style: none; margin: 8px 0; padding: 0; }
#addressMatches button { width: 100%; justify-content: start; text-align: start; color: var(--ink); background: var(--appearance-panel); border: 1px solid var(--line); margin-block: 2px; }
#map .leaflet-control-zoom a { color:var(--button-text); background:var(--button-bg); }
#map .leaflet-control-zoom a:hover { background:var(--button-hover); }
#locationTitle { scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px)); }
.contact-input { position:relative; }
.contact-input svg { position:absolute; inset-inline-start:14px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:#50657c; pointer-events:none; }
.contact-input input { padding-inline-start:45px; }
#delivery[data-state="error"] { background: #fceeed; color: #922c27; }
#recipients, #letter { white-space: pre-line; overflow-wrap: anywhere; }
#subject { display: block; margin: 20px 0; overflow-wrap: anywhere; }
#letter p { margin: 0 0 15px; }
#letter strong { display: block; margin-bottom: 2px; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-mark { display: grid; flex: none; place-items: center; width: 38px; height: 38px; color: #345c58; background: #e3efea; border-radius: 12px; }
#inspection .section-mark, #submit .section-mark { color: #8c541e; background: #f9ecd8; }
.section-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-frame:where(:not(:has(img:not([hidden])))) { background: linear-gradient(180deg,#eef5f4,#f7f3e9); }
.street-art { position: absolute; z-index: -1; pointer-events: none; inset: auto 0 0; width: 100%; height: 72%; }
.photo-picker:has(#preview:not([hidden])) .street-art { display: none; }
.panel a { color: var(--blue); text-decoration: underline; text-underline-offset: .17em; overflow-wrap: anywhere; }
.delivery-addresses { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 5px 16px; align-items: baseline; margin: 12px 0 0; }
.delivery-addresses dt { color: var(--muted); }
.delivery-addresses dd { margin: 0; overflow-wrap: anywhere; }
#review #subject { padding: 14px 16px; border-left: 3px solid #d99441; border-radius: 0 10px 10px 0; background: #fbf5e9; }
.receipt { overflow: hidden; background: linear-gradient(145deg,#eff7f2, #fff 55%); border-color: #bfdbce; }
.receipt-head { display: flex; gap: 14px; align-items: center; }
.sent-art { width: 76px; height: auto; flex: none; }
.receipt-thanks { margin: 4px 0 0; color: var(--muted); }
.receipt-ranking { margin: 20px 0; }
.receipt-ranking h3 { margin-bottom: 0; }
#receiptRankingRows { list-style: none; padding: 0; margin: 10px 0; }
#receiptRankingRows li { display: grid; grid-template-columns: 2em minmax(0,1fr) auto; gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
#receiptRankingRows strong { overflow-wrap: anywhere; }
#receiptRankingRows span { color: var(--muted); font-variant-numeric: tabular-nums; }
.receipt-process { margin: 16px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.receipt-process h3 { margin: 10px 0 12px; font-size: 1.08rem; }
.process-timeline { list-style: none; padding: 0 0 0 18px; margin: 0 0 10px 5px; border-left: 2px solid #c2d9ca; }
.process-timeline li { position: relative; padding-bottom: 12px; }
.process-timeline li:last-child { padding-bottom: 0; }
.process-timeline li::before { content: ""; position: absolute; left: -23px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #44836c; }
.receipt-process > a { font-size: .88rem; }
.city-stats { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.city-stats h3 { margin: 0 0 4px; font-size: 1.08rem; }
.city-stats table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: start; }
.city-stats caption { padding-bottom: 10px; color: var(--muted); font-size: .85rem; text-align: start; }
.city-stats th, .city-stats td { padding: 8px 4px; text-align: end; vertical-align: middle; }
.city-stats th:first-child { width: 36%; padding-left: 0; text-align: start; }
.city-stats thead th:last-child { width: 40%; overflow-wrap: normal; }
.city-stats thead th { color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.city-stats tbody tr { border-top: 1px solid var(--line); }
.city-stats tbody th { font-weight: 500; line-height: 1.35; }
.city-stats td { font-variant-numeric: tabular-nums; font-weight: 650; }
.agreements { margin: 20px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.agreements > div { display: flex; align-items: baseline; gap: 10px; }
.agreements label { padding: 10px 0; margin: 0; font-weight: 500; cursor: pointer; }
.agreements input { flex: none; width: 19px; height: 19px; align-self: center; accent-color: var(--blue); }
.field-error { color: #942f26; }
#report input[aria-invalid="true"] { border-color: #a03d33; }
.legal-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.receipt-number { display: grid; gap: 4px; margin: 20px 0; padding: 14px 16px; background: #fff; border: 1px solid #c9ded5; border-left: 4px solid #387963; border-radius: 12px; }
.receipt-number span { font-size: .86rem; color: var(--muted); }
.receipt-number strong { color: #1c453d; font: 650 clamp(.99rem,3.4vw,1.28rem)/1.4 ui-monospace,monospace; overflow-wrap: anywhere; }
.receipt .delivery-addresses { grid-template-columns: 6.2em minmax(0,1fr); }
.receipt #receiptRecipients { margin-top: 6px; }
.receipt .receipt-note { margin: 1.5em 0 0; color: var(--muted); }
@media (max-width: 420px) {
  .section-title { gap: 9px; }
  .section-mark { width: 32px; height: 32px; }
  .section-mark svg { width: 20px; height: 20px; }
  .receipt-head { gap: 8px; }
  .sent-art { width: 60px; }
  .receipt .delivery-addresses { grid-template-columns: 5.8em minmax(0,1fr); gap: 5px 8px; }
}
#installBar { display: none; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; align-items: start; gap: 12px; color: var(--ink); }
#installBar > img { border-radius: 12px; }
#installBar p { margin: 0; }
#installHelp summary { cursor: pointer; color: var(--blue); font-weight: 620; padding-block: 10px; }
#installHelp h3 { margin: 12px 0 5px; font-size: .95rem; }
#installHelp ol { margin: 0 0 16px; padding-left: 1.35em; font-size: .91rem; }
#installHelp li + li { margin-top: 6px; }
@media (max-width:780px), (pointer:coarse) {
  #installBar { display: grid; grid-template-columns: auto minmax(0,1fr); }
}
@media (max-width: 780px) {
  .masthead, main { width: min(calc(100% - 32px), 620px); }
  .masthead { min-height: 58px; gap: 8px; }
  .pilot { max-width: 115px; font-size: .76rem; line-height: 1.25; }
  .pilot b { display: block; }
  .pilot span { display: none; }
  .layout { display: block; padding-block: 27px calc(28px + env(safe-area-inset-bottom)); }
  .sidebar { position: static; margin-bottom: 20px; }
  h1 { font-size: clamp(2.05rem, 7vw, 2.75rem); max-width: 16ch; }
  .intro > p:first-of-type { margin-top: 10px; font-size: 1rem; max-width: 52ch; }
  #reportSteps { display: none; }
  .panel { border-radius: 17px; margin-bottom: 12px; }
  .button-row button, #gps { width: 100%; }
  .button-row { gap: 12px; }
}
@media (max-width: 360px) {
  .masthead, main { width: calc(100% - 24px); }
  .panel { padding: 16px; }
  .actions { flex-wrap: wrap; }
  .actions input, .actions button { flex: 1 1 100%; }
}
@media (display-mode: standalone) { #installBar { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.privacy-intro, .copy-note a, .site-footer a, .policy a, .back-link { color: var(--blue); text-underline-offset: .18em; }
.privacy-intro { display: inline-block; margin-top: 8px; padding-block: 5px; font-size: .87rem; }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 25px; padding: 16px max(20px, calc((100% - 1096px) / 2)); border-top: 1px solid var(--line); font-size: .87rem; color: var(--muted); }
.site-footer a, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
.policy { max-width: 760px; margin: 32px auto 60px; }
.policy h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: none; overflow-wrap: anywhere; }
.policy h2 { margin-top: 30px; font-size: 1.25rem; }
.policy .policy-date { color: var(--muted); font-size: .86rem; }
.policy p, .policy li { margin: 12px 0 0; overflow-wrap: anywhere; }
.policy ul { padding-left: 22px; }

.profile-choice,.profile-receipt { margin:18px 0; padding:14px 16px; border:1px solid #c7ded1; border-radius:12px; background:#f2f8f4; }
.profile-choice label { display:flex; gap:10px; align-items:center; cursor:pointer; }
.profile-choice input { flex:none; width:20px; height:20px; accent-color:var(--blue); }
.profile-receipt a { display:inline-block; margin:6px 0; }

@media (max-width: 520px) {
  .contact-actions button { flex: 1 1 0; min-width: 0; padding-inline: 6px; font-size: .9rem; }
  .contact-actions .wide-label { display: none; }
  .contact-actions .compact-label { display: inline; }
}
.anonymous-warning { margin-top: 8px; padding: 15px 17px; border-inline-start: 3px solid #bd802d; border-radius: 10px; background: #fff5e3; color: #553b18; }
.anonymous-warning p { margin: 6px 0 0; }

.sidebar .site-tabs { margin-block: 16px 4px; }

.cookie-link { font-weight: 600; }

.report-complete .layout { display: block; max-width: 760px; }
.report-complete .sidebar,.report-complete #installBar { display: none; }
.receipt-reward { padding: 14px 17px; margin: 16px 0; border: 1px solid #d9dfeb; border-radius: 12px; background: white; }
.receipt-reward h3 { margin: 0 0 .5rem; }
.receipt-reward p { margin: .45rem 0; }

/* The report is a single, progressive form on both mobile and desktop. */
.report-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.report-page .layout { flex: 1; width: min(100% - 32px, 640px); display: block; padding-block: clamp(22px, 4vw, 50px) 40px; }
.report-page .intro { margin-bottom: 18px; }
.report-page h1 { max-width: none; font-size: clamp(1.85rem, 5vw, 3rem); }
.report-page .intro > p { max-width: none; margin-top: 7px; font-size: .98rem; }
.report-page #formProgress { padding: 4px 0; border: 0; border-radius: 0; background: var(--wash); margin: 0 0 12px; }
.report-page .tow-scene { width: 82px; }
.report-page #progressText { color: var(--muted); font-size: .82rem; font-weight: 570; }
.report-page #progressBar { height: 3px; margin-top: 5px; }
.report-page .panel { padding: clamp(16px, 3.5vw, 28px); border-radius: 16px; }
.report-page form #picture { padding: 0; border: none; background: transparent; }
.report-page .photo-grid { max-width: none; margin: 0; }
.report-page .photo-picker[for="photo"] { gap: 10px; }
.report-page .photo-picker[for="photo"] .photo-frame:has(#preview[hidden]) { height: clamp(76px, 14vh, 120px); aspect-ratio: auto; }
.report-page .photo-picker[for="photo"] .finder { height: 50px; }
.report-page .photo-picker[for="photo"] .pick-action { min-height: 52px; border-radius: 12px; font-size: 1.04rem; }
.report-page #photoHint { margin: 10px 2px 0; color: var(--muted); font-size: .91rem; }
.report-page #photoHint + .extra-photo { margin-top: 2px; }
.report-page #finishPicture, .report-page #finishLocation { width: 100%; margin-top: 16px; }
.report-page .step-summary { width: 100%; text-align: start; padding: 10px 2px; min-height: 48px; gap: 10px; justify-content: flex-start; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; }
.report-page .step-summary:hover { background: var(--appearance-panel); }
.step-summary svg { flex: none; color: var(--blue); }
.step-summary > span:first-of-type { min-width: 0; display: flex; gap: 0 .55em; flex-wrap: wrap; align-items: baseline; }
.step-value { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.step-edit { margin-inline-start: auto; color: var(--blue); font-size: .86rem; }
.step-summary:not([hidden]) ~ .panel:not([hidden]), .step-summary:not([hidden]) ~ #reportDetails { margin-top: 16px; }
.report-page .report-menu { position: relative; z-index: 12; margin-left: auto; }
.report-menu > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding-inline: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.report-menu summary::-webkit-details-marker { display: none; }
.menu-sheet { position: absolute; right: 0; top: calc(100% + 4px); width: min(250px, 85vw); background: var(--appearance-panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px #1727381a; padding: 7px; }
.menu-sheet nav { display: grid; }
.menu-sheet a, .menu-sheet .appearance-menu > summary { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--ink); text-decoration: none; }
.menu-sheet a:hover, .menu-sheet summary:hover { background: var(--wash); border-radius: 8px; }
.menu-sheet [data-appearance-host] { display: block; border-top: 1px solid var(--line); }
.menu-sheet .appearance-menu > summary { justify-content: flex-start; border: none; font-size: inherit; }
.menu-sheet .appearance-options { position: static; width: 100%; border: none; box-shadow: none; }
.report-complete .intro { display: none; }
@media (max-height: 500px) {
  .report-page .photo-picker[for="photo"] .pick-action { order: -1; }
}
