/* One compact planning surface for both kinds of walk. */
#planner-title:focus{outline:none}
.planner-mode-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;position:relative;z-index:30}
.walk-mode-menu,.map-walk-actions,.map-route-chooser,.route-preview-card,.weather-timeline,#refresh-weather{--mode-surface:#e4eee8;--mode-hover:#d6e5da;--mode-ink:#214f40;--mode-border:#64846e}
.walk-mode-menu{position:relative;min-width:0;flex:1}
[data-theme=dark] .walk-mode-menu,[data-theme=dark] .map-walk-actions,[data-theme=dark] .map-route-chooser,[data-theme=dark] .route-preview-card,[data-theme=dark] .weather-timeline,[data-theme=dark] #refresh-weather{--mode-surface:#202c30;--mode-hover:#2c3c40;--mode-ink:#f0f5f2;--mode-border:#6d8a83}
.walk-mode-menu summary{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;min-height:44px;padding:8px 12px;list-style:none;cursor:pointer;border:1px solid var(--mode-border);border-radius:8px;background:var(--mode-surface);color:var(--mode-ink);font:inherit;font-size:1rem;font-weight:650;line-height:1.4}
.walk-mode-menu summary:hover{background:var(--mode-hover)}
.walk-mode-menu summary::-webkit-details-marker{display:none}
.walk-mode-menu svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.walk-mode-circular-icon{display:none}
[data-walk-mode=circular] .walk-mode-destination-icon{display:none}
[data-walk-mode=circular] .walk-mode-circular-icon{display:block}
.walk-mode-menu summary .walk-mode-chevron{width:18px;height:18px}
.walk-mode-menu[open] summary .walk-mode-chevron,.search-button[aria-expanded=true] svg{transform:rotate(180deg)}
.walk-mode-options{position:absolute;top:100%;left:0;width:min(310px,calc(100vw - 32px));padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 28px #12312726}
.walk-mode-options fieldset{border:0;margin:0;padding:0 0 6px}
.walk-mode-options label,.walk-mode-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:1rem;line-height:1.4;text-align:left;cursor:pointer}
.walk-mode-options label:has(input:checked){background:var(--line);font-weight:650}
.walk-mode-options label:hover,.walk-mode-options button:hover{background:var(--line)}
.walk-mode-options input{width:17px;height:17px;margin:0;accent-color:var(--green);flex:none}
.walk-mode-options #planner-accessibility{border-top:1px solid var(--line);border-radius:0}
.settings-count{margin-left:auto;font-size:.875rem;color:var(--green)}
.planner-mode-row .new-walk{display:grid;place-items:center;position:static;transform:none;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink)}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.places{--place-inset:8px;display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:repeat(2,1fr);padding:0}
.places>.place-field:first-child,.places>.place-field:last-child{grid-column:1;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:5px var(--place-inset);min-height:0}
.places>.place-field:first-child{grid-row:1}
.places>.place-field:last-child{grid-row:2}
.places .place-input label{position:static;font-size:.875rem;line-height:1.3;margin:0 0 3px}
.places .place-input{min-width:0}
.places .input-line{min-height:44px}
/* Keep the endpoint focus ring inside its input, clear of the label above. */
.places .input-line input{padding-inline:6px;border-radius:4px;outline-offset:-2px}
.places .input-line input:focus{outline:2px solid var(--green);outline-offset:-2px}
.places .place-symbol{width:24px;height:24px;align-self:end;margin-bottom:calc((var(--place-control-height) - 24px)/2)}
.places::before{left:20px;top:calc(25% + .56875rem);bottom:calc(25% - .56875rem)}
.places::after{left:40px;right:44px}
.places .swap{grid-column:2;grid-row:1 / -1;position:relative;inset:auto;justify-self:center;align-self:center;transform:none;width:40px;min-width:40px;height:44px;min-height:44px;border:0;border-radius:8px;background:var(--place-surface)}
.places .swap:hover{background:var(--line)}
body[data-walk-mode=circular] .places{grid-template-columns:1fr;grid-template-rows:1fr}
body[data-walk-mode=circular] .places::before,body[data-walk-mode=circular] .places::after{display:none}
/* Missing endpoints are explained beside the field, above its open choices. */
.places>.place-field{scroll-margin-top:calc(var(--phone-header,0px) + env(safe-area-inset-top) + 12px);scroll-margin-bottom:calc(var(--phone-nav,0px) + env(safe-area-inset-bottom) + 80px)}
.places>.place-field.place-needs-selection{--endpoint-required-edge:#b47709;border-radius:9px;box-shadow:inset 0 0 0 2px var(--endpoint-required-edge)}
.places .place-required{display:flex;align-items:flex-start;gap:7px;margin:3px 0 5px;font-size:.875rem;line-height:1.4;color:var(--caution-ink);overflow-wrap:anywhere}
.place-required>span:first-child{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;margin-top:1px;border:1.5px solid currentColor;border-radius:50%;font-weight:750;line-height:1}
.places .place-needs-selection .place-symbol{align-self:start;margin-top:calc(1.1375rem + (var(--place-control-height) - 24px)/2);margin-bottom:0}
[data-theme=dark] .places>.place-field.place-needs-selection{--endpoint-required-edge:#e9b957}
.large-text .places .place-required{font-size:1rem}
.large-text .places .place-needs-selection .place-symbol{margin-top:calc(1.3rem + (var(--place-control-height) - 24px)/2)}
.circular-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:12px 0}
.circular-controls label{font-size:1rem;font-weight:600}
.circular-controls output{color:var(--green);font-size:1rem;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.circular-controls input[type=range]{grid-column:1 / -1;width:100%;min-width:0;height:44px;margin:0;accent-color:var(--green);cursor:pointer}
.circular-time-limits{grid-column:1 / -1;display:flex;justify-content:space-between;gap:12px;margin-top:-8px;color:var(--muted);font-size:.875rem;line-height:1.4}
.circular-controls p{grid-column:1 / -1;margin:0;font-size:.875rem;line-height:1.45;color:var(--muted)}
.circular-path-options{margin:8px 0 0;padding:0;border:0;min-width:0}
.circular-path-options label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:1rem;line-height:1.4;cursor:pointer}
.circular-path-options input{width:18px;height:18px;flex:none;margin:0;accent-color:var(--green)}
.circular-path-options input:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.lighting-option-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:4px}
.lighting-option-row label{min-width:0}
.lighting-info-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--green);font:inherit;font-size:1.35rem;cursor:pointer;touch-action:manipulation}
.lighting-info-button:hover{background:var(--line)}
.lighting-info-button>svg{display:block;width:22px;height:22px;stroke-width:2;pointer-events:none}
.lighting-info-button:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.circular-lighting-help{margin:2px 0 8px 28px;font-size:.875rem;line-height:1.45;color:var(--muted)}
.lighting-help-dialog{width:min(29rem,calc(100% - 24px));max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 20px 70px #10251d55;overflow:auto;overscroll-behavior:contain}
.lighting-help-dialog::backdrop{background:#10251dbb}
body.lighting-help-open{overflow:hidden}
.lighting-help-dialog .dialog-header{margin-bottom:14px}
.lighting-help-dialog p{font-size:1rem;line-height:1.6;margin:0;overflow-wrap:anywhere}
.large-text .lighting-help-dialog p{font-size:1.125rem}
.large-text .circular-path-options label{font-size:1.125rem}
.preference{padding-top:14px;margin-bottom:12px}
.detour-question{margin-bottom:8px}
#detour-help{margin:8px 0 0}
#plan{justify-content:center;min-height:48px}
#plan>span:only-child{font-size:1rem;line-height:1.4;color:inherit}
.circular-choices{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.circular-choices fieldset{border:0;padding:0;margin:0;min-width:0}
.circular-choices legend{font-size:1.25rem;font-weight:650;margin:0 0 6px}
.circular-choice-note{font-size:.875rem;line-height:1.45;color:var(--muted);margin:0 0 12px}
.circular-choice{display:flex;align-items:flex-start;gap:10px;padding:12px;margin:0 0 8px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.circular-choice:has(input:checked){border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.circular-choice input{margin:4px 0 0;accent-color:var(--green);width:18px;height:18px;flex:none}
.circular-choice-content{display:grid;gap:4px;flex:1;min-width:0;font-size:1rem;line-height:1.4}
.circular-choice-heading{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.circular-choice-detail{font-size:.875rem;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.circular-choice-metrics{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;font-variant-numeric:tabular-nums}
.circular-choices .primary{justify-content:center;margin-top:12px}
.walk-mode-menu summary:focus-visible,.planner-mode-row .new-walk:focus-visible,.circular-controls input[type=range]:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.large-text .walk-mode-menu summary,.large-text .walk-mode-options label,.large-text .walk-mode-options button,.large-text .circular-controls label,.large-text .circular-controls output,.large-text .circular-choice-content{font-size:1.125rem}
.large-text .places::before{top:calc(25% + .65rem);bottom:calc(25% - .65rem)}
body[data-phone-view=walk] #circular-choices:not([hidden]){display:block}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){body[data-phone-view=plan] #circular-choices{display:none}}
[hidden]{display:none!important}
