:root{--navy:#0f2f5b;--navy2:#1b4580;--bg:#fff;--soft:#eef3f8;--line:#cfd9e6;--tx:#13203a;--mut:#546179;--acc:#f59e0b;--gold:#d4a017;--hd:52px;--pw:380px;color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;height:100%;background:#fff;color:var(--tx);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
a{color:#0b4fb3}
:focus-visible{outline:3px solid #2a78d6;outline-offset:2px}
.hd{flex:0 0 auto;min-height:var(--hd);display:flex;align-items:center;gap:10px;padding:6px 12px;padding-top:calc(6px + env(safe-area-inset-top));background:var(--navy);color:#fff;z-index:1200}
.hd-logo{display:flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;background:#fff;border-radius:10px}
.hd-logo img{display:block;height:30px;width:auto}
.hd-title{margin:0;font-size:1rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 auto;min-width:0}
.hd-title b{color:#ffc857}
.hd-nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.hd-back{color:#fff;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
.btn{font:inherit;font-size:.9rem;font-weight:600;min-height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--tx);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.btn:hover{border-color:var(--navy)}
.btn.sm{font-size:.85rem;padding:0 12px}
.btn-guide{background:var(--acc);border-color:var(--acc);color:#1a1300}
.btn-link{background:none;border:0;color:#0b4fb3;font:inherit;text-decoration:underline;cursor:pointer;min-height:44px;padding:0 8px}
.stage{position:relative;flex:1 1 auto;min-height:0}
#map{position:absolute;top:0;left:0;bottom:0;right:var(--pw);background:#cfe0ee}
.leaflet-container{background:#cfe0ee;font:inherit}
.leaflet-control-attribution{font-size:11px!important;line-height:1.3}
.leaflet-bar a{width:44px;height:44px;line-height:44px}
.map-ui{position:absolute;top:10px;left:64px;z-index:1000;display:flex;flex-direction:column;align-items:flex-start;gap:8px;pointer-events:none;right:calc(var(--pw) + 10px)}
.map-ui>*{pointer-events:auto}
.btn-ph{box-shadow:0 1px 5px rgba(0,0,0,.25)}
.badge{background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:.85rem;box-shadow:0 1px 5px rgba(0,0,0,.2)}
.badge-warn{border-color:#b91c1c;color:#7f1111}
.badge[hidden]{display:none}
.panel{position:absolute;top:0;right:0;bottom:0;width:var(--pw);background:var(--bg);border-left:1px solid var(--line);z-index:1100;display:flex;flex-direction:column;min-height:0}
.sheet-toggle{display:none}
.panel-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
.lbl{display:block;font-size:.8rem;font-weight:600;color:var(--mut);margin:8px 0 3px;padding:0}
input[type=search],input[type=text],select{width:100%;min-height:44px;font:inherit;font-size:16px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--tx)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.grid2 select{padding-right:2px}
fieldset.lay{border:0;margin:6px 0 0;padding:0;min-width:0}
.chk{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:.9rem}
.chk input{width:22px;height:22px;margin:0;accent-color:var(--navy);flex:0 0 auto}
.sw{width:12px;height:12px;border-radius:50%;display:inline-block;flex:0 0 auto}
.sw.sq{border-radius:3px}
.sw.dash{border:2px dashed var(--navy);background:#fff}
.sw.hatch{background:repeating-linear-gradient(45deg,#9aa3b2,#9aa3b2 2px,#fff 2px,#fff 4px);border:1px dashed #6b7280;border-radius:3px}
.sw.bk{background:#111;border-radius:50%}
.sw.gold{background:#fff;border:3px solid var(--gold)}
.sw.ring{border:2px dashed #2a78d6;background:rgba(42,120,214,.12)}
.count{margin:6px 0 4px;color:var(--mut);font-size:.85rem}
.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0}
.row.nowrap{flex-wrap:nowrap}
.toast{font-size:.82rem;color:#0e7a55;font-weight:600}
.legend{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;margin:8px 0}
.lg-row{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.8rem}
.lg-i{display:inline-flex;align-items:center;gap:6px}
.lg-notes{list-style:none;margin:8px 0 0;padding:0;font-size:.78rem;color:var(--mut)}
.lg-notes li{display:flex;align-items:center;gap:8px;margin:3px 0}
.cb{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:12px;background:#64748b;color:#fff;font-weight:700;font-size:.75rem;border:2px dashed #fff;box-shadow:0 0 0 1px #64748b;flex:0 0 auto}
.site{border:1px solid var(--line);border-radius:12px;padding:0 12px;margin-bottom:12px;background:var(--soft)}
.site summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}
.site-b{padding-bottom:10px}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.seg-b{font:inherit;font-size:.85rem;min-height:44px;padding:0 10px;background:#fff;color:var(--mut);border:0;cursor:pointer}
.seg-b+.seg-b{border-left:1px solid var(--line)}
.seg-b.on{background:var(--navy);color:#fff;font-weight:700}
ul.infl{list-style:none;margin:0;padding:0}.infl li{font-size:.85rem;padding:4px 0;border-bottom:1px solid var(--line)}
#s-out h3{font-size:.85rem;margin:10px 0 4px}
#s-out .note,.note{font-size:.76rem;color:var(--mut);margin:6px 0}
.lst-h{font-size:.95rem;margin:4px 0 8px}
.lst{list-style:none;margin:0;padding:0}
.lst li{margin:0 0 4px}
.it{width:100%;display:flex;align-items:center;gap:10px;text-align:left;min-height:48px;padding:6px 10px;border-radius:10px;background:#fff;border:1px solid var(--line);color:var(--tx);font:inherit;cursor:pointer}
.it:hover,.it:focus-visible{border-color:var(--navy);background:var(--soft)}
.it .dot{flex:0 0 12px;height:12px;border-radius:50%}
.it .t{flex:1 1 auto;min-width:0;display:block}
.it .p{display:block;font-size:.9rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it .s{display:block;font-size:.76rem;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it .d{flex:0 0 auto;font-size:.78rem;font-weight:700;color:var(--navy)}
.more{width:100%;margin:6px 0}
.empty{color:var(--mut);padding:8px 2px}
.ft{flex:0 0 auto;background:#f4f6fa;border-top:1px solid var(--line);padding:5px 12px;padding-bottom:calc(5px + env(safe-area-inset-bottom));z-index:1200}
.ft p{margin:0;font-size:.72rem;color:var(--mut);line-height:1.35}
.nojs{padding:20px;max-width:640px}
.pop b{font-size:1.02rem;color:#0f2f5b}
.pop div{margin:3px 0;font-size:.86rem;color:#13203a}
.pop .w{font-size:.78rem;color:#7a4a00;background:#fff4dc;border-radius:6px;padding:3px 6px}
.pop .m{font-size:.78rem;color:#546179}
.pop a{font-weight:600}
.pop ul{margin:4px 0;padding:0;list-style:none;max-height:180px;overflow:auto}
.pop li button{background:none;border:0;color:#0b4fb3;text-decoration:underline;font:inherit;font-size:.85rem;padding:6px 0;min-height:36px;cursor:pointer;text-align:left}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#111}
.leaflet-popup-content{margin:12px 14px;max-width:260px}
.leaflet-popup-close-button{width:44px!important;height:44px!important;font-size:22px!important;line-height:44px!important;padding:0!important}
.ic-wrap{background:none!important;border:0!important}
.ic-inf{width:26px;height:26px;border-radius:50%;background:#111;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}
.ic-inf svg{width:16px;height:16px;fill:#fff}
.ic-ps{width:30px;height:30px;border-radius:50%;border:5px solid var(--gold);background:rgba(255,215,90,.35);box-shadow:0 0 0 2px #fff,0 1px 6px rgba(0,0,0,.5)}
.ic-cl{display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:700;font-size:.82rem;border:2px dashed #fff;box-shadow:0 0 0 1px rgba(0,0,0,.4),0 1px 5px rgba(0,0,0,.35)}
.ic-site{width:22px;height:22px;background:#b91c1c;border:3px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 1px 5px rgba(0,0,0,.5)}
@media (max-width:900px){:root{--pw:320px}}
@media (max-width:600px){
  :root{--sheet:min(66dvh,540px)}
  .hd{gap:4px;padding-left:6px;padding-right:6px}
  .hd-title{font-size:.9rem}
  .hd-title b{display:block;line-height:1.1}
  .hd-back span{display:none}
  .hd-back{padding:0 6px;font-size:1.3rem}
  .btn-guide{padding:0 10px;font-size:.8rem}
  #map{right:0}
  .map-ui{right:10px;left:64px}
  .panel{top:auto;left:0;right:0;width:auto;height:var(--sheet);border-left:0;border-top:1px solid var(--line);border-radius:16px 16px 0 0;transform:translateY(calc(100% - 52px));transition:transform .25s ease;box-shadow:0 -6px 20px rgba(0,0,0,.3)}
  .panel.open{transform:none}
  .sheet-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;width:100%;background:none;border:0;color:var(--tx);font:inherit;font-weight:700;cursor:pointer;flex:0 0 auto}
  .grab{width:40px;height:4px;border-radius:2px;background:var(--line)}
  .leaflet-bottom{margin-bottom:52px}
  .panel-body{padding-top:4px}
}
@media (prefers-reduced-motion:reduce){.panel{transition:none}}
