/* Tactical depot. Existing onboarding rules remain separately scoped. */
body[data-depot="on"] #hud,body[data-depot="on"] #arsenal,body[data-depot="on"] #evolution-status,body[data-depot="on"] #run-progress,body[data-depot="on"] #dash,body[data-depot="on"] #orbital{visibility:hidden}
body[data-depot="on"] #panel{max-width:920px;padding:24px;display:block}
.depot-head{display:flex;justify-content:space-between;gap:16px;align-items:center;text-align:left}
.depot-head h2{font-size:26px;margin:5px 0;color:#25584f}.credit-bank{min-width:80px;text-align:center;border-radius:18px;background:#285b51;color:#fff5db;padding:10px}
.credit-bank b{font-size:30px;display:block}.credit-bank small{font-size:11px}
.stage-forecast{display:flex;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #b8c9b3;margin-bottom:10px}
.stage-forecast p{font-size:13px;margin:0;text-align:left}.roster-portraits{display:flex;gap:6px;flex-shrink:0}.roster-portraits span{position:relative;width:60px;height:56px;border:1px solid #b8c9b3;border-radius:12px;background:#dbe7d0}.roster-portraits img{width:100%;height:100%;object-fit:contain}.roster-portraits b{position:absolute;right:2px;bottom:0;background:#285b51;color:#fff5db;border-radius:6px;padding:1px 4px;font-size:12px}
.shop-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.shop-tabs button{min-height:48px;padding:8px;font-size:13px;border:1px solid #aec7b6;border-radius:12px;background:#e9edda;color:#285b51}.shop-tabs button.selected{background:#285b51;color:#fff5db}
.shop-cards{margin:12px 0;gap:10px}.shop-cards .card{min-height:195px;padding:12px;display:flex;flex-direction:column;text-align:left}.shop-cards .card:disabled{opacity:.65}.shop-cards .weapon-photo{height:70px;width:100%;object-fit:contain}.shop-cards .card small{font-size:11px}.shop-cards strong{display:flex;justify-content:space-between;gap:8px;font-size:15px}.shop-cards strong em{font-style:normal;border-radius:6px;background:#285b51;color:#fff5db;padding:0 5px}.shop-cards p{font-size:13px;margin:6px 0 0;line-height:1.4}
.depot-footer{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px}.depot-footer button{min-height:48px;padding:10px;border-radius:12px;border:1px solid #aec7b6;font-size:13px;color:#285b51;background:#e9edda}.depot-footer .primary{background:#2f8273;color:#fff5db;margin:0}.depot-footer button:disabled{opacity:.5}
.stage-ledger{margin-top:12px;text-align:left;font-size:12px}.stage-ledger summary{min-height:32px;cursor:pointer}.stage-ledger p{font-size:12px;margin:6px 0}
.campaign-refits .card{padding:14px}.campaign-refits .weapon-photo{height:100px;object-fit:contain;width:100%}.trial-result{color:#2d685a}
body[data-campaign="on"] #level::after{content:""}
@media(max-width:600px) and (orientation:portrait){body[data-depot="on"] #panel{padding:16px 12px}.depot-head h2{font-size:20px}.credit-bank{min-width:64px;padding:7px}.stage-forecast{display:block}.stage-forecast p{margin-top:8px;font-size:12px}.roster-portraits span{width:53px;height:48px}.shop-tabs{gap:5px}.shop-tabs button{font-size:11px}.shop-cards{display:grid;grid-template-columns:1fr}.shop-cards .card{min-height:124px;display:grid;grid-template-columns:84px 1fr;gap:4px 8px}.shop-cards .card small{grid-column:2}.shop-cards .weapon-photo{grid-column:1;grid-row:1/4;height:90px}.shop-cards strong,.shop-cards p{grid-column:2}.depot-footer{grid-template-columns:1fr 1fr}.depot-footer .primary{grid-column:1/3}.campaign-refits{grid-template-columns:1fr}.campaign-refits .card{min-height:120px}}
@media(orientation:landscape) and (max-height:520px){body[data-depot="on"] #overlay{padding:54px 12px 8px;align-items:flex-start}body[data-depot="on"] #panel{padding:10px 12px;max-width:100%}.depot-head h2{font-size:18px;margin:2px 0}.depot-head .eyebrow{font-size:9px}.credit-bank{padding:3px 8px;min-width:65px}.credit-bank b{font-size:22px}.credit-bank small{font-size:9px}.stage-forecast{padding:4px 0;margin-bottom:5px;gap:8px}.stage-forecast p{font-size:11px;line-height:1.25}.roster-portraits span{width:38px;height:32px}.shop-tabs{gap:5px}.shop-tabs button{min-height:38px;font-size:11px;padding:4px}.shop-cards{margin:6px 0;gap:6px}.shop-cards .card{min-height:120px;padding:6px}.shop-cards .weapon-photo{height:38px}.shop-cards strong{font-size:12px}.shop-cards p{font-size:10px;line-height:1.25;margin-top:3px}.shop-cards .card small{font-size:9px}.depot-footer{gap:5px}.depot-footer button{min-height:42px;font-size:11px;padding:5px}.stage-ledger{margin-top:5px}.campaign-refits .weapon-photo{height:50px}.campaign-refits .card{min-height:115px;padding:8px}.campaign-refits p{font-size:11px}body[data-depot="on"] .campaign-branch h2{font-size:18px}}

.region-preview{display:flex;gap:12px;text-align:left;padding:8px 0;color:#2d6558}.region-preview b{white-space:nowrap;font-size:13px}.region-preview span{font-size:12px;line-height:1.4}.journey-note{font-size:11px;color:#4d776b}
@media(max-width:600px){.region-preview{display:block}.region-preview span{display:block;font-size:11px}}
@media(orientation:landscape) and (max-height:520px){.region-preview{padding:4px 0}.region-preview b,.region-preview span{font-size:10px}.shop-cards .card{min-height:108px}}

.shop-short{display:none}.depot-aside .stage-ledger{margin:6px 0 10px}
@media(orientation:landscape) and (max-height:520px){
 body[data-depot="on"] #panel.campaign-depot{display:grid;grid-template-columns:136px minmax(0,1fr);grid-template-rows:48px minmax(0,1fr) 48px;gap:6px 10px;height:calc(100dvh - 68px);padding:8px;box-sizing:border-box;overflow:visible}
 .campaign-depot .depot-aside{grid-column:1;grid-row:1/4;overflow:auto;padding-right:6px;text-align:left}
 .campaign-depot .depot-head{display:block}.campaign-depot .depot-head h2{font-size:15px;line-height:1.15}.campaign-depot .credit-bank{display:flex;gap:5px;align-items:center;justify-content:center;border-radius:8px;margin:5px 0;min-width:0;padding:3px}.campaign-depot .credit-bank b{font-size:18px}
 .campaign-depot .stage-forecast{display:block;border:0}.campaign-depot .roster-portraits{display:flex;flex-wrap:wrap;gap:3px}.campaign-depot .stage-forecast p{margin-top:5px;font-size:11px;line-height:1.3}.campaign-depot .region-preview{display:block;margin-top:4px}.campaign-depot .region-preview b,.campaign-depot .region-preview span{font-size:11px;line-height:1.3}.campaign-depot .stage-ledger p{font-size:11px}
 .campaign-depot .shop-tabs{grid-column:2;grid-row:1}.campaign-depot .shop-tabs button{min-height:48px;font-size:11px}
 .campaign-depot .shop-cards{grid-column:2;grid-row:2;margin:0;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.campaign-depot .shop-cards .card{padding:6px;min-height:0;height:100%;overflow:hidden}.campaign-depot .shop-cards .weapon-photo{height:30px;flex-shrink:0}.campaign-depot .shop-cards strong{font-size:12px;line-height:1.1}.campaign-depot .shop-cards p{font-size:11px;line-height:1.25}.campaign-depot .shop-full{display:none}.campaign-depot .shop-short{display:block}
 .campaign-depot .depot-footer{grid-column:2;grid-row:3}.campaign-depot .depot-footer button{min-height:48px;font-size:11px;padding:3px}
}

.shop-rules{font-size:12px}.shop-rules dt{font-weight:700;margin-top:7px}.shop-rules dd{margin:2px 0 5px;line-height:1.4}
@media(max-width:600px) and (orientation:portrait){
 .campaign-depot .shop-cards{gap:7px;margin:10px 0}.campaign-depot .shop-cards .card{min-height:100px;padding:8px;grid-template-columns:70px 1fr;gap:2px 7px}.campaign-depot .shop-cards .weapon-photo{height:70px}.campaign-depot .shop-cards strong{font-size:13px;margin-top:0}.campaign-depot .shop-cards p{font-size:12px;line-height:1.3;margin-top:2px}.campaign-depot .shop-full{display:none}.campaign-depot .shop-short{display:block}
 .campaign-depot .depot-footer{grid-template-columns:1fr 1fr 1.12fr;gap:5px}.campaign-depot .depot-footer .primary{grid-column:auto}.campaign-depot .depot-footer button{font-size:11px;line-height:1.2;padding:5px;min-height:48px}
}
@media(orientation:landscape) and (max-height:520px){.campaign-depot .shop-cards strong{margin-top:0}.campaign-depot .shop-cards p{margin-top:2px}.campaign-depot .shop-rules{font-size:11px}}

/* Fixed action rows; only the forecast/rules pane scrolls on a compact portrait. */
@media(max-width:600px) and (orientation:portrait){
 body[data-depot="on"] #overlay{padding:80px 12px 10px;align-items:flex-start}
 body[data-depot="on"] #panel.campaign-depot{height:calc(100dvh - 92px);max-height:none;padding:10px;box-sizing:border-box;display:grid;grid-template-rows:minmax(110px,1fr) 48px minmax(258px,1.2fr) 48px;gap:8px;overflow:visible}
 .campaign-depot .depot-aside{min-height:0;overflow:auto;padding-right:2px}
 .campaign-depot .depot-head h2{font-size:18px}.campaign-depot .credit-bank b{font-size:26px}
 .campaign-depot .shop-cards{margin:0;min-height:0;height:100%;grid-template-rows:repeat(3,minmax(0,1fr))}
 .campaign-depot .shop-cards .card{min-height:0;overflow:hidden;padding:7px;grid-template-columns:60px minmax(0,1fr);align-content:center}
 .campaign-depot .shop-cards .weapon-photo{height:60px}.campaign-depot .shop-cards p{font-size:11px;line-height:1.25}
 .campaign-depot .shop-tabs,.campaign-depot .depot-footer{min-height:0;margin:0}
}
