/* The original trading controls, stocked as a charcoal outpost supply hall. */
#market-view { --shop-edge: #625b49; --shop-paper: #ded6c3; }
#market-view .store-front {
  padding: 30px 32px;
  background: #252624;
  border: 1px solid var(--shop-edge);
  border-top: 3px solid #b49a66;
  align-items: center;
}
#market-view .store-front h2 { font-size: 29px; font-weight: 600; letter-spacing: 1px; }
#market-view .store-front p { font-size: 13px; color: #c2bcaf; line-height: 1.9; }
#market-view .store-front .eyebrow { color: #c3ae81; }
#market-view .store-sign { border-color: #5a5748; flex-basis: 220px; padding: 0 0 0 24px; }
#market-view .store-sign .facility-figure { width: 218px; height: 168px; }
#market-view .store-open-status { color: #ddc58d; font-size: 12px; }
#market-view .store-open-status small { color: #b8b2a5; font-size: 11px; }
#market-view > .expansion-links { margin-top: 18px; background: #1e201f; border-color: #484b40; }
#market-view > .expansion-links h2 { font-size: 21px; }
#market-view .store-kpis { gap: 14px; margin: 22px 0; }
#market-view .store-kpis > div { background: #222422; border-color: #535348; border-radius: 2px; padding: 22px; }
#market-view .store-kpis span { font-size: 12px; color: #c8c1b2; }
#market-view .store-kpis strong { font-size: 32px; color: #f0e8d5; margin: 12px 0 8px; }
#market-view .store-kpis > div:nth-child(2) strong { color: #d6ba7e; }
#market-view .store-kpis > div:nth-child(3) strong { color: var(--amber); }
#market-view .store-kpis small { color: #aaa597; font-size: 10px; }
#market-view .business-feedback { padding: 24px; border-top: 2px solid #80704d; }
#market-view .business-feedback h3 { font-size: 19px; }
#market-view .business-totals > div { background: #191b1b; border-color: #4f5045; }
#market-view .business-totals dd { color: #e8ddc3; font-size: 24px; }
#market-view .business-feedback-columns { gap: 28px; }
#market-view .business-feedback-columns h4 { font-size: 14px; color: #d8c294; }
#market-view .business-payment p, #market-view .business-signals p { font-size: 12px; line-height: 1.8; }
#market-view .store-workspace { padding: 26px; border-color: #5a594b; }
#market-view .store-navigation { align-items: flex-start; gap: 16px; padding-bottom: 20px; border-color: #514d40; }
#market-view .store-tabs { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 3px; background: #151717; }
#market-view .store-tabs button { min-width: 0; min-height: 46px; padding: 9px 8px; font-size: 12px; line-height: 1.7; white-space: normal; }
#market-view .store-speed { padding: 3px; }
#market-view .store-speed button { min-width: 38px; min-height: 44px; }
#market-view .store-pane :is(.primary-button, .secondary-button, .text-button) { min-height: 44px; }
#market-view :is(.hero-market-toolbar, .recovery-toolbar) .growth-tabs button { min-height: 44px; }
#market-view .growth-section-title { gap: 16px; }
#market-view .growth-section-title h3 { font-size: 17px; color: #e4dece; }
#market-view .growth-section-title > span { font-size: 11px; line-height: 1.8; }
#market-view .store-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
#market-view .store-product { --shop-card-padding: 22px; display: flex; flex-direction: column; gap: 0; padding: var(--shop-card-padding); background: #222523; border-color: #5b5b4c; border-radius: 2px; }
#market-view .store-product-art { height: 154px; min-height: 154px; margin: calc(-1 * var(--shop-card-padding)) calc(-1 * var(--shop-card-padding)) 22px; border: 0; border-bottom: 1px solid #585b4a; border-radius: 1px 1px 0 0; background: #30362d; }
#market-view .store-product-art .supply-illustration { width: 182px; height: 114px; max-width: 94%; }
#market-view .stock-badge { font-size: 10px; color: #d0d9bc; border-color: #687353; background: #343e2b; border-radius: 2px; max-width: calc(100% - 22px); white-space: normal; text-align: right; }
#market-view .stock-badge.sold-out { color: #e5bf90; border-color: #8b6a42; background: #3d3022; }
#market-view .store-product h3 { font-size: 22px; font-weight: 600; color: #eee6d3; }
#market-view .store-product .equipment-kind { color: #c4ad7f; font-size: 10px; }
#market-view .store-effect { font-size: 12px; line-height: 1.9; color: #c7c2b4; min-height: 68px; }
#market-view .sku-stock { border-color: #4e5145; font-size: 12px; gap: 10px 20px; }
#market-view .sku-stock b { font-size: 18px; color: #f1e8d0; }
#market-view .sku-stock small { color: #bbb7a6; font-size: 11px; }
#market-view .price-editor { margin-top: auto; }
#market-view .price-editor > label { font-size: 13px; }
#market-view .price-editor > label > span { color: #b9b19f; font-size: 10px; }
#market-view .store-pane input[type="number"] { min-height: 44px; border-color: #7d7055; background: #151817; border-radius: 2px; font-size: 16px; }
#market-view .price-editor > div { gap: 8px; }
#market-view .price-editor .secondary-button { min-height: 44px; font-size: 12px; padding-inline: 12px; }
#market-view .price-editor > small { font-size: 11px; color: #c2baa7; line-height: 1.9; margin-top: 10px; }
#market-view .price-presets { gap: 6px; margin-top: 14px; }
#market-view .price-presets button { min-height: 44px; padding: 8px 5px; font-size: 11px; border-color: #5c5d4e; background: #2b2e28; }
#market-view .price-presets button.active { border-color: #b29a62; background: #49412d; color: #f2db9c; }
#market-view .sku-cost { font-size: 11px; color: #c1baa9; line-height: 2; }
#market-view .sku-cost b { color: #e6d9b9; font-size: 12px; }
#market-view .sku-results { font-size: 11px; border-color: #4e5145; }
#market-view .sku-results b { font-size: 12px; }
#market-view .store-product .store-replenish-link { min-height: 44px; font-size: 12px; line-height: 1.8; }
#market-view .store-note { border-color: #625d47; background: #2a2b22; border-radius: 2px; }
#market-view .store-note p { color: #cfc7b2; font-size: 12px; }
#market-view .store-note h3 { color: #e0d1aa; font-size: 15px; line-height: 1.7; }
#market-view .store-note button { min-height: 44px; margin-top: 12px; }
#market-view .store-inventory-strip { border-color: #5c5d4d; background: #262b25; border-radius: 2px; }
#market-view .store-inventory-strip small { font-size: 11px; line-height: 1.8; }
#market-view .store-capacity-meter > div { background: #494b3d; height: 7px; border-radius: 1px; }
#market-view .store-capacity-meter > div > span { background: #c1ae73; }
#market-view .store-reserve-row, #market-view .restock-card { background: #222623; border-color: #54594b; border-radius: 2px; }
#market-view .store-reserve-row p, #market-view .restock-product p { font-size: 11px; line-height: 1.9; }
#market-view .store-reserve-row > small { color: #c8c0ac; font-size: 11px; }
#market-view .store-reserve-row > button, #market-view .order-entry > button { min-height: 44px; }
#market-view .restock-product h3 { font-size: 17px; color: #e8decb; }
#market-view .restock-product { border-color: #4b5044; }
#market-view .restock-product .supply-illustration { width: 116px; height: 74px; }
#market-view .order-entry > label { font-size: 12px; }
#market-view .order-entry > div { min-width: 0; }
#market-view .order-entry strong { color: #e0bd83; font-size: 18px; overflow-wrap: anywhere; }
#market-view .order-entry small { font-size: 11px; }
#market-view .auto-entry { border-color: #4e5145; gap: 12px 16px; }
#market-view .auto-entry label { font-size: 12px; min-height: 44px; }
#market-view .auto-entry input[type="checkbox"] { accent-color: #c9ad73; width: 18px; height: 18px; }
#market-view .auto-entry > button { min-height: 44px; font-size: 12px; }
#market-view .auto-entry > p { color: #c2bcae; font-size: 11px; }
#market-view .store-order, #market-view .store-empty-note { background: #222622; border-color: #555c4b; border-radius: 2px; }
#market-view .store-order strong { font-size: 13px; }
#market-view .store-order p { color: #bcb9aa; font-size: 11px; }
#market-view .delivery-progress { background: #474d3e; }
#market-view .delivery-progress > span { background: #bec28b; }
#market-view .store-profit-bridge { background: #2a2c23; border-color: #6d6950; border-radius: 2px; }
#market-view .store-profit-bridge span { color: #c8c1ae; font-size: 12px; }
#market-view .store-profit-bridge strong { color: #eee3c4; font-size: 30px; }
#market-view .store-profit-bridge i { color: #b09b6c; }
#market-view .store-operations > div { background: #20231f; border-color: #505546; border-radius: 2px; }
#market-view .store-operations span { color: #bfb9a8; font-size: 11px; }
#market-view .store-operations b { font-size: 23px; }
#market-view .store-misses { font-size: 12px; border-color: #4e5145; }
#market-view .store-table-wrap { border-color: #5e5d4e; border-radius: 2px; scrollbar-color: #8b805f #1d211d; }
#market-view .store-table { font-size: 12px; }
#market-view .store-table thead { background: #31352c; }
#market-view .store-table th, #market-view .store-table td { padding: 15px 16px; border-color: #454b3e; }
#market-view .store-table tbody tr:nth-child(even) { background: #222620; }
#market-view .store-ledger-heading h3 { font-size: 17px; }
#market-view .store-ledger-heading .gear-filters { flex-wrap: wrap; }
#market-view .store-ledger-heading .gear-filters button { min-height: 44px; font-size: 12px; }
#market-view .receipt-icon { background: #303a2b; border-color: #66744f; border-radius: 2px; }
#market-view .store-ledger-row strong { font-size: 13px; }
#market-view .store-ledger-row p { font-size: 11px; }
#market-view .receipt-amount b { font-size: 15px; }
#market-view .receipt-amount time { font-size: 10px; }
#market-view .store-footnote { font-size: 11px; color: #b9b4a7; line-height: 1.9; }
#market-view .recovery-intro, #market-view .hero-market-opening { border-top: 2px solid #97814f; }
#market-view .recovery-intro h2, #market-view .hero-market-opening h2 { font-size: 25px; font-weight: 600; }
#market-view .recovery-flow span { background: #30352b; border-color: #5c624c; color: #d7d3b9; border-radius: 2px; }
#market-view .recovery-facility, #market-view .recovery-person,
#market-view .recovery-ledger, #market-view .hero-market-channel,
#market-view .hero-market-showcase, #market-view .hero-market-account,
#market-view .hero-market-history { background: #222522; border-color: #54584b; border-radius: 2px; }
#market-view .recovery-facility h3, #market-view .hero-market-channel > header h3 { font-size: 20px; }
#market-view .recovery-facility > p, #market-view .hero-market-note,
#market-view .hero-forge-intro p, #market-view .hero-forge-rules dd { font-size: 12px; line-height: 1.9; }
#market-view .recovery-facility > header > button { min-height: 44px; font-size: 12px; }
#market-view .recovery-person-services > section { background: #1c201d; border-color: #4f5747; border-radius: 2px; }
#market-view .recovery-person-services > section.paid { background: #2c3024; border-color: #697251; }
#market-view .recovery-person-services h4 { color: #ded5bb; font-size: 13px; }
#market-view .recovery-person-services p, #market-view .recovery-person-services small { font-size: 11px; }
#market-view .recovery-capacities > span { background: #2a2f26; border-color: #555e48; border-radius: 2px; }
#market-view .hero-market-opening-action { min-width: 0; max-width: 100%; }
#market-view .hero-market-reserve input, #market-view .hero-showcase-picker select { background: #161a17; border-color: #71674f; border-radius: 2px; min-height: 44px; }
#market-view .hero-market-reserve button, #market-view .hero-market-opening-action button { min-height: 44px; }
#market-view .hero-market-policies button { min-height: 76px; border-radius: 2px; background: #1d211d; }
#market-view .hero-market-policies button.selected { background: #403a29; border-color: #a18b55; }
#market-view .hero-market-policies strong { font-size: 12px; }
#market-view .hero-market-policies span, #market-view .hero-market-policies small { font-size: 10px; }
#market-view .hero-market-art { background: #2b322a; border-color: #5a6350; border-radius: 2px; }
#market-view .hero-supply-price strong { color: #e3d4af; font-size: 20px; }
#market-view .hero-forge-odds > div > span { background: #2c3127; border-color: #565d4a; color: #c6c0ab; }
#market-view .hero-forge-assurance { background: #303527; border-color: #64704e; color: #d1d6b7; border-radius: 2px; }
#market-view .hero-showcase-item { background: #1e231e; border-color: #536048; border-radius: 2px; }
#market-view .hero-showcase-item button, #market-view .hero-showcase-picker button { min-height: 44px; }
#market-view .market-card { border-color: #555c4b; padding: 22px; }
#market-view .market-art { background: #2d3529; border: 1px solid #56614b; border-radius: 2px; min-height: 120px; margin-bottom: 18px; }
#market-view .market-art .supply-illustration { width: 154px; height: 98px; }
#market-view .market-card h3 { font-size: 19px; }
#market-view .market-card p { font-size: 12px; line-height: 1.8; }
#market-view .market-card button { min-height: 44px; }
@media (max-width: 1100px) {
  #market-view .store-navigation { flex-wrap: wrap; }
  #market-view .store-tabs { flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #market-view .store-speed { margin-left: auto; }
  #market-view .store-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #market-view .hero-market-channels { grid-template-columns: minmax(0, 1fr); }
  #market-view .store-front h2 { font-size: 26px; }
}
@media (max-width: 700px) {
  #market-view .store-front { padding: 22px; flex-direction: column; align-items: stretch; gap: 20px; }
  #market-view .store-front h2 { font-size: 24px; }
  #market-view .store-sign { display: block; flex-basis: auto; border-left: 0; border-top: 1px solid #555846; padding: 14px 0 0; text-align: left; }
  #market-view .store-sign .facility-figure { width: 158px; height: 122px; }
  #market-view .store-front p, #market-view .store-open-status small { font-size: 12px; }
  #market-view .store-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #market-view .store-kpis > div { padding: 16px; }
  #market-view .store-kpis strong { font-size: 27px; }
  #market-view .store-workspace { padding: 18px; }
  #market-view .store-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #market-view .store-tabs button { font-size: 12px; }
  #market-view .growth-section-title { flex-wrap: wrap; }
  #market-view .store-products { grid-template-columns: minmax(0, 1fr); }
  #market-view .store-product { --shop-card-padding: 20px; }
  #market-view .store-product-art { min-height: 146px; height: 146px; }
  #market-view .store-effect { min-height: 0; }
  #market-view .price-editor > div { flex-wrap: wrap; }
  #market-view .price-editor input[type="number"] { flex: 1 1 80px; }
  #market-view .price-editor .secondary-button { flex: 1 1 90px; justify-content: center; }
  #market-view .store-note { padding: 15px; gap: 10px; }
  #market-view .store-note > svg { flex-shrink: 0; }
  #market-view .store-reserve-row > div { min-width: 0; }
  #market-view .restock-card { padding: 17px; }
  #market-view .restock-product { align-items: flex-start; flex-wrap: wrap; }
  #market-view .restock-product .supply-illustration { width: 86px; height: 56px; }
  #market-view .restock-product > div { min-width: 0; flex: 1 1 110px; }
  #market-view .order-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #market-view .order-entry input[type="number"] { width: 76px; max-width: 100%; }
  #market-view .auto-entry > label:not(.auto-toggle) { width: 100%; justify-content: space-between; }
  #market-view .auto-entry > button { width: 100%; text-align: right; }
  #market-view .store-profit-bridge { padding: 16px; gap: 9px; }
  #market-view .store-profit-bridge span { font-size: 11px; }
  #market-view .store-profit-bridge strong { font-size: 22px; }
  #market-view .store-profit-bridge i { font-size: 16px; }
  #market-view .store-ledger-heading { align-items: flex-start; }
  #market-view .store-ledger-heading .gear-filters { justify-content: flex-start; gap: 4px; }
  #market-view .store-ledger-heading .gear-filters button { flex: 1 1 70px; padding: 7px; }
  #market-view .hero-market-toolbar, #market-view .recovery-toolbar { flex-wrap: wrap; gap: 12px; }
  #market-view .hero-market-toolbar > span { text-align: left; }
  #market-view .hero-market-reserve > div { flex-wrap: wrap; }
  #market-view .hero-market-reserve button { min-width: 70px; }
  #market-view .hero-market-policies { gap: 5px; }
  #market-view .hero-market-policies button { padding-inline: 4px; }
  #market-view .hero-showcase-item { grid-template-columns: 62px minmax(0, 1fr); }
  #market-view .hero-showcase-item > button { grid-column: 2; justify-self: start; }
  #market-view .market-card { padding: 18px; grid-template-columns: 82px minmax(0, 1fr); }
  #market-view .market-art { min-height: 100px; margin-bottom: 0; }
  #market-view .market-art .supply-illustration { width: 80px; height: 64px; }
}
@media (max-width: 370px) {
  #market-view .store-front, #market-view .business-feedback { padding: 18px; }
  #market-view .store-workspace { padding: 14px; }
  #market-view .store-kpis > div { padding: 13px; }
  #market-view .store-product { --shop-card-padding: 17px; }
  #market-view .store-profit-bridge { gap: 7px; padding: 13px; }
  #market-view .store-profit-bridge strong { font-size: 20px; }
  #market-view .hero-market-policies { grid-template-columns: minmax(0, 1fr); }
  #market-view .hero-market-policies button { min-height: 70px; }
}
