/* Production (#/production, screens/production.js). Frames, tabs, gauges and machines come from gameui.js / gameui.css;
   this file only lays out the production-specific content. Portrait first. */
.pr-screen { padding-bottom: 8px; }

/* room header */
.pr-head { margin-bottom: 12px; }
.pr-head-top { display: flex; gap: 12px; align-items: center; }
.pr-head-art { position: relative; flex: none; display: flex; align-items: center; justify-content: center; padding: 6px; min-width: 96px; min-height: 76px; }
.pr-head.missing .pr-head-art > .sprite, .pr-head.missing .pr-head-art > img { opacity: .4; filter: grayscale(.85); }
.pr-lv { position: absolute; right: -4px; bottom: -6px; padding: 1px 7px; background: #F2C860; color: #0D1015; font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 #7A5410; }
.pr-head-body { min-width: 0; flex: 1; display: grid; gap: 2px; }
.pr-head-body h2 { margin: 0; font-size: 20px; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.pr-what { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.pr-head-status { display: flex; align-items: center; gap: 8px; }
.pr-head-status .gu-ribbon { flex: none; }
.pr-status { font-size: 14px; line-height: 1.35; }
.pr-status.warn { color: var(--signal-warn); }
.pr-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-meta .chip { font-size: 12px; min-height: 26px; }

/* machines + queues */
.pr-machines, .pr-qlist { display: grid; gap: 6px; margin: 0 0 12px; }
.pr-qlist { margin: 0; }
.pr-qrow { display: flex; gap: 6px; align-items: center; }
.pr-qrow > .gu-mach { flex: 1; min-width: 0; }
.pr-q { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; }
.pr-q-art { flex: none; width: 40px; display: flex; justify-content: center; opacity: .85; }
.pr-q-b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pr-q-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pr-q-t > b { font-family: var(--font-head); }
.pr-q-t > :last-child { margin-left: auto; }
.pr-q .btn { flex: none; }
.pr-queue { margin-bottom: 12px; }
.pr-eta { font-size: 15px; color: #8FF0C4; }

/* presets */
.pr-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.pr-presets .btn { padding: 0 10px; font-size: 12.5px; letter-spacing: 0; }

/* cards */
.pr-cards { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 720px) { .pr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-card.locked { opacity: .6; }
.pr-card.locked .pr-ship-art { filter: grayscale(.9); }
.pr-rib { position: absolute; top: -2px; right: 8px; z-index: 1; }
.pr-card-top { display: flex; gap: 10px; align-items: center; }
.pr-card-art, .pr-ship-art { flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.pr-card-t { flex: 1; min-width: 0; display: grid; gap: 1px; padding-top: 6px; }
.pr-card-t b { font-family: var(--font-head); font-size: 17px; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.pr-sub { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.pr-own { flex: none; display: grid; justify-items: end; line-height: 1.05; padding-top: 6px; }
.pr-own b { font-size: 24px; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.pr-own span { color: var(--text-2); font-size: 11px; }

/* resource chips (ui:chip when skinned via gameui is not needed: small and dense) */
.pr-res { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 3px; background: rgba(13,16,21,.75); border: 1px solid #3A4658; white-space: nowrap; }
.pr-res b { font-size: 14px; }
.pr-res.short { border-color: var(--signal-warn); color: var(--signal-warn); }
.pr-res.out { border-color: #3FBF86; background: #15281F; }
.pr-res.out b { color: #8FF0C4; }
.pr-cost { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pr-plus { color: var(--text-2); font-weight: 700; }
.pr-time { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.pr-uses { font-size: 12.5px; color: var(--text-2); }

/* Production Order */
.pr-order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pr-order-l { font-weight: 500; }
.pr-order-u { color: var(--text-2); }
.pr-order-hint { flex-basis: 100%; color: var(--text-2); font-size: 12px; margin-top: -4px; }
.pr-step output { min-width: 52px; font-size: 20px; }
.pr-say { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; line-height: 1.45; }
.pr-say b { color: var(--text-1); }
.pr-say > .ico { color: #3FBF86; }
.pr-warns { display: grid; gap: 4px; }
.pr-warns:empty { display: none; }
.pr-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; }
.pr-note.warn { color: var(--signal-warn); }
.pr-note .ico { flex: none; margin-top: 2px; }
.pr-savebar { position: relative; bottom: calc(-16px - var(--safe-b)); z-index: 3; display: grid; gap: 4px; margin: 0 -6px; padding: 8px 10px calc(8px + var(--safe-b)); }
.pr-savebar.dirty { position: sticky; }
.pr-savebar.gu-flat-card { background: rgba(21,26,33,.96); }
.pr-locked-lines { display: flex; align-items: center; gap: 6px; padding: 4px 8px; color: var(--text-2); font-size: 12.5px; background: rgba(13,16,21,.6); border: 1px dashed #3A4658; }
.pr-savebar .small { text-align: center; }

/* ship / soldier stats, price, buy row */
.pr-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-stat { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 6px; background: rgba(13,16,21,.6); border: 1px solid #2D333D; font-size: 12px; }
.pr-stat i { font-style: normal; color: var(--text-2); }
.pr-stat b { font-size: 14px; }
.pr-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-buy { display: flex; gap: 8px; align-items: center; }
.pr-buy .btn { flex: 1; }
.pr-total { display: grid; gap: 3px; padding-top: 6px; border-top: 1px dashed #3A4658; }
.pr-total:empty { display: none; }
.pr-total-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.pr-lock { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--signal-warn); background: rgba(31,26,16,.85); border: 1px dashed #6B5420; font-size: 13px; }

/* empty states */
.pr-empty { margin-bottom: 12px; }
.pr-empty p { margin: 0; }
.pr-empty-in { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; padding: 6px 0; }
.pr-empty-in > :first-child { flex: none; opacity: .85; }

/* crafting docks placeholder (12-ship-crafting.md) */
.pr-soon { margin-bottom: 12px; opacity: .92; }
.pr-soon-in { display: flex; gap: 10px; align-items: center; }

/* troops */
.pr-troops { margin-bottom: 12px; }
.pr-troop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pr-troop { display: flex; gap: 8px; align-items: center; padding: 6px; background: rgba(13,16,21,.6); border: 1px solid #2D333D; }
.pr-troop b { font-size: 13px; }

.pr-help ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
