:root{color-scheme:dark;--bg:#07100c;--panel:#111c16;--panel2:#19251d;--text:#e9f5e9;--muted:#a0b1a5;--accent:#68ff72;--line:#31463a;--red:#fa5b61;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nav-app{min-height:100dvh;display:flex;flex-direction:column}.topbar{height:66px;padding:10px clamp(12px,3vw,28px);display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0b1510;border-bottom:1px solid var(--line);z-index:1002;flex:none}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand img{width:39px;height:39px;object-fit:contain;border-radius:11px}.brand b,.brand small{display:block}.brand b{font-size:16px;white-space:nowrap}.brand small{font-size:11px;color:var(--muted);margin-top:2px}.auth-pill{display:flex;align-items:center;gap:7px;max-width:45%;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.auth-dot{height:8px;width:8px;background:var(--accent);border-radius:50%;flex:none}main{flex:1;display:flex;min-height:0}.view{flex:1;min-width:0}.map-view{position:relative;min-height:calc(100dvh - 144px)}.map{position:absolute;inset:0;background:#14241c;z-index:0}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:10px!important}.search-wrap{position:absolute;top:14px;left:clamp(12px,3vw,28px);width:min(520px,calc(100% - 104px));z-index:950}.search-form{display:flex;align-items:stretch;min-height:47px;padding:4px;border:1px solid #52715a;border-radius:15px;background:#0d1913;box-shadow:0 5px 30px #0007}.search-form input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--text);padding:10px;font-size:14px}.search-form button{border:0;border-radius:10px;padding:0 15px;background:var(--accent);color:#051208;font-weight:800}.search-results{margin-top:6px;background:#101c16;border:1px solid var(--line);border-radius:13px;overflow:auto;max-height:260px;box-shadow:0 6px 30px #0009}.search-results button{display:block;width:100%;background:transparent;color:var(--text);border:0;border-bottom:1px solid #26372b;text-align:left;padding:12px;font-size:13px}.search-results button:last-child{border-bottom:0}.search-results button:hover{background:#1c3123}.search-results p{padding:12px;margin:0;font-size:13px;color:var(--muted)}.map-tools{position:absolute;right:15px;top:14px;z-index:900;display:grid;gap:7px}.map-tools button{width:45px;height:45px;border:1px solid #54735d;border-radius:13px;background:#0e1a14;color:var(--text);font-size:26px;font-weight:700;box-shadow:0 3px 12px #0006}.route-sheet{position:absolute;bottom:14px;left:clamp(12px,3vw,28px);right:clamp(12px,3vw,28px);z-index:900;max-width:520px;background:#101d16ef;border:1px solid #405b47;backdrop-filter:blur(15px);border-radius:18px;padding:14px 16px;box-shadow:0 8px 42px #000a}.sheet-meta{display:flex;justify-content:space-between;gap:10px;color:var(--accent);font-size:11px;font-weight:750}.sheet-meta span:last-child{color:var(--muted)}.dest-line{display:flex;justify-content:space-between;gap:10px;margin:13px 0 12px;align-items:center}.dest-line small{display:block;color:var(--muted);font-size:10px;letter-spacing:1px}.dest-line strong{display:block;font-size:17px;margin-top:3px;max-width:400px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.route-summary{display:flex;align-items:baseline;gap:15px;margin:3px 0 12px}.route-summary b{font-size:22px;color:var(--accent)}.route-summary span{font-size:14px}.route-actions,.card-actions{display:flex;gap:8px;flex-wrap:wrap}.primary,.secondary,.ghost,.emergency-call{border-radius:11px;padding:11px 13px;font-size:13px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;min-height:40px}.primary{background:var(--accent);color:#09200e;border:1px solid var(--accent)}.secondary{background:#213229;border:1px solid #516759;color:var(--text)}.ghost{border:0;background:transparent;color:var(--muted)}.emergency-call{background:var(--red);color:#160407;border:1px solid #ff8589;max-width:230px;min-height:50px;margin-bottom:10px}.route-note{font-size:10px;color:var(--muted);line-height:1.4;margin:10px 0 0}.instructions{border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-size:13px;line-height:1.5}.instructions strong{color:var(--accent)}.content-view{padding:20px clamp(14px,4vw,40px) 105px;max-width:820px;margin:0 auto;overflow:auto}.panel-heading span{font-size:11px;font-weight:900;color:var(--accent);letter-spacing:1.5px}.panel-heading h1{font-size:30px;line-height:1.15;margin:8px 0 20px}.danger-heading span{color:#ff8b8e}.panel-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:20px;margin-bottom:14px}.panel-card h2{margin:0 0 10px;font-size:19px}.panel-card p{color:var(--muted);font-size:14px;line-height:1.6}.panel-card p strong{color:var(--text)}.muted{color:var(--muted)}.sos-card{border-color:#72363b}.sos-symbol{display:grid;place-items:center;margin:4px 0 20px;width:95px;height:95px;background:#a5252e;border:8px solid #5a2025;border-radius:50%;font-size:24px}.split-heading{display:flex;justify-content:space-between}.saved-list{display:grid;gap:8px}.saved-row{display:flex;align-items:center;gap:10px;border:1px solid #34493b;border-radius:12px;padding:10px}.saved-title{flex:1;min-width:0}.saved-title strong,.saved-title small{display:block;overflow:hidden;text-overflow:ellipsis}.saved-title small{color:var(--muted);font-size:11px;margin-top:3px}.saved-row button{border:1px solid var(--line);background:#203228;color:var(--text);border-radius:9px;padding:8px;font-size:12px}.saved-row button.remove{color:#ff9da0}.setting-line{display:flex;align-items:center;gap:10px;font-size:14px}.setting-line input{width:20px;height:20px;accent-color:var(--accent)}.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:1000;height:calc(70px + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#0b150fed;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));backdrop-filter:blur(15px)}.tabbar button{background:transparent;border:0;color:var(--muted);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;font-size:11px;font-weight:750}.tabbar button.active{background:#1d3424;color:var(--accent)}.tabbar button.sos-tab{color:#ff8f93}.tab-symbol{font-size:24px;line-height:1.1}.notice{position:fixed;z-index:1400;left:50%;transform:translateX(-50%);bottom:calc(80px + env(safe-area-inset-bottom));max-width:min(90vw,460px);border-radius:12px;background:#e9f5e9;color:#0a180e;padding:11px 16px;box-shadow:0 4px 25px #000b;font-size:13px;font-weight:700}.user-position{background:#69ff76;border:3px solid white;width:17px;height:17px;border-radius:50%;box-shadow:0 0 0 7px #5bff6b44}@media(min-width:900px){.map-view{min-height:calc(100dvh - 136px)}.route-sheet{bottom:25px}.tabbar{max-width:580px;left:50%;right:auto;transform:translateX(-50%);border:1px solid var(--line);border-radius:18px 18px 0 0}}@media(max-width:520px){.topbar{height:58px}.brand small{display:none}.brand img{width:33px;height:33px}.brand b{font-size:14px}.auth-pill{max-width:35%;font-size:10px}.map-view{min-height:calc(100dvh - 128px)}.route-sheet{bottom:7px;padding:12px}.route-actions{display:grid;grid-template-columns:1.1fr .8fr .65fr}.route-actions button{padding:9px 5px;font-size:11px}.route-note{font-size:9px}.search-wrap{width:calc(100% - 86px);top:8px;left:8px}.map-tools{top:8px;right:8px;gap:5px}.map-tools button{width:37px;height:37px;font-size:22px}.sheet-meta{font-size:10px}.dest-line strong{font-size:15px}}