/* Server-backed resource status; keep the classic header compact. */
body[data-game=true] .resource-status-row{align-items:center;flex-wrap:wrap}
body[data-game=true] .resources.resource-status{flex-shrink:1;min-width:0;max-width:100%}
body[data-game=true] .resource-status .resource{align-items:center;min-width:0;gap:3px;padding:3px 5px}
.resource-stock-content{display:block;min-width:0;line-height:1.3}
body[data-game=true] .resource-status .resource-stock-content{font-size:10px;color:var(--classic-text)}
.resource-stock-content .resource-name,.resource-stock-content .resource-fullness,.resource-stock-content .resource-store-summary{display:none}
body[data-game=true] .resource-status .resource-quantity{display:inline;white-space:nowrap;font-size:10px}
body[data-game=true] .resource-status .resource strong{display:inline;font-size:11px}
.resource-status .resource-capacity{font-size:9px}
.resource-status .resource-state{display:none;font-size:9px;line-height:1.2}
.resource-status [data-full=true] .resource-state{display:inline-block;margin-left:3px;font-weight:700}
.resource-status .resource-tip{max-width:min(320px,calc(100vw - 32px))}
.resource-status [data-full=true]{box-shadow:inset 0 -2px 0 #9d341f}
[data-resource-card][data-full=true] .resource-state{color:#8c2c1a;font-weight:700}
.resource-sync{margin:-3px 0 5px;text-align:right;font-size:9px;color:var(--muted);line-height:1.3;overflow-wrap:anywhere}
.resource-screen-reader{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.resource-production>div{align-items:flex-start}
.resource-production dd{min-width:0;text-align:right}
.resource-production .resource-effective,.resource-production .resource-nominal,.resource-production .resource-state{display:block;font-size:10px;line-height:1.35}
.resource-production .resource-nominal{color:var(--muted)}
.resource-production [data-full=false] .resource-nominal,.resource-production [data-full=false] .resource-state{display:none}
.resource-production~.ov-footer [data-resource-full-list]{display:block}
.warehouse-status{grid-column:1/-1;padding:10px 12px;border:1px solid var(--border);background:var(--alt);font-size:12px;line-height:1.5;min-width:0}
.warehouse-status h5{margin:0 0 5px;font-size:13px}
.warehouse-status p{margin:5px 0}
.warehouse-resources{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.warehouse-resources li{padding:8px;border:1px solid var(--border);background:var(--card);min-width:0;overflow-wrap:anywhere}
.warehouse-resources li>strong,.warehouse-resources li>span{display:block}
.warehouse-rate,.warehouse-explanation{font-size:11px;margin-top:4px}
.warehouse-help{color:var(--muted)}
:root[data-theme=dark] [data-resource-card][data-full=true] .resource-state{color:#ffb49b}
:root[data-theme=dark] .resource-status [data-full=true]{box-shadow:inset 0 -2px 0 #ffb49b}
@media(max-width:760px){body[data-game=true] .resources.resource-status{margin-left:0;flex-wrap:wrap}.resource-sync{text-align:left}.warehouse-resources{grid-template-columns:1fr}}
@media(max-width:390px){body[data-game=true] .resource-status .resource{flex:1 0 auto;padding:4px}.resource-status .resource-stock-content{white-space:normal}body[data-game=true] .resource-status .resource strong{font-size:11px}}
