/* Map canvas with independently controlled desks; scoped away from orbital page. */
.command-ui{--bg:#060c12;--panel:#0c1621;--panel2:#142230;--border:#293d4d;--muted:#a3b4c2;--text:#edf3f7;--gold:#e5cc8a;--teal:#e5cc8a;--left:78px;--desk:346px;height:100dvh;overflow:hidden;font-size:13px}
.command-ui .topbar{height:68px;position:relative;z-index:1200;background:#07101a;border-color:#34404b;padding:0 20px;gap:24px}.command-ui .brand{min-width:208px;font-size:21px;letter-spacing:2px}.command-ui .brand-mark{background:none;border:0;box-shadow:none;width:34px;height:34px}.brand-mark svg{width:34px;height:34px}.command-ui .brand small{font-size:8px;color:#adbdc9}.command-ui .views{border:1px solid #2b3e50;border-radius:8px;padding:3px;background:#0c1722}.command-ui .views button{font-size:12px;padding:8px 14px;border-radius:5px}.command-ui .views button.active{background:#e5cc8a;color:#171e23}.command-ui .header-end{gap:13px}.command-ui .header-end time{display:block;font:11px ui-monospace,monospace}.command-ui .header-end #clock{color:#8fabbf}.command-ui .command-stat{display:block;font-size:10px}.command-ui .live-pill{font-size:10px;padding:8px 10px;border-radius:5px;background:#101e2b;border-color:#304356}.command-ui .mobile-menu{display:none}.command-ui .app-shell{display:block;height:calc(100dvh - 100px);position:relative;min-height:0}.command-ui .workspace{position:absolute;inset:0;display:block;height:auto;min-height:0}.command-ui .map-container{position:absolute;inset:0;min-height:0;background:#080f18}.command-ui #map{background:#0b1520}.command-ui #map:not(.light-map) .leaflet-tile-pane{filter:invert(1) grayscale(1) sepia(.4) saturate(1.2) hue-rotate(165deg) brightness(.85) contrast(.95)}.command-ui .map-topline{position:absolute;top:14px;left:var(--left);right:calc(var(--desk) + 36px);height:auto;min-height:52px;z-index:810;padding:10px 12px;gap:12px;border:1px solid #344855;border-radius:9px;background:#0b1723f5;box-shadow:0 5px 25px #0004;flex-wrap:wrap}.command-ui .map-topline strong{font-size:12px;letter-spacing:0;line-height:1.5}.command-ui .map-topline .eyebrow{font-size:8px}.command-ui .map-actions{margin-left:auto;align-items:center}.command-ui .map-actions button{font-size:11px;padding:8px 10px}.command-ui .map-actions #focus-rescue{display:none}.command-ui .map-view-switch{padding:2px;gap:2px;border:0;background:#152433;border-radius:6px}.command-ui .map-view-switch button{border-radius:5px;border:0;font-size:11px;padding:8px 9px;white-space:nowrap}.command-ui .map-view-switch button.active{background:#e5cc8a;color:#131c23}.command-ui .satellite-link{display:none}.command-ui .map-command-strip{position:absolute;left:var(--left);bottom:130px;z-index:850;height:auto;min-height:0;padding:6px;background:#0b1723ef;border:1px solid #324857;border-radius:8px;box-shadow:0 5px 20px #0004;gap:3px;flex-wrap:wrap}.command-ui .map-command-strip button{font:11px system-ui;padding:8px 11px;border:0;background:transparent;color:#c5d5df}.command-ui .map-command-strip button:hover{background:#22384a}.command-ui .map-command-strip #map-focus{margin-left:0;color:#e5cc8a}.command-ui .map-command-strip .tool-divider{width:1px;height:22px;background:#334c5c;margin:0 3px}.command-ui .map-overlay{left:var(--left);top:90px;right:calc(var(--desk) + 34px);justify-content:flex-start;z-index:600;max-width:none}.command-ui .map-chip{font:10px ui-monospace,monospace;padding:8px 10px;border-radius:5px;line-height:1.5;max-width:100%}.command-ui #map-mode{display:none}.command-ui .map-bottom{bottom:17px;left:var(--left);right:calc(var(--desk) + 32px);z-index:600;display:none}.command-ui .map-legend{left:var(--left);right:auto;bottom:186px;max-width:calc(100% - var(--desk) - 120px);flex-wrap:wrap;font:9px system-ui;padding:8px 10px;border-radius:6px;gap:9px}.command-ui .sidebar{position:absolute;top:82px;left:var(--left);bottom:128px;width:268px;padding:18px;background:#0b1622f5;border:1px solid #344a5a;border-radius:10px;box-shadow:0 8px 40px #0005;z-index:900;display:block;overscroll-behavior:contain}.command-ui.layers-collapsed .sidebar{display:none}.command-ui .side-heading{margin-bottom:14px}.command-ui .sidebar h1{font-size:19px}.command-ui .intro{font-size:11px;margin:5px 0 16px}.command-ui .search-box{padding:10px;border-radius:6px}.command-ui .search-box input{font-size:11px}.command-ui .focus-picker select{font-size:12px}.command-ui .section-label{font-size:10px;margin-top:18px}.command-ui .section-label span{display:none}.command-ui .layer-group summary{font-size:11px;padding:12px 0;color:#baccd9}.command-ui .layer-group summary small{font-size:9px}.command-ui .layer b{font-size:12px}.command-ui .layer small{font-size:10px;line-height:1.4}.command-ui .layer{padding:10px 0}.command-ui .layer .layer-count{font-size:10px}.command-ui .switch{width:29px;height:16px}.command-ui .switch:before{top:3px;left:3px;width:10px;height:10px}.command-ui .switch:checked:before{left:16px;background:#e5cc8a}.command-ui .switch:checked{background:#41606a}.command-ui .sources-button{font-size:12px;padding:12px 0}.command-ui .side-card{margin-top:16px}.command-ui .side-card strong{font-size:13px}.command-ui .side-card p{font-size:11px}.command-ui .side-foot{font-size:10px}.command-ui .intelligence{position:absolute;top:14px;right:16px;bottom:128px;width:var(--desk);z-index:900;background:#0b1622f7;border:1px solid #344a5a;border-radius:10px;box-shadow:0 8px 40px #0005;overflow:hidden;min-height:0;overscroll-behavior:contain}.command-ui.intel-collapsed .intelligence{display:none}.command-ui .intel-title{padding:16px 16px 8px;gap:8px}.command-ui .intel-title .eyebrow{color:#e5cc8a;font-size:10px}.command-ui .intel-title .tiny-dot{display:none}.panel-close{margin-left:auto;padding:2px 6px;border:0;background:transparent;font-size:20px;color:#aabcc9;line-height:1}.command-ui .intel-tabs{padding:0 10px;gap:0;overflow-x:auto;flex-shrink:0}.command-ui .intel-tabs button{font-size:11px;flex:1;padding:12px 7px;white-space:nowrap}.command-ui .intel-scroll{padding:18px 16px}.command-ui .panel-heading h2{font-size:21px}.command-ui .panel-heading small{font-size:9px}.command-ui .brief-card{background:#132333;border-color:#2b4355;border-radius:8px;padding:15px}.command-ui .brief-card h3{font-size:14px}.command-ui .brief-card p{font-size:12px;line-height:1.65;color:#bacbd7}.command-ui .brief-card .card-kicker{font-size:9px}.command-ui .brief-card .card-bottom,.command-ui .brief-card button{font-size:10px}.command-ui .panel-note,.command-ui .empty{font-size:12px;line-height:1.7}.command-ui .news-item{font-size:13px}.command-ui .news-item small{font-size:10px}.command-ui .list-heading{font-size:9px;line-height:1.7}.command-ui .intel-footer{padding:10px 13px;font-size:9px;gap:4px}.command-ui .intel-footer span:last-child{display:none}.command-ui .status-row strong{font-size:12px}.command-ui .status-row p{font-size:11px}.command-ui .status-row .state{font-size:9px}.command-ui .vessel-row strong{font-size:12px}.command-ui .vessel-row small{font-size:10px}.command-ui .vessel-row>span:last-child{font-size:11px}.command-ui .vessel-detail p{font-size:12px}.command-ui .detail-grid small{font-size:10px}.command-ui .detail-grid b{font-size:13px}.command-ui .launch-row strong{font-size:13px}.command-ui .launch-row p{font-size:11px}.command-ui .weather-facts>div,.command-ui .forecast-row{font-size:11px}.command-ui .weather-facts strong{font-size:15px}.command-ui .pulse{position:absolute;left:var(--left);right:16px;bottom:12px;z-index:810;background:#0b1723f5;padding:10px 14px;border:1px solid #344a5a;border-radius:10px;box-shadow:0 8px 30px #0003;max-height:106px}.command-ui .pulse-heading{margin-bottom:5px}.command-ui .pulse-heading .eyebrow{font-size:9px}.command-ui .pulse-heading>span:last-child{font-size:9px;max-width:none}.command-ui .pulse-grid{gap:0}.command-ui .metric{border:0;border-left:1px solid #2c4455;background:none;border-radius:0;padding:4px 16px;min-height:61px}.command-ui .metric:first-child{border-left:0;padding-left:0}.command-ui .metric>span{font-size:11px}.command-ui .metric strong{font-size:24px;color:#f0e1b3;margin:4px 0}.command-ui .metric>small{font:9px system-ui;color:#a8bccb;max-width:95%}.command-ui .mix-bar,.command-ui .kp-scale,.command-ui .spark{display:none}.command-ui .bottom-bar{height:32px;background:#07101a;font:9px ui-monospace,monospace;padding:0 17px;z-index:1200;position:relative;border-color:#304555}.command-ui .bottom-bar button{font-size:10px}.command-ui #selection-hint{background:none;padding:0;font:9px ui-monospace,monospace;max-width:none}.command-ui #map-zoom{margin-left:12px}.command-ui #toast{bottom:145px;background:#203b4d;border-color:#6e8fa4}.command-ui .leaflet-top.leaflet-right{right:calc(var(--desk) + 28px);top:84px}.command-ui.intel-collapsed .leaflet-top.leaflet-right{right:15px}.command-ui .leaflet-bottom.leaflet-left{bottom:124px;left:var(--left)}.command-ui .leaflet-control-attribution{font-size:9px!important}.command-ui .ais-credits{font-size:10px;max-width:245px}.command-ui #map-error{left:var(--left);top:124px}.command-ui .shipping-caption{font-size:11px;padding:9px 14px}.command-ui #aircraft-panel,.command-ui #shipping-panel{inset:76px calc(var(--desk) + 32px) 125px var(--left);border:1px solid #40566a;border-radius:9px;overflow:hidden}.command-ui.intel-collapsed #aircraft-panel,.command-ui.intel-collapsed #shipping-panel{right:16px}.command-ui:not(.layers-collapsed) .map-overlay{display:none}.command-ui:not(.layers-collapsed) .map-legend{display:none}.command-ui.intel-collapsed .map-topline,.command-ui.intel-collapsed .map-overlay{right:16px}.command-ui.map-focus .sidebar,.command-ui.map-focus .intelligence,.command-ui.map-focus .pulse{display:none}.command-ui.map-focus .map-topline{right:16px}.command-ui.map-focus .map-command-strip{bottom:15px}.command-ui.map-focus .map-legend{bottom:72px}.command-ui.map-focus .leaflet-top.leaflet-right{right:15px}.command-ui.map-focus #aircraft-panel,.command-ui.map-focus #shipping-panel{right:16px;bottom:72px}.command-ui.map-focus .leaflet-bottom.leaflet-left{bottom:0}.command-ui .tool-rail{position:absolute;z-index:1000;left:12px;top:14px;bottom:12px;width:50px;display:flex;flex-direction:column;gap:4px;padding:7px 4px;background:#0b1622f2;border:1px solid #304858;border-radius:10px;overflow-y:auto;scrollbar-width:none;box-shadow:0 8px 20px #0004}.tool-rail button,.tool-rail a{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;border:0;border-radius:5px;min-height:43px;padding:5px 0;color:#9eb5c7;gap:4px;font-size:8px}.tool-rail svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6}.tool-rail button:hover,.tool-rail a:hover,.tool-rail button[aria-pressed=true]{background:#233947;color:#f0d997;text-decoration:none}.rail-gap{height:1px;background:#304858;margin:3px 4px;flex-shrink:0}.quick-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:13px}.quick-presets button{font-size:11px;padding:8px;border-radius:5px}.quick-presets button.active{background:#3b392b;border-color:#bca76f;color:#efdaa0}.desk-badge{font:9px ui-monospace,monospace;background:#1b2d3b;padding:4px 6px;border-radius:4px;color:#9eb9cc}.command-ui #camera-viewer.docked{right:calc(var(--desk) + 32px);bottom:145px;top:auto;max-height:calc(100dvh - 220px);width:440px;border-radius:10px;font-size:12px}.command-ui #camera-viewer.docked .camera-credit{font-size:10px}.command-ui .camera-screen{border-radius:6px}.command-ui .measure-readout{position:absolute;top:90px;left:calc(50% - 130px);width:260px;z-index:950;background:#0d1b2bf5;border:1px solid #ccb775;border-radius:8px;padding:12px;box-shadow:0 4px 25px #0007;font-size:12px}.measure-readout p{color:#b9cbd6;margin:8px 0;line-height:1.5}.measure-readout .measure-buttons{display:flex;gap:7px}.measure-buttons button{font-size:11px;padding:6px}.command-ui .measure-cursor{cursor:crosshair}.measurement-point{background:#e5cc8a;border:2px solid #fff;box-shadow:0 0 0 4px #e5cc8a38;border-radius:50%}.saved-view{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #304756}.saved-view button:first-child{flex:1;text-align:left}.saved-view strong,.saved-view small{display:block}.saved-view small{color:#aabecb;margin-top:5px}.save-form{display:flex;gap:8px;margin:18px 0}.save-form input{flex:1;border:1px solid #385166;background:#0b1520;border-radius:6px;padding:11px}.shortcuts-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.shortcuts-grid div{display:flex;align-items:center;gap:10px;font-size:12px;color:#b6cbd9}.shortcuts-grid kbd{padding:6px 10px;border:1px solid #425d6d;border-radius:5px;color:#f0ddb2;background:#152638;min-width:34px;text-align:center}.orbit-row{padding:13px;border:1px solid #354d62;border-radius:7px;margin:10px 0}.orbit-row h3{font-size:15px}.orbit-row p{font-size:11px;line-height:1.7;color:#acc1d1;margin:8px 0}.orbit-row button{font-size:11px}.command-ui .fallback-banner{background:#252b31;border:1px solid #766b4e;padding:12px;border-radius:7px;margin-bottom:15px;font-size:12px;line-height:1.6}.fallback-banner button{font-size:12px;width:100%;margin-top:9px;color:#f0d58d}.command-ui .mini-health{font-size:11px;color:#9db8ca}.command-ui .health-attention{color:#efc083}.command-ui .intel-tabs button[role=tab]:focus-visible{outline-offset:-4px}
@media(min-width:1600px){.command-ui{--desk:380px}.command-ui .intelligence{width:var(--desk)}.command-ui .sidebar{width:290px}.command-ui .metric strong{font-size:26px}}
@media(max-width:1120px){.command-ui{--desk:314px}.command-ui .topbar{gap:15px;padding:0 15px}.command-ui .brand{min-width:178px;font-size:18px}.command-ui .header-end #clock,.command-ui .command-stat{display:none}.command-ui .header-end time{font-size:10px}.command-ui .map-topline>div:first-child{display:none}.command-ui .map-topline{min-height:49px;padding:7px;justify-content:center}.command-ui .map-actions{margin-left:0}.command-ui .map-actions button{font-size:10px}.command-ui .map-view-switch button{font-size:10px}.command-ui .metric>small{font-size:8px}.command-ui .metric{padding:4px 10px}.command-ui .intel-tabs button{font-size:10px;padding:11px 5px}.command-ui .bottom-bar>span:nth-child(2){display:none}.command-ui #camera-viewer.docked{right:calc(var(--desk) + 32px);width:380px}}
@media(max-width:850px){.command-ui{--left:68px;--desk:310px}.command-ui .header-end .live-pill{font-size:9px;padding:7px}.command-ui .topbar{gap:9px}.command-ui .brand{min-width:144px;font-size:16px;gap:6px}.command-ui .brand small{font-size:6px}.command-ui .brand-mark,.command-ui .brand-mark svg{width:28px;height:28px}.command-ui .views button{font-size:10px;padding:7px 9px}.command-ui .header-end #utc-clock{display:none}.command-ui .sidebar{width:270px;top:73px}.command-ui .map-topline{right:16px}.command-ui .intelligence{top:73px}.command-ui .map-overlay{top:73px;right:340px;font-size:9px}.command-ui .tool-rail{left:8px;width:46px}.command-ui .map-command-strip{bottom:153px}.command-ui .pulse{max-height:131px}.command-ui .pulse-grid{grid-template-columns:repeat(2,1fr);row-gap:8px}.command-ui .metric{min-height:40px;display:grid;grid-template-columns:1fr auto;gap:2px;padding:0 12px}.command-ui .metric:nth-child(3){border-left:0;padding-left:0}.command-ui .metric>span{font-size:10px}.command-ui .metric strong{font-size:20px;grid-column:2;grid-row:1 / 3;margin:0}.command-ui .metric>small{font-size:8px;grid-column:1}.command-ui .pulse-heading>span:last-child{display:none}.command-ui .intelligence,.command-ui .sidebar{bottom:150px}.command-ui .map-legend{bottom:205px}.command-ui #aircraft-panel,.command-ui #shipping-panel{inset:73px 16px 150px var(--left)}.command-ui .map-container.shipping-mode~.pulse{z-index:810}.command-ui #camera-viewer.docked{right:16px;width:380px;bottom:165px}.command-ui .leaflet-top.leaflet-right{right:15px;top:73px}.command-ui .map-overlay .map-chip:first-child{max-width:100%}.command-ui .measure-readout{top:130px;left:80px}.command-ui:not(.layers-collapsed) .intelligence{display:none}.command-ui .map-view-switch button{padding:7px 10px}.command-ui .map-legend{max-width:calc(100% - var(--desk) - 80px)}}
@media(max-width:600px){.command-ui{--left:14px;--desk:calc(100% - 28px)}.command-ui .topbar{height:90px;align-items:flex-start;padding:13px 14px;gap:8px;flex-wrap:wrap}.command-ui .brand{font-size:17px;min-width:0;gap:8px}.command-ui .brand small{font-size:7px}.command-ui .views{position:absolute;bottom:8px;left:14px;right:14px;justify-content:center}.command-ui .views button{flex:1;font-size:11px;padding:6px}.command-ui .header-end{margin-left:auto;gap:7px}.command-ui .header-end .live-pill{font-size:8px;padding:6px}.command-ui .header-end #fullscreen{font-size:18px}.command-ui .app-shell{height:calc(100dvh - 122px)}.command-ui .workspace{height:auto;min-height:0}.command-ui .tool-rail{top:auto;bottom:12px;left:10px;right:10px;width:auto;max-width:none;height:55px;flex-direction:row;overflow:auto;padding:4px;gap:1px}.command-ui .tool-rail button,.command-ui .tool-rail a{min-width:45px;min-height:43px;font-size:8px;padding:3px}.command-ui .tool-rail svg{width:18px;height:18px}.command-ui .rail-gap{height:28px;width:1px;margin:7px 2px}.command-ui .map-topline{top:10px;left:12px;right:12px;display:flex;min-height:47px}.command-ui .map-topline .map-actions{margin-top:0;width:100%;justify-content:space-between}.command-ui .map-view-switch{flex:1;display:flex}.command-ui .map-view-switch button{flex:1;font-size:10px;padding:8px 7px}.command-ui .map-actions #refresh{font-size:0;padding:8px;min-width:30px}.command-ui .map-actions #refresh::before{content:'↻';font-size:15px}.command-ui .map-overlay{top:66px;left:12px;right:54px}.command-ui .map-chip{font-size:9px;padding:6px 8px}.command-ui .map-legend{display:none}.command-ui .map-command-strip{bottom:148px;left:12px;right:12px;justify-content:center;padding:3px;gap:0}.command-ui .map-command-strip button{font-size:9px;padding:7px 8px}.command-ui .map-command-strip .tool-divider{display:none}.command-ui .map-command-strip #map-focus{display:none}.command-ui .pulse{left:12px;right:12px;bottom:77px;max-height:64px;padding:8px 10px}.command-ui .pulse-heading{display:none}.command-ui .pulse-grid{grid-template-columns:repeat(4,1fr);gap:0}.command-ui .metric{display:block;min-height:43px;padding:0 5px;border-left:1px solid #354957}.command-ui .metric:nth-child(3){border-left:1px solid #354957;padding-left:5px}.command-ui .metric>span{font-size:7px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-ui .metric strong{font-size:17px;margin-top:5px;letter-spacing:-.5px}.command-ui .metric strong small{font-size:7px}.command-ui .metric>small{display:none}.command-ui .sidebar,.command-ui .intelligence{top:64px;left:12px;right:12px;bottom:147px;width:auto;min-height:0;max-height:none;border-radius:8px}.command-ui .sidebar.open{display:block}.command-ui.layers-collapsed .sidebar.open{display:none}.command-ui .intelligence{z-index:920}.command-ui .sidebar{z-index:930}.command-ui:not(.layers-collapsed) .intelligence{display:none}.command-ui .intel-title{padding:13px 15px 7px}.command-ui .intel-tabs button{font-size:11px;padding:11px 7px}.command-ui .intel-scroll{padding:15px}.command-ui .map-container.shipping-mode .map-overlay{display:none}.command-ui #aircraft-panel,.command-ui #shipping-panel{inset:64px 12px 187px 12px;min-height:180px}.command-ui .shipping-caption{font-size:9px;padding:6px 9px;gap:3px}.command-ui #aircraft-return{font-size:9px;padding:5px}.command-ui .leaflet-top.leaflet-right{right:10px;top:67px}.command-ui .leaflet-bottom.leaflet-left{bottom:183px;left:8px}.command-ui .leaflet-control-attribution{font-size:7px!important;max-width:100%}.command-ui .bottom-bar{font-size:8px;padding:0 12px;gap:7px}.command-ui .bottom-bar #selection-hint{display:none}.command-ui .bottom-bar button{font-size:9px}.command-ui .measure-readout{top:65px;left:12px;right:12px;width:auto}.command-ui #camera-viewer.docked{right:12px;left:12px;bottom:75px;width:auto;max-height:calc(100dvh - 165px)}.command-ui .shortcuts-grid{grid-template-columns:1fr}.command-ui.map-focus .map-command-strip{bottom:79px}.command-ui.map-focus #aircraft-panel,.command-ui.map-focus #shipping-panel{bottom:124px;right:12px}.command-ui.map-focus .map-overlay{right:55px}.command-ui.map-focus .leaflet-bottom.leaflet-left{bottom:120px}.command-ui .ais-credits{max-width:230px;font-size:9px}.command-ui #toast{bottom:195px}.command-ui .metric:nth-child(4)>span{font-size:0}.command-ui .metric:nth-child(4)>span::after{content:'Space · Kp';font-size:8px}}
@media(prefers-reduced-motion:reduce){.command-ui *{scroll-behavior:auto!important;transition:none!important}}

.command-ui #map:not(.light-map) .leaflet-tile-pane{filter:invert(1) grayscale(1) sepia(.4) saturate(1.2) hue-rotate(165deg) brightness(.85) contrast(.95)!important}.command-ui #map.light-map .leaflet-tile-pane{filter:none!important}.display-options{display:flex;gap:6px;margin:12px 0}.display-options button{flex:1;font-size:11px;padding:8px}.command-ui .side-heading .text-button{margin-left:auto;margin-right:8px}.command-ui .sidebar{scrollbar-gutter:stable}

.command-ui .coffee-support{display:inline-flex;align-items:center;gap:5px;font:10px system-ui;color:#edda9e;border:1px solid #6d6247;border-radius:5px;padding:4px 8px;white-space:nowrap;margin-left:auto}.command-ui .coffee-support:hover{background:#302e23;text-decoration:none}@media(max-width:600px){.command-ui .coffee-support{font-size:9px;padding:4px 5px}.command-ui .bottom-bar:has(.coffee-support:not([hidden])) #last-update{max-width:82px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.command-ui .header-end{display:flex}

/* Communications desk: directory and public provider maps load on demand. */
.command-ui .intel-tabs{overflow-x:auto;flex-shrink:0;scrollbar-width:thin}.command-ui .intel-tabs button{flex-shrink:0;white-space:nowrap}.comms-sections{display:flex;gap:5px;margin:16px 0}.comms-sections button{flex:1;font-size:11px;padding:9px 5px}.comms-sections button[aria-pressed=true]{background:#303449;color:#e0bdf6;border-color:#83699e}.comms-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.comms-filter-grid label,.comms-search{display:block;color:#aebfd0;font-size:10px;line-height:1.7}.comms-filter-grid select,.comms-search input{width:100%;font-size:11px;border:1px solid #354859;background:#142331;color:#e0eaf4;padding:8px 7px;border-radius:5px;min-width:0}.comms-search{margin:12px 0}.comms-actions{display:flex;align-items:center;gap:8px;margin:11px 0;flex-wrap:wrap}.comms-actions button,.comms-actions a{font-size:10px}.comms-actions button{padding:7px 9px}.comms-directory-status{color:#d6b4ed;font-size:10px;line-height:1.7;margin:14px 0}.repeater-card,.frequency-card,.mesh-card{padding:14px 12px;border:1px solid #354656;border-radius:7px;background:#172633;margin:10px 0}.repeater-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.repeater-card h3,.frequency-card h3,.mesh-card h3{margin:0;font-size:14px;color:#e2eaf3}.repeater-card p,.frequency-card p,.mesh-card p{font-size:11px;color:#aec0d1;line-height:1.7;margin:8px 0}.repeater-card a,.frequency-card a,.mesh-card a{font-size:10px;color:#c8a8e4}.comms-badge{font-size:8px;padding:4px 6px;border:1px solid #8d714c;border-radius:4px;color:#e8c08b;max-width:130px}.comms-badge.reported-ok{color:#98d6c1;border-color:#467866}.frequency-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 0;border-top:1px solid #354656;border-bottom:1px solid #354656}.frequency-pair strong{display:block;font:15px monospace;letter-spacing:-.3px;color:#e1c7f4}.frequency-pair small{font-size:8px;color:#a3b6c6;display:inline-block;margin-bottom:5px}.frequency-card>strong{display:block;font:22px monospace;color:#e6c488;margin-top:12px}.frequency-card .eyebrow{font-size:8px}.frequency-card h3{margin-top:8px}.comms-notice{font-size:11px;line-height:1.7;border-left:2px solid #ab8ac5;padding:4px 12px;margin:15px 0}.comms-notice p{color:#afc0cd}.comms-notice a{font-size:10px}.mesh-card button{width:100%;font-size:11px;margin:8px 0}.mesh-card .eyebrow{font-size:8px;line-height:2}.command-ui #comms-mesh-dialog{width:min(1150px,95vw);max-width:95vw;padding:20px;background:#13212f}.mesh-view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;margin:14px 0}.mesh-view-toolbar label{display:flex;align-items:center;gap:10px}.mesh-view-toolbar select{padding:8px;background:#203141;color:#e0eaf4;border:1px solid #526375;border-radius:5px}.mesh-view-toolbar a{color:#d6b7ed;font-size:11px}#comms-mesh-frame{width:100%;height: min(60vh,620px);min-height:260px;border:1px solid #405566;border-radius:6px;background:#0a1621;display:block}.command-ui #comms-mesh-dialog>.panel-note{font-size:10px;line-height:1.6;margin:9px 0 0}@media(max-width:600px){.command-ui #comms-mesh-dialog{padding:13px}.mesh-view-toolbar{align-items:flex-start;gap:8px;font-size:10px}.mesh-view-toolbar a{font-size:10px}.command-ui #comms-mesh-name{font-size:17px}.command-ui .intel-tabs button{font-size:10px;padding:11px 6px}}

.comms-filter-details,.comms-guide{font-size:10px;color:#b9c8d6;margin:12px 0;border:1px solid #354656;border-radius:5px;padding:9px}.comms-filter-details summary,.comms-guide summary{cursor:pointer;color:#d7b7ed}.comms-filter-details[open] .comms-filter-grid{margin-top:12px}.comms-guide .panel-note{margin:10px 0 0}.comms-guide{margin-bottom:8px}.comms-directory-status{margin:9px 0;font-size:10px}

/* Audit fixes: readable controls, explicit data age and compact mobile desks. */
.command-ui .tool-rail .mobile-more,.mobile-expand{display:none}.more-tools-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.more-tools-list button{min-height:48px;text-align:left;padding:12px;font-size:14px}.mesh-status{padding:12px;border:1px solid #45596c;border-radius:6px;margin:10px 0;font-size:12px;line-height:1.6;color:#c1d1df}.mesh-status[data-state=slow],.mesh-status[data-state=error]{color:#efd196;border-color:#7b6845}.metric-quality{font:9px system-ui;font-style:normal;color:#f1c28d;display:block;margin-top:4px}.command-ui .metric[data-quality=expired] strong,.command-ui .metric[data-quality=unavailable] strong{color:#9aafbf}.command-ui .map-chip{max-width:100%;white-space:normal}.command-ui .comms-filter-grid label,.command-ui .comms-search,.command-ui .comms-directory-status,.command-ui .comms-filter-details,.command-ui .comms-guide{font-size:12px}.command-ui .frequency-pair small,.command-ui .comms-badge{font-size:10px}.command-ui .panel-close{min-width:40px;min-height:40px}.command-ui .intel-tabs button{min-height:44px}.command-ui .tool-rail span{font-size:10px}.command-ui .metric>span{font-size:10px}.command-ui .metric>small{font-size:10px}
@media(max-width:600px){
 .command-ui .topbar{height:114px}.command-ui .app-shell{height:calc(100dvh - 146px)}.command-ui .views{bottom:6px}.command-ui .views button{min-height:44px;font-size:12px}.command-ui .brand small{font-size:9px}.command-ui .header-end .live-pill{font-size:10px;min-height:34px}.command-ui .tool-rail{height:65px;overflow:visible;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;padding:4px}.command-ui .tool-rail>button{display:none}.command-ui .tool-rail>#rail-layers,.command-ui .tool-rail>#rail-marine,.command-ui .tool-rail>#rail-rescue,.command-ui .tool-rail>#rail-comms,.command-ui .tool-rail>#rail-more{display:flex;min-height:52px;min-width:0;font-size:11px}.command-ui .tool-rail .rail-gap{display:none}.command-ui .tool-rail span{font-size:11px}.command-ui .tool-rail .more-glyph{font-size:20px;line-height:20px}.command-ui .pulse{bottom:88px;max-height:83px;padding:9px 8px}.command-ui .metric{min-height:57px}.command-ui .metric>span{font-size:0}.command-ui .metric>span::after{font-size:10px}.command-ui .metric:nth-child(1)>span::after{content:'Demand'}.command-ui .metric:nth-child(2)>span::after{content:'Renewables'}.command-ui .metric:nth-child(3)>span::after{content:'Carbon'}.command-ui .metric:nth-child(4)>span::after{content:'Space · Kp';font-size:10px}.command-ui .metric strong{font-size:17px}.command-ui .metric strong small{font-size:9px}.command-ui .map-command-strip{bottom:179px;flex-wrap:wrap}.command-ui .map-command-strip button{font-size:11px;min-height:44px;padding:7px}.command-ui .map-topline{min-height:54px}.command-ui .map-view-switch button{min-height:44px;font-size:11px}.command-ui .map-actions #refresh{min-width:44px;min-height:44px}.command-ui .map-overlay{top:74px}.command-ui .map-chip{font-size:11px}.command-ui .intelligence{top:auto;bottom:175px;max-height:45dvh}.command-ui.desk-expanded .intelligence{top:70px;max-height:none}.command-ui .sidebar{bottom:175px}.command-ui .mobile-expand{display:inline-flex;font-size:11px;min-height:40px;margin-left:auto;align-items:center}.command-ui .intel-title .panel-close{margin-left:5px}.command-ui .intel-tabs button{font-size:12px;min-height:44px;padding:10px}.command-ui .intel-scroll{font-size:13px}.command-ui .panel-note{font-size:12px}.command-ui #aircraft-panel,.command-ui #shipping-panel{inset:70px 12px 219px 12px}.command-ui .leaflet-top.leaflet-right{top:75px}.command-ui .leaflet-bottom.leaflet-left{bottom:219px}.command-ui .leaflet-control-attribution{font-size:9px!important}.command-ui #camera-viewer.docked{bottom:88px}.command-ui .bottom-bar{font-size:10px}.command-ui .more-tools-list{grid-template-columns:1fr}.command-ui #comms-mesh-dialog>.panel-note{font-size:12px}.command-ui .comms-sections button,.command-ui .comms-actions button,.command-ui .mesh-card button{min-height:44px;font-size:12px}.command-ui .comms-filter-grid select,.command-ui .comms-search input{font-size:16px;min-height:44px}.command-ui.map-focus .map-command-strip{bottom:89px}
}

/* Map-first layout: the national pulse now lives in the side desk. */
.command-ui .news-ticker{position:absolute;left:var(--left);right:16px;bottom:12px;z-index:850;display:flex;align-items:center;gap:12px;min-height:42px;padding:4px 8px 4px 12px;background:#0b1723f5;border:1px solid #344a5a;border-radius:8px;box-shadow:0 4px 20px #0004;min-width:0}.ticker-source{font-size:9px;letter-spacing:1px;color:#e5cc8a;white-space:nowrap}.ticker-story{min-width:0;flex:1}.ticker-story a,.ticker-story>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#d8e3eb;line-height:1.5}.ticker-story small{display:block;font-size:9px;color:#9bb2c3;line-height:1.5}.ticker-controls{display:flex;gap:2px;flex-shrink:0}.ticker-controls button{min-width:32px;min-height:32px;padding:3px;font-size:17px;background:transparent;border:0}.ticker-controls button[aria-pressed=true]{color:#e5cc8a;background:#273744}.command-ui .map-command-strip{bottom:65px}.command-ui .map-legend{bottom:114px}.command-ui .intelligence,.command-ui .sidebar{bottom:65px}.command-ui #aircraft-panel,.command-ui #shipping-panel{bottom:65px}.command-ui .leaflet-bottom.leaflet-left{bottom:62px}.command-ui #camera-viewer.docked{bottom:76px}.command-ui #toast{bottom:78px}.command-ui.map-focus .map-command-strip{bottom:65px}.command-ui.map-focus .map-legend{bottom:114px}.command-ui.map-focus #aircraft-panel,.command-ui.map-focus #shipping-panel{bottom:65px}.command-ui.map-focus .leaflet-bottom.leaflet-left{bottom:62px}
.command-ui .grid-desk{position:static;padding:0;border:0;background:none;box-shadow:none;max-height:none;margin:20px 0}.command-ui .grid-desk .pulse-heading{display:block;margin-bottom:12px}.command-ui .grid-desk .pulse-heading>span{display:block;font-size:11px;margin:4px 0;color:#aabfcf}.command-ui .grid-desk .pulse-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.command-ui .grid-desk .metric{display:block;text-align:left;border:1px solid #344c5d;border-radius:8px;background:#132333;padding:12px;min-height:128px;min-width:0}.command-ui .grid-desk .metric>span{display:block;font-size:11px;white-space:normal;line-height:1.5;overflow:visible;text-overflow:clip}.command-ui .grid-desk .metric>span::after{content:none}.command-ui .grid-desk .metric strong{display:block;font-size:23px;line-height:1.4;margin:7px 0}.command-ui .grid-desk .metric strong small{font-size:10px;letter-spacing:0}.command-ui .grid-desk .metric>small{display:block;font-size:10px;max-width:none;line-height:1.5;white-space:normal}.command-ui .grid-desk .spark,.command-ui .grid-desk .mix-bar,.command-ui .grid-desk .kp-scale{display:block;margin-top:8px}.command-ui .grid-desk .kp-scale{display:flex}
@media(max-width:600px){.command-ui .news-ticker{left:12px;right:12px;bottom:87px;min-height:52px;gap:6px;padding:4px 5px 4px 9px}.command-ui .ticker-source{display:none}.command-ui .ticker-story a,.command-ui .ticker-story>span{font-size:12px}.command-ui .ticker-story small{font-size:10px}.command-ui .ticker-controls button{min-width:36px;min-height:44px}.command-ui .map-command-strip,.command-ui.map-focus .map-command-strip{display:none}.command-ui .intelligence,.command-ui .sidebar{bottom:147px}.command-ui #aircraft-panel,.command-ui #shipping-panel,.command-ui.map-focus #aircraft-panel,.command-ui.map-focus #shipping-panel{bottom:147px}.command-ui .leaflet-bottom.leaflet-left,.command-ui.map-focus .leaflet-bottom.leaflet-left{bottom:144px}.command-ui #camera-viewer.docked{bottom:147px}.command-ui #toast{bottom:151px}.command-ui .grid-desk .metric{min-height:128px}.command-ui .grid-desk .metric>span{font-size:12px}.command-ui .grid-desk .metric>small{font-size:11px}.command-ui .grid-desk .metric strong small{font-size:10px}}

/* Priority signals remain distinct and above ordinary traffic. No motion or inferred missions. */
.command-ui .priority-marker{overflow:visible!important}.priority-symbol{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;border-radius:50%;border:2px solid var(--priority-color);background:#101b2cf2;box-shadow:0 0 0 4px #08101abc,0 0 15px var(--priority-color);color:var(--priority-color)}.priority-marker .plane-glyph{width:27px;height:27px;filter:drop-shadow(0 1px 2px #000)}.priority-marker .vessel-glyph{width:23px;height:27px}.priority-marker .vessel-glyph path:first-child{fill:var(--priority-color);stroke:#f4f0e7;stroke-width:1}.priority-marker .vessel-glyph path:last-child{fill:#1a2230}.priority-tag{position:absolute;left:50%;top:32px;transform:translateX(-50%);padding:2px 5px;border-radius:4px;font:700 9px ui-monospace,monospace;letter-spacing:.2px;line-height:1.2;white-space:nowrap;color:#111a24;background:#ffb16b;border:1px solid #151f2a;box-shadow:0 2px 5px #0009}.priority-military .priority-tag{background:#c7a7ff}.priority-alert .priority-tag{background:#ff7582}.priority-station{font-size:22px}.priority-station .priority-symbol{border-style:dashed;box-shadow:0 0 0 3px #08101abc}.command-ui .leaflet-tooltip.priority-tooltip{background:#101d2cf5;border:1px solid #ffb16b;color:#ffe1ba;font-size:11px;font-weight:600;padding:5px 8px;box-shadow:0 3px 12px #0008}.command-ui .leaflet-tooltip.priority-tooltip-military{border-color:#c7a7ff;color:#e2d2ff}.command-ui .leaflet-tooltip.priority-tooltip-alert{border-color:#ff7582;color:#ffd2d8}.command-ui .leaflet-tooltip.priority-tooltip:before{border-right-color:#101d2c}

/* Continuous headline tape; keep story links independent and readable. */
.command-ui .ticker-window{overflow:hidden;min-width:0;width:100%;position:relative}.command-ui .ticker-window[hidden]{display:none}.ticker-track{display:flex;width:max-content;animation:headlines-scroll var(--ticker-duration,180s) linear infinite;will-change:transform}.ticker-run{display:flex;position:relative;align-items:center;flex-shrink:0}.command-ui .ticker-track a{display:inline-flex;align-items:center;gap:12px;padding-right:30px;white-space:nowrap;overflow:visible;text-overflow:clip;font-size:12px;color:#d8e3eb;flex-shrink:0;line-height:1.6}.command-ui .ticker-track a:hover{color:#e5cc8a}.command-ui .ticker-track a small{display:inline;font-size:10px;color:#9bb2c3;white-space:nowrap}.ticker-separator{color:#e5cc8a}.news-ticker[data-paused=true] .ticker-track,.news-ticker:hover .ticker-track,.news-ticker:focus-within .ticker-track{animation-play-state:paused}.ticker-window:focus-within .ticker-track{animation:none;transform:translateX(var(--ticker-focus-offset,0px))}.ticker-track a:focus-visible{outline-offset:-2px}.command-ui .ticker-story{overflow:hidden}.command-ui .ticker-window:focus-within{scroll-behavior:auto}
@keyframes headlines-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
