:root{color-scheme:dark;--bg:#0e131b;--panel:#151f2e;--line:#2b4055;--text:#ecf4fc;--muted:#a4b6c8;--accent:#7fb5ff}
*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;margin:0}main{max-width:1120px;margin:0 auto;padding:20px 18px 70px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}nav{display:flex;gap:22px;margin-bottom:22px;font-weight:600}header{border-radius:16px;background:linear-gradient(130deg,#132b44,#101722);padding:28px 32px;margin-bottom:22px;border:1px solid #31506c}h1{font-size:clamp(28px,4vw,42px);margin:4px 0 6px}h2{margin:0 0 16px;font-size:21px}.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:11px;color:#a8c7eb;font-weight:700;margin:0}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:23px;margin-bottom:22px}.notice{border-radius:10px;padding:14px 16px;margin:16px 0;background:#263349;border:1px solid #3b5677}.notice.warning{background:#392c1d;border-color:#805c36}.notice.success{background:#1a342e;border-color:#426f5e}.notice.error{background:#4a232a;border-color:#8b3c4a}.notice.muted{background:#1b2534;border-color:#314255}.small{color:var(--muted);font-size:13px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}label{display:block;font-weight:600;margin-bottom:16px}input,textarea,select{display:block;width:100%;background:#0b1421;border:1px solid #40556b;color:#f4f7fc;border-radius:8px;padding:10px 11px;margin-top:5px;font:inherit}input:focus,textarea:focus,select:focus{outline:2px solid #5685be}button,.actionlink{background:#487dc3;color:#fff;border:0;border-radius:8px;padding:10px 14px;font:600 14px system-ui;cursor:pointer;display:inline-block}button.secondary{background:#303f54}.entry{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 0;border-top:1px solid var(--line)}.entry p{margin:5px 0}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions form{margin:0}.pill{font-size:11px;letter-spacing:.03em;border:1px solid #47627e;padding:3px 7px;border-radius:20px;color:#b6d1ec}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}.card{overflow:hidden}.cover{display:block;width:100%;height:195px;object-fit:cover;border-radius:10px;margin-bottom:12px;background:#263649}.card h2{margin:9px 0 4px;color:#f5f7fb}.price{font-size:29px;font-weight:800;line-height:1.15;margin:12px 0}.detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(265px,1fr);gap:20px}.detailpic{max-width:100%;max-height:380px;border-radius:10px;object-fit:contain}table{border-collapse:collapse;width:100%}td,th{border-bottom:1px solid #2a394b;padding:11px 8px;text-align:left}th{color:#b9ccde;font-size:13px}code{overflow-wrap:anywhere} @media(max-width:720px){.detail,.formgrid{grid-template-columns:1fr}.entry{display:block}.actions{margin:14px 0}header{padding:20px}}

/* Auction Studio test management */
.studio-auction{border-top:1px solid var(--line);padding:6px 0 17px}
.studio-auction>.entry{border:0}.studio-auction .actions{justify-content:flex-end}
.studio-bids{background:#101b2b;border:1px solid #2a415c;border-radius:10px;padding:12px 15px;margin:0 0 4px}
.studio-bid-table{font-size:13px;width:100%}.studio-bid-table td,.studio-bid-table th{padding:7px}
.studio-bids details{margin-top:10px}.studio-bids summary{cursor:pointer;color:#a5cbff}
.table-scroll{overflow:auto;max-height:400px}button.danger{background:#753546}button.danger:hover{background:#9d3c53}
@media(max-width:720px){.studio-auction .actions{justify-content:flex-start}.studio-bid-table{font-size:12px}}

/* Live auction status */
.auction-live-status{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:15px 0;scroll-margin-top:20px}
.auction-countdown{font-variant-numeric:tabular-nums;font-weight:750;color:#d5e9ff;font-size:20px;margin:8px 0}
.auction-extended{background:#29446b;color:#e2f0ff;border:1px solid #5576a4;padding:8px 11px;border-radius:8px;font-weight:650;font-size:13px}
.auction-extended[hidden]{display:none}

/* Shared seller-selected storefront palettes for ALL specialist admin/public pages.
   These match the nine available catalog_theme values in seller.php/catalog.php.
   Page-specific styles below consume tokens, not hard-coded TX Blue values. */
:root{
 --bg:#101214;--panel:#181b1f;--line:#30343a;--text:#eee;--muted:#aeb4bc;
 --accent:#9ec6fb;--action:#326cae;--action-text:#fff;--input-bg:#101214;
 --soft-surface:#20252b;--soft-line:#394149;--soft-text:#eee;
 --focus:#80b8ff;--shade:#111417;--button-subtle:#424850;
 --warning-bg:#443623;--warning-line:#8f6d40;--error-bg:#42262b;
 --error-line:#87444c;--success-bg:#173b2a;--success-line:#498063;
}
body.theme-dark{--bg:#101214;--panel:#181b1f;--line:#30343a;--text:#eee;--muted:#aeb4bc;--accent:#9ec6fb;--action:#326cae;--input-bg:#101214;--soft-surface:#20252b;--soft-line:#394149;--shade:#111417;--button-subtle:#424850}
body.theme-txblue{--bg:#0b1728;--panel:#14263e;--line:#355477;--text:#f1f7fe;--muted:#b7cce0;--accent:#8bc5ff;--action:#2979d2;--input-bg:#0b182b;--soft-surface:#1d3451;--soft-line:#426489;--shade:#101f33;--button-subtle:#304969}
body.theme-monochrome{--bg:#101010;--panel:#1a1a1a;--line:#444;--text:#eee;--muted:#b6b6b6;--accent:#d0d0d0;--action:#626262;--input-bg:#111;--soft-surface:#262626;--soft-line:#515151;--shade:#111;--button-subtle:#444}
body.theme-deepred{--bg:#171010;--panel:#24171a;--line:#573036;--text:#f0e5e6;--muted:#c6abb1;--accent:#e6a1a5;--action:#813942;--input-bg:#191113;--soft-surface:#302024;--soft-line:#684049;--shade:#1d1415;--button-subtle:#50343b}
body.theme-retro{--bg:#252219;--panel:#302d26;--line:#60583e;--text:#f4e4b6;--muted:#d1c39e;--accent:#dfbd67;--action:#887131;--input-bg:#221f1a;--soft-surface:#373329;--soft-line:#685d43;--shade:#242017;--button-subtle:#62583e}
body.theme-boutique{--bg:#f4eeec;--panel:#fffaf8;--line:#ddcfcc;--text:#3f3435;--muted:#796c6d;--accent:#a65f73;--action:#a65f73;--input-bg:#fff;--soft-surface:#f7eeeb;--soft-line:#dececc;--shade:#f4eae6;--button-subtle:#8b7579;color-scheme:light}
body.theme-pastel{--bg:#f8f3fb;--panel:#fffafd;--line:#ddd0e6;--text:#433c49;--muted:#7f7187;--accent:#a987bd;--action:#9168a8;--input-bg:#fff;--soft-surface:#f4edf8;--soft-line:#ddcfe6;--shade:#f5ebfa;--button-subtle:#8f759f;color-scheme:light}
body.theme-clean{--bg:#f5f7f9;--panel:#fff;--line:#dce2e7;--text:#20252a;--muted:#697781;--accent:#246ca8;--action:#246ca8;--input-bg:#fff;--soft-surface:#f0f4f7;--soft-line:#d6dee5;--shade:#f2f6f8;--button-subtle:#606e78;color-scheme:light}
body.theme-luxury{--bg:#161411;--panel:#24201a;--line:#5d5039;--text:#f2e8d2;--muted:#c2b497;--accent:#d3b470;--action:#826839;--input-bg:#16130f;--soft-surface:#302a20;--soft-line:#736144;--shade:#1d1913;--button-subtle:#594b35}
body[class*="theme-"]{background:var(--bg);color:var(--text)}
body[class*="theme-"] a{color:var(--accent)}
body[class*="theme-"] .panel,
body[class*="theme-"] .card{background:var(--panel);border-color:var(--line);color:var(--text)}
body[class*="theme-"] header{background:var(--panel);border-color:var(--line);color:var(--text)}
body[class*="theme-"] .eyebrow,body[class*="theme-"] .small,
body[class*="theme-"] th{color:var(--muted)}
body[class*="theme-"] h1,body[class*="theme-"] h2,
body[class*="theme-"] .card h2{color:var(--text)}
body[class*="theme-"] input,body[class*="theme-"] textarea,body[class*="theme-"] select{
 background:var(--input-bg);border:1px solid var(--line);color:var(--text);
}
body[class*="theme-"] input:focus-visible,body[class*="theme-"] textarea:focus-visible,
body[class*="theme-"] select:focus-visible,body[class*="theme-"] button:focus-visible{
 outline:2px solid var(--focus);outline-offset:2px;
}
body[class*="theme-"] button,body[class*="theme-"] .actionlink{
 background:var(--action);color:var(--action-text);border-color:var(--line);
}
body[class*="theme-"] button.secondary{background:var(--button-subtle);color:#fff}
body[class*="theme-"] button.danger{background:#843d49;color:#fff}
body[class*="theme-"] .pill{color:var(--text);border-color:var(--line)}
body[class*="theme-"] .notice{background:var(--soft-surface);border-color:var(--soft-line);color:var(--text)}
body[class*="theme-"] .notice.warning{background:var(--warning-bg);border-color:var(--warning-line);color:#f6e7cc}
body[class*="theme-"] .notice.error{background:var(--error-bg);border-color:var(--error-line);color:#ffe3e7}
body[class*="theme-"] .notice.success{background:var(--success-bg);border-color:var(--success-line);color:#e7fff2}
body[class*="theme-"] .notice.muted{background:var(--soft-surface);border-color:var(--soft-line);color:var(--text)}
body[class*="theme-"] .studio-bids,body[class*="theme-"] .studio-auction .studio-bids{
 background:var(--soft-surface);border:1px solid var(--soft-line);color:var(--text);
}
body[class*="theme-"] .studio-bids summary{color:var(--accent)}
body[class*="theme-"] .studio-bids td,body[class*="theme-"] .studio-bids th{border-color:var(--soft-line)}
body[class*="theme-"] .auction-countdown{color:var(--text)}
body[class*="theme-"] .auction-extended{background:var(--soft-surface);color:var(--text);border-color:var(--accent)}
body[class*="theme-"] .cover{background:var(--shade)}
body[class*="theme-"] td,body[class*="theme-"] th{border-color:var(--line)}
/* On light storefront themes every ordinary foreground must remain dark. */
body:is(.theme-boutique,.theme-pastel,.theme-clean) .notice.warning{background:#fff3df;border-color:#d4ae73;color:#684b20}
body:is(.theme-boutique,.theme-pastel,.theme-clean) .notice.error{background:#ffeff0;border-color:#c9858e;color:#712f3a}
body:is(.theme-boutique,.theme-pastel,.theme-clean) .notice.success{background:#eaf8ee;border-color:#a9cfb1;color:#2a603c}
/* Auction Studio action layout. Keep the selector and its button together. */
.studio-auction .entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,570px);align-items:start;gap:18px}
.studio-auction .entry>div:first-child{min-width:0}
.studio-auction .actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.studio-auction .actions form{display:flex;align-items:center;gap:8px;min-width:0}
.studio-auction .actions .assign-board-form{flex:1 1 280px;min-width:0;display:grid;grid-template-columns:minmax(140px,1fr) auto;align-items:center}
.studio-auction .actions .assign-board-form select{width:100%;min-width:0;margin:0;padding:10px 12px}
.studio-auction .actions .assign-board-form button{white-space:nowrap}
.studio-auction .actions button,.studio-auction .actions .actionlink{white-space:nowrap}
@media(max-width:950px){.studio-auction .entry{grid-template-columns:1fr}.studio-auction .actions{justify-content:flex-start}}
@media(max-width:520px){.studio-auction .actions .assign-board-form{grid-template-columns:1fr;flex-basis:100%}}
/* Reset actions intentionally require deliberate confirmation and are not persistent UI clutter. */
.maintenance-reset{margin:15px 0;padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft-surface)}
.maintenance-reset summary{cursor:pointer;font-weight:700;color:var(--text)}
.maintenance-reset form{max-width:570px}.maintenance-reset input{max-width:100%}
.maintenance-reset .reset-ack{display:flex;align-items:flex-start;gap:9px}
.maintenance-reset .reset-ack input{width:auto;flex:none;margin-top:5px}
/* Limited Stock admin: all formerly blue surfaces follow the chosen seller theme. */
body.limited-admin section{background:var(--panel);border-color:var(--line);color:var(--text)}
body.limited-admin h2,body.limited-admin label{color:var(--text)}
body.limited-admin .unit,body.limited-admin .image-unit,body.limited-admin .image-preview{
 background:var(--soft-surface);border-color:var(--soft-line);color:var(--text);
}
body.limited-admin .image-choice{background:var(--input-bg);border-color:var(--line);color:var(--text)}
body.limited-admin .hint{color:var(--muted)}
body.limited-admin .notice{background:var(--warning-bg);border-color:var(--warning-line);color:#f6e7cc}
body.limited-admin .ok{background:var(--success-bg);border-color:var(--success-line);color:#e7fff2}
body.limited-admin a{color:var(--accent)}
body.limited-admin table th,body.limited-admin table td{border-color:var(--line)}
body.limited-admin input[type=checkbox]{accent-color:var(--action)}
body.limited-admin button{background:var(--action);border-color:var(--line);color:#fff}
body:is(.theme-boutique,.theme-pastel,.theme-clean).limited-admin .notice{background:#fff3df;border-color:#d4ae73;color:#684b20}
body:is(.theme-boutique,.theme-pastel,.theme-clean).limited-admin .ok{background:#eaf8ee;border-color:#a9cfb1;color:#2a603c}

.permission-editor{border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin:15px 0;background:var(--soft-surface)}
.permission-editor legend{font-weight:700;color:var(--text);padding:0 7px}
.permission-editor label{max-width:390px}
.permission-editor select{max-width:390px}

/* Network-default auctions: same neutral charcoal direction as Redelivery.
   Individual storefronts and seller Studio continue using merchant themes. */
body.theme-monochrome header{background:#1a1a1a;border-color:#444;color:#f1f1f1}
body.theme-monochrome .notice{background:#242424;border-color:#505050;color:#e7e7e7}
body.theme-monochrome .eyebrow{color:#d1d1d1}
/* Explicitly override hard-coded dark specialist widgets in the light palettes. */
body:is(.theme-boutique,.theme-pastel,.theme-clean) .studio-bids,
body:is(.theme-boutique,.theme-pastel,.theme-clean) .studio-auction .studio-bids,
body:is(.theme-boutique,.theme-pastel,.theme-clean) .maintenance-reset,
body:is(.theme-boutique,.theme-pastel,.theme-clean) .permission-editor{
 background:var(--soft-surface);border-color:var(--soft-line);color:var(--text)
}
body:is(.theme-boutique,.theme-pastel,.theme-clean) :is(.studio-bids summary,.studio-bids .small,.auction-countdown,.auction-extended,.maintenance-reset summary){color:var(--text)}
body:is(.theme-boutique,.theme-pastel,.theme-clean) .auction-extended{background:var(--soft-surface);border-color:var(--soft-line);color:var(--text)}
body:is(.theme-boutique,.theme-pastel,.theme-clean) .notice.warning{background:#fff3df;color:#684b20}
body:is(.theme-boutique,.theme-pastel,.theme-clean) .notice.error{background:#ffeff0;color:#712f3a}
body:is(.theme-boutique,.theme-pastel,.theme-clean) .notice.success{background:#eaf8ee;color:#2a603c}
