/* A1 R2.3: fixed-shell responsive read-only market panel.
   Player-facing market requests are GET-only; asset writes stay disabled server-side. */
.nyx-market-overlay{position:fixed;inset:0;z-index:14500;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:rgba(3,7,18,.78);padding:14px;color:#e5e7eb;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.nyx-market-overlay[hidden],.nyx-market-dialog [hidden]{display:none!important}
.nyx-market-dialog{box-sizing:border-box;background:#101a2d;border:1px solid #39465f;border-radius:16px;box-shadow:0 24px 80px #0009;width:min(1000px,100%);height:min(760px,calc(100dvh - 28px));height:min(760px,calc(100vh - 28px));max-height:calc(100vh - 28px);display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
@supports(height:100dvh){.nyx-market-dialog{height:min(760px,calc(100dvh - 28px));max-height:calc(100dvh - 28px)}}
.nyx-market-header{box-sizing:border-box;flex:0 0 auto;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #303e59;min-width:0}
.nyx-market-title{font-weight:750;font-size:20px;line-height:1.2;margin:0;color:#f8fafc;min-width:0}
.nyx-market-close{flex:none;background:#263752;border:1px solid #425573;color:#f3f4f6;border-radius:9px;min-width:39px;min-height:38px;cursor:pointer}
.nyx-market-close:focus-visible,.nyx-market-action:focus-visible,.nyx-market-tabs button:focus-visible,.nyx-market-nav button:focus-visible{outline:2px solid #94bfff;outline-offset:2px}
.nyx-market-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:10px;padding:14px 18px;overflow:hidden;min-width:0;min-height:0}
.nyx-market-notice{flex:none;background:#263249;border:1px solid #3d4b63;border-radius:10px;font-size:13px;padding:9px 12px;margin:0;color:#d6dfec}
.nyx-market-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:0 0 auto;gap:6px;min-width:0}
.nyx-market-tabs button{color:#cbd5e1;border-radius:9px;border:1px solid #354761;background:#1d2a40;padding:10px 5px;cursor:pointer;min-width:0;overflow-wrap:anywhere}
.nyx-market-tabs button[aria-selected="true"]{background:#30476a;color:#fff;border-color:#6287c7;font-weight:700}
.nyx-market-search{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:start;min-width:0}
.nyx-market-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.nyx-market-search .nyx-market-action{min-height:38px}
.nyx-market-filters input,.nyx-market-filters select,.nyx-market-advanced input,.nyx-market-advanced select{box-sizing:border-box;width:100%;min-width:0;min-height:38px;border:1px solid #465774;border-radius:8px;background:#17243a;color:#edf2f7;padding:7px}
.nyx-market-filters input::placeholder,.nyx-market-advanced input::placeholder{color:#a8b6cd}
.nyx-market-advanced{flex:0 0 auto;box-sizing:border-box;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #394960;background:#152238;border-radius:9px;min-width:0}
.nyx-market-field{display:flex;flex-direction:column;min-width:0;gap:4px}
.nyx-market-field label{color:#c1cfe0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nyx-market-status{color:#fcdba2;font-size:13px;flex:0 0 21px;line-height:21px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Only the workspace scrolls. Header, tabs, filters and pagination never follow list height. */
.nyx-market-workspace{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;border:1px solid #303e59;border-radius:12px;background:#111e32}
.nyx-market-list-scroll,.nyx-market-details{box-sizing:border-box;position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;scrollbar-gutter:stable;min-width:0}
.nyx-market-results{display:grid;gap:10px;align-content:start;min-height:100%}
.nyx-market-item{border:1px solid #35445d;border-radius:12px;background:#17243a;padding:12px;display:flex;align-items:center;gap:12px;min-width:0}
.nyx-market-item-icon{flex:0 0 45px;width:45px;height:45px;display:grid;place-items:center;background:#233550;border-radius:9px;font-size:23px}
.nyx-market-item-icon img{display:block;width:100%;height:100%;object-fit:contain;border-radius:6px}
.nyx-market-detail-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.nyx-market-item-main{flex:1;min-width:0}
.nyx-market-item-name{font-size:15px;font-weight:750;color:#f8fafc;overflow-wrap:anywhere}
.nyx-market-muted{font-size:12px;color:#b6c5d9;margin-top:3px;overflow-wrap:anywhere}
.nyx-market-price{font-size:14px;font-weight:700;color:#fbbf24;margin-top:4px}
.nyx-market-action{border:1px solid #5a789b;border-radius:8px;background:#2b4361;color:#fff;padding:8px 12px;cursor:pointer;white-space:nowrap}
.nyx-market-action:disabled{opacity:.5;cursor:not-allowed}
.nyx-market-empty{padding:26px 10px;text-align:center;color:#c1cbd9;min-height:160px;box-sizing:border-box;display:grid;align-content:center;justify-items:center}
.nyx-market-footer{box-sizing:border-box;flex:0 0 46px;display:flex;align-items:center;justify-content:center;min-height:46px;border-top:1px solid #303e59}
.nyx-market-nav{display:flex;gap:10px;justify-content:center;align-items:center;min-height:38px}
.nyx-market-nav button{border:1px solid #526686;color:#fff;background:#273e60;border-radius:8px;padding:7px 12px;cursor:pointer}
.nyx-market-nav button:disabled{opacity:.4;cursor:not-allowed}
.nyx-market-detail{background:#1c2941;border:1px solid #3b5173;border-radius:12px;padding:13px;margin:0;overflow-wrap:anywhere}
.nyx-market-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#d4dfef;max-height:240px;overflow:auto}
.nyx-market-detail .nyx-market-action{margin-top:12px}
@media(max-width:700px){.nyx-market-search{grid-template-columns:minmax(0,1fr) auto}.nyx-market-search .nyx-market-advanced-button{grid-column:1/-1}.nyx-market-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}.nyx-market-tabs button{font-size:13px}}
@media(max-width:640px){.nyx-market-overlay{padding:0;align-items:stretch}.nyx-market-dialog{height:100vh;max-height:100vh;width:100%;border-radius:0}.nyx-market-content{padding:10px;gap:8px}.nyx-market-header{padding:12px}.nyx-market-tabs{gap:4px}.nyx-market-tabs button{font-size:12px;padding:9px 3px}.nyx-market-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.nyx-market-filters input{grid-column:1/-1}.nyx-market-item{gap:8px}.nyx-market-item-icon{flex-basis:38px;width:38px;height:38px}.nyx-market-action{padding:7px 9px}.nyx-market-list-scroll,.nyx-market-details{padding:8px}.nyx-market-advanced{padding:8px}}
@supports(height:100dvh){@media(max-width:640px){.nyx-market-dialog{height:100dvh;max-height:100dvh}}}
@media(max-height:480px) and (min-width:641px){.nyx-market-overlay{padding:4px}.nyx-market-dialog{height:calc(100vh - 8px);max-height:calc(100vh - 8px)}.nyx-market-header{padding:7px 12px}.nyx-market-content{gap:5px;padding:8px 12px}.nyx-market-notice{padding:5px 8px}.nyx-market-tabs button{padding:6px}.nyx-market-footer{flex-basis:40px;min-height:40px}}

/* A1 R3 player transaction controls share the R2.3 fixed workspace. */
.nyx-market-detail .nyx-market-field{max-width:480px;margin-top:14px}
.nyx-market-detail .nyx-market-field input{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #566b8b;border-radius:8px;background:#17243a;color:#fff;padding:8px 10px;font:inherit}
.nyx-market-detail .nyx-market-field label{font-size:13px;color:#cbd5e1}
.nyx-market-item{flex-wrap:wrap}
.nyx-market-item .nyx-market-action{flex-shrink:0}
@media(max-width:430px){.nyx-market-item .nyx-market-action{min-height:34px}.nyx-market-item-name{font-size:14px}}

/* A1 R3.2: stable three-tab player shell, compact five-column auction list. */
.nyx-market-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.nyx-market-footer{justify-content:space-between;gap:10px;padding:0 12px}
.nyx-market-results.nyx-market-table{display:flex;flex-direction:column;gap:0;min-width:720px;min-height:0}
.nyx-market-list-scroll{overflow-x:auto}
.nyx-market-table-header,.nyx-market-table-row{
 display:grid;grid-template-columns:minmax(220px,2.5fr) minmax(65px,.55fr) minmax(115px,1.15fr) minmax(125px,1.2fr) minmax(142px,1.15fr);
 gap:8px;align-items:center;min-width:720px;padding:9px 12px;border-bottom:1px solid #344259;
}
.nyx-market-table-header{position:sticky;z-index:2;top:-12px;background:#1c2b44;color:#dce8fb;font-weight:700}
.nyx-market-table-row{background:#17243a;font-size:13px}
.nyx-market-table-row:hover{background:#203351}
.nyx-market-cell{min-width:0;overflow-wrap:anywhere}
.nyx-market-product{display:flex;align-items:center;min-width:0;gap:9px}
.nyx-market-product-title{display:flex;flex-direction:column;min-width:0;gap:3px}
.nyx-market-product-title strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}
.nyx-market-product-title small{color:#b5c3d7;font-size:11px}
.nyx-market-row-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.nyx-market-row-actions .nyx-market-action{padding:7px 8px;font-size:12px}
.nyx-market-results.nyx-market-sell-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-content:start;min-height:0}
.nyx-market-sell-card{color:#edf3fc;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;
 padding:12px 6px;min-width:0;border:1px solid #3a5270;border-radius:11px;background:#1c2c45;cursor:pointer;font:inherit}
.nyx-market-sell-card:hover:not(:disabled){background:#294264;border-color:#6c94d1}
.nyx-market-sell-card:focus-visible{outline:2px solid #9cc4ff;outline-offset:2px}
.nyx-market-sell-card:disabled{opacity:.6;cursor:not-allowed}
.nyx-market-sell-card .nyx-market-item-icon{width:56px;height:56px;flex-basis:56px}
.nyx-market-sell-card strong{font-size:13px;overflow-wrap:anywhere}
.nyx-market-sell-card small{font-size:11px;color:#b9c9de}
.nyx-market-sell-cta{font-size:12px;border:1px solid #5477a8;border-radius:7px;padding:4px 13px;background:#314f73}
.nyx-market-modal-host{position:absolute;inset:0;z-index:5}
.nyx-market-modal-shade{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;
 background:rgba(3,9,21,.82);box-sizing:border-box}
.nyx-market-modal-panel{box-sizing:border-box;max-width:520px;width:100%;max-height:100%;display:flex;flex-direction:column;
 border:1px solid #607394;border-radius:13px;background:#16243b;box-shadow:0 12px 44px #0009;overflow:hidden}
.nyx-market-modal-header{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #364964}
.nyx-market-modal-header h3{margin:0;font-size:17px}
.nyx-market-modal-content{padding:14px;display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0}
.nyx-market-modal-content .nyx-market-field{gap:5px}
.nyx-market-modal-content .nyx-market-field span{font-size:13px;color:#cbd5e1}
.nyx-market-modal-content input{background:#101d30;border:1px solid #557093;border-radius:8px;color:#fff;min-height:39px;padding:7px 10px;font:inherit}
.nyx-market-dialog-actions{display:flex;flex-wrap:wrap;justify-content:end;gap:9px;margin-top:8px}
.nyx-market-quote{background:#233550;border:1px solid #3b5474;padding:11px;border-radius:8px;line-height:1.7}
.nyx-market-detail-grid{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:8px 10px;align-items:start}
.nyx-market-detail-grid strong{font-size:13px;overflow-wrap:anywhere}
.nyx-market-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;font-size:12px}
.nyx-market-subtitle{margin:4px 0 0;font-size:14px}
@media(max-width:800px){.nyx-market-results.nyx-market-sell-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.nyx-market-results.nyx-market-sell-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nyx-market-table-header,.nyx-market-table-row{padding:8px;gap:6px}.nyx-market-footer{padding:0 6px}
 .nyx-market-modal-panel{max-width:100%}.nyx-market-modal-content{padding:10px}}

.nyx-market-dialog{position:relative}
