/* Room information and time controls share one compact footer below the tabs. */
.ship-zoom{position:absolute;right:8px;bottom:8px;display:flex;gap:4px;z-index:3}.ship-zoom button{padding:4px 8px;font-size:12px}
#power-list{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:8px;cursor:grab;touch-action:pan-x}
#power-list::-webkit-scrollbar{display:none}
#power-list .power-module{flex:0 0 170px;min-width:170px}
#power-list .module-heading strong{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.scanner-contact.anomaly{border-color:#b48be0;background:#352543}.scanner-contact.anomaly .eyebrow{color:#cfabf6}
.scan-lanes>div:last-child i{background:repeating-linear-gradient(90deg,#b48be0 0 4px,transparent 4px 7px)}
.yard-layout{display:grid;gap:3px;min-height:220px;margin:14px 0}.yard-layout button{font:12px/1.2 sans-serif;white-space:normal;background:#304855;border:1px solid #8ba8af;padding:5px}.yard-layout button[aria-pressed=true]{background:#79673f;border-color:#ffcf79}
.yard-layout[hidden]{display:none}
#open-capacity{font-size:11px;padding:3px 7px}
#store-wallet{position:sticky;top:0;z-index:5;display:block!important;background:#0c1519!important}
#store-dialog .shelf-ticket{min-height:175px;box-sizing:border-box}
@media(min-width:901px){main:has(.battle-theatre:not([hidden])){grid-template-rows:minmax(160px,.6fr) minmax(300px,1.4fr) auto!important}}
/* One compact dock. Extra width joins all controls; smaller panes use two deliberate rows. */
.command-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;flex:none;min-height:0;padding:5px 8px;border-top:1px solid #394454;background:#162331}
.command-strip #room-inspector{display:contents}
.command-strip .room-shortcuts{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;gap:3px;min-width:0;padding:0;border:0;background:none;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#617284 transparent}
.command-strip .room-shortcuts button{flex:none;font-size:11px;line-height:24px;height:26px;padding:0 6px}
.command-strip .room-shortcuts button.active{background:#3b3627;border-color:#c8a55e;color:#ffe1a1}
.command-strip .room-readout{grid-column:1;grid-row:2;display:flex;align-items:center;gap:8px;min-width:0;min-height:26px;max-height:none;font:11px/1.3 'Segoe UI',sans-serif;overflow:hidden;white-space:nowrap}
.command-strip .room-name{overflow:hidden;text-overflow:ellipsis;min-width:0;color:#e0e8ef;font-size:11px}
.command-strip .room-metrics{flex:none;color:#bbccd9;font-variant-numeric:tabular-nums}
.command-strip .room-alert{color:#ffb091;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.command-strip .room-actions{grid-column:2;grid-row:2;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;margin:0;justify-self:end}
.command-strip .selected-station{flex:0 1 auto;min-width:0;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;color:#a5d8cd;font:11px/1.3 'Segoe UI',sans-serif}
.command-strip .room-actions button{flex:none;height:26px;min-height:0;padding:0 7px;margin:0;font-size:11px;line-height:24px;white-space:nowrap;box-shadow:none}
.command-strip .transport{grid-column:2;grid-row:1;display:flex;align-items:center;gap:7px;justify-self:end;padding:0;border:0;background:none}
.command-strip .pause-button{min-width:112px;height:26px;padding:0 7px;font-size:10px;line-height:24px;white-space:nowrap}
.command-strip .pause-button kbd{font-size:9px;padding:1px 3px}
.command-strip #save-state{display:none;font-size:9px;margin:0;white-space:nowrap}
@container (min-width:1300px){
 .command-strip{grid-template-columns:minmax(300px,auto) minmax(180px,1fr) auto auto;gap:12px;padding:5px 8px}
 .command-strip .room-readout{grid-column:2;grid-row:1;border-left:1px solid #3d4d5a;padding-left:12px}
 .command-strip .room-actions{grid-column:3;grid-row:1}
 .command-strip .transport{grid-column:4;grid-row:1;border-left:1px solid #3d4d5a;padding-left:12px}
 .command-strip #save-state{display:inline}
}
@container (max-width:650px){
 .command-strip{gap:4px 6px;padding:4px 6px}
 .command-strip .room-readout{grid-column:1/-1;grid-row:2}
 .command-strip .room-actions{grid-column:1/-1;grid-row:3;justify-self:stretch}
 .command-strip .selected-station{max-width:none;flex:1}
 .command-strip .room-shortcuts button{font-size:11px}
 .command-strip .pause-button{min-width:82px}
 .command-strip .pause-button kbd{display:none}
}
