.market-view { position: relative; margin-left: clamp(250px,21vw,315px); min-width: 0; container-type: inline-size; color: #dcdece; font: 14px/1.45 Arial,sans-serif; }
.market-view[hidden], .market-view [hidden] { display: none; }
.market-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.market-heading h1 { margin: 0; font: bold 24px Arial,sans-serif; color: #e6d2a2; }
.market-heading>span { color: #b3b89e; font-size: 12px; }
.market-tabs { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 2px solid #998252; }
.market-tabs .market-button { padding: 11px 18px; flex: 1; border-bottom: 0; background: #252b24; }
.market-tabs [aria-pressed=true] { background: #51472c; border-top-color: #e1c077; color: #ffdf91; }
.market-panel { margin: 0 0 14px; background: #252d27; border: 1px solid #5c614a; }
.market-panel-title { margin: 0; padding: 8px 12px; border-top: 3px solid #777858; border-bottom: 1px solid #0c1510; background: #394034; color: #ebdbb4; font: bold 14px/1.4 Arial,sans-serif; }
.market-search { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 14px; }
.market-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #bfc3ae; }
.market-field>span,.market-range legend { font-size: 12px; }
.market-view input,.market-view select { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px; color: #e4dec8; background: #111c16; border: 1px solid #676b51; border-radius: 0; font: 14px Arial,sans-serif; }
.market-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; margin: 0; padding: 7px; border: 1px solid #4c5646; }
.market-range legend { color: #d0c18e; padding: 0 4px; }
.market-search-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-self: end; gap: 8px; grid-column: span 3; }
.market-button { padding: 7px 12px; border: 1px solid #837549; border-top: 3px solid #b79d60; background: #49432c; color: #efdcb2; font: 14px Arial,sans-serif; cursor: pointer; white-space: nowrap; border-radius: 0; }
.market-button:hover { background: #615735; }
.market-button:disabled { opacity: .5; cursor: not-allowed; }
.market-view button:focus-visible,.market-view input:focus-visible,.market-view select:focus-visible,.market-view a:focus-visible { outline: 2px solid #ebc270; outline-offset: 2px; }
.market-note { padding: 0 12px; color: #aeb79e; font-size: 12px; }
.market-status { color: #dfcc92; margin: 10px 0; }
.market-status:empty { display: none; }
.market-table-wrap { overflow-x: auto; }
.market-table { border-collapse: collapse; width: 100%; min-width: 680px; }
.market-table th { color: #b9beaa; background: #19251d; font-size: 12px; font-weight: normal; text-align: left; }
.market-table td,.market-table th { padding: 9px 10px; border-bottom: 1px solid #121b14; border-top: 1px solid #434b3d; }
.market-table td:nth-child(n+3) { white-space: nowrap; color: #e2cb86; }
.market-table tbody tr:nth-child(even) { background: #29332b; }
.market-table td:first-child { min-width: 185px; }
.market-view small { display: block; font-size: 12px; color: #afb89f; }
.market-view a { color: #a9cebf; }
.market-panel>p:not(.market-note) { padding: 0 12px; }
.market-panel>.market-button { margin: 0 0 12px 12px; }
.market-sale-form { display: grid; grid-template-columns: minmax(0,2fr) minmax(80px,1fr) minmax(100px,1fr); gap: 12px; padding: 14px; }
.market-sale-stats,.market-quote { grid-column: 1/-1; margin: 0; }
.market-sale-stats:empty { display: none; }
.market-quote { color: #e3c777; border-top: 1px solid #565d44; padding-top: 10px; }
.market-sale-form>.market-button { grid-column: 1/-1; justify-self: end; }
.market-own-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #47503e; padding: 12px; }
.market-own-row>div { min-width: 0; overflow-wrap: anywhere; }
@media(max-width:1050px) { .market-view { margin: 0; grid-column: 2; } html[data-page=market] .game-stage { padding-top: 24px; align-content: start; } }
@media(max-width:720px) { .market-view { grid-column: 1; } }
@container(max-width:780px) { .market-search { grid-template-columns: repeat(2,minmax(0,1fr)); } .market-search-actions { grid-column: auto; } .market-sale-form { grid-template-columns: 1fr 1fr; } .market-sale-form>.market-field:first-child { grid-column: 1/-1; } }
@container(max-width:420px) { .market-search { grid-template-columns: 1fr; } .market-tabs .market-button { padding: 10px 7px; white-space: normal; } .market-own-row { flex-wrap: wrap; } }
