/* BAR Grid / FlowUI reference: native-ui/reference.json. Presentation only. */
@font-face { font-family:BAR Exo; src:url('./native-ui/fonts/Exo2-SemiBold.otf') format('opentype'); font-weight:600; font-display:swap; }
@font-face { font-family:BAR Poppins; src:url('./native-ui/fonts/Poppins-Regular.otf') format('opentype'); font-weight:400; font-display:swap; }
@font-face { font-family:BAR Mono; src:url('./native-ui/fonts/SourceCodePro-Medium.otf') format('opentype'); font-weight:500; font-display:swap; }
:root { --body:'BAR Poppins',sans-serif; --display:'BAR Exo',sans-serif; --mono:'BAR Mono',monospace;
  --native-width:max(240px,37.825vh); --native-info:max(108px,14vh);
  --native-gap:clamp(3px,.45vh,6px); --hud-text:#e4e4e4; --hud-edge:#111; }
body { margin:0; overflow:hidden; background:#101010; font-family:var(--display); color:var(--hud-text); }
.bo-main { padding:0; width:100%; height:100dvh; }
#planner-app,.bo-battlefield { height:100%; }
.bo-scene { position:relative; display:block; height:100dvh; min-height:0; }
.bo-battlefield { display:block; position:relative; min-height:0; }
.bo-map-board { position:absolute; inset:0; border:0; }
.bo-header { position:absolute; right:0; top:0; z-index:12; height:29px; min-height:0; padding:2px 5px; gap:0;
  background:linear-gradient(#494949d9,#0a0a0ad9); border:1px solid #090909; border-radius:0 0 0 5px; }
.bo-header h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.bo-header .bf-brand { position:fixed; right:12px; bottom:7px; font-size:13px; opacity:.8; text-shadow:1px 1px #000; }
.bo-header nav { gap:0; }
.bo-header nav button,.bo-more-menu > summary { min-height:23px; padding:2px 8px; border:0; background:transparent; font:13px var(--display); color:#eee; }
.bo-header nav .bo-primary-tool { border:0; background:transparent; color:#d5f5bc; }
.bo-header nav button:hover,.bo-header nav .bo-primary-tool:hover,.bo-more-menu > summary:hover { background:#ffffff18; }
.bo-more-items { background:#161616f2; border-color:#595959; }
.bo-header nav .bo-more-items :is(button,a) { color:#eee; font-family:var(--display); }
.bo-header nav .bo-more-items :is(button,a):hover { background:#555; }
.bo-topbar { position:absolute; z-index:6; left:30%; top:0; width:34%; min-height:0; padding:0; gap:2px;
  grid-template-columns:1fr 1fr; align-items:start; }
.bo-map-context { position:absolute; top:43px; left:0; display:flex; gap:8px; padding:3px 6px;
  background:#090909b3; border-radius:3px; max-width:100%; }
.bo-map-context .bo-label { display:none; }
#hud-map-name { font:12px var(--display); color:#eee; flex-shrink:1; }
#hud-weather { font:11px var(--display); color:#ddd; white-space:nowrap; }
.bo-resource { position:relative; min-width:0; padding:2px 6px 3px 28px; height:40px;
  background:linear-gradient(#ffffff18,#080808b8 55%,#090909d9); border:1px solid #161616; border-radius:0 0 5px 5px;
  box-shadow:inset 0 1px #ffffff25,0 1px 2px #0008; }
.bo-resource > div:first-child { height:17px; font:11px var(--display); gap:3px; }
.bo-resource b { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.bo-resource strong { font:15px var(--display); margin:auto; color:#fff; text-shadow:1px 1px #000; }
.bo-resource .bo-resource-icon { display:inline-grid; position:absolute; left:5px; top:8px; color:#d8d8d8; font:20px var(--display); }
.bo-resource-energy .bo-resource-icon,.bo-resource-energy strong { color:#ffff94; }
.bo-resource progress { display:block; height:6px; border:1px solid #333; border-radius:1px; background:#111; }
.bo-resource progress::-webkit-progress-bar { background:linear-gradient(#333,#181818); }
.bo-resource progress::-webkit-progress-value { background:linear-gradient(#fff,#9c9c9c); }
.bo-resource-energy progress::-webkit-progress-value { background:linear-gradient(#ffffa5,#bbae28); }
.bo-resource .bo-resource-rates { display:flex; flex-wrap:nowrap; gap:3px; margin:1px 0 0; font:10px/10px var(--display); }
.bo-resource-rates > span { gap:3px; font-size:0; }
.bo-resource-rates > span::before { content:none; font:10px var(--display); color:#b0ef8b; }
.bo-resource-rates > span+span::before { content:'Δ'; color:#c7c7c7; }
.bo-resource-rates small { display:none; }
.bo-resource .bo-resource-rates b { position:static; clip-path:none; width:auto; height:auto; font:10px/10px var(--display); }
.bo-resource [id$='-income'] { min-width:0; }
.bo-resource-rates [data-trend='negative'] { color:#ff8c7d; }
.bo-resource [id$='-capacity'] { color:#c4c4c4; }
.bo-time-status { position:fixed; right:9px; top:34px; padding:4px 8px; align-items:end; background:#111b; color:#ccc; }
.bo-time-status strong { font:16px var(--display); }
.bo-command-dock { display:contents; }
.bo-hud-panel { background:linear-gradient(#ffffff13,transparent 35px),#0a0a0ab8;
  border:1px solid #101010; border-top-color:#555a; border-radius:4px;
  box-shadow:inset 0 0 0 1px #ffffff0b,1px 2px 3px #0008; }
.bo-minimap-panel { position:absolute; z-index:5; left:0; top:0; width:min(25vw,32vh); padding:0; border-radius:0 0 4px 0; }
.bo-minimap-panel .bo-section-head { position:absolute; left:4px; right:4px; bottom:3px; z-index:1; opacity:0; }
.bo-minimap-panel:hover .bo-section-head,.bo-minimap-panel:focus-within .bo-section-head { opacity:1; }
.bo-minimap-panel .bo-section-head h2,.bo-minimap-options { display:none; }
#overview-map { width:100%; height:auto; max-height:32vh; margin:0; border:0; }
.bo-selection { position:absolute; z-index:7; left:0; bottom:0; width:var(--native-width); height:var(--native-info); padding:5px; overflow:visible; }
.bo-selected-unit { gap:6px; align-items:start; }
.bo-selected-unit img { width:clamp(54px,7vh,76px); height:clamp(54px,7vh,76px); border:0; padding:0; background:#30352a; object-fit:cover; }
.bo-selected-unit h2 { margin:0 0 2px; font:clamp(14px,1.65vh,19px)/1.15 var(--display); color:#c4f5a3; text-shadow:1px 1px #000; }
.bo-selected-unit .bo-label { display:block; margin:0 0 3px; font:11px/1.1 var(--display); letter-spacing:0; text-transform:none; color:#ddd; }
#selected-state { font:12px/1.2 var(--display); color:#d8e6d0; }
#selected-detail { margin:4px 0 0; font:11px/1.25 var(--display); color:#d4d4d4; min-height:0; }
#selected-progress { margin:3px 0 0; height:5px; }
.bo-unit-options { position:absolute; right:5px; bottom:3px; margin:0; background:#151515eb; font:11px var(--display); z-index:3; }
.bo-unit-options > summary { padding:3px 6px; }
.bo-unit-options[open] { width:260px; padding:6px; border:1px solid #666; bottom:0; }
.bo-unit-options[open] > div { margin-top:4px; }
#native-commands { position:absolute; left:calc(100% + var(--native-gap)); bottom:0; width:var(--native-width); height:var(--native-info);
  display:grid; grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(3,minmax(0,1fr)); align-content:stretch; gap:3px; padding:6px;
  background:linear-gradient(#ffffff13,transparent 35px),#0a0a0ab8; border:1px solid #191919; border-radius:4px; }
#native-commands button { min-height:0; height:auto; padding:2px 1px; font:clamp(10px,1.2vh,16px)/1.1 var(--display); color:#eee;
  background:linear-gradient(#5e5e5ee6,#181818ed 85%); border:1px solid #151515; border-top-color:#7b7b7b; border-radius:3px; text-shadow:1px 1px #000; }
#native-commands button span { display:none; }
#native-commands button kbd { display:none; }
#native-commands button:hover:not(:disabled) { background:linear-gradient(#8a8a8a,#333); border-color:#aaa; }
#native-commands button[aria-pressed='true'] { color:#161616; border-color:#e4e4e4; background:linear-gradient(#f4f4f4,#b5b5b5); text-shadow:none; }
#native-commands button:disabled { opacity:.43; }
#native-commands [data-native-state] { grid-row:1; }
#native-commands #stop-unit { grid-area:2/1; }
#native-commands #route-unit { grid-area:2/2; }
#native-commands [data-native-command='patrol'] { grid-area:2/3; }
#native-commands [data-native-command='fight'] { grid-area:2/4; }
#native-commands #guard-target { grid-area:3/1; }
#native-commands #assist-target { grid-area:3/2; }
#native-commands #reclaim-target { grid-area:3/3; }
#native-commands [data-native-command='restore'] { grid-area:3/4; }
.bo-selected-group { display:flex; gap:4px; flex-wrap:wrap; max-height:72px; overflow:auto; }
.bo-selected-group button { padding:0; border:1px solid #aaa; background:#171717; width:42px; height:42px; position:relative; }
.bo-selected-group img { width:100%; height:100%; object-fit:cover; }
.bo-selected-group span { position:absolute; right:2px; bottom:0; color:white; text-shadow:1px 1px black; }
.bo-selection[data-multiple='true'] #selected-detail { display:none; }
.bo-selection[data-multiple='true'] #selected-progress { position:absolute; left:5px; right:85px; bottom:2px; width:calc(100% - 90px); height:3px; }
.bo-selection[data-multiple='true'] .bo-selected-group { max-height:45px; padding-right:80px; flex-wrap:nowrap; }
.bo-build-panel { position:absolute; z-index:8; left:0; bottom:calc(var(--native-info) + var(--native-gap)); width:var(--native-width); padding:3px; display:flex; flex-direction:column; overflow:visible; container-type:normal; }
.bo-grid-and-details { display:block; order:1; flex:none; }
.bo-palette { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(3,1fr); grid-auto-rows:auto; gap:1px; min-height:0; aspect-ratio:4/3; }
.bo-unit,.bo-unit-empty { position:relative; display:block; width:100%; height:100%; min-height:0; padding:0; overflow:hidden; border:1px solid #242424;
  background:linear-gradient(135deg,#8a8b76,#42483e); border-radius:2px; text-align:left; }
.bo-unit img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; padding:0; opacity:1; transition:transform .1s; }
.bo-unit:hover img,.bo-unit:focus-visible img { transform:scale(1.15); }
.bo-unit[aria-pressed='true'] { outline:2px solid #e8c46b; outline-offset:-2px; }
.bo-unit[aria-pressed='true']::after { content:''; position:absolute; inset:0; background:#ffda3230; pointer-events:none; }
.bo-unit > span { position:absolute; inset:0; display:flex; flex-direction:column; align-items:end; justify-content:end; padding:2px; gap:0; pointer-events:none; text-shadow:1px 1px 2px #000,0 0 3px #000; }
.bo-unit strong { display:none; }
.bo-unit small { position:static; top:auto; right:auto; font:clamp(10px,1.5vh,15px)/1.1 var(--display); color:#fff; background:#0004; }
.bo-unit small:last-child { position:static; top:auto; }
.bo-unit small+small { color:#ffff85; }
.bo-unit .bo-hotkey { position:absolute; top:2px; right:3px; bottom:auto; left:auto; z-index:2; background:none; border:0; padding:0;
  color:#d7ffd7; font:clamp(10px,1.5vh,15px) var(--display); text-shadow:1px 1px 2px black; }
.bo-unit .bo-unit-count { position:absolute; top:1px; left:2px; bottom:auto; right:auto; color:#beffbe; font:14px var(--display); background:#000a; padding:0 3px; }
.bo-build-panel[data-menu-empty='true'] { visibility:hidden; }
.bo-unit-empty { opacity:.4; background:#252525; }
.bo-build-categories { order:2; display:grid; grid-template-columns:repeat(4,1fr); gap:2px; padding-top:3px; }
.bo-build-categories button { min-height:clamp(27px,4.15vh,45px); padding:4px 0; font:clamp(10px,1.35vh,14px) var(--display); color:#eee;
  background:linear-gradient(#484848,#131313); border:1px solid #080808; border-radius:2px; }
.bo-build-categories button kbd { float:right; border:0; background:none; font:inherit; color:#d7ffd7; padding:0 2px; }
.bo-build-categories button[aria-pressed='true'] { color:#e6ffbe; background:linear-gradient(#54623a,#212518); border-color:#8c9b63; }
.bo-build-controls { position:absolute; left:0; right:0; bottom:calc(100% + 3px); padding:4px; height:35px; display:flex; gap:4px;
  background:#111e; border:1px solid #555; border-radius:3px; opacity:0; pointer-events:none; }
.bo-build-panel:hover .bo-build-controls,.bo-build-panel:focus-within .bo-build-controls { opacity:1; pointer-events:auto; }
.bo-producer-field { flex:1; min-width:0; }
.bo-producer-field > span { display:none; }
.bo-build-controls :is(select,input) { min-width:0; width:100%; padding:2px 4px; height:25px; font:12px var(--display); background:#222; color:#ddd; border:1px solid #777; }
#unit-search { flex:0 1 42%; }
.bo-build-detail { display:none; position:absolute; inset:0; width:100%; height:100%; padding:5px; z-index:2; background:#141414f5; border:0; border-radius:4px; box-shadow:none; pointer-events:none; }
.bo-battlefield:has(.bo-palette .bo-unit:hover) .bo-build-detail,.bo-battlefield:has(.bo-palette .bo-unit:focus-visible) .bo-build-detail { display:block; }
.bo-build-detail-heading img { width:70px; height:70px; object-fit:cover; }
.bo-build-detail-heading h3 { color:#c4f5a3; font-family:var(--display); }
.bo-build-costs { margin:5px 0; gap:14px; border:0; padding:0; }
.bo-roster-heading,.bo-unit-roster { display:none; }
.bo-build-footer { position:absolute; left:calc(100% + 7px); bottom:0; display:flex; flex-wrap:wrap; gap:5px; width:270px; min-height:25px; padding:5px; background:#171717e8; border:1px solid #555; opacity:0; pointer-events:none; }
.bo-build-panel:hover .bo-build-footer,.bo-build-panel:focus-within .bo-build-footer { opacity:1; pointer-events:auto; }
.bo-build-panel:has(.bo-unit:hover) .bo-build-footer,.bo-build-panel:has(.bo-unit:focus-visible) .bo-build-footer { opacity:0; pointer-events:none; }
.bo-build-footer #build-menu-help { flex-basis:100%; font:11px var(--display); color:#ddd; margin:0; }
.bo-factory-production { order:0; display:block; padding:4px 2px; }
.bo-factory-production .bo-section-head { margin-bottom:3px; }
.bo-factory-production h2,.bo-factory-production span { font:11px var(--display); color:#ddd; }
#factory-queue { display:flex; gap:3px; max-height:62px; overflow:auto; }
#factory-queue button { flex:none; position:relative; width:48px; height:48px; padding:0; border:1px solid #676767; background:#242424; }
#factory-queue img { width:100%; height:100%; object-fit:cover; }
#factory-queue progress { position:absolute; bottom:0; left:0; height:5px; }
.bo-map-playback { position:absolute; z-index:6; right:9px; bottom:30px; left:calc(var(--native-width)*2 + 12px); min-height:38px; padding:4px 6px; gap:6px; font-family:var(--display); }
.bo-map-playback .bo-timeline { flex-basis:100%; order:5; }
.bo-map-playback :is(label,button,select,input,output) { font-family:var(--display); font-size:11px; }
.bo-map-playback .bf-btn { background:linear-gradient(#656565,#222); color:#e9ffcc; border:1px solid #aaa6; clip-path:none; min-height:27px; }
.bo-map-playback .bo-completion-toggle { font-family:var(--display); font-size:11px; }
.bo-map-overlay { top:76px; left:calc(min(25vw,32vh) + 10px); right:85px; }
#placement-help { background:#090909a8; color:#e1e1e1; font:12px var(--display); border-radius:3px; padding:4px 6px; }
.bo-hud-button,.bo-selection-tools button,.bo-text-button { font-family:var(--display); color:#ddd; background:linear-gradient(#505050,#171717); border:1px solid #333; border-radius:3px; }
.bo-map-tools { top:78px; right:9px; }
.bo-map-tools button { background:linear-gradient(#555d,#151515dd); border-color:#444; color:#eee; border-radius:3px; }
.bo-map-feedback { left:calc(var(--native-width) + 10px); bottom:calc(var(--native-info) + 10px); max-width:650px; right:75px; }
.bo-map-feedback .bo-status:not(:empty),#map-coordinate { background:#080808b8; color:#e9e9e9; font-family:var(--display); border-radius:3px; }
.bo-start-prompt { left:calc(min(25vw,32vh) + 15px); top:130px; background:#151515e6; }
.bo-start-prompt h2 { font-family:var(--display); color:#eee; }
.bo-start-prompt .bf-btn,.bo-dialog .bf-btn { clip-path:none; background:linear-gradient(#626b51,#24291c); border:1px solid #7d896b; color:#eeffdc; }
.bo-start-prompt :is(p,span),.bo-muted { color:#bdbdbd; }
.bo-label { color:#ccc; }
.bo-workspace-sidebar { position:absolute; z-index:10; right:8px; top:80px; bottom:130px; width:330px; height:auto; background:#161616f2; border-color:#666; }
.bo-sidebar-tabs button[aria-selected='true'] { background:#484d3d; color:#e3f5cf; }
.bo-sidebar-tabs button { font-family:var(--display); }
.bo-dialog { font-family:var(--display); background:#202020; color:#eee; border-color:#888; }
.bo-dialog .bf-input,.bo-dialog :is(input,select,textarea) { font-family:var(--display); background:#131313; color:#eee; border-color:#666; }
.bo-dialog .bf-h3,.bo-dialog h2,.bo-dialog h3 { font-family:var(--display); }
.bo-dialog .bo-muted { color:#bcbcbc; }
.bo-native-tooltip { position:fixed; z-index:10000; max-width:min(420px,calc(100vw - 16px)); padding:9px 12px;
  background:linear-gradient(#ffffff12,transparent 30px),#101010f2; color:#eee; border:1px solid #666;
  border-radius:4px; box-shadow:0 3px 10px #0009; font:600 14px/1.4 var(--display); text-shadow:1px 1px #000;
  white-space:pre-line; overflow:hidden; overflow-wrap:anywhere; pointer-events:none; }
.bo-mobile-workspace-tabs,.bo-mobile-dock-heading,#dock-resizer { display:none; }
.bo-scene[data-map-focus='true'] :is(.bo-selection,.bo-build-panel,.bo-minimap-panel,.bo-map-playback) { display:none; }
@media (max-width:1100px) and (min-width:701px) {
  :root { --native-width:240px; --native-info:110px; }
  .bo-header nav button,.bo-more-menu > summary { padding:2px 5px; font-size:12px; }
  .bo-topbar { left:27%; width:35%; }
  .bo-map-context { max-width:330px; }
  #hud-weather { max-width:140px; overflow:hidden; text-overflow:ellipsis; }
  .bo-map-playback { left:490px; }
  .bo-map-playback .bo-duration,.bo-map-playback #extend-timeline { display:none; }
}
@media (max-width:700px), (max-width:1000px) and (max-height:650px) {
  body { overflow:hidden; }
  .bo-header { left:0; width:100%; height:33px; padding:2px 5px; flex-wrap:nowrap; }
  .bo-header .bf-brand { display:none; }
  .bo-header nav { margin-left:0; width:100%; justify-content:space-between; }
  .bo-header nav button,.bo-more-menu > summary { font-size:12px; padding:3px 7px; }
  .bo-header nav .bo-more-items :is(button,a) { font-size:14px; min-height:40px; }
  .bo-topbar { top:34px; left:0; width:100%; gap:2px; padding:2px; }
  .bo-resource { height:43px; padding-right:8px; }
  .bo-resource .bo-resource-rates b { font-size:11px; }
  .bo-resource strong { font-size:16px; }
  .bo-map-context { top:50px; left:5px; max-width:calc(100vw - 76px); gap:5px; }
  #hud-map-name { max-width:160px; }
  #hud-weather { font-size:10px; white-space:normal; }
  .bo-time-status { top:85px; right:4px; font-size:10px; }
  .bo-map-overlay { top:125px; left:6px; right:52px; }
  #placement-help { font-size:11px; width:100%; }
  .bo-map-tools { top:148px; right:5px; }
  .bo-map-tools button { min-width:36px; height:36px; }
  .bo-start-prompt { left:10px; right:54px; top:210px; max-width:330px; padding:14px; }
  .bo-start-prompt h2 { font-size:21px; }
  .bo-map-feedback { left:7px; right:7px; bottom:145px; }
  #map-coordinate { display:none; }
  .bo-map-playback { left:0; right:0; bottom:42px; min-height:70px; padding:5px 7px; gap:5px 8px; }
  .bo-map-playback .bo-duration,.bo-map-playback #extend-timeline { display:none; }
  .bo-map-playback .bo-completion-toggle { font-size:12px; }
  .bo-map-playback .bo-timeline { order:5; }
  .bo-map-playback .bf-btn { min-height:30px; font-size:12px; }
  .bo-mobile-workspace-tabs { display:flex; position:absolute; z-index:9; bottom:0; left:0; width:100%; height:42px; gap:2px; background:#111; }
  .bo-mobile-workspace-tabs button { flex:1; padding:5px 1px; border:1px solid #555; background:linear-gradient(#484848,#171717); color:#eee; font:12px var(--display); }
  .bo-mobile-workspace-tabs button[aria-expanded='true'] { color:#d2ffad; border-color:#9cbd7d; }
  .bo-command-dock { display:none; position:absolute; z-index:8; left:5px; right:5px; bottom:var(--controls-bottom); max-height:min(55vh,440px); height:auto; overflow:auto; background:#181818f2; border:1px solid #666; }
  .bo-scene:not([data-mobile-dock='none']) .bo-command-dock { display:block; }
  .bo-command-dock > section { display:none; position:static; width:auto; height:auto; padding:8px; }
  .bo-scene[data-mobile-dock='overview'] .bo-minimap-panel,.bo-scene[data-mobile-dock='commands'] .bo-selection,.bo-scene[data-mobile-dock='build'] .bo-build-panel { display:block; }
  .bo-minimap-panel .bo-section-head { position:static; opacity:1; }
  #overview-map { max-width:220px; max-height:220px; margin:auto; }
  #native-commands { position:static; width:auto; height:auto; padding:7px 0; grid-template-columns:repeat(4,1fr); }
  #native-commands button { min-height:40px; font-size:13px; }
  .bo-selected-unit img { width:64px; height:64px; }
  .bo-selected-unit h2 { font-size:18px; }
  .bo-unit-options { position:static; width:auto; margin-top:5px; }
  .bo-unit-options[open] { width:auto; }
  .bo-selection[data-multiple='true'] .bo-selected-group { max-height:90px; padding-right:0; flex-wrap:wrap; }
  .bo-selection[data-multiple='true'] #selected-detail { display:block; }
  .bo-selection[data-multiple='true'] #selected-progress { position:static; width:100%; }
  .bo-build-controls { position:static; opacity:1; pointer-events:auto; margin-bottom:5px; height:auto; }
  .bo-build-controls :is(select,input) { height:34px; font-size:13px; }
  .bo-palette { aspect-ratio:4/3; max-height:290px; }
  .bo-unit small,.bo-unit .bo-hotkey { font-size:13px; }
  .bo-build-categories button { min-height:35px; font-size:12px; }
  .bo-build-footer { position:static; opacity:1; pointer-events:auto; width:auto; margin-top:5px; }
  .bo-build-panel:has(.bo-unit:focus-visible) .bo-build-footer { opacity:1; pointer-events:auto; }
  .bo-selection .bo-build-detail { display:none !important; }
  .bo-mobile-dock-heading { position:absolute; z-index:9; right:6px; bottom:calc(var(--controls-bottom) + min(55vh,440px)); }
  .bo-mobile-dock-heading strong { display:none; }
  .bo-scene:not([data-mobile-dock='none']) .bo-mobile-dock-heading { display:block; }
  .bo-workspace-sidebar { top:135px; left:5px; right:5px; bottom:var(--controls-bottom); width:auto; height:auto; max-height:none; }
  .bo-dialog { width:calc(100vw - 14px); max-height:calc(100dvh - 14px); }
}

/* The terrain renderer and interaction canvas share one canonical camera. */
#terrain-map { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
#terrain-map[hidden] { display:none; }
#build-map { position:relative; z-index:1; }
#build-map[data-view-mode='3d'] { background:transparent; }
.bo-map-board > .bo-map-overlay { z-index:2; right:90px; }
.bo-map-board > .bo-map-feedback { z-index:2; flex-wrap:wrap; }
.bo-map-board > .bo-map-tools { z-index:3; }
.bo-map-board > .bo-start-prompt { z-index:4; }
.bo-view-switch { display:flex; gap:2px; }
.bo-view-switch button { flex:1; padding:0 5px; }
.bo-view-switch button[aria-pressed='true'] { border-color:#8abe78; color:#dbffd2; background:linear-gradient(#4d6045,#1d2d18); }
#map-view-status:empty { display:none; }
