/* Readable working surface. Bound the grid to the viewport, including long decision text. */
html,body,#app{width:100%;max-width:100%;min-width:0;margin:0}
.shell{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.shell>*{min-width:0;min-height:0}
.workspace{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(360px,400px)}
.workspace>.map,.workspace>.panel{min-width:0;max-width:100%;min-height:0}
.panel{width:auto;overflow:hidden}
.panel-body{min-width:0;min-height:0;overflow:auto;overflow-wrap:anywhere;padding:22px}
.panel-body p,.panel-body .notice,.panel-body .list-item p,.panel-body .deduction p{font-size:16px;line-height:1.6}
.panel-body small,.panel-body .form-note,.panel-body .source{font-size:13px;line-height:1.5;color:#bccbd0}
.panel-body button,.panel-body label>span,.subnav button{font-size:14px;line-height:1.45}
.panel-heading{padding:20px 22px 15px}
.panel-heading h2{font-size:30px}
.panel-heading p{font-size:14px!important;color:#c1cfd3}
.subnav{padding:0 12px;min-width:0}
.topbar{gap:12px;padding:0 18px;min-width:0}
.topnav{min-width:0;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}
.nav-button{font:500 15px 'IBM Plex Sans',Arial,sans-serif;padding:0 12px;white-space:nowrap;flex-shrink:0;letter-spacing:0}
.top-right{flex-shrink:0;gap:8px}
.brand{min-width:160px;font-size:26px}.brand small{font-size:9px;letter-spacing:.12em}
.map-heading{left:18px;top:14px;max-width:calc(100% - 205px)}
.map-heading h1{font-size:28px}.map-heading p{font-size:12px;line-height:1.3}
.map-top-actions{top:16px;right:16px}.map-top-actions button{font-size:13px;min-height:34px}
.ground-roster{top:68px;left:16px;right:16px;height:auto;display:block;z-index:7}
.ground-roster-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:10px}
.ground-roster-head>span{font-size:12px;letter-spacing:.025em;color:#c2cfd2}
.ground-roster .ground-all{height:26px;min-height:26px;padding:0 8px;font-size:12px;background:transparent}
.ground-roster-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ground-roster-items button{min-width:0;height:38px;padding:3px 7px;gap:6px;text-align:left;background:#1a2b33;border:1px solid #4e636d;border-radius:4px}
.ground-roster-items button.selected{border-color:#e4c582;background:#304347}
.ground-roster-items button>span:last-child{font-size:12px;line-height:1.2;color:#e4edef;min-width:0}
.ground-roster-items b{font:600 12px 'IBM Plex Sans',Arial,sans-serif;color:#f0d699;min-width:21px}
.ground-roster .capability-art{width:28px;height:28px;filter:brightness(1.2)}
.map-world{--map-zoom:1}
.terrain{filter:saturate(.76) contrast(.94) brightness(.84)}
.place-point{width:10px;height:10px;min-width:10px;max-width:none;overflow:visible;z-index:4}
.place-point .location-dot{opacity:.75;position:absolute;left:2px;top:2px;width:6px;height:6px}
.place-point .point-label{position:absolute;left:50%;top:calc(-68px / var(--map-zoom));transform:translate(-50%,-50%) scale(calc(1 / var(--map-zoom)));transform-origin:center;max-width:180px;white-space:normal;width:max-content;font:500 14px/1.3 'IBM Plex Sans',Arial,sans-serif;color:#f6e7c3;background:#11252bf5;border:1px solid #a08e66;padding:6px 9px;box-shadow:0 3px 10px #0005;pointer-events:auto}
.live-piece .capability-art{filter:brightness(1.2) drop-shadow(0 1px 1px #f2e1bb99) drop-shadow(0 4px 3px #000b)}
.live-piece .piece-ident{top:calc(100% + 5px / var(--map-zoom));height:23px;min-width:33px;padding:2px 5px;transform:translateX(-50%) scale(calc(1 / var(--map-zoom)));transform-origin:top center;background:#0c202bf5;border:1px solid #91bdce;border-top:3px solid var(--role-color);border-radius:3px}
.live-piece .piece-ident strong{font:600 13px/1 'IBM Plex Sans',Arial,sans-serif;letter-spacing:0;color:#fff}
.live-piece .live-status{top:calc(100% + 33px / var(--map-zoom));transform:translateX(-50%) scale(calc(1 / var(--map-zoom)));transform-origin:top center;font-size:13px;background:#10232bf5;padding:5px 8px;max-width:210px}
.live-piece .piece-caption{display:none}
.live-piece .piece-ground{border-color:#b6d6df;background:#163c4dcc;box-shadow:0 0 0 2px #07182066}
.live-piece.unavailable{opacity:.8}
.guide{left:16px;right:16px;max-width:none;bottom:8px!important;background:#12262ff7;border-color:#8b7b55;padding:12px 14px!important;gap:12px}
.guide .eyebrow{font-size:11px;margin-bottom:4px}.guide h3{font:600 16px/1.3 'IBM Plex Sans',Arial,sans-serif;margin-bottom:5px}.guide p{display:block;font-size:14px;line-height:1.4;color:#c6d4d9}.guide button{font-size:14px;padding:10px 13px}.guide-number{font-size:30px}
.map-caption{display:none}.compass{display:none}.map-controls{right:12px;bottom:130px}.map-controls button{background:#112730f5}
.popup{left:16px;top:166px;max-height:calc(100% - 300px);max-width:calc(100% - 32px);overflow:auto;background:#152b34fa;border-color:#8d9d9f}
.popup p,.popup dl{font-size:15px}.popup .capability-art{width:95px;height:95px;float:right;margin:0 0 10px 10px}
.footer{min-width:0;padding:0 16px;gap:12px}.footer-left{min-width:0;gap:12px}.footer button{font-size:12px}.footer .save-state{display:none}
@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 440px}.ground-roster-items button>span:last-child{font-size:14px}.ground-roster-items button{height:40px}.nav-button{font-size:16px}}
@media(min-width:1100px){.ground-roster-items:has(>button:nth-child(4)):not(:has(>button:nth-child(5))){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.top-right .clock{display:none}.top-right .howto-help>span{display:none!important}.brand{min-width:125px}.brand small{display:none}.nav-button{padding:0 9px;font-size:14px}.workspace{grid-template-columns:minmax(0,1fr) 370px}.ground-roster .capability-art{display:none}}
@media(max-width:900px){.shell{height:auto;min-height:100dvh;grid-template-rows:auto 1fr auto;overflow:visible}.topbar{flex-wrap:wrap;position:sticky;top:0;height:auto;min-height:104px;padding:8px 14px 0;gap:0;z-index:30}.brand{height:40px}.top-right{height:40px}.topnav{order:3;flex:auto;width:100%;height:48px;justify-content:flex-start}.nav-button{font-size:14px;padding:0 12px}.workspace{display:flex;flex-direction:column;overflow:visible}.workspace>.map{height:660px;min-height:580px;max-height:none;flex-shrink:0}.workspace>.panel{min-height:480px;width:100%;overflow:visible;border-left:0}.panel-body{overflow:visible}.panel-heading{padding:22px}.footer{flex-wrap:wrap;min-height:55px;padding:10px 14px;justify-content:center}.footer-left{flex-wrap:wrap}.ground-roster .capability-art{display:block}.popup{max-height:310px}}
@media(max-width:560px){.workspace>.map{height:650px;min-height:650px}.map-heading p{display:none}.ground-roster{top:60px;left:12px;right:12px}.ground-roster-items{grid-template-columns:repeat(2,minmax(0,1fr))}.ground-roster-items button{height:34px}.ground-roster .capability-art{display:none}.ground-roster-items button>span:last-child{font-size:12px}.map-heading{left:12px}.map-top-actions{right:12px}.map-top-actions button{font-size:12px;padding:6px 8px}.place-point .point-label{font-size:12px;max-width:125px;padding:5px 6px}.guide-number{display:none}.guide p{font-size:13px}.guide h3{font-size:14px}.guide .eyebrow{display:none}.guide button{padding:9px;font-size:13px}.guide{left:10px;right:10px}.popup{top:190px;max-height:310px}.panel-body{padding:20px}.topnav{gap:0}.nav-button{padding:0 10px}.live-timeline{min-height:118px}}
.map-world{transition:none}.live-piece .piece-ident{transition:margin-top .12s}.point-label{transition:none}
/* Terrain fills the play surface; guidance and the roster belong to the dossier. */
.map{background:#14252d}
.map-world{box-shadow:none}
.terrain{filter:saturate(.86) contrast(1) brightness(.93)}
.map:after{content:'';position:absolute;left:0;right:0;top:0;height:78px;background:linear-gradient(#0c1b23e8,#0c1b2399 65%,transparent);pointer-events:none;z-index:4}
.map-heading{z-index:6;top:14px;left:20px;max-width:34%}
.map-heading h1{font-size:30px}.map-heading p{font-size:12px;white-space:nowrap}
.map-top-actions{z-index:7;top:17px;right:16px;gap:6px}
.map-top-actions button{background:#122731eb;min-height:36px}
.map-controls{bottom:24px;right:16px}.map:has(.live-timeline) .map-controls{bottom:142px}
.panel>.guide{position:static;flex-shrink:0;margin:0;padding:16px 20px!important;max-height:none;max-width:none;width:auto;border:0;border-bottom:1px solid #657268;box-shadow:none;backdrop-filter:none;border-radius:0;display:grid;grid-template-columns:1fr auto;gap:10px;background:#263a40}
.panel>.guide .guide-number{display:none}.panel>.guide .eyebrow{font-size:11px}.panel>.guide h3{font-size:15px}.panel>.guide p{font-size:13px}.panel>.guide button{margin:0;align-self:center;font-size:13px;padding:10px}
.panel-body>.ground-roster{position:static;display:block;height:auto;margin:0 0 22px;border:1px solid #526970;border-radius:4px;background:#182c35;z-index:auto}
.ground-roster>summary{padding:12px 14px;cursor:pointer;font-size:14px;font-weight:500;list-style:revert;color:#e2ebee}.ground-roster>summary span{float:right;color:#e1c88e}
.ground-roster-items,.ground-roster-items:has(>button:nth-child(4)):not(:has(>button:nth-child(5))){display:grid;grid-template-columns:1fr;gap:6px;padding:0 10px 10px}
.ground-roster-items button{height:42px;width:100%;padding:4px 9px}.ground-roster-items button>span:last-child{font-size:14px}.ground-roster .capability-art{display:block;width:30px;height:30px}.ground-roster-items b{font-size:13px;min-width:35px}
.workspace.map-expanded{grid-template-columns:minmax(0,1fr)}.workspace.map-expanded>.panel{display:none}
.popup{top:82px;max-height:calc(100% - 120px)}
@media(max-width:1300px) and (min-width:901px){.map-heading p{display:none}.map-heading h1{font-size:26px}.map-top-actions{gap:4px;right:10px}.map-top-actions button{font-size:12px;padding:6px 8px}.map-heading{left:12px}}
@media(max-width:900px){.workspace>.map{height:clamp(320px,67vw,600px);min-height:0;max-height:none}.workspace>.map:has(.live-timeline){height:clamp(450px,80vw,680px)}.workspace.map-expanded>.map{height:calc(100dvh - 160px);min-height:420px}.panel>.guide{padding:15px 20px!important}.popup{top:74px;max-height:calc(100% - 92px)}}
@media(max-width:560px){.map-heading{top:12px;left:12px}.map-heading h1{font-size:23px}.map-top-actions{top:10px;right:10px;display:grid;grid-template-columns:auto auto;gap:4px}.map-top-actions button{font-size:11px;min-height:26px;padding:4px 6px}.map-controls{right:10px;bottom:12px;gap:4px}.map-controls button{width:32px;height:32px}.place-point .point-label{font-size:12px}.ground-roster-items button>span:last-child{font-size:14px}.panel>.guide .eyebrow{display:block}.panel>.guide h3{font-size:15px}.panel>.guide p{font-size:14px}}
/* Dossier inspection and live decisions stay outside the terrain. */
.panel-body>.popup,.panel-body>.event-banner{position:static;inset:auto;max-width:none;width:100%;max-height:none;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;overflow:visible}
.panel-body>.popup .close{display:none}.panel-body>.popup h3{font-size:28px;line-height:1.15;padding:0;margin:14px 0 20px}.panel-body>.popup .capability-art{float:none;width:145px;height:145px;margin:0 auto}
.panel-body>.event-banner h3{font-size:29px;line-height:1.15}.panel-body>.event-banner p{font-size:16px}.panel-body>.event-banner .event-options{display:grid;grid-template-columns:1fr;gap:10px;margin-top:22px}.event-options button{padding:14px;text-align:left;white-space:normal}.event-options strong{font-size:16px;line-height:1.35}.event-options small{font-size:14px;line-height:1.5;display:block;margin-top:7px}.event-options button:disabled{opacity:.65}
.inspector-back{border:0;border-bottom:1px solid #5d717a;width:100%;text-align:left;padding:0 0 14px;margin-bottom:18px;color:#e0cc9b;border-radius:0;font-size:14px}
.live-inspector{padding:16px;background:#213b46;border-left:3px solid #d2b984;margin:0 0 22px;border-radius:0 5px 5px 0}.live-inspector>span{font-size:12px;color:#b8c9d0}.live-inspector strong{display:block;font-size:17px;line-height:1.4;margin-top:6px;color:#f0e5cd}.live-inspector p:empty{display:none}.live-inspector p{font-size:14px;margin-top:8px}.live-inspector progress{width:100%;height:5px;margin-top:12px;accent-color:#dec48b}
.execution-overview>h3{font-size:29px;margin:8px 0 12px}.execution-overview>p{margin-bottom:22px}.follow-unit{display:flex;width:100%;gap:14px;align-items:center;padding:10px;text-align:left;background:#1e343e;margin:9px 0}.follow-unit .capability-art{width:65px;height:65px}.follow-unit b{font-size:15px;line-height:1.4;display:block}.follow-unit small{display:block;margin-top:7px;color:#dcc68f!important}
.journey-progress{font-size:13px;color:#b9cacf;white-space:nowrap}.journey-next{display:flex;align-items:center;gap:18px;border:0;color:#f0dab0;font-size:14px;padding:8px 10px;text-align:left}.journey-next>span{color:#e6c885}.footer-left{flex:1}.footer>.row{flex-shrink:0}
.movement-routes .live-route{opacity:0;stroke-width:1.6}.movement-routes.show-planned .live-route{opacity:.7}.movement-routes .live-route.active,.movement-routes .live-route.selected-route{opacity:1;stroke-width:2.5}.movement-routes .live-route.selected-route{stroke:#e8d49e}
.live-piece.uncertain .piece-ident{border-style:dashed;color:#e4d09e}.live-piece.waiting .piece-ground{border-color:#e4c890}.live-piece.selected .piece-ground{border-color:#ffdf96;box-shadow:0 0 0 3px #cfb47655,0 0 16px #e1c27b88}
.howto-hotspot.team .capability-art{width:64px;height:64px}.howto-hotspot.team{transform:translate(-50%,-86%)}.howto-hotspot.team>span:not(.capability-art){font-size:12px}.howto-map>svg{stroke-linejoin:round}
.subnav[hidden]{display:none!important}
@media(max-width:900px){.footer>.row .secondary{display:none}.journey-next{font-size:13px}.footer-left{justify-content:space-between}.footer>.row{display:none}.panel-body>.popup .capability-art{float:right;width:105px;height:105px;margin:0 0 15px 15px}}
@media(prefers-reduced-motion:reduce){.map-world,.point-label,.live-piece,.live-piece .piece-ident{transition:none!important}}

/* Road layer remains useful on an empty plan; planned movements are a separate layer. */
.movement-routes .site-roads{display:none;fill:none;stroke:#9fdbe4;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #06131e)}
.movement-routes.show-planned .site-roads{display:block}
.movement-routes .site-roads path{vector-effect:non-scaling-stroke}
.movement-routes.show-planned .live-route{stroke:#ffe0a1;stroke-width:3;stroke-dasharray:8 5;opacity:1;filter:drop-shadow(0 1px 2px #06131e)}
.movement-routes .live-route.active{stroke:#fff;stroke-width:3.5;opacity:1}
.map-top-actions [data-act="layers"][aria-pressed="true"]{color:#ffe2a2;border-color:#d9c18e;background:#31464bed}
.route-legend{position:absolute;left:16px;bottom:20px;z-index:5;display:flex;gap:14px;align-items:center;flex-wrap:wrap;max-width:calc(100% - 85px);padding:8px 12px;border:1px solid #526b76;border-radius:5px;background:#10232cf2;color:#dbe6e9;font-size:12px;pointer-events:none;box-shadow:0 3px 12px #0004}
.map:has(.live-timeline) .route-legend{bottom:142px}
.route-legend .road-key,.route-legend .planned-key{display:inline-flex;gap:7px;align-items:center}
.route-legend .road-key:before,.route-legend .planned-key:before{content:'';width:20px;border-top:2px solid #9fdbe4}
.route-legend .planned-key:before{border-top:2px dashed #ffe0a1}
@media(max-width:560px){.route-legend{left:10px;bottom:12px;font-size:11px;gap:8px;padding:6px 8px}}
