:root { color-scheme:light; --ink:#163d32; --muted:#607269; --paper:#faf9f5; --line:#dbe1d9; --accent:#c55232; --one:#c55232; --two:#356cb0; --three:#8060a6; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; color:var(--ink); background:var(--paper); font-size:15px; }
button,input,select { font:inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #de9f33; outline-offset:3px; }
.topbar { height:68px; padding:0 30px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:var(--paper); }
.brand { display:flex; gap:8px; align-items:center; color:var(--ink); text-decoration:none; font-weight:800; font-size:24px; letter-spacing:-1px; }
.beta { font-size:9px; letter-spacing:1.4px; font-weight:650; align-self:center; margin-left:4px; }
.coverage { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); }
.coverage:before { content:''; width:6px; height:6px; border-radius:50%; background:#468461; }
main { display:grid; grid-template-columns:390px minmax(0,1fr); height:calc(100dvh - 68px); min-height:520px; }
.panel { padding:32px 28px 20px; overflow-y:auto; scrollbar-width:thin; }
.eyebrow { display:block; font-size:10px; font-weight:750; letter-spacing:1.2px; text-transform:uppercase; }
h1 { font-family:Georgia,'Times New Roman',serif; font-weight:normal; font-size:42px; letter-spacing:-1.9px; line-height:1.02; margin:17px 0 13px; max-width:310px; }
.intro p { font-size:14px; line-height:1.6; color:var(--muted); margin:0 0 29px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.section-heading > label,legend { font-size:11px; font-weight:700; color:#8b9991; letter-spacing:.04em; }
.section-heading > label span,legend span { color:var(--ink); margin-left:6px; }
.text-button { color:var(--ink); background:none; border:0; font-size:12px; padding:10px 2px; text-decoration:underline; text-decoration-color:#a7b7aa; text-underline-offset:4px; min-height:44px; }
.hint { font-size:12px; color:var(--muted); line-height:1.5; margin:5px 0 12px; }
.coordinates { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.coordinates label { font-size:11px; color:var(--muted); }
.coordinates input { width:100%; padding:12px 10px; margin-top:6px; min-height:44px; border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink); font-size:14px; }
input[type=number] { appearance:textfield; -moz-appearance:textfield; }
input::-webkit-inner-spin-button { -webkit-appearance:none; }
.distance { border:0; display:flex; gap:10px; padding:0; margin:23px 0 16px; }
legend { margin-bottom:10px; }
.distance label { flex:1; position:relative; }
.distance input { position:absolute; opacity:0; }
.distance span { display:block; cursor:pointer; border:1px solid var(--line); border-radius:7px; padding:11px; text-align:center; font-size:21px; font-weight:700; background:white; }
.distance small { font-weight:500; font-size:13px; }
.distance input:checked + span { background:var(--ink); border-color:var(--ink); color:white; }
.distance input:focus-visible + span { outline:3px solid #de9f33; outline-offset:3px; }
.preferences { font-size:12px; border-bottom:1px solid var(--line); margin-bottom:17px; }
summary { cursor:pointer; padding:12px 0; min-height:44px; }
summary span { float:right; font-size:11px; color:var(--muted); }
.preferences select { display:block; width:100%; margin:7px 0 12px; padding:10px; background:white; border:1px solid var(--line); border-radius:6px; color:var(--ink); }
.checkbox { display:flex; align-items:center; gap:8px; min-height:44px; }
.checkbox input { width:17px; height:17px; accent-color:var(--ink); }
.primary,.secondary { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; padding:14px 16px; min-height:48px; border:1px solid var(--ink); border-radius:7px; background:var(--ink); color:white; font-size:13px; font-weight:650; }
.primary:hover { background:#245645; }
.primary span { font-size:20px; line-height:1; }
.secondary { background:white; color:var(--ink); justify-content:center; border-color:var(--line); }
.secondary:hover { background:#edf1eb; }
.status-row { display:flex; align-items:center; gap:10px; min-height:53px; }
#status { font-size:12px; line-height:1.5; color:var(--muted); flex:1; }
#status.error { color:#a33c28; }
#status.busy:before { content:''; display:inline-block; height:10px; width:10px; margin-right:7px; border:2px solid var(--line); border-top-color:var(--ink); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
h2 { font-size:16px; margin:0; font-weight:750; letter-spacing:-.3px; }
.choices { display:grid; gap:9px; }
.route-card { display:grid; grid-template-columns:27px 1fr auto; align-items:center; gap:9px; text-align:left; width:100%; padding:12px; min-height:72px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); }
.route-card:hover { background:#f1f4ed; }
.route-card[aria-pressed=true] { border:2px solid var(--route-color); padding:11px; background:#fffdf8; box-shadow:0 2px 10px #163d3209; }
.route-a { --route-color:var(--one); }.route-b { --route-color:var(--two); }.route-c { --route-color:var(--three); }
.route-letter { display:grid; place-items:center; width:25px; height:25px; background:var(--route-color); border-radius:50%; color:white; font-size:11px; font-weight:750; }
.route-title { font-size:13px; font-weight:700; display:block; }
.route-label { display:block; font-size:10px; color:var(--muted); margin-top:4px; line-height:1.4; }
.route-distance { font-size:19px; font-weight:750; letter-spacing:-.8px; white-space:nowrap; }
.route-distance small { font-size:10px; letter-spacing:0; font-weight:500; }
.route-detail { margin-top:16px; }
dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 10px; padding-top:14px; border-top:1px solid var(--line); }
dt { font-size:10px; color:var(--muted); }
dd { margin:5px 0 0; font-size:13px; font-weight:650; }
.route-warning { font-size:11px; line-height:1.5; color:var(--muted); }
.batch-actions { margin-top:9px; text-align:center; }
.reset { display:block; margin:8px auto; }
.panel-footer { margin-top:28px; padding-top:19px; border-top:1px solid var(--line); font-family:Georgia,serif; font-style:italic; font-size:13px; color:var(--muted); line-height:1.7; }
.panel-footer span { font-family:ui-sans-serif,system-ui,sans-serif; font-style:normal; font-size:10px; }
.panel-footer a { color:inherit; }
.map-shell { position:relative; min-width:0; }
#map { width:100%; height:100%; background:#e0e7dc; cursor:crosshair; }
.map-note { position:absolute; z-index:500; left:50%; transform:translateX(-50%); top:22px; padding:12px 17px; border-radius:30px; background:#faf9f5f5; box-shadow:0 3px 16px #183c3220; color:var(--ink); font-size:12px; display:flex; align-items:center; gap:9px; pointer-events:none; white-space:nowrap; max-width:calc(100% - 30px); }
.pin-dot { width:8px; height:8px; background:var(--accent); border-radius:50%; flex-shrink:0; }
.map-button { position:absolute; z-index:500; top:78px; left:50%; transform:translateX(-50%); border:1px solid var(--line); padding:12px; min-height:44px; border-radius:8px; background:var(--paper); color:var(--ink); font-size:12px; box-shadow:0 3px 12px #183c3210; }
.map-caption { position:absolute; z-index:500; pointer-events:none; bottom:26px; left:24px; padding:7px 10px; font:italic 13px Georgia,serif; background:#faf9f5db; border-radius:4px; color:var(--muted); }
.start-marker { width:24px; height:24px; border:4px solid white; border-radius:50%; background:var(--ink); box-shadow:0 1px 6px #0006; cursor:grab; }
.leaflet-control-attribution { font-size:10px; }
.leaflet-tooltip { font-family:inherit; }
@media(min-width:1100px) { main { grid-template-columns:410px minmax(0,1fr); }.panel { padding:34px 34px 22px; } }
@media(max-width:700px) { .topbar { height:58px; padding:0 18px; }.brand { font-size:21px; }main { display:flex; flex-direction:column; height:auto; min-height:0; }.map-shell { order:-1; height:43dvh; min-height:260px; position:sticky; top:0; z-index:600; }.panel { overflow:visible; padding:25px 22px; }.intro { display:none; }.map-caption { display:none; }.map-note { top:14px; font-size:11px; padding:10px 13px; }.map-button { top:60px; }.coordinates input { font-size:16px; }#result { scroll-margin-top:calc(max(43dvh,260px) + 15px); }.panel-footer { margin-top:20px; } }
@media(prefers-reduced-motion:reduce) { *,*:before { animation:none!important; scroll-behavior:auto!important; } }
