:root{--ink:#173d37;--muted:#6c7d76;--paper:#f8f9f4;--line:#dce3da;--green:#226554;--accent:#e8efc9}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ebc67;outline-offset:3px}button{border:0}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:17px;letter-spacing:2.4px;font-weight:800}.brand img{width:34px;height:34px}.brand-sub{display:block;letter-spacing:2.1px;font-weight:500;font-size:9px;margin-top:4px;color:var(--muted)}.top-actions{display:flex;gap:20px;align-items:center}.pilot-badge{font-size:10px;font-weight:700;letter-spacing:1.4px;border:1px solid #ccd7c6;padding:7px 10px;border-radius:4px;color:#648158}.quiet-button{background:transparent;color:var(--ink);font-size:13px;padding:8px}.quiet-button[aria-pressed=true]{background:var(--accent);border-radius:6px}main{height:calc(100% - 77px);display:flex}.panel{width:354px;flex:none;padding:28px 25px 20px;background:var(--paper);overflow-y:auto;scrollbar-width:thin;position:relative;z-index:2;border-right:1px solid var(--line)}.eyebrow{font-size:9px;letter-spacing:1.55px;color:var(--muted);font-weight:700}h1{font-size:29px;line-height:1.16;letter-spacing:-1.2px;margin:11px 0 12px;font-weight:650}h1 span{color:#9aaf45}.panel-heading>p{font-size:12px;color:var(--muted);line-height:1.65;margin-bottom:27px}section{padding:20px 0;border-top:1px solid var(--line)}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-label h2{margin:0;font-size:13px;font-weight:650;letter-spacing:.1px}.section-label>span{font-size:10px;color:var(--muted)}.regions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.region-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:8px;min-height:72px;padding:12px 6px 10px;color:var(--ink);text-align:center}.region-card .region-symbol{display:block;font-size:19px;margin-bottom:7px;color:#809781}.region-card strong{font-size:11px;font-weight:600}.region-card[aria-pressed=true]{border-color:var(--green);background:#eaf0df;box-shadow:inset 0 0 0 1px var(--green)}.region-card[aria-pressed=true]:after{content:'✓';position:absolute;right:6px;top:4px;font-size:10px;color:var(--green)}.region-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:var(--muted);font-size:10px;gap:8px}.text-button{padding:3px 0;color:var(--green);background:none;font-size:10px;font-weight:600;white-space:nowrap}.text-button:hover{text-decoration:underline}.layer-options{display:grid;grid-template-columns:1fr 1fr;gap:10px 6px}.layer-options label{display:flex;align-items:center;gap:8px;font-size:11px;cursor:pointer}.layer-options input{accent-color:var(--green);width:14px;height:14px;margin:0}.point-input{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 9px 8px 11px;margin:8px 0}.point-dot{height:7px;width:7px;border-radius:100%;flex:none}.start-dot{background:#4c8d5b}.end-dot{background:#c16f45}.search-wrap{position:relative;flex:1;min-width:0}.search-wrap>label{display:block;font-size:8px;font-weight:700;letter-spacing:1px;color:var(--muted);margin-bottom:5px}.search-wrap>input{width:100%;border:0;background:transparent;outline:none;color:var(--ink);font-size:12px;padding:0}.search-wrap>input::placeholder{color:#91a096}.pick-button{color:var(--green);font-size:22px;line-height:25px;background:none;padding:0 3px}.pick-button.active{background:var(--accent);border-radius:5px}.search-results{position:absolute;left:-20px;right:-32px;top:44px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 30px #173d3720;border-radius:8px;z-index:20;max-height:190px;overflow-y:auto}.search-results button{display:block;width:100%;text-align:left;padding:10px 13px;background:#fff;font-size:12px;color:var(--ink);border-bottom:1px solid #f0f2ec}.search-results button:hover,.search-results button:focus{background:#edf2e4}.search-results button small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.route-options{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:11px 0}.route-options select{border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font-size:11px;padding:6px 0;width:155px}.route-actions{display:flex;gap:7px;margin-top:12px}.primary-button{background:var(--green);color:white;font-size:12px;font-weight:600;padding:13px 14px;border-radius:7px;flex:1;display:flex;justify-content:space-between;align-items:center}.primary-button:hover:not(:disabled){background:#174d40}.primary-button span{font-size:19px;font-weight:400}.clear-button{width:40px;border:1px solid var(--line);background:#fff;color:var(--muted);font-size:23px;border-radius:7px}.route-result{background:#e9efdf;border-radius:8px;margin-top:15px;padding:14px}.route-result>div{display:flex;align-items:center;justify-content:space-between}.route-result strong{font-size:24px;font-weight:600;letter-spacing:-.8px}.route-result p{font-size:10px;line-height:1.5;margin:9px 0 0;color:#58705c}.route-result summary{font-size:10px;color:var(--green);cursor:pointer;margin-top:10px}.pilot-note{border-top:1px solid var(--line);padding-top:18px;margin-top:1px}.pilot-note strong{font-size:10px}.pilot-note p{font-size:10px;line-height:1.6;color:var(--muted);margin:6px 0 20px}.panel-footer{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);gap:8px}.panel-footer a{text-decoration:none}.map-stage{position:relative;flex:1;min-width:0;background:#e5e9df;overflow:hidden}#map{position:absolute;inset:0}.map-status{position:absolute;top:20px;left:22px;display:flex;align-items:center;gap:8px;background:#ffffffef;box-shadow:0 2px 14px #173d3710;border:1px solid #ffffff;border-radius:7px;padding:10px 13px;max-width:calc(100% - 84px);font-size:11px;z-index:1}.status-dot{width:6px;height:6px;border-radius:50%;background:#729363;flex:none}.map-status.error .status-dot{background:#b34a3d}.map-status.error{color:#8b362d}.legend{position:absolute;bottom:33px;left:22px;display:flex;align-items:center;gap:7px;background:#ffffffd9;padding:9px 12px;border-radius:5px;font-size:9px;color:#53665b;pointer-events:none}.legend span{height:2px;width:17px;margin-left:9px}.legend span:first-child{margin-left:0}.legend-road{background:#655943}.legend-river{background:#639eae}.legend-contour{background:#b4a17d}.pick-hint{position:absolute;bottom:82px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 20px;border-radius:8px;font-size:12px;white-space:nowrap;box-shadow:0 8px 25px #173d3733}.maplibregl-ctrl-group{border-radius:7px!important;box-shadow:0 1px 8px #173d3720!important}.maplibregl-ctrl-attrib{font-size:9px!important}.maplibregl-ctrl-top-right{top:10px;right:10px}.maplibregl-marker.marker-pin{width:18px;height:18px;border:3px solid #fff;box-shadow:0 2px 7px #0005;border-radius:50%;background:#4c8d5b}.maplibregl-marker.marker-pin.end{background:#c16f45}.watch-mode .map-stage{display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at 50% 48%,#e8ebdf,#cfd8cb)}.watch-mode #map{width:440px;height:440px;max-width:85vw;max-height:85vw;inset:auto;border-radius:50%;border:12px solid #202b28;box-shadow:0 18px 55px #263d3633;overflow:hidden}.watch-mode .legend{display:none}.watch-caption{position:absolute;bottom:45px;width:100%;text-align:center;padding:0 20px;color:#53665b;font-size:11px}.watch-mode .map-status{left:50%;transform:translateX(-50%);top:22px;max-width:90%;white-space:nowrap}.watch-mode .maplibregl-ctrl-top-right,.watch-mode .maplibregl-ctrl-bottom-right,.watch-mode .maplibregl-ctrl-bottom-left{display:none}.watch-mode .maplibregl-canvas-container{border-radius:50%}.mobile-only{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}
@media(max-width:850px){.topbar{padding:0 17px;height:64px}.brand{font-size:14px}.brand img{width:29px}.top-actions{gap:9px}.pilot-badge{display:none}main{height:calc(100% - 64px)}.panel{width:315px;padding:24px 20px}.map-status{left:14px;top:15px}.legend{left:14px}.watch-mode #map{width:360px;height:360px}.watch-caption{bottom:25px}}
@media(max-width:620px){.topbar{height:61px}.brand-sub{font-size:8px}.quiet-button{font-size:11px;padding:7px}.quiet-button>span{display:none}.mobile-only{display:block}main{height:calc(100% - 61px);position:relative}.panel{position:absolute;left:0;bottom:0;width:100%;height:49%;max-height:520px;border:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -8px 24px #173d3717;padding:18px 20px;transition:transform .2s}.panel-heading{display:none}.panel section:first-of-type{border-top:0;padding-top:0}.panel.collapsed{transform:translateY(100%)}.map-stage{height:100%;width:100%}.map-status{max-width:calc(100% - 75px);font-size:10px}.legend{bottom:52%;font-size:8px;padding:7px}.panel.collapsed+.map-stage .legend{bottom:33px}.watch-mode .panel{height:38%}.watch-mode #map{width:310px;height:310px;transform:translateY(-15%);border-width:10px}.watch-caption{bottom:40%;font-size:9px}.watch-mode .map-status{top:12px}.panel-footer{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
