/* Construction has one clear active command, with the battlefield kept open. */
#placementBar[hidden]{display:none!important}#placementBar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 14px;background:#dce6d5 url('paper-ui.png') center/cover;border-top:3px solid #456653;color:#20342b;z-index:6}.placement-info{display:flex;flex-direction:column;gap:7px;min-width:0}.placement-info strong{font:600 15px monospace}.placement-info span{font:12px/1.3 monospace}.placement-actions{display:flex;gap:6px;flex-shrink:0}#placementBar button{font:12px monospace;min-height:44px;padding:6px 10px}.placement-invalid{border-top-color:#9d4f3f!important}#placementBar #cancelPlacement{background-color:#e6d3c9}
.command-desktop.placing #commandBar>:not(#placementBar){display:none!important}.command-desktop #placementBar{grid-row:1/-1;grid-column:1/-1;width:100%;height:100%}.placing #selectionStats{display:none!important}
#game:not(.command-desktop).placing{grid-template:48px minmax(0,1fr) 102px/minmax(0,1fr)!important}#game:not(.command-desktop).placing>header{grid-row:1;grid-column:1}#game:not(.command-desktop).placing>#field{grid-row:2;grid-column:1}#game:not(.command-desktop).placing>#panel{grid-row:3;grid-column:1;padding:0;display:flex;overflow:hidden}#game:not(.command-desktop).placing #panel>:not(#placementBar){display:none!important}#game:not(.command-desktop) #placementBar{width:100%;height:100%;display:grid;grid-template-columns:1fr;gap:4px;padding:6px 8px}#game:not(.command-desktop) .placement-info{gap:3px}#game:not(.command-desktop) .placement-info strong{font-size:12px}#game:not(.command-desktop) .placement-info span{font-size:10px;line-height:1.2}#game:not(.command-desktop) .placement-actions{gap:4px;justify-content:flex-end}#game:not(.command-desktop) #placementBar button{font-size:11px;min-height:36px;padding:4px 9px}
@media(max-height:500px){#game:not(.command-desktop).placing{grid-template-rows:44px minmax(0,1fr) 68px!important}#game:not(.command-desktop) #placementBar{grid-template-columns:minmax(0,1fr) auto;align-items:center}.placement-actions{gap:3px}#placementBar button{min-width:60px}}
.command-desktop #cardPage .card.chosen{outline:2px solid #71a384;outline-offset:-3px}.command-desktop #cardPage .card:focus-visible{outline:2px solid #315e49;outline-offset:-3px}

/* Keep construction reachable while a completed structure is selected. */
#game.has-building:not(.placing) #panel>nav:not(#productionCategories){display:flex}
#game.has-building:not(.command-desktop):not(.dock-open):not(.placing){grid-template-rows:52px minmax(0,1fr) 142px}
@media(max-width:600px){#game.has-building:not(.command-desktop):not(.dock-open):not(.placing){grid-template-rows:48px minmax(0,1fr) 142px}}
@media(max-height:500px){#game.has-building:not(.command-desktop):not(.dock-open):not(.placing){grid-template-rows:44px minmax(0,1fr) 136px}}
