.base-economy { color: #d6cbb8; font-size: 14px; }
#base-panel:not(.has-base-inventory)>header { position: sticky; top: 0; z-index: 3; background: #25231f; }
.base-economy .inventory-action { font-size: 14px; padding: 9px 12px; }
.base-economy-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #76614a; margin-bottom: 20px; }
.base-economy-nav [aria-current=true] { border-color: #c5a878; color: #efdbb2; }
.base-wallet { margin-left: auto; color: #d5b880; font-variant-numeric: tabular-nums; }
.trade-columns, .facility-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trade-counter, .facility-card { min-width: 0; padding: 20px; background: #211f1af0; border: 1px solid #665947; }
.base-economy h3 { font-size: 22px; color: #e2cfad; }
.base-economy input, .base-economy select { box-sizing: border-box; padding: 8px; color: #e2d7c6; border: 1px solid #7b6b52; background: #171915; font: inherit; max-width: 100%; }
.base-economy input[type=number] { width: 82px; }
.base-economy input[type=checkbox] { width: 18px; height: 18px; accent-color: #bca16a; flex-shrink: 0; }
.trade-counter>select { display: block; width: 100%; margin-bottom: 12px; }
.trade-description { min-height: 3em; color: #b9ad97; }
.transaction-total { color: #d8bf8a; font-variant-numeric: tabular-nums; }
.shop-item { display: grid; grid-template-columns: 36px 1fr 76px; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid #5d5243; }
.shop-item>.item-icon { width: 32px; height: 32px; }
.shop-item small { display: block; color: #b4a68e; font-size: 12px; }
.shop-item>.inventory-action { grid-column: 2 / 4; justify-self: end; }
.material-needs { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 12px; color: #cdc2ac; text-align: right; }
.material-needs th, .material-needs td { padding: 7px 4px; border-bottom: 1px solid #76634855; }
.material-needs th:first-child, .material-needs td:first-child { text-align: left; }
.material-needs th { color: #a99d86; font-weight: normal; white-space: nowrap; }
.facility-card .inventory-action { margin: 4px 8px 0 0; }
.base-command-preview { background: #26241c; border: 1px solid #b39969; padding: 22px; margin-top: 22px; }
.base-command-preview .inventory-action { margin: 12px 10px 0 0; }
.base-command-preview[hidden] { display: none; }
.transaction-warning, .transaction-error { color: #edb68b; }
.reserve-confirm { display: flex; align-items: center; gap: 12px; padding: 14px; color: #f0bc92; background: #56392b66; }
.preset-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; margin: 24px 0; }
.preset-fields label { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.preset-fields~.inventory-action { margin-right: 12px; }
.recipe-row .material-needs { font-size: 11px; }
.recipe-row .material-needs th, .recipe-row .material-needs td { padding: 4px 2px; }
.departure-supplies { color: #d8c795; }
.departure-supplies~.inventory-action { margin-right: 12px; }
@media (max-width: 800px) { .trade-columns, .facility-list, .preset-fields { grid-template-columns: 1fr; } .base-wallet { margin-left: 0; } }
