:root {font:100%/1.5 system-ui,sans-serif;color:#193e33;background:#f5f8f5;--ink:#193e33;--green:#164d3c;--edge:#bed0c5;--muted:#4c655a}
* {box-sizing:border-box}
body {max-width:76rem;margin:0 auto;padding:0 clamp(.85rem,3vw,2.25rem) 3rem}
[hidden] {display:none !important}
a {color:var(--green);text-underline-offset:.2em}
button {font:inherit;line-height:1.25;font-weight:650;cursor:pointer}
button:disabled {cursor:default;opacity:.6}
a:focus-visible, button:focus-visible, #trip-map:focus-visible {outline:3px solid #9d6000;outline-offset:3px}
.site-header,.panel-heading,.share-actions,.map-key {display:flex;align-items:center;gap:.65rem 1rem;flex-wrap:wrap}
.site-header {justify-content:space-between;min-height:4rem;border-bottom:1px solid var(--edge)}
.brand {font-size:1.06rem;font-weight:750;text-decoration:none}
.site-header nav a {padding:.65rem .3rem}
.site-header nav a[aria-current] {font-weight:750;color:var(--ink);text-decoration-thickness:.16em}
.skip {position:fixed;top:.5rem;left:.5rem;transform:translateY(-180%);z-index:1500;background:#fff;padding:.65rem}
.skip:focus {transform:none}
h1,h2,p {margin:0}
h1 {font:600 clamp(2rem,4vw,3.35rem)/1.15 Georgia,serif;letter-spacing:-.025em;margin:1.5rem 0 1.2rem}
h2 {font-size:1.16rem;font-weight:750;line-height:1.35}
.practice {display:flex;align-items:baseline;gap:.25rem .85rem;flex-wrap:wrap;margin:1rem 0 0;padding:.6rem .9rem;background:#fff0c5;border:1px solid #c1973c;border-radius:.45rem;color:#594006}
.practice strong {font-weight:750}
#load-note:not(:empty),.feedback:not(:empty) {margin:.65rem 0;padding:.6rem .8rem;border-left:3px solid var(--edge);background:#eaf1ea}
.trip-summary {display:flex;align-items:flex-start;gap:.8rem 2.8rem;flex-wrap:wrap;margin-bottom:1.15rem}
.trip-summary > div {display:grid;min-width:0;overflow-wrap:anywhere}
.trip-summary span,.trip-summary small {color:var(--muted);font-size:.9rem}
.trip-summary strong {font-size:1.1rem;line-height:1.4}
.trip-layout {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(15.5rem,1fr);gap:1rem;align-items:start}
.trip-side {display:grid;gap:1rem;min-width:0}
.map-panel,.action-panel,.timeline-panel,.share-panel {min-width:0;background:white;border:1px solid var(--edge);border-radius:.65rem;overflow:hidden}
.timeline-panel,.action-panel,.share-panel {padding:1rem 1.15rem}
.action-panel {border-top:3px solid var(--green)}
.action-panel p,.share-panel p {margin:.45rem 0 .75rem;color:var(--muted)}
.primary,.subtle {min-height:2.7rem;border:1px solid var(--green);border-radius:.4rem;padding:.55rem .85rem}
.primary {background:var(--green);color:white}
.subtle {background:white;color:var(--green);border-color:#91aa9d}
.panel-heading {justify-content:space-between;padding:.6rem .9rem;min-height:3.4rem}
.panel-heading .subtle {min-height:2.4rem;font-size:.92rem}
.trip-map {width:100%;height:clamp(20rem,42vw,34rem);background:#dce9e7;isolation:isolate;z-index:0;border-block:1px solid var(--edge)}
.trip-map.leaflet-container {font:inherit;background:#deeceb}
.trip-map .leaflet-control-attribution {font-size:.69rem;max-width:100%}
.trip-map .leaflet-bar a {width:2rem;height:2rem;line-height:2rem}
.map-key {list-style:none;margin:.65rem 1rem .25rem;padding:0;font-size:.92rem;font-weight:650}
.map-key li {display:inline-flex;align-items:center;gap:.4rem;min-height:1.8rem}
.map-note,.map-error {margin:.25rem 1rem .85rem;color:var(--muted);font-size:.9375rem}
.map-error {color:#764000}
.map-symbol {background:none;border:0}
.pin-example,.trip-mark {display:inline-grid;place-items:center;position:relative;border:2px solid white;outline:1px solid #254136}
.pin-example {width:1.25rem;height:1.25rem;flex:0 0 auto}
.trip-mark {width:1.75rem;height:1.75rem;box-shadow:0 1px 5px #133b3666}
.sighting-dot {border-radius:50%;background:#186449}
.sighting-dot::after {content:'';width:40%;height:40%;border-radius:50%;background:#fff}
.vehicle-dot {border-radius:24%;background:#164c78}
.vehicle-dot::before {content:'';position:absolute;left:19%;top:40%;width:62%;height:30%;border-radius:30% 30% 12% 12%;background:#fff}
.vehicle-dot::after {content:'';position:absolute;left:29%;top:23%;width:39%;height:25%;border:2px solid white;border-radius:40% 40% 0 0}
.timeline {list-style:none;margin:.75rem 0 0;padding:0}
.timeline li {display:grid;grid-template-columns:1.4rem 1fr;gap:.55rem;position:relative;padding:0 0 .9rem}
.timeline li:last-child {padding-bottom:0}
.timeline li:not(:last-child)::before {content:'';position:absolute;top:1.25rem;bottom:0;left:.55rem;border-left:1px solid #acbdb3}
.timeline .dot {width:1.16rem;height:1.16rem;display:grid;place-items:center;margin-top:.15rem;border-radius:50%;border:2px solid #a7b7ae;color:white;font:.78rem/1 system-ui;background:white}
.timeline li.done .dot {background:var(--green);border-color:var(--green)}
.timeline strong,.timeline small {display:block}
.timeline strong {font-size:1rem;font-weight:650}
.timeline li.pending strong,.timeline small {color:var(--muted)}
.timeline small {font-size:.875rem}
.share-panel {margin-top:1rem}
.share-panel #gps-note:empty,.feedback:empty {display:none}
#gps-note {font-weight:600;color:var(--ink)}
@media(max-width:46rem){
 .trip-layout {grid-template-columns:minmax(0,1fr)}
 .trip-map {height:clamp(17rem,50svh,26rem)}
 .trip-summary {gap:.6rem 1.3rem}
 .trip-summary strong {font-size:1rem}
 .trip-side .primary {width:100%}
}
@media(max-width:24rem){.share-actions .subtle {width:100%}.map-key {gap:.25rem .7rem}}
.action-panel label {display:grid;gap:.3rem;margin:.6rem 0;font-weight:600}
.action-panel input {min-width:0;max-width:100%;font:inherit;color:var(--ink);background:white;border:1px solid #789d8d;border-radius:.35rem;padding:.55rem}
#issue-link,#receiver-link {margin-top:.55rem}

.trip-layout:not(:has(.map-panel)) {grid-template-columns:minmax(0,44rem)}
#pickup-point {padding:.6rem 0}

#release-panel form {display:grid;gap:.8rem;margin-block:.8rem}
#release-panel label {display:grid;gap:.25rem}
#release-panel input,#release-panel select {font:inherit;padding:.5rem;max-width:100%;min-width:0}
#release-panel input[type="checkbox"] {justify-self:start;width:1.2rem;height:1.2rem}
#release-panel details {margin-block:.8rem}
#release-panel summary {cursor:pointer;font-weight:650}
