/* Regional Marketplace Editor ---------------------------------------- */
.augur-nexus.fantasy-marketplace-editor-window .window-content { padding: 0; overflow: hidden; }
.fantasy-marketplace-editor-shell { height: 100%; min-height: 0; }
.fantasy-marketplace-specialized-label { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fantasy-marketplace-specialized-label span { color: #8f8b82; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fantasy-marketplace-specialized-label strong { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--nexus-user-accent, #bf913f) 62%, transparent); color: var(--shop-brass-bright); background: rgba(48,34,18,.55); font-family: var(--font-h2, serif); }
.fantasy-marketplace-editor-content { min-height: 0; overflow: hidden; }
.fantasy-marketplace-economy-layout { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 10px; box-sizing: border-box; overflow: hidden; }
.fantasy-marketplace-stock-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 10px; height: 100%; min-height: 0; padding: 10px; }
.fantasy-marketplace-settings-column { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.fantasy-marketplace-settings-card { flex: 0 0 auto; }
.fantasy-marketplace-settings-card > header { margin-bottom: 9px; }
.fantasy-marketplace-settings-card label + label { margin-top: 7px; }
.fantasy-marketplace-unified-settings { display: flex; flex-direction: column; gap: 9px; height: 100%; padding: 10px 12px; overflow: auto; }
.fantasy-marketplace-unified-settings > header { flex: 0 0 auto; margin: 0; }
.fantasy-marketplace-settings-section { flex: 0 0 auto; padding-top: 8px; border-top: 1px solid #3d403b; }
.fantasy-marketplace-settings-section h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; color: var(--shop-brass-bright); font-family: var(--font-h2, serif); font-size: 13px; }
.fantasy-marketplace-settings-section h3 small { color: #747b78; font-family: var(--font-primary, sans-serif); font-size: 8px; font-weight: 400; }
.fantasy-marketplace-settings-section > p { margin: 6px 0 0; color: #777f7c; font-size: 8px; line-height: 1.35; }
.fantasy-marketplace-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fantasy-marketplace-pricing-grid label + label { margin-top: 0; }
.fantasy-marketplace-generation-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 8px; }
.fantasy-marketplace-field-note { color: #777f7c; font-size: 8px; font-weight: 400; }
.fantasy-marketplace-percent-input { display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; }
.fantasy-marketplace-percent-input b { color: var(--shop-brass-bright); text-align: right; }
.fantasy-marketplace-treasury-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.fantasy-marketplace-check { flex-direction: row !important; align-items: center; min-height: 29px; white-space: nowrap; }
.fantasy-marketplace-quantity-row { display: grid; grid-template-columns: 1fr 18px 1fr; align-items: end; gap: 5px; margin-top: 0; }
.fantasy-marketplace-quantity-row > span { padding-bottom: 8px; color: #8e877c; font-size: 9px; text-align: center; }
.fantasy-marketplace-rebuild-button { width: 100%; min-height: 31px; margin: 10px 0 0; border-color: var(--shop-brass); color: var(--shop-brass-bright); background: #18130f; }
.fantasy-marketplace-sync-note { margin-top: 7px; padding: 6px 7px; border-left: 3px solid #79984a; color: #bed58f; background: rgba(76,105,43,.16); font-size: 9px; line-height: 1.35; }
.fantasy-marketplace-stock-sync { margin: 8px 10px 0; }
.fantasy-marketplace-goods-browser { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #51442d; background: rgba(8,12,14,.94); overflow: hidden; }
.fantasy-marketplace-goods-browser > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 12px; border-bottom: 1px solid #463b2a; background: rgba(38,26,16,.48); }
.fantasy-marketplace-goods-browser h2, .fantasy-marketplace-stock-surface h2 { margin: 0; color: var(--shop-brass-bright); font-family: var(--font-h2, serif); font-size: 21px; }
.fantasy-marketplace-goods-browser p, .fantasy-marketplace-stock-surface p { margin: 2px 0 0; color: #8f918c; font-size: 10px; }
.fantasy-marketplace-goods-browser > header label { display: flex; align-items: center; gap: 7px; width: 270px; color: var(--shop-brass-bright); }
.fantasy-marketplace-goods-browser > header input { height: 30px; margin: 0; border: 1px solid #6f4b26; color: #e9dabc; background: #151213; }
.fantasy-marketplace-state-summary { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #34332c; }
.fantasy-marketplace-state-summary span { padding: 4px 7px; border: 1px solid #4b4d47; color: #c6c2b7; background: #14191a; font-size: 9px; text-transform: uppercase; }
.fantasy-marketplace-state-summary .is-produced { border-color: #647d3c; color: #b9d682; }
.fantasy-marketplace-state-summary em { margin-left: auto; color: #757a76; font-size: 9px; font-style: normal; }
.fantasy-marketplace-goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-content: start; gap: 6px; min-height: 0; padding: 8px; overflow: auto; }
.fantasy-marketplace-good { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: 46px 27px; min-width: 0; border: 1px solid #3e4545; background: #171c1e; }
.fantasy-marketplace-good.is-produced { border-color: #647d3c; background: linear-gradient(100deg, rgba(67,87,38,.28), #171c1e 50%); }
.fantasy-marketplace-good > img { width: 46px; height: 46px; padding: 3px; object-fit: contain; }
.fantasy-marketplace-good > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 7px; }
.fantasy-marketplace-good strong { overflow: hidden; color: #ece0c7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fantasy-marketplace-good small { overflow: hidden; color: #858b87; font-size: 8px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.fantasy-marketplace-good-state { grid-column: 1 / -1; display: grid; grid-template-columns: 28px 1fr; gap: 3px; padding: 3px; border-top: 1px solid #343a3a; }
.fantasy-marketplace-good-state button { min-width: 0; height: 21px; margin: 0; padding: 0 4px; border: 1px solid #454b4b; color: #8d918e; background: #101415; font-size: 8px; }
.fantasy-marketplace-good-state button.active { color: #f0d393; border-color: #8b6a34; background: #322719; }
.fantasy-marketplace-good-state button.produced.active { color: #d6ef9e; border-color: #79984a; background: #26351c; }
.fantasy-marketplace-stock-surface { display: flex; flex-direction: column; height: 100%; min-width: 0; min-height: 0; margin: 0; border: 1px solid #51442d; background: #080d0f; }
.fantasy-marketplace-stock-surface > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #51442d; background: rgba(39,27,16,.5); }
.fantasy-marketplace-stock-surface > header button { width: auto; min-width: 165px; height: 31px; margin: 0; border-color: var(--shop-brass); color: var(--shop-brass-bright); background: #18130f; }
.fantasy-marketplace-warning { margin: 8px 10px 0; padding: 8px; border-left: 3px solid #b2664e; color: #e0aa92; background: rgba(113,45,30,.2); font-size: 10px; }
.fantasy-marketplace-stock-grid { align-content: start; flex: 1 1 auto; min-height: 0; padding: 10px; overflow: auto; }
@media (max-width: 900px) {
    .fantasy-marketplace-stock-layout { grid-template-columns: 285px minmax(0, 1fr); }
    .fantasy-marketplace-pricing-grid { grid-template-columns: 1fr; }
    .fantasy-marketplace-goods-grid { grid-template-columns: 1fr; }
}
