.navigator-page{overflow:hidden}.layout{display:flex;width:100%;height:100dvh;min-height:300px;background:#071726}.nav-sidebar{width:270px;max-width:45vw;flex:none;display:flex;flex-direction:column;background:#0b2132;border-right:1px solid #274053;z-index:4}.brand{display:flex;gap:11px;padding:18px 14px;align-items:center;min-height:74px;border-bottom:1px solid #22384b}.brand div{display:flex;flex-direction:column;gap:3px;min-width:0}.brand strong{font-size:14px;letter-spacing:.2px}.brand small{font-size:10px;color:#7894a9}.brand button{margin-left:auto}.icon-btn{border:1px solid #304b5d;color:#bed2e4;background:#163349;border-radius:9px;padding:7px 10px}.area-identity{padding:18px 16px 15px;border-bottom:1px solid #284052}.eyebrow,.sidebar-heading{font-size:10px;letter-spacing:1.3px;color:#7f9bab;font-weight:800}.area-identity h1{font-size:22px;line-height:1.15;margin:7px 0 7px;overflow-wrap:anywhere}.view-status{margin-top:12px;background:#153c46;border:1px solid #25616c;color:#91f0dc;font-size:12px;display:inline-block;padding:6px 10px;border-radius:99px}.sidebar-heading{margin:18px 14px 9px}.info-list{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 9px 18px;display:flex;flex-direction:column;gap:7px}.info-button{width:100%;min-height:43px;border-radius:10px;border:1px solid #2a475b;background:#122b3e;color:#d7e7f2;text-align:left;display:flex;align-items:center;justify-content:space-between;padding:10px 11px;gap:8px}.info-button .label{font-size:13px;font-weight:600}.info-button small{color:#81a0b1;font-size:10px}.info-button.active{background:#1a5357;border-color:#42a99c;color:#eafff9}.info-button:hover{background:#205066}.side-foot{border-top:1px solid #284052;padding:12px 11px max(12px,env(safe-area-inset-bottom));background:#0b2132}.side-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.side-action{background:#18394c;border:1px solid #36596b;border-radius:9px;padding:11px 3px;color:#d9eff6;font-size:12px;font-weight:650}.admin-link{font-size:11px;color:#8babb9;display:flex;justify-content:space-between;padding:13px 6px 1px}.viewer-shell{display:flex;flex-direction:column;flex:1;min-width:0}.topbar{min-height:63px;display:flex;align-items:center;gap:10px;padding:8px 13px;background:#0d2535;border-bottom:1px solid #274358}.topbar-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.topbar-title>span{font-weight:750;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-title small{font-size:10px;color:#849eae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolstrip{display:flex;gap:6px;flex-wrap:nowrap}.toolstrip button{background:#1c394e;border:1px solid #375469;color:#daedf7;border-radius:9px;min-width:36px;min-height:37px;padding:4px 9px;font-size:14px;font-weight:700}.toolstrip button:hover{background:#2b5667}.toolstrip button span{font-size:11px}.canvas-wrap{position:relative;flex:1;min-height:0;overflow:hidden;background:#050608}.canvas-wrap canvas{position:absolute;inset:0}.empty-map{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at center,#f0f3f4,#bfcad0);color:#3c5a6b;padding:30px;pointer-events:none}.empty-map[hidden]{display:none}.empty-map h2{font-size:19px}.empty-map p{max-width:370px;font-size:13px;line-height:1.65}.empty-icon{font-size:68px;color:#72909d}.map-label{position:absolute;top:12px;left:14px;color:#19425a;background:#ffffffd9;border:1px solid #b5cdd6;border-radius:7px;font-size:11px;padding:7px 9px;pointer-events:none;max-width:60%}.map-help{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#14344be0;color:#e7f3f8;font-size:11px;padding:8px 12px;border-radius:20px;white-space:nowrap;pointer-events:none;max-width:95%;overflow:hidden;text-overflow:ellipsis}.floating-notice{position:absolute;top:60px;left:50%;transform:translateX(-50%);padding:10px 15px;border-radius:9px;background:#ffe5b0;color:#6e4c1c;font-size:12px;font-weight:650;box-shadow:0 4px 20px #0002;pointer-events:none;max-width:85%;text-align:center}.floating-notice[hidden]{display:none}.mobile-menu,.mobile-hide{display:none}
@media(max-width:850px){.nav-sidebar{width:215px}.brand{padding:12px 10px}.brand strong{font-size:12px}.area-identity{padding:13px 10px}.area-identity h1{font-size:18px}.toolstrip{gap:3px}.toolstrip button{min-width:32px;padding:5px}.toolstrip button span{display:none}.topbar{padding:6px 7px;min-height:57px}.topbar-title small{display:none}}
@media(max-width:620px){
 .nav-sidebar{width:136px;max-width:none;position:relative;left:auto;top:auto;bottom:auto;box-shadow:none;transform:none;transition:none}
 .layout.menu-open .nav-sidebar{display:none}
 .mobile-menu,.mobile-hide{display:block}
 .brand{min-height:55px;padding:8px 5px;gap:5px}.brand-mark{width:26px;height:26px;font-size:16px}
 .brand strong{font-size:10px;line-height:1.15}.brand small{display:none}.brand .icon-btn{padding:2px 4px;font-size:11px}
 .area-identity{padding:10px 7px}.area-identity h1{font-size:14px}.area-identity .address{font-size:9px}
 .eyebrow,.sidebar-heading{letter-spacing:.3px;font-size:9px}.sidebar-heading{margin:11px 6px 8px}
 .view-status{font-size:10px;margin-top:8px;padding:4px 6px}.info-list{padding:0 5px 10px;gap:5px}
 .info-button{min-height:37px;padding:7px 6px;gap:3px}.info-button .label{font-size:11px}.info-button small{font-size:8px;max-width:34px;overflow:hidden;text-overflow:ellipsis}
 .side-foot{padding:7px 5px max(8px,env(safe-area-inset-bottom))}.side-controls{gap:3px}.side-action{font-size:10px;padding:7px 2px}.admin-link{font-size:10px;padding:7px 2px 0}
 .topbar-title>span{font-size:11px}.toolstrip button{font-size:12px;min-width:27px;min-height:33px;padding:3px}.topbar{gap:4px}
 .map-help{font-size:9px;bottom:8px;padding:6px 8px}.map-label{top:7px;left:7px;max-width:85%;font-size:9px;padding:4px}
}@media(max-width:620px){
 .topbar{flex-wrap:wrap;justify-content:space-between;padding:5px;row-gap:4px}
 .topbar-title{min-width:70px}
 .toolstrip{width:100%;justify-content:space-between;gap:2px}
 .toolstrip button{flex:1;min-width:21px;padding:3px 1px;font-size:12px}
}

/* compact one-line title: more room for the drawing buttons */
.nav-sidebar .brand{min-height:0;padding:9px 12px;gap:6px}.nav-sidebar .brand .brand-name{display:block;flex:1;min-width:0;font-size:12.5px;font-weight:700;letter-spacing:.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e6f2f8}.brand-name span{font-weight:500;font-size:10.5px;color:#7894a9;margin-left:2px}
@media(max-width:850px){.brand-name{font-size:11px}.brand-name span{font-size:9.5px}}

/* ===== Side menu: always on the LEFT on every device, and ALL buttons always fit (no scroll bar) =====
   The buttons share the menu height equally (JS sets --bh/--fs from the real height); long names wrap to 2 lines. */
.info-list{overflow:hidden!important;flex:1;min-height:0;gap:var(--gap,6px);padding-bottom:max(8px,env(safe-area-inset-bottom))}
.info-button{flex:0 0 auto;height:var(--bh,43px);min-height:0!important;padding-top:0!important;padding-bottom:0!important}
.info-button .label{font-size:var(--fs,13px)!important;line-height:1.12;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.info-button small{font-size:var(--fss,10px)!important;flex:none}
.info-button.nofile{opacity:.6;border-style:dashed}
@media(max-width:620px),(pointer:coarse) and (max-height:500px){
 /* phones: the menu is ONE slim row of buttons at the bottom (swipe sideways) - the map gets the whole screen */
 .layout{flex-direction:column}
 .viewer-shell{order:1;flex:1;min-height:0;width:100%}
 .nav-sidebar{order:2;width:100%!important;max-width:none;height:auto;flex:none;flex-direction:row;align-items:center;border-right:0;border-top:1px solid #274053;padding-bottom:env(safe-area-inset-bottom)}
 .nav-sidebar .brand,.nav-sidebar .sidebar-heading{display:none!important}
 .info-list{flex:1;min-width:0;width:auto!important;flex-direction:row;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;padding:5px 18px 5px 5px!important;gap:5px!important;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent)}
 .info-list::-webkit-scrollbar{display:none}
 .info-button{width:auto!important;flex:none!important;height:58px!important;min-width:76px;max-width:128px;padding:0 12px!important;border-radius:14px;white-space:normal;justify-content:center;text-align:center}
 .info-button .label{font-size:12.5px!important;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .info-list{padding-top:7px!important;padding-bottom:max(7px,env(safe-area-inset-bottom))!important;gap:7px!important}
 .info-button small{display:none}
 .layout.menu-open .nav-sidebar{display:none}          /* ☰ hides the strip for a completely full-screen map */
 .mobile-menu{display:block}.mobile-hide{display:none}
 .topbar{flex-wrap:nowrap!important;row-gap:0!important}
 .topbar-title{flex:1;min-width:0}
 .toolstrip{width:auto!important;flex:none!important;justify-content:flex-end}
 .toolstrip button{flex:none!important}
 #rotateLeft{display:none}
}
@media(max-width:420px){.toolstrip button{min-width:25px;padding:2px 3px}#rotateRight{display:none}}

/* compact top bar: same height as the side-menu title, buttons scale with the device */
.topbar{min-height:0!important;height:var(--tb,38px);padding:0 8px!important;gap:6px!important}
.brand{height:var(--tb,38px);box-sizing:border-box}
.toolstrip{gap:4px!important}
.toolstrip button{min-height:0!important;height:calc(var(--tb,38px) - 10px);min-width:calc(var(--tb,38px) - 8px)!important;padding:0 8px!important;font-size:13px!important;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}
.topbar .icon-btn{height:calc(var(--tb,38px) - 10px);padding:0 8px!important;align-items:center}
.topbar-title>span{font-size:14px}
:root{--tb:40px}
@media(max-width:850px){:root{--tb:36px}.topbar-title>span{font-size:12px}}
@media(max-width:620px),(pointer:coarse) and (max-height:500px){:root{--tb:34px}.topbar .mobile-menu{display:inline-flex}.nav-sidebar .brand{padding:3px 6px!important;overflow:hidden}.nav-sidebar .brand .brand-name{font-size:8.5px!important;line-height:1.1;max-height:2.25em;overflow:hidden}.brand-name span{font-size:7.5px!important}.toolstrip button{padding:0 5px!important;min-width:26px!important;font-size:12px!important}.topbar-title>span{font-size:11px}}

/* computers/tablets: the side menu is only as wide as its one-line title; buttons never widen it */
@media not all and (max-width:620px){
 .nav-sidebar{width:auto!important;max-width:40vw}
 .nav-sidebar .brand .brand-name{white-space:nowrap}
 .info-list{width:0;min-width:100%}
 .info-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
}
@media (pointer:coarse) and (max-height:500px){.nav-sidebar{width:100%!important;max-width:none}.info-list{width:auto;min-width:0}}

/* area search: floating pill over the map, results drop down under it */
.map-search{position:absolute;z-index:6;top:10px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 24px));display:flex;align-items:center;height:40px;border-radius:12px;
 background:rgba(9,22,36,.86);border:1px solid rgba(255,255,255,.16);box-shadow:0 8px 28px rgba(0,0,0,.35);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#dcebf4}
.map-search:focus-within{border-color:#46c5b9;box-shadow:0 0 0 3px rgba(70,197,185,.22),0 8px 28px rgba(0,0,0,.35)}
.ms-icon{display:grid;place-items:center;width:38px;flex:none;color:#8fb3c4}
.map-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#fff;font-size:15px;padding:0 4px 0 0}
.map-search input::placeholder{color:#8ea8b8}
.map-search input::-webkit-search-cancel-button{display:none}
.ms-clear{flex:none;width:36px;height:100%;border:0;background:transparent;color:#9fb6c6;font-size:14px;cursor:pointer}
.ms-clear[hidden]{display:none}
.ms-list{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:min(60vh,420px);overflow-y:auto;border-radius:12px;background:rgba(9,22,36,.96);border:1px solid rgba(255,255,255,.14);box-shadow:0 16px 40px rgba(0,0,0,.45);padding:5px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.ms-list[hidden]{display:none}
.ms-item{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;border:0;background:transparent;color:#eaf4fa;padding:9px 11px;border-radius:9px;cursor:pointer}
.ms-item b{font-size:14px;font-weight:650}.ms-item b mark{background:none;color:#5eead4}
.ms-item small{font-size:11.5px;color:#8ea8b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-item:hover,.ms-item.on{background:rgba(70,197,185,.16)}
.ms-empty{padding:12px;color:#9fb6c6;font-size:13px}
@media(max-width:620px),(pointer:coarse) and (max-height:500px){.map-search{top:8px;height:42px}.map-search input{font-size:16px}.ms-item{padding:11px 12px}}

/* sub-menus: a group button opens its sub-buttons right below it */
.info-button.group{background:linear-gradient(180deg,#14324a,#0f2638);border-color:#2f5873}
.info-button.group .label{font-weight:700;letter-spacing:.02em}
.info-button.group.open{border-color:#46c5b9;box-shadow:inset 3px 0 0 #46c5b9}
.info-button.group.has-active:not(.open){border-color:#ffb020}
.info-button.sub{margin-left:14px;width:calc(100% - 14px)!important;border-left:3px solid #46c5b9;background:#0c2131}
.info-button.sub .label{font-weight:500}
@media(max-width:620px),(pointer:coarse) and (max-height:500px){
 .info-button.sub{margin-left:0;width:auto!important;border-left:0;border-top:3px solid #46c5b9;border-radius:10px}
 .info-button.group.open{box-shadow:inset 0 -3px 0 #46c5b9}
}
.info-button.group.active,.info-button.sub.active{background:#1a5357;border-color:#42a99c;color:#eafff9}

/* a discipline button with sub-buttons: the arrow on the right opens its drop-down */
.info-button.has-sub{position:relative;padding-right:46px!important}
.info-button.has-sub .caret{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:calc(100% - 10px);max-height:34px;display:grid;place-items:center;border-radius:8px;background:rgba(70,197,185,.18);border:1px solid rgba(70,197,185,.5);color:#bff7ee;font-size:14px;cursor:pointer}
.info-button.has-sub .caret:hover{background:rgba(70,197,185,.32)}
.info-button.has-sub.open .caret{background:#46c5b9;color:#082534}
@media(max-width:620px),(pointer:coarse) and (max-height:500px){.info-button.has-sub{padding-right:40px!important}.info-button.has-sub .caret{width:30px;right:4px}}

.map-loading{white-space:nowrap;position:absolute;z-index:7;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:9px 16px;border-radius:99px;background:rgba(9,22,36,.9);border:1px solid rgba(70,197,185,.5);color:#dff7f2;font-size:13.5px;box-shadow:0 8px 26px rgba(0,0,0,.35);pointer-events:none}
.map-loading[hidden]{display:none}.map-loading b{color:#5eead4;font-weight:700}
.ml-spin{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(94,234,212,.25);border-top-color:#5eead4;animation:mlspin .8s linear infinite}
@keyframes mlspin{to{transform:rotate(360deg)}}

/* phones: sub-buttons pop up above their button */
.sub-pop{position:fixed;z-index:30;display:flex;flex-direction:column;gap:6px;min-width:170px;max-width:min(260px,calc(100vw - 16px));max-height:55vh;overflow-y:auto;padding:8px;border-radius:14px;background:rgba(9,22,36,.97);border:1px solid rgba(70,197,185,.55);box-shadow:0 -10px 30px rgba(0,0,0,.45);animation:popup .16s ease-out}
.sub-pop::after{content:'';position:absolute}
.sub-pop-item{text-align:left;min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid #2c4659;background:#10293c;color:#eaf4fa;font-size:14px;font-weight:600}
.sub-pop-item.active{background:#1a5357;border-color:#42a99c;color:#eafff9}
.sub-pop-item.nofile{opacity:.6;border-style:dashed}
@keyframes popup{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
