[hidden] { display: none !important; }
.bo-command-setting { margin-top: 8px; font-size: 10px; }
.bo-command-setting select { width: 100%; min-width: 0; }
.bo-command-setting p { margin: 6px 0; font-size: 10px; }
:root { --hud-bg: #171d23; --hud-edge: #424c55; --hud-text: #d9e0e5; }
body { background: #0c1014; color: var(--hud-text); }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible, summary:focus-visible { outline: 2px solid #e3c56b; outline-offset: 2px; }
.bo-sr, .bf-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bo-header { display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 18px; background: #10151b; border-bottom: 1px solid #323d47; }
.bo-header .bf-brand { font-size: 19px; white-space: nowrap; }
.bo-header h1 { font: 600 13px var(--body); color: #a5b1bc; margin: 0; padding-left: 20px; border-left: 1px solid #37404a; white-space: nowrap; }
.bo-header nav { display: flex; gap: 4px; margin-left: auto; }
.bo-header nav button, .bo-hud-button, .bo-selection-tools button, .bo-text-button { background: #222a32; color: #c3ced7; border: 1px solid #46515c; padding: 6px 10px; font-size: 12px; }
.bo-header nav button:hover, .bo-hud-button:hover, .bo-selection-tools button:hover { background: #343f49; }
.bo-blueprints { color: #94adbd; font-size: 12px; white-space: nowrap; }
.bo-main { max-width: none; width: 100%; padding: 8px 12px 12px; }
.bo-topbar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,1.1fr) minmax(220px,1.1fr) 100px; gap: 28px; align-items: center; min-height: 58px; padding: 0 8px 8px; }
.bo-map-context { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: baseline; min-width: 0; }
.bo-label { font: 600 10px var(--body); letter-spacing: .09em; color: #8d9eac; text-transform: uppercase; }
#hud-map-name { text-align: left; border: 0; color: #e5ecef; background: none; font-size: 14px; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hud-weather { grid-column: 2; font: 11px var(--mono); color: #98b0be; }
.bo-resource > div { display: flex; align-items: baseline; gap: 6px; font: 11px var(--mono); color: #8899a8; }
.bo-resource b { color: #c4cfd7; font: 600 12px var(--body); }
.bo-resource strong { color: #f0f3f4; font: 600 17px var(--mono); margin-left: auto; }
.bo-resource-energy strong, .bo-resource-energy .bo-resource-icon { color: #e8c963; }
.bo-resource [id$="-income"] { color: #9bcc91; min-width: 62px; text-align: right; }
.bo-resource-icon { display: inline-grid; place-items: center; width: 19px; height: 20px; font: 700 14px var(--display); color: #c9e0ee; }
progress { height: 6px; width: 100%; border: 1px solid #515a63; border-radius: 0; overflow: hidden; background: #080c10; appearance: none; }
progress::-webkit-progress-bar { background: #080c10; }
progress::-webkit-progress-value { background: #b8cbd5; }
progress::-moz-progress-bar { background: #b8cbd5; }
.bo-resource-energy progress::-webkit-progress-value { background: #b8a14b; }
.bo-resource-energy progress::-moz-progress-bar { background: #b8a14b; }
.bo-time-status { display: flex; flex-direction: column; align-items: flex-end; font: 11px var(--body); color: #8f9dac; }
.bo-time-status strong { font: 600 21px var(--mono); color: #e5ecef; }
.bo-scene { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 10px; height: calc(100dvh - 126px); min-height: 630px; }
.bo-battlefield { display: grid; grid-template-rows: minmax(300px,1fr) auto auto; gap: 6px; min-width: 0; min-height: 0; }
.bo-hud-panel { background: linear-gradient(180deg,#252c32f2,#171d23f5 34px); border: 1px solid #48515a; border-top-color: #616971; box-shadow: inset 0 1px 0 #ffffff09; min-width: 0; }
.bo-map-board { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #111a1b; border: 1px solid #535e66; }
#build-map { display: block; width: 100%; height: 100%; background: #10191b; touch-action: none; }
#build-map[data-tool]:not([data-tool="inspect"]) { cursor: crosshair; }
.bo-map-overlay { position: absolute; top: 10px; left: 10px; right: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; pointer-events: none; }
.bo-map-overlay button { pointer-events: auto; }
#placement-help { margin-right: auto; color: #e2ebed; font-size: 11px; background: #101820c9; padding: 6px 9px; }
.bo-map-tools { position: absolute; right: 8px; top: 8px; display: grid; gap: 4px; }
.bo-map-tools button { min-width: 36px; height: 33px; background: #18212cde; color: #d9e5e9; border: 1px solid #657580; }
.bo-map-feedback { position: absolute; left: 10px; bottom: 6px; right: 10px; display: flex; justify-content: space-between; align-items: end; gap: 10px; pointer-events: none; }
.bo-map-feedback .bo-status:not(:empty), #map-coordinate { background: #101820d9; color: #d9e5e9; padding: 5px 8px; font-size: 11px; line-height: 1.4; margin: 0; }
#map-coordinate { font: 10px var(--mono); white-space: nowrap; margin-left: auto; }
.bo-start-prompt { position: absolute; left: 26px; top: 65px; max-width: 350px; padding: 18px; background: #131c24eb; }
.bo-start-prompt h2 { font: 600 23px var(--display); margin: 0; }
.bo-start-prompt p { color: #aabdc9; font-size: 14px; margin: 8px 0 14px; }
.bo-start-prompt button { min-height: 34px; font-size: 11px; margin: 0 3px 3px 0; }
.bo-map-playback { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-height: 42px; padding: 4px 8px; }
.bo-map-playback .bf-btn { font-size: 11px; min-height: 28px; padding: 4px 10px; white-space: nowrap; }
.bo-timeline { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 11px; color: #aebbc5; }
.bo-timeline output { color: #e1e8ec; font: 12px var(--mono); }
.bo-timeline input { flex: 1; min-width: 40px; accent-color: #b1c5d4; height: 17px; }
.bo-speed { display: flex; gap: 5px; align-items: center; font-size: 11px; color: #93a5b3; }
.bo-speed select { background: #11181f; border: 1px solid #4b5861; padding: 2px 4px; color: #dfe8ee; font-size: 11px; }
.bo-duration { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: #aebbc5; font-size: 11px; }
#duration-minutes { width: 68px; min-width: 0; background: #11181f; color: #e5ecef; border: 1px solid #4b5861; padding: 3px 4px; font: 11px var(--mono); }
#extend-timeline { font-size: 10px; padding: 5px 7px; }
.bo-map-playback .bo-hud-button { white-space: nowrap; }
.bo-map-playback .bo-completion-toggle { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: #aebbc5; font-size: 11px; }
.bo-map-playback .bo-completion-toggle input { width: 13px; height: 13px; margin: 0; accent-color: #b1c5d4; }
.bo-command-dock { display: grid; grid-template-columns: 184px 250px minmax(0,1fr); gap: 6px; }
.bo-section-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.bo-section-head h2 { margin: 0; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .05em; color: #e0e6e9; }
.bo-text-button { border: 0; background: transparent; color: #9ab4c5; padding: 0; font-size: 10px; }
.bo-minimap-panel { padding: 8px; }
#overview-map { display: block; width: 100%; aspect-ratio: 1; height: auto; margin-top: 7px; border: 1px solid #516169; cursor: crosshair; }
.bo-map-layers { font-size: 10px; margin-top: 6px; color: #b0c0cc; }
.bo-map-layers summary { cursor: pointer; }
.bo-map-layers div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.bo-map-layers label { display: flex; align-items: center; gap: 3px; }
.bo-map-layers input { accent-color: #8ec4ce; width: 12px; height: 12px; }
.bo-reclaim-summary { font-size: 10px; line-height: 1.5; color: #b0c0cc; margin: 7px 0 0; }
.bo-feature-inspector { margin-top: 8px; padding: 8px; border: 1px solid #36535b; background: #0c2026; display: grid; gap: 5px; font-size: 11px; overflow-wrap: anywhere; }
.bo-feature-inspector[hidden] { display: none; }
.bo-feature-inspector small { color: #a4b9c1; }
.bo-feature-inspector button { padding: 7px 5px; font-size: 10px; white-space: normal; }
.bo-selection { padding: 10px; }
.bo-selected-unit { display: flex; align-items: center; gap: 9px; }
.bo-selected-unit img { width: 66px; height: 66px; background: #10161b; border: 1px solid #606a71; object-fit: contain; padding: 2px; }
.bo-selected-unit > div { min-width: 0; }
.bo-selected-unit h2 { font: 600 16px var(--display); line-height: 1.12; margin: 4px 0; }
#selected-state { display: block; color: #a9c59e; font-size: 11px; }
#selected-detail { margin: 8px 0; font: 10px/1.6 var(--mono); color: #a4b4c0; min-height: 16px; }
#selected-progress { height: 4px; margin-bottom: 5px; }
.bo-commands { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.bo-commands button { background: linear-gradient(#343c43,#232b32); color: #c8d4db; border: 1px solid #55606a; min-height: 42px; font-size: 10px; padding: 3px; }
.bo-commands button span { display: block; color: #acbfca; font-size: 17px; line-height: 18px; }
.bo-commands button:hover:not(:disabled), .bo-commands button[aria-pressed="true"] { background: #344751; border-color: #88a8b4; }
.bo-selection-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.bo-selection-tools button { font-size: 9px; padding: 4px; flex: 1; }
.bo-build-panel { display: flex; flex-direction: column; padding: 8px; container-type: inline-size; }
.bo-grid-and-details { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.bo-build-detail { display: none; min-width: 0; padding: 6px 0; }
.bo-build-detail-heading { display: flex; align-items: center; gap: 10px; }
.bo-build-detail-heading img { width: 56px; height: 56px; flex: none; object-fit: contain; background: #121c24; border: 1px solid #435664; }
.bo-build-detail-heading h3 { font: 600 17px var(--display); margin: 4px 0; }
#build-detail-type { font-size: 10px; color: #9cb2bf; }
.bo-build-costs { display: flex; gap: 18px; margin: 8px 0; padding-bottom: 8px; border-bottom: 1px solid #3b4953; }
.bo-build-costs span { display: block; color: #8fabbc; font-size: 10px; margin-bottom: 4px; }
.bo-build-costs strong { font: 600 13px var(--mono); }
#build-detail-energy { color: #d4bd69; }
.bo-roster-heading { display: flex; justify-content: space-between; margin: 8px 0 5px; }
#roster-count { color: #9ab2c2; font: 10px var(--mono); }
.bo-unit-roster { display: flex; gap: 4px; max-height: 44px; overflow: auto; scrollbar-width: thin; }
.bo-unit-roster button { flex: none; background: #16232d; border: 1px solid #455d6d; width: 34px; height: 34px; padding: 1px; }
.bo-unit-roster button[aria-pressed="true"] { border-color: #c5d9a0; background: #385244; }
.bo-unit-roster img { width: 30px; height: 30px; object-fit: contain; }
@container (min-width:540px) { .bo-grid-and-details { grid-template-columns: minmax(0,370px) minmax(0,1fr); } .bo-build-detail { display: block; } }
.bo-build-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.bo-build-controls :is(select,input) { width: 100%; min-width: 0; height: 27px; padding: 3px 6px; background: #11181f; color: #bfcfd8; border: 1px solid #4a5862; font-size: 11px; }
.bo-build-categories { display: flex; gap: 3px; margin-bottom: 5px; }
.bo-build-categories button { flex: 1; padding: 5px 2px; font: 600 10px var(--body); border: 1px solid #4a555d; background: #252e36; color: #a6bac7; }
.bo-build-categories button[aria-pressed="true"] { background: #384851; color: #ecf2f5; border-color: #97adba; }
.bo-palette { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 61px; gap: 3px; min-height: 189px; }
.bo-unit { position: relative; min-width: 0; overflow: hidden; border: 1px solid #54616b; background: linear-gradient(#26313b,#141e26); color: #e2edf2; padding: 3px; display: flex; align-items: center; justify-content: center; }
.bo-unit:hover { border-color: #aac5d3; background: #354854; }
.bo-unit[aria-pressed="true"] { border-color: #f1da8a; box-shadow: inset 0 0 0 1px #e4c868; }
.bo-unit img { width: 48px; height: 48px; object-fit: contain; }
.bo-unit > span { position: absolute; inset: 0; pointer-events: none; }
.bo-unit strong { position: absolute; left: 3px; right: 3px; bottom: 2px; font: 500 9px/1.1 var(--body); text-shadow: 0 1px 2px #000, 0 0 3px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-unit small { position: absolute; font: 500 9px var(--mono); top: 2px; right: 3px; text-shadow: 0 1px 2px #000; color: #e1e5e6; }
.bo-unit small:last-child { top: 14px; color: #e6cb65; }
.bo-unit .bo-unit-count { position: absolute; right: 3px; bottom: 15px; font: 700 10px var(--mono); padding: 0 3px; background: #294d59; color: #f0f6f8; }
.bo-unit .bo-hotkey { position: absolute; left: 3px; top: 3px; color: #f1dfa6; background: #10171de8; border: 1px solid #667077; padding: 1px 3px; font: 600 10px var(--mono); pointer-events: none; }
.bo-unit-empty { border: 1px solid #354049; background: #151d24; }
.bo-commands kbd, .bo-build-categories kbd, .bo-selection-tools kbd { font: 600 10px var(--mono); color: #e6d3a1; }
.bo-hotkeys-dialog { max-width: 620px; }
.bo-hotkeys-dialog h3 { margin-bottom: 8px; font-size: 15px; }
.bo-hotkeys-dialog p { font-size: 13px; color: #b9cbd7; line-height: 1.6; }
.bo-hotkeys-dialog kbd { display: inline-block; border: 1px solid #5d6c77; background: #18232d; color: #e6d3a1; border-radius: 2px; padding: 0 5px; font: 12px/1.6 var(--mono); }
.bo-key-grid { display: grid; grid-template-columns: repeat(4,40px); gap: 5px; margin: 10px 0; }
.bo-key-grid kbd { text-align: center; padding: 6px; }
.bo-shortcut-list { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px 16px; font-size: 12px; }
.bo-shortcut-list :is(dt,dd) { margin: 0; }
.bo-shortcut-list dd { color: #b9cbd7; }
.bo-palette > p { grid-column: 1/-1; color: #a3b6c3; font-size: 12px; align-self: center; text-align: center; }
.bo-build-footer { display: flex; gap: 4px; align-items: center; margin-top: auto; padding-top: 5px; min-height: 21px; }
.bo-spacing { display:flex; align-items:center; gap:4px; color:#aebbc5; font-size:10px; white-space:nowrap; }
.bo-spacing input { width:38px; min-width:0; background:#111a22; color:#d9e0e5; border:1px solid #52606b; padding:1px 2px; font-size:10px; }
#build-menu-help { margin: 0 auto 0 0; color: #9eafb9; font-size: 10px; line-height: 1.3; }
.bo-build-footer button { border: 1px solid #52606b; padding: 0 6px; color: #c2d6df; background: #222c34; }
#palette-page { color: #a4b6c3; font: 10px var(--mono); white-space: nowrap; }
.bo-queue-panel { --queue-done: #83c7a4; --queue-building: #d5bd70; display: flex; flex-direction: column; padding: 12px 10px; min-height: 0; }
#order-count { color: #91a3b0; font: 11px var(--mono); }
.bo-queue-info { margin-top: 8px; }
.bo-queue-info .bo-muted { font-size: 11px; margin: 0 0 5px; }
.bo-queue-legend { display: flex; gap: 10px; color: #97aab7; font-size: 9px; }
.bo-queue-legend span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; background: var(--queue-accent); }
[data-queue-color="done"], .bo-queue li[data-phase="done"] { --queue-accent: var(--queue-done); }
[data-queue-color="building"], .bo-queue li:is([data-phase="building"],[data-phase="stalled"],[data-phase="reclaiming"]) { --queue-accent: var(--queue-building); }
.bo-queue { list-style: decimal; padding-left: 21px; margin: 10px 0; flex: 1; min-height: 150px; overflow: auto; scrollbar-width: thin; scrollbar-color: #4a5c68 #141b23; }
.bo-queue li { padding: 6px 3px; border-bottom: 1px solid #34424c; font-size: 11px; }
.bo-queue li::marker { font: 10px var(--mono); color: #96aebc; }
.bo-queue li:is([data-phase="done"],[data-phase="building"],[data-phase="stalled"],[data-phase="reclaiming"]) { box-shadow: inset 2px 0 var(--queue-accent); background: color-mix(in srgb,var(--queue-accent) 8%,transparent); }
.bo-queue li:is([data-phase="done"],[data-phase="building"],[data-phase="stalled"],[data-phase="reclaiming"])::marker { color: var(--queue-accent); }
.bo-step { min-width: 0; }
.bo-step [data-action="select"] { border: 0; background: none; color: #d2e0e8; font: 600 11px var(--body); text-align: left; padding: 1px 3px; max-width: 100%; }
.bo-step [aria-pressed="true"] { color: #d9cd96; }
.bo-step [data-action="select"] small { display: none; }
.bo-row-meta { display: block; padding: 1px 3px; font-size: 9px; color: #9bafbd; }
.bo-queue-timing { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 3px; color: #a8c4d4; font: 9px/1.4 var(--mono); }
.bo-queue-timing > span { white-space: nowrap; }
.bo-queue-reason, .bo-queue-shortage { display: block; color: #e0bb73; padding: 1px 3px; font-size: 10px; }
.bo-queue-reason { color: #edaa93; }
.bo-queue li[data-phase="done"] .bo-queue-shortage { color: #a0b4c2; }
.bo-queue-delay { color: #e0bb73; padding: 2px 3px; font-size: 10px; line-height: 1.5; }
.bo-queue-delay > span { display: block; }
.bo-queue-delay > span + span { color: #a8bac6; font: 9px/1.5 var(--mono); }
.bo-row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: .65; margin-top: 2px; }
.bo-step:hover .bo-row-actions, .bo-step:focus-within .bo-row-actions { opacity: 1; }
.bo-row-actions button { min-width: 23px; height: 21px; border: 1px solid #455763; background: #17232d; color: #b7cbd8; font-size: 10px; padding: 1px 5px; }
.bo-opt { border-top: 1px solid #45515b; padding-top: 9px; display: grid; gap: 6px; }
.bo-opt label { font-size: 10px; }
.bo-opt .bf-input { min-height: 27px; font-size: 11px; padding: 4px 6px; }
.bo-opt .bf-btn { min-height: 30px; font-size: 10px; padding: 5px 8px; }
.bo-queue-panel > .bo-muted { font-size: 10px; margin: 6px 0 0; }
.bo-suggestion { background: #1c2d36; border: 1px solid #688f9e; padding: 8px; font-size: 11px; margin-top: 6px; }
.bo-suggestion p { margin: 4px 0; }
.bo-dialog { position: fixed; padding: 20px; background: #18232c; color: #d6e3ec; border: 1px solid #667d8e; max-width: min(760px,calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 40px); overflow: auto; }
.bo-dialog::backdrop { background: #000a; backdrop-filter: blur(3px); }
.bo-dialog > .bo-section-head { margin-bottom: 15px; }
.bo-dialog > .bo-section-head h2 { font: 600 21px var(--display); text-transform: none; letter-spacing: 0; }
.bo-dialog [data-close]:not(.bf-btn) { background: #1d2c38; color: #c0d9e6; border: 1px solid #516b7c; width: 30px; height: 30px; }
.bo-dialog .bo-panel { padding: 12px; }
.bo-dialog .bf-h2 { font-size: 17px; margin: 0; }
.bo-dialog-wide { max-width: min(1050px,calc(100vw - 24px)); }
.bo-target-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.bo-target-panel { min-width: 0; background: #111d27; border: 1px solid #405866; padding: 14px; margin: 10px 0; }
.bo-target-panel h3 { font: 600 17px var(--body); margin: 0 0 12px; color: #e4edf3; }
.bo-target-panel .bo-field { margin: 8px 0; }
.bo-target-panel .bo-settings { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.bo-target-panel select,.bo-target-panel input { max-width: 100%; min-width: 0; }
.bo-target-portrait { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 12px; }
.bo-target-portrait img { object-fit: contain; border: 1px solid #405866; background: #0a121a; }
.bo-target-checks { margin: 0 0 14px; padding: 10px; border: 1px solid #3d505b; font-size: 12px; }
.bo-target-checks > label { display: flex; align-items: center; gap: 7px; margin: 7px 0; }
.bo-target-checks > label.bo-field { display: grid; gap: 5px; }
.bo-target-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0; }
.bo-target-score { display: block; color: #b3e4c0; font: 600 21px var(--mono); }
.bo-target-orders { max-height: 300px; overflow: auto; font-size: 12px; padding-left: 25px; }
.bo-target-orders li { margin: 7px 0; }
.bo-target-condition { border: 1px solid #806d41; padding: 7px 9px; color: #ddcd9e; font-size: 11px; margin: 7px 0; }
.bo-target-condition button { font: inherit; margin-left: 7px; }
@media (max-width:620px) { .bo-target-grid { grid-template-columns: minmax(0,1fr); gap: 0; } .bo-target-panel { padding: 10px; } .bo-target-score { font-size: 17px; } }
.bo-settings { display: grid; grid-template-columns: minmax(180px,1.4fr) repeat(3,minmax(95px,1fr)); gap: 12px; margin-top: 14px; }
.bo-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: #bed0dc; }
.bo-field .bf-input { width: 100%; min-width: 0; font-size: 12px; min-height: 33px; padding: 6px 8px; background: #0d1821; }
.bo-map-field { gap: 5px; }
.bo-weather { font: 11px/1.5 var(--mono); color: #a4cbdc; margin-top: 12px; }
.bo-details { border-top: 1px solid #38505e; margin-top: 14px; padding-top: 10px; font-size: 12px; color: #adc3d1; }
.bo-details summary { cursor: pointer; color: #c0d8e6; }
.bo-details p { margin-top: 10px; line-height: 1.6; }
.bo-advanced { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bo-dialog-footer { display: flex; justify-content: end; margin-top: 15px; }
.bo-muted, .bo-status { color: #9fb7c6; font-size: 12px; line-height: 1.5; margin: 8px 0; }
.bo-status[data-error] { color: #f4aa91; }
.bo-map { margin-top: 12px; }
.bo-map img { max-width: 100%; max-height: 160px; object-fit: cover; }
.bo-map figcaption { font-size: 10px; color: #8eabbc; }
.bo-gift-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.bo-gift-controls .bo-field { flex: 1 1 120px; }
.bo-gifts { list-style: none; padding: 0; font-size: 12px; }
.bo-gifts li { padding: 8px 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid #354c5a; }
.bo-gifts .bf-btn { min-height: 28px; font-size: 10px; padding: 4px 8px; }
.bo-limit-tools { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.bo-limit-tools button,#limits-back-find { font:inherit; padding:6px 8px; border:1px solid #486676; color:#d5e7ee; background:#172b38; }
.bo-limit-tools button[aria-pressed="true"] { border-color:#37c4e9; background:#143d4c; }
#map-constraints p { line-height:1.5; font-size:11px; }
#map-constraints-list { max-height:160px; overflow:auto; }
#map-constraints .bo-limit-tools { display:flex; }
#map-constraints .bo-gifts li { flex-wrap:wrap; }
.bo-support-time { flex:0 0 90px; font-size:10px; display:grid; gap:4px; }
.bo-support-time input { width:90px; max-width:100%; padding:5px; background:#0c1b26; color:#d5e7ee; border:1px solid #486676; }
#gifts li,#gifted-units li { flex-wrap:wrap; }
.bo-table-wrap { overflow: auto; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bo-table :is(th,td) { padding: 10px 7px; border-bottom: 1px solid #354b59; text-align: right; white-space: nowrap; }
.bo-table :first-child { text-align: left; }
.bo-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.bo-charts figure { margin: 0; border: 1px solid #3e5969; padding: 10px; }
.bo-charts canvas { width: 100%; height: 165px; }
.bo-metal { color: #b9d2e2; }
.bo-energy { color: #e0c96f; }
.bo-tabs { display: flex; gap: 6px; }
.bo-tabs button { min-height: 28px; font-size: 10px; }
.bo-tabs [aria-pressed="true"] { border-color: #d7c677; }
.bo-chart-legend { display: flex; gap: 15px; font-size: 10px; color: #b4c9d7; margin-top: 8px; }
.bo-scrub { display: grid; grid-template-columns: auto 1fr; gap: 7px; font-size: 12px; margin-top: 15px; }
.bo-scrub input { width: 100%; grid-column: 1/-1; accent-color: #9fcad6; }
@media (min-width:1800px) { .bo-scene { grid-template-columns: minmax(0,1fr) 340px; } .bo-command-dock { grid-template-columns: 220px 300px minmax(0,1fr); } .bo-palette { grid-auto-rows: 68px; } .bo-unit img { width: 55px; height: 55px; } }
@media (max-width:1150px) { .bo-command-dock { grid-template-columns: 140px 210px minmax(0,1fr); } .bo-scene { grid-template-columns: minmax(0,1fr) 255px; } .bo-palette { grid-auto-rows: 58px; } .bo-topbar { gap: 14px; grid-template-columns: minmax(150px,.8fr) 1fr 1fr 80px; } .bo-build-controls { grid-template-columns: 1fr; } .bo-build-footer #build-menu-help { font-size: 9px; } .bo-header { gap: 12px; } .bo-commands button { font-size: 9px; } .bo-map-playback { gap: 6px; } .bo-map-playback #restart-playback { display: none; } }
@media (max-width:900px) { .bo-header h1 { display: none; } .bo-blueprints { display: none; } .bo-scene { height: auto; min-height: 0; grid-template-columns: minmax(0,1fr); } .bo-battlefield { grid-template-rows: 490px 42px auto; } .bo-queue { max-height: 350px; } .bo-topbar { grid-template-columns: 1fr 1fr 70px; } .bo-map-context { grid-column: 1/-1; } .bo-topbar { row-gap: 9px; padding-bottom: 10px; } .bo-command-dock { grid-template-columns: 160px 230px minmax(0,1fr); } .bo-build-controls { grid-template-columns: 1fr 1fr; } .bo-palette { min-height: 189px; } }
@media (max-width:620px) { .bo-main { padding: 6px; } .bo-header { height: auto; min-height: 44px; padding: 6px 10px; flex-wrap: wrap; gap: 7px; } .bo-header .bf-brand { font-size: 17px; } .bo-header nav { gap: 2px; } .bo-header nav button { font-size: 10px; padding: 4px 6px; } #fullscreen { display: none; } .bo-topbar { gap: 8px; grid-template-columns: 1fr 1fr; padding: 2px 4px 10px; } .bo-time-status { grid-column: 2; grid-row: 1; } .bo-map-context { grid-column: 1; grid-row: 1; } #hud-weather { font-size: 9px; } .bo-resource strong { font-size: 14px; } .bo-resource > div { flex-wrap: wrap; gap: 4px; font-size: 10px; } .bo-resource-icon { display: none; } .bo-resource [id$="-income"] { margin-left: auto; } .bo-battlefield { grid-template-rows: 420px 44px auto; } .bo-map-overlay { right: 50px; } #placement-help { width: 100%; font-size: 10px; } .bo-map-overlay button { font-size: 10px; padding: 4px 6px; } .bo-start-prompt { top: 85px; left: 15px; right: 50px; padding: 13px; } .bo-start-prompt h2 { font-size: 21px; } .bo-start-prompt p { font-size: 12px; } .bo-map-feedback { left: 6px; right: 6px; flex-wrap: wrap; } .bo-map-feedback .bo-status:not(:empty) { font-size: 10px; } .bo-map-playback { padding: 3px 5px; gap: 6px; } .bo-map-playback .bf-btn { font-size: 10px; padding: 5px; } .bo-timeline { font-size: 0; gap: 4px; } .bo-timeline output { font-size: 10px; } .bo-speed { font-size: 0; } .bo-command-dock { grid-template-columns: 115px minmax(0,1fr); gap: 6px; } .bo-selection { padding: 8px; } .bo-selected-unit img { width: 46px; height: 46px; } .bo-selected-unit h2 { font-size: 14px; } .bo-commands button { min-height: 37px; font-size: 9px; } #selected-detail { font-size: 9px; } .bo-minimap-panel { padding: 6px; } .bo-build-panel { grid-column: 1/-1; } .bo-build-controls { grid-template-columns: 1fr 1fr; } .bo-palette { grid-auto-rows: 72px; min-height: 222px; } .bo-unit img { width: 55px; height: 55px; } .bo-unit strong { font-size: 10px; } .bo-dialog { padding: 12px; } .bo-settings { grid-template-columns: 1fr 1fr; } .bo-map-field { grid-column: 1/-1; } .bo-advanced { grid-template-columns: 1fr 1fr; } .bo-charts { grid-template-columns: 1fr; } .bo-section-head { flex-wrap: wrap; } }
@media (max-width:900px) { .bo-battlefield { grid-template-rows:490px auto auto; } }
@media (max-width:620px) {
  .bo-battlefield { grid-template-rows:420px auto auto; }
  .bo-map-playback { display:grid; grid-template-columns:auto minmax(0,1fr) auto; }
  #play-build { grid-column:1; grid-row:1; }
  .bo-timeline { grid-column:2; grid-row:1; }
  .bo-speed { grid-column:3; grid-row:1; }
  .bo-duration { grid-column:1 / span 2; grid-row:2; }
  #extend-timeline { grid-column:3; grid-row:2; }
  .bo-map-playback .bo-completion-toggle { grid-column:1/-1; grid-row:3; font-size:10px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }

/* The viewport belongs to the map. Advanced panels never size the dock. */
html { height:100%; }
body { height:100dvh; min-height:0; margin:0; padding:0; display:flex; flex-direction:column; overflow:hidden; }
.bo-header { flex:none; height:40px; min-height:40px; gap:12px; padding:0 12px; }
.bo-header nav { min-width:0; overflow-x:auto; scrollbar-width:thin; }
.bo-header nav button { flex:none; white-space:nowrap; padding:5px 8px; font-size:11px; }
.bo-main { flex:1; min-height:0; display:flex; flex-direction:column; padding:5px 8px 7px; overflow:hidden; }
#planner-app { flex:1; min-height:0; display:flex; flex-direction:column; }
.bo-topbar { flex:none; min-height:44px; padding:0 5px 5px; gap:18px; grid-template-columns:minmax(140px,.95fr) minmax(140px,1fr) minmax(140px,1fr) 68px; }
.bo-map-context { line-height:14px; grid-column:auto; grid-row:auto; }
.bo-map-context .bo-label { line-height:12px; }
#hud-map-name { line-height:18px; }
.bo-resource > div { line-height:20px; }
.bo-resource progress { display:block; margin-top:4px; }
.bo-time-status { line-height:14px; grid-column:auto; grid-row:auto; }
.bo-time-status strong { line-height:24px; }
.bo-scene { flex:1; height:auto; min-height:0; position:relative; grid-template-columns:minmax(0,1fr); gap:6px; --dock-height:240px; }
.bo-scene:not([data-panel="none"]) { grid-template-columns:minmax(0,1fr) 300px; }
.bo-battlefield { min-height:0; grid-template-rows:minmax(0,1fr) auto 8px var(--dock-height); gap:3px; position:relative; }
.bo-map-board { min-height:0; }
.bo-map-overlay { right:74px; }
.bo-map-playback { min-height:34px; padding:3px 6px; gap:5px 8px; }
.bo-map-playback .bf-btn { min-height:25px; line-height:14px; padding:4px 8px; }
.bo-map-playback .bo-hud-button { height:26px; padding:4px 7px; line-height:14px; }
.bo-map-playback :is(.bo-completion-toggle,.bo-duration,.bo-speed) { line-height:14px; }
#duration-minutes { height:24px; }
.bo-command-dock { grid-template-columns:160px 230px minmax(0,1fr); gap:5px; min-height:0; }
.bo-command-dock > section { min-height:0; max-height:100%; }
.bo-minimap-panel { padding:6px; overflow:auto; scrollbar-width:thin; }
#overview-map { width:100%; max-height:calc(var(--dock-height) - 49px); object-fit:contain; margin:4px 0; }
.bo-minimap-options { display:block; width:100%; padding:4px 0; text-align:left; }
.bo-selection { padding:7px; overflow:auto; scrollbar-width:thin; }
.bo-selected-unit img { width:46px; height:46px; }
.bo-selected-unit h2 { font-size:14px; }
.bo-selected-unit .bo-label { font-size:9px; }
.bo-selected-unit > div { line-height:12px; }
.bo-selected-unit h2 { margin:3px 0; }
#selected-state { line-height:12px; }
#selected-detail { margin:5px 0; min-height:0; line-height:1.4; }
#selected-progress { display:block; }
.bo-commands button { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:1px; min-height:0; height:42px; padding:2px; font-size:9px; line-height:11px; }
.bo-commands button span { font-size:14px; line-height:15px; }
.bo-commands button kbd { position:absolute; top:2px; right:2px; font-size:8px; line-height:10px; }
.bo-unit-options { margin-top:7px; color:#a9bdc9; font-size:10px; }
.bo-unit-options > summary { cursor:pointer; }
.bo-unit-options .bo-selection-tools { margin-top:5px; }
.bo-build-panel { padding:5px; grid-column:auto; }
.bo-build-controls { grid-template-columns:minmax(100px,1fr) minmax(100px,1fr); gap:5px; margin-bottom:3px; }
.bo-build-controls :is(select,input) { height:24px; padding:2px 5px; }
.bo-build-categories { gap:3px; margin-bottom:3px; }
.bo-build-categories button { padding:3px 2px; }
.bo-grid-and-details { flex:1; min-height:0; grid-template-columns:minmax(0,1fr); gap:10px; }
.bo-palette { grid-template-rows:repeat(3,minmax(0,1fr)); grid-auto-rows:auto; min-height:0; gap:3px; }
.bo-unit img { width:48px; height:48px; max-height:100%; }
.bo-build-detail { display:none; padding:2px 0; font-size:11px; line-height:14px; overflow:auto; scrollbar-width:thin; }
.bo-build-detail-heading { gap:6px; }
.bo-build-detail-heading img { width:42px; height:42px; }
.bo-build-detail-heading h3 { font-size:14px; }
.bo-build-detail .bo-label { font-size:9px; }
.bo-build-costs { gap:12px; flex-wrap:wrap; margin:5px 0; padding-bottom:5px; }
.bo-build-costs span { line-height:12px; margin-bottom:2px; }
.bo-build-costs strong { font-size:12px; line-height:14px; }
.bo-roster-heading { margin:6px 0 3px; line-height:14px; }
.bo-build-footer { flex:none; min-height:20px; padding-top:3px; }
@container (min-width:570px) {
  .bo-grid-and-details { grid-template-columns:minmax(0,1fr) 190px; }
  .bo-build-detail { display:block; }
}
.bo-dock-resizer { height:8px; display:grid; place-items:center; cursor:ns-resize; touch-action:none; border-top:1px solid #3d4a55; border-bottom:1px solid #25333d; background:#121a21; }
.bo-dock-resizer span { width:44px; height:2px; background:#718895; }
.bo-dock-resizer:hover,.bo-dock-resizer:focus-visible,.bo-scene[data-resizing="true"] .bo-dock-resizer { background:#29414f; }
.bo-dock-resizer:focus-visible { outline:2px solid #e3c56b; outline-offset:-2px; }
.bo-scene[data-resizing="true"] { cursor:ns-resize; user-select:none; }
.bo-workspace-sidebar { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.bo-sidebar-heading { display:flex; align-items:center; flex:none; padding:5px; gap:4px; border-bottom:1px solid #48515a; }
.bo-sidebar-tabs { display:flex; gap:3px; flex:1; min-width:0; }
.bo-sidebar-tabs button { flex:1; border:1px solid #4a555d; background:#252e36; color:#a6bac7; padding:6px 4px; white-space:nowrap; font-size:11px; }
.bo-sidebar-tabs button[aria-selected="true"] { background:#384851; color:#ecf2f5; border-color:#97adba; }
#close-workspace-sidebar { padding:3px 8px; font-size:17px; }
.bo-sidebar-page { flex:1; min-height:0; overflow:auto; padding:10px; scrollbar-width:thin; }
.bo-sidebar-page > h2,.bo-sidebar-page > .bo-section-head h2 { margin:0; font:600 14px var(--display); }
.bo-sidebar-page .bo-map-layers { font-size:12px; margin-top:12px; }
.bo-sidebar-page .bo-map-layers div { gap:8px 14px; }
.bo-sidebar-page .bo-map-layers input { width:14px; height:14px; }
.bo-sidebar-page .bo-map-layers .bo-camera-controls { display:grid; flex-basis:100%; width:100%; gap:4px; }
.bo-camera-controls label { justify-content:space-between; }
.bo-sidebar-page .bo-map-layers .bo-camera-controls input[type='range'] { width:100%; height:28px; margin:0; padding:0; }
.bo-sidebar-page .bo-command-setting { font-size:12px; margin-bottom:10px; }
.bo-sidebar-page .bo-command-setting select { margin-top:4px; padding:5px; color:#d6e3ec; background:#11181f; border:1px solid #4b5861; }
.bo-sidebar-page #map-constraints p,.bo-sidebar-page .bo-reclaim-summary { font-size:11px; }
.bo-sidebar-page #map-constraints-list { max-height:none; overflow:visible; }
.bo-sidebar-page .bo-limit-tools button { flex:1 1 110px; min-height:32px; }
.bo-sidebar-page .bo-gift-controls { gap:7px; margin:10px 0; }
.bo-sidebar-page .bo-gift-controls .bo-field { flex:1 1 105px; }
.bo-sidebar-page .bf-btn { white-space:normal; }
.bo-sidebar-page #gift-unit-search,.bo-sidebar-page #gift-unit { width:100%; }
.bo-sidebar-page .bo-gifts li { align-items:start; }
.bo-sidebar-page .bo-gifts li > span { flex:1 1 120px; }
.bo-sidebar-page .bo-support-time { flex:0 0 90px; }
.bo-sidebar-page .bo-feature-inspector { margin-bottom:8px; }
.bo-queue-panel .bo-queue { overflow:visible; flex:none; min-height:0; max-height:none; }
.bo-queue-panel .bo-opt { margin-top:auto; }
.bo-sidebar-page .bo-muted { font-size:11px; }
.bo-map-overlay [data-workspace-open][aria-expanded="true"] { background:#344751; border-color:#88a8b4; }
.bo-mobile-dock-heading,.bo-mobile-workspace-tabs { display:none; }
.bo-scene[data-map-focus="true"] { grid-template-columns:minmax(0,1fr); }
.bo-scene[data-map-focus="true"] .bo-battlefield { grid-template-rows:minmax(0,1fr) auto; }
.bo-scene[data-map-focus="true"] :is(.bo-command-dock,.bo-dock-resizer) { display:none; }
#map-focus[aria-pressed="true"] { border-color:#e3c56b; color:#e3c56b; }
@media (max-width:1200px) {
  .bo-header h1,.bo-blueprints { display:none; }
  .bo-command-dock { grid-template-columns:145px 205px minmax(0,1fr); }
  .bo-scene:not([data-panel="none"]) { grid-template-columns:minmax(0,1fr) 280px; }
  .bo-build-footer #build-menu-help { display:none; }
  .bo-topbar { gap:12px; }
}
@media (min-width:701px) and (max-width:1100px) {
  .bo-scene:not([data-panel="none"]) { grid-template-columns:minmax(0,1fr); }
  .bo-workspace-sidebar { position:absolute; top:0; right:0; height:100%; width:300px; z-index:5; box-shadow:-8px 0 24px #0007; }
}
@media (max-width:700px), (max-width:1000px) and (max-height:650px) {
  .bo-header { height:40px; min-height:40px; padding:0 7px; flex-wrap:nowrap; gap:8px; }
  .bo-header .bf-brand { font-size:16px; }
  .bo-header nav { margin-left:0; flex:1; }
  .bo-header nav button { padding:5px 7px; font-size:11px; }
  .bo-main { padding:4px; }
  .bo-topbar { min-height:74px; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 52px; gap:4px 8px; padding:0 3px 5px; }
  .bo-map-context { grid-column:1 / span 2; grid-row:1; }
  .bo-time-status { grid-column:3; grid-row:1 / span 2; }
  .bo-time-status strong { font-size:17px; }
  #hud-map-name { font-size:12px; }
  #hud-weather { font-size:9px; }
  .bo-resource { grid-row:2; }
  .bo-resource strong { font-size:14px; }
  .bo-resource > div { font-size:10px; gap:3px; }
  .bo-resource b { font-size:10px; }
  .bo-resource [id$="-income"] { min-width:0; }
  .bo-scene,.bo-scene:not([data-panel="none"]) { display:block; height:auto; min-height:0; }
  .bo-battlefield,.bo-scene[data-map-focus="true"] .bo-battlefield { height:100%; grid-template-rows:minmax(0,1fr) auto 38px; gap:3px; }
  .bo-map-overlay { top:6px; left:6px; right:66px; gap:4px; }
  #placement-help { padding:4px 6px; font-size:9px; width:100%; }
  .bo-map-overlay button { padding:4px 6px; font-size:10px; }
  .bo-map-overlay [data-workspace-open] { display:none; }
  .bo-start-prompt { top:86px; left:12px; right:50px; padding:12px; }
  .bo-start-prompt h2 { font-size:20px; }
  .bo-start-prompt p { font-size:12px; }
  .bo-map-playback { display:grid; min-height:0; gap:3px 6px; padding:3px 5px; grid-template-columns:auto minmax(0,1fr) auto; }
  .bo-map-playback .bo-completion-toggle { grid-column:2 / span 2; grid-row:2; font-size:9px; justify-self:end; }
  .bo-duration { grid-column:1; grid-row:2; font-size:9px; }
  #duration-minutes { width:46px; }
  #extend-timeline { display:none; }
  .bo-map-playback #restart-playback { display:none; }
  .bo-dock-resizer { display:none; }
  .bo-mobile-workspace-tabs { display:flex; gap:3px; grid-row:3; min-width:0; }
  .bo-mobile-workspace-tabs button { min-width:0; flex:1; border:1px solid #4a555d; background:#252e36; color:#c7d8e2; font:600 10px var(--body); padding:5px 2px; }
  .bo-mobile-workspace-tabs button[aria-expanded="true"] { background:#384851; border-color:#97adba; color:#ecf2f5; }
  .bo-command-dock { display:none; position:absolute; left:0; right:0; bottom:var(--controls-bottom); height:min(270px,calc(100% - var(--controls-bottom) - 54px)); z-index:4; grid-template-columns:minmax(0,1fr); gap:0; background:#171d23; border:1px solid #667d8e; }
  .bo-command-dock > section { display:none; }
  .bo-scene[data-mobile-dock="build"] .bo-command-dock,.bo-scene[data-mobile-dock="commands"] .bo-command-dock,.bo-scene[data-mobile-dock="overview"] .bo-command-dock { display:grid; }
  .bo-scene[data-mobile-dock="build"] .bo-build-panel,.bo-scene[data-mobile-dock="commands"] .bo-selection,.bo-scene[data-mobile-dock="overview"] .bo-minimap-panel { display:flex; flex-direction:column; }
  .bo-mobile-dock-heading { position:absolute; bottom:calc(var(--controls-bottom) + min(270px,100% - var(--controls-bottom) - 54px)); left:0; right:0; z-index:4; height:30px; padding:3px 7px; justify-content:space-between; align-items:center; font-size:11px; border:1px solid #667d8e; background:#252e36; }
  .bo-mobile-dock-heading button { padding:0 7px; }
  .bo-scene:not([data-mobile-dock="none"]) .bo-mobile-dock-heading { display:flex; }
  .bo-scene[data-mobile-dock="overview"] #overview-map { max-height:175px; width:175px; align-self:center; }
  .bo-scene[data-mobile-dock="commands"] .bo-commands { grid-template-columns:repeat(3,1fr); }
  .bo-scene[data-mobile-dock="commands"] .bo-selection { overflow:auto; }
  .bo-scene[data-mobile-dock="commands"] .bo-unit-options { flex:none; }
  .bo-build-panel { grid-column:auto; }
  .bo-palette { min-height:0; grid-auto-rows:auto; }
  .bo-unit img { width:50px; height:50px; }
  .bo-unit strong { font-size:9px; }
  .bo-grid-and-details { grid-template-columns:minmax(0,1fr); }
  .bo-build-detail { display:none; }
  .bo-workspace-sidebar { position:absolute; top:auto; left:0; right:0; width:auto; bottom:var(--controls-bottom); height:min(440px,calc(100% - var(--controls-bottom) - 20px)); z-index:5; border-color:#667d8e; box-shadow:0 -8px 24px #0007; }
  .bo-sidebar-page { padding:10px; }
  .bo-sidebar-tabs button { padding:7px 5px; font-size:12px; }
  .bo-dialog { max-height:calc(100dvh - 20px); }
}

/* Task hierarchy: setup, build on the map, then review. */
.bo-header { height:46px; min-height:46px; }
.bo-header nav { overflow:visible; align-items:center; gap:6px; }
.bo-header nav button,.bo-more-menu > summary { font-size:13px; min-height:32px; padding:6px 11px; }
.bo-header nav .bo-primary-tool { color:#dff8ff; background:#254653; border-color:#6aa9bd; }
.bo-header nav .bo-primary-tool:hover { background:#315968; }
.bo-more-menu { position:relative; }
.bo-more-menu > summary { cursor:pointer; list-style:none; border:1px solid #46515c; background:#222a32; color:#c3ced7; }
.bo-more-menu > summary::-webkit-details-marker { display:none; }
.bo-more-menu > summary::after { content:'⌄'; margin-left:8px; color:#a9bdc9; }
.bo-more-menu[open] > summary { background:#344751; border-color:#88a8b4; }
.bo-more-items { position:absolute; z-index:20; right:0; top:calc(100% + 7px); width:220px; padding:6px; border:1px solid #667d8e; background:#17232c; box-shadow:0 8px 24px #0007; }
.bo-header nav .bo-more-items :is(button,a) { display:block; width:100%; text-align:left; background:transparent; border:0; padding:10px; font-size:13px; color:#c8dbe6; text-decoration:none; min-height:38px; }
.bo-header nav .bo-more-items :is(button,a):hover { background:#2d424f; }
#planner-more #fullscreen { display:block; }
.bo-topbar { min-height:67px; padding-bottom:7px; }
.bo-resource > div { flex-wrap:nowrap; }
.bo-resource .bo-resource-rates { display:flex; justify-content:space-between; gap:5px 12px; margin-top:4px; font:11px/16px var(--body); color:#a4b6c2; }
.bo-resource-rates > span { display:flex; gap:5px; white-space:nowrap; }
.bo-resource .bo-resource-rates b { font:500 11px/16px var(--mono); }
.bo-resource [id$="-income"] { min-width:0; }
.bo-resource-rates [data-trend="negative"] { color:#f2ba78; }
.bo-resource-rates [data-trend="positive"] { color:#9bcc91; }
.bo-resource-rates [data-trend="steady"],.bo-resource-rates [data-trend="unknown"] { color:#c4d2dc; }
.bo-resource-rates [title] { cursor:help; }
.bo-resource-rates small { font:inherit; color:#8fa6b6; }
#selected-state[data-status="warning"] { color:#f2ba78; }
#selected-state[data-status="blocked"] { color:#f4aa91; }
.bo-start-prompt { max-width:330px; top:65px; }
.bo-start-prompt h2 { font-size:23px; line-height:1.15; margin-top:6px; }
.bo-start-prompt p { line-height:1.5; }
.bo-start-prompt .bf-btn { font-size:13px; min-height:38px; }
.bo-start-alternatives { display:flex; align-items:center; gap:10px; margin-top:12px; color:#9fb7c6; font-size:12px; }
.bo-start-alternatives .bo-text-button { font-size:12px; color:#a4d2e6; }
#placement-help { font-size:12px; line-height:1.4; max-width:100%; }
.bo-map-overlay .bo-hud-button { font-size:12px; min-height:32px; }
.bo-producer-field { display:flex; align-items:center; gap:8px; font-size:12px; color:#bed0dc; min-width:0; white-space:nowrap; }
.bo-producer-field select { flex:1; min-width:0; }
.bo-build-controls :is(select,input) { font-size:12px; height:28px; }
.bo-selected-unit .bo-label { font-size:10px; }
#selected-state { font-size:12px; line-height:16px; }
#selected-detail { font-size:11px; }
.bo-commands button { font-size:11px; line-height:13px; height:44px; }
.bo-commands button kbd { font-size:10px; }
.bo-unit-options,.bo-unit-options .bo-selection-tools button { font-size:12px; }
.bo-unit strong { font-size:11px; line-height:1.15; }
.bo-unit small { font-size:10px; }
.bo-unit kbd { font-size:10px; }
.bo-build-categories button { font-size:11px; padding:4px 2px; }
.bo-mobile-workspace-tabs button { font-size:12px; }
.bo-reorder { margin-top:16px; padding-top:12px; border-top:1px solid #38505e; }
.bo-reorder > summary { cursor:pointer; font-size:13px; color:#bed5e2; }
.bo-opt { border:0; padding-top:0; }
.bo-sidebar-page .bo-muted { font-size:12px; }
.bo-row-meta,.bo-queue-timing { font-size:11px; line-height:1.5; }
.bo-row-actions button { min-height:26px; min-width:28px; font-size:12px; }
.bo-queue-delay > span + span { font-size:11px; }
.bo-file-actions { display:flex; flex-wrap:wrap; gap:9px; }
.bo-new-plan { border-top:1px solid #38505e; margin-top:22px; padding-top:16px; }
.bo-new-plan h3 { font-size:15px; }
.bo-dialog { font-size:14px; line-height:1.5; }
.bo-dialog .bo-field { font-size:14px; gap:5px; }
.bo-dialog .bo-field .bf-input { font-size:14px; min-height:38px; }
.bo-dialog .bo-muted { font-size:13px; line-height:1.5; }
.bo-dialog .bo-weather { font-size:12px; }
.bo-dialog-intro { font-size:14px; margin:0 0 6px; color:#b5cbd8; }
.bo-quick-start { padding-left:22px; font-size:14px; color:#bed0dc; }
.bo-quick-start li { margin:8px 0; }
.bo-dialog > .bo-section-head { margin-bottom:8px; }
.bo-target-main { margin-top:12px; margin-bottom:12px; }
.bo-target-main h3 { font-size:15px; margin-bottom:5px; }
.bo-target-pick { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.bo-target-pick .bo-field { margin:5px 0; }
.bo-target-basics { display:grid; grid-template-columns:90px minmax(0,1.3fr) minmax(0,1fr); gap:12px; }
.bo-target-basics .bo-field { margin:5px 0; }
.bo-target-portrait { font-size:14px; padding:4px 0; }
.bo-target-portrait img { width:42px; height:42px; }
.bo-economy-choice { display:flex; align-items:start; gap:9px; font-size:14px; padding-top:10px; margin-top:9px; border-top:1px solid #334a59; }
.bo-economy-choice input { margin-top:4px; flex:none; }
.bo-economy-choice small { display:block; font-size:12px; color:#9fb7c6; margin-top:3px; }
.bo-search-options { border:1px solid #38505e; margin:7px 0; padding:0 12px; background:#14212b; }
.bo-search-options > summary { padding:10px 0; font-size:14px; color:#c7dce8; cursor:pointer; }
.bo-search-options > summary small { font-size:12px; color:#9fb7c6; margin-left:4px; }
.bo-search-options[open] { padding-bottom:12px; }
.bo-search-options[open] > summary { margin-bottom:7px; border-bottom:1px solid #38505e; }
.bo-search-options .bo-target-checks { font-size:13px; margin-top:12px; }
.bo-search-options .bo-gifts { margin:10px 0; }
.bo-search-options .bo-field { margin:8px 0; }
.bo-search-effort { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:0; }
.bo-search-submit { position:sticky; bottom:-20px; z-index:2; padding:8px 0 10px; background:#18232c; border-top:1px solid #405866; margin-top:12px; box-shadow:0 -8px 14px #18232cd9; }
.bo-search-submit .bo-target-actions { margin:4px 0; }
.bo-search-submit p:empty { display:none; }
.bo-search-submit .bo-status { margin-bottom:0; }
.bo-search-submit .bo-muted { margin:4px 0; }
.bo-search-submit .bf-btn { min-height:38px; font-size:14px; }
.bo-map-playback .bo-completion-toggle { font-size:11px; }
@media (max-width:1100px) {
  .bo-resource .bo-resource-rates { font-size:10px; gap:2px; }
  .bo-resource .bo-resource-rates b { font-size:10px; }
  .bo-resource-rates small { display:none; }
  .bo-producer-field > span { display:none; }
}
@media (max-width:700px), (max-width:1000px) and (max-height:650px) {
  .bo-header { height:auto; min-height:76px; display:grid; grid-template-columns:minmax(0,1fr); gap:4px; padding:6px 8px; }
  .bo-header .bf-brand { font-size:16px; line-height:18px; width:max-content; }
  .bo-header nav { margin:0; justify-content:space-between; gap:5px; width:100%; }
  .bo-header nav > button,.bo-more-menu > summary { font-size:12px; padding:5px 8px; min-height:30px; }
  .bo-more-menu > summary::after { margin-left:5px; }
  .bo-more-items { width:220px; }
  .bo-header nav .bo-more-items :is(button,a) { display:block; }
  .bo-topbar { position:relative; min-height:108px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5px 12px; padding:0 3px 7px; }
  .bo-map-context { grid-column:1/-1; grid-row:1; padding-right:60px; }
  .bo-time-status { position:absolute; top:0; right:3px; grid-column:auto; grid-row:auto; }
  .bo-resource { grid-row:2; min-width:0; }
  .bo-resource > div { flex-wrap:nowrap; }
  .bo-resource strong { font-size:14px; }
  .bo-resource .bo-resource-rates { display:grid; grid-template-columns:minmax(0,1fr); gap:1px; margin-top:4px; }
  .bo-resource-rates > span { justify-content:space-between; }
  .bo-resource .bo-resource-rates b { font-size:10px; }
  #placement-help { font-size:11px; padding:5px 6px; }
  .bo-start-prompt { top:66px; right:52px; left:10px; max-width:none; padding:14px; }
  .bo-start-prompt h2 { font-size:21px; }
  .bo-start-prompt p { font-size:13px; }
  .bo-start-alternatives { gap:8px; }
  .bo-mobile-workspace-tabs button { font-size:11px; }
  .bo-map-playback .bo-completion-toggle { font-size:10px; grid-column:2 / span 2; grid-row:2; }
  .bo-map-playback .bo-duration { grid-column:1; grid-row:2; font-size:10px; }
  .bo-build-controls { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .bo-producer-field > span { display:none; }
  .bo-unit strong { font-size:10px; }
  .bo-search-submit { bottom:-12px; }
  .bo-target-pick { grid-template-columns:minmax(0,1fr); gap:0; }
  .bo-target-basics { grid-template-columns:74px minmax(0,1fr); gap:8px; }
  .bo-target-basics #target-window-field,.bo-target-basics #target-deadline-field { grid-column:1/-1; }
  .bo-search-effort { grid-template-columns:minmax(0,1fr); gap:0; }
  .bo-dialog { padding:12px; }
  .bo-dialog .bo-field { font-size:13px; }
  .bo-search-options > summary { font-size:13px; }
}

/* Retained replay references stay separate from editable simulation orders. */
.bo-replay-dialog { width:min(1050px,96vw); }
.bo-replay-scroll { overflow:auto; max-height:50vh; margin-block:10px; }
.bo-replay-table { width:100%; border-collapse:collapse; font-size:12px; }
.bo-replay-table th,.bo-replay-table td { padding:8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.bo-replay-table th { color:var(--cyan-hi); position:sticky; top:0; background:var(--panel,#111820); }
.bo-replay-table select { min-width:150px; font-size:12px; }
.bo-replay-edit { display:flex; flex-wrap:wrap; gap:6px; margin-block:6px; }
.bo-replay-edit label { font-size:11px; display:flex; gap:4px; align-items:center; }
.bo-replay-edit input { width:75px; }
.bo-recorded-timing { color:#9bdbcf; display:block; font-size:11px; margin-top:5px; }
