#marketDialog{--gold:#d4b778;--edge:#48615c;--surface:#122a30;--art:82px;width:min(980px,95vw);max-height:86dvh;color:#e7ebe8;background:linear-gradient(135deg,#18383e,#0b1c22 75%);border:1px solid #ad9767;border-radius:7px;box-shadow:0 22px 70px #001217a6;font:13px/1.5 "Segoe UI",sans-serif}
#marketDialog .marketTitle{background:radial-gradient(ellipse at 5% 90%,#23545a,#0e262e 75%);border-bottom:1px solid #9f8c5f60;padding:12px 18px}
#marketDialog .marketTitle h2{color:#f3e6c9;font:28px/1.15 Georgia,serif;margin:0}
#marketDialog .marketTitle h2:before{content:"K A R A   Y E L";display:block;font:9px/1.7 system-ui;color:#d4b778;white-space:pre}
#marketDialog button{border:1px solid #697367;background:#183338;color:#e9debf;box-shadow:none;border-radius:4px}
#marketDialog button:hover:not(:disabled){background:#294b4e}
#marketDialog #marketSections{display:flex;flex-wrap:wrap;background:#10272d;padding:6px 10px;gap:3px}
#marketDialog #marketSections button{padding:7px 10px;border-color:transparent;background:transparent}
#marketDialog #marketSections [aria-selected=true],#marketDialog #marketCategories [aria-pressed=true]{background:#d4b7781c;border-color:#ac965e;color:#f1d89c}
#marketDialog .marketTools,#marketDialog .marketBalance{background:#0d2228;border-color:#68755a60}
#marketDialog .marketSearch input,#marketDialog .productRow input{background:#0b2228;color:#e0e9e4;border:1px solid #55706c}
#marketDialog #marketProducts{display:grid;align-content:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;padding:5px;min-width:0}
#marketDialog .productRow{min-height:0;height:auto;background:var(--surface);border:1px solid var(--edge);border-radius:5px;padding:10px;gap:7px;color:#e2e8e2}
#marketDialog .productRow b{font:16px Georgia;color:#f0deba}
#marketDialog .productRow small{font:11px/1.45 system-ui;color:#adc3be;min-height:0}
#marketDialog .productRow .productArt{height:var(--art)!important;background:radial-gradient(ellipse,#62897e33,transparent 68%)}
#marketDialog .productArt img,#marketDialog .productArt svg{height:100%;max-height:100%;width:100%;object-fit:contain}
#marketDialog .productRow>button{color:#eed9a6;background:#263b37;border-color:#8e805a}
#marketDialog .productRow[hidden]{display:none}
#marketDialog .marketShopLayout{display:flex;flex-direction:column}
#marketDialog #marketCategories:not([hidden]){display:flex;flex-flow:row wrap;gap:4px;flex:none}
#marketDialog #marketProducts{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:4px}
#marketDialog .productRow{--art:48px;padding:7px;border-radius:0;background:#132d33}
#marketDialog .productRow b{font-size:14px}
#marketDialog .productRow[hidden]{display:none!important}
