@media(max-width:900px){
 body.map-layout{height:100dvh;min-height:0;overflow:hidden}
 .map-layout .topbar{height:64px;min-height:64px;padding:8px 12px;gap:8px}
 .map-layout .brand{min-width:0;gap:8px}
 .map-layout .brand .radar{width:36px;height:36px}
 .map-layout .brand strong{font-size:13px;letter-spacing:.025em}
 .map-layout nav{gap:6px;flex:none}
 .map-layout nav a{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:12px;padding:8px}
 .map-layout .layout{height:calc(100dvh - 124px - env(safe-area-inset-bottom,0px));min-height:0}
 .map-layout .search-wrap{left:12px;top:12px;width:calc(100% - 24px);max-width:none;min-height:48px;border-radius:12px}
 .map-layout .search-wrap input{font-size:16px;min-width:0;min-height:48px;padding:10px 2px}
 .map-layout #clear-search{min-width:44px;min-height:44px}
 .map-layout #search-results{max-height:min(45dvh,320px);overflow:auto}
 .map-layout #search-results button{min-height:48px;font-size:16px;padding:12px}
 .map-layout .map-top{left:12px;top:70px;max-width:calc(100% - 24px)}
 .map-layout .map-top h1{display:none}
 .map-layout .preview-badge{display:inline-block;font-size:11px;line-height:1.4;padding:4px 7px}
 .map-layout .selection-chip{top:108px;left:12px;right:auto;max-width:calc(100% - 84px);display:flex;align-items:flex-start;flex-direction:column;gap:3px;padding:8px 10px!important;font-size:14px;background:#0a1c2de8;border-radius:10px;pointer-events:none}
 .map-layout .selection-status{font-size:12px;white-space:normal}
 .map-layout .map-controls{right:12px;top:108px;gap:8px}
 .map-layout .map-controls button{width:44px;height:44px;font-size:25px;border-radius:11px}
 .map-layout .legend{bottom:12px;left:12px;max-width:calc(100% - 80px);width:290px;padding:10px 12px;font-size:12px}
 .map-layout #legend-toggle{min-height:44px;font-size:13px}
 .map-layout #legend-items{gap:10px 12px;padding-top:10px}
 .map-layout .legend .status-dot{width:9px;height:9px;flex:none}
 .map-layout .sidebar,.map-layout.panel-open .sidebar{left:0;right:0;top:auto;bottom:0;width:100%;max-width:none;height:min(52dvh,380px);max-height:calc(100% - 74px);border:1px solid #476276;border-bottom:0;border-radius:18px 18px 0 0;background:#0b1e2efa;box-shadow:0 -12px 36px #0006;overscroll-behavior:contain;scrollbar-width:thin}
 .map-layout.panel-hidden .sidebar{display:none}
 .map-layout .feed{padding:14px 16px 20px}
 .map-layout .feed-title{position:sticky;top:-14px;background:#0b1e2efa;z-index:1;padding-bottom:8px;gap:12px}
 .map-layout .feed-title h2{font-size:17px}
 .map-layout #feed-close{width:44px;height:44px;flex:none;font-size:26px}
 .map-layout .feed-connection{font-size:14px;line-height:1.5}
 .map-layout .feed-empty,.map-layout .alert-message p{font-size:16px;line-height:1.6}
 .map-layout .alert-message h3{font-size:17px}
 .map-layout .alert-message a,.map-layout .alert-message time{font-size:14px}
 .map-layout .alert-message a{padding:6px 0;overflow-wrap:anywhere}
 .map-layout footer{position:fixed;bottom:0;left:0;right:0;height:calc(60px + env(safe-area-inset-bottom,0px));padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));display:flex;background:#0a1727;border-top:1px solid #294353;z-index:8}
 .map-layout footer>span{display:none}
 .map-layout footer button{min-height:44px;width:calc(50% - 6px);font-size:14px;border:1px solid #3c5b70;border-radius:11px;background:#102738;color:#d5efff}
 .map-layout #panel-toggle{position:fixed;bottom:calc(8px + env(safe-area-inset-bottom,0px));right:12px;z-index:10;width:calc(50% - 18px);min-height:44px;padding:10px 8px;font-size:14px;border-radius:11px}
 .map-layout .attribution{right:8px;bottom:90px;max-width:calc(100% - 80px);font-size:9px}
 .map-layout .map-note{right:8px;bottom:108px;font-size:10px}
 .map-layout dialog{width:calc(100% - 24px);max-height:calc(100dvh - 48px);padding:24px 20px;overflow:auto;overscroll-behavior:contain}
 .map-layout dialog p{font-size:16px;line-height:1.6}
 .map-layout .dialog-close{min-width:44px;min-height:44px}
}
@media(max-width:359px){.map-layout .brand strong{font-size:12px}.map-layout .brand .radar{width:30px;height:30px}.map-layout .topbar{padding-left:8px;padding-right:8px}.map-layout nav a{padding:6px;font-size:11px}}
@media(max-width:900px) and (max-height:500px){
 .map-layout .topbar{height:56px;min-height:56px}
 .map-layout .layout{height:calc(100dvh - 116px - env(safe-area-inset-bottom,0px))}
 .map-layout .search-wrap{top:8px;width:calc(100% - 132px)}
 .map-layout .map-top,.map-layout .map-note,.map-layout .attribution{display:none}
 .map-layout .selection-chip{top:68px;max-width:calc(100% - 144px)}
 .map-layout .map-controls{top:8px;display:grid;grid-template-columns:44px 44px;gap:8px}
 .map-layout .sidebar,.map-layout.panel-open .sidebar{max-height:calc(100% - 62px)}
}
