:root{--black:#070707;--panel:#111;--panel2:#191919;--ruby:#a80018;--red:#e00025;--gold:#d7b65a;--white:#fff;--muted:#b9b9b9;--line:#343434;--radius:18px;--shadow:0 20px 60px rgba(0,0,0,.45)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--black);color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}.skip-link,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;padding:10px;background:#fff;color:#000;clip:auto;z-index:999}.topbar{height:76px;position:sticky;top:0;z-index:50;display:grid;grid-template-columns:52px 1fr auto;align-items:center;padding:8px max(14px,env(safe-area-inset-left));background:rgba(7,7,7,.93);backdrop-filter:blur(18px);border-bottom:1px solid rgba(215,182,90,.25)}button,a{font:inherit}.icon-btn,.cart-button,.drawer-close,.cart-head button,.dialog-close{border:0;background:transparent;color:#fff;cursor:pointer}.icon-btn{font-size:24px}.brand{justify-self:center;display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;letter-spacing:.1em}.brand img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:1px solid var(--gold)}.brand span{display:flex;flex-direction:column;line-height:1}.brand strong{font-family:Georgia,serif;font-size:17px}.brand small{font-size:8px;color:var(--gold);margin-top:4px}.cart-button{border:1px solid var(--gold);border-radius:999px;padding:9px 12px}.cart-button span{background:var(--ruby);border-radius:99px;padding:2px 7px;margin-left:4px}.drawer{position:fixed;z-index:80;inset:0 auto 0 0;width:min(86vw,350px);padding:92px 28px 30px;background:#0e0e0e;transform:translateX(-105%);transition:.25s;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}.drawer.open{transform:none}.drawer a{color:#fff;text-decoration:none;padding:17px 0;border-bottom:1px solid var(--line);font-family:Georgia,serif;font-size:22px}.drawer p{margin-top:auto;color:var(--gold)}.drawer-close{position:absolute;right:18px;top:18px;font-size:38px}.scrim{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.72)}.hero{position:relative;overflow:hidden;min-height:520px;padding:72px max(22px,calc((100vw - 1180px)/2));display:flex;align-items:center;background:radial-gradient(circle at 84% 40%,rgba(224,0,37,.28),transparent 34%),linear-gradient(145deg,#090909 20%,#190006 100%);border-bottom:1px solid rgba(215,182,90,.25)}.hero:after{content:"";position:absolute;inset:16px;border:1px solid rgba(215,182,90,.28);pointer-events:none}.hero-copy{position:relative;z-index:2;max-width:750px}.eyebrow{color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.22em}.hero h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(42px,7vw,78px);line-height:.98;margin:18px 0}.hero h1 em{color:var(--red);font-style:normal}.hero p{font-size:clamp(17px,2vw,21px);color:#ddd;max-width:620px;line-height:1.6}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.hero-mark{position:absolute;right:2%;font-family:Georgia,serif;font-size:min(45vw,500px);font-weight:700;color:rgba(255,255,255,.025);line-height:1}.button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 22px;border-radius:999px;border:1px solid var(--gold);font-weight:800;text-decoration:none;cursor:pointer}.primary{background:linear-gradient(135deg,var(--ruby),var(--red));border-color:var(--red);color:#fff;box-shadow:0 10px 30px rgba(224,0,37,.24)}.ghost{background:transparent;color:#fff}.wide{width:100%}.search-section{padding:24px max(18px,calc((100vw - 1180px)/2));background:#0d0d0d;border-bottom:1px solid var(--line)}.search-form{display:flex;max-width:780px;margin:auto}.search-form input{width:100%;background:#181818;border:1px solid var(--line);border-right:0;border-radius:999px 0 0 999px;color:#fff;padding:14px 18px;font-size:16px;outline:none}.search-form input:focus{border-color:var(--gold)}.search-form button{border:0;background:var(--gold);color:#111;font-weight:900;padding:0 20px;border-radius:0 999px 999px 0;cursor:pointer}.content-shell{max-width:1220px;margin:auto;padding:48px 20px 80px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.section-heading h2{font-family:Georgia,serif;font-size:clamp(32px,5vw,48px);margin:5px 0}.text-button{border:0;background:transparent;color:var(--gold);cursor:pointer;text-decoration:underline;text-underline-offset:4px}.status{color:var(--muted);min-height:25px}.chips{display:flex;gap:9px;overflow:auto;padding:10px 0 28px;scrollbar-width:none}.chip{flex:0 0 auto;border:1px solid var(--line);background:#151515;color:#fff;border-radius:99px;padding:10px 15px;cursor:pointer}.chip.active{background:var(--gold);color:#111;border-color:var(--gold)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.product-card{background:var(--panel);border:1px solid #272727;border-radius:var(--radius);overflow:hidden;transition:.2s;position:relative}.product-card:hover{transform:translateY(-3px);border-color:rgba(215,182,90,.6)}.product-card button.card-main{display:block;width:100%;padding:0;background:none;border:0;color:inherit;text-align:left;cursor:pointer}.product-media{aspect-ratio:1;background:#202020;position:relative;overflow:hidden}.product-media img{width:100%;height:100%;object-fit:cover;transition:.3s}.product-card:hover img{transform:scale(1.035)}.badge{position:absolute;left:10px;top:10px;background:rgba(7,7,7,.86);border:1px solid var(--gold);color:var(--gold);padding:5px 8px;border-radius:99px;font-size:11px;font-weight:800}.sold{border-color:#666;color:#ddd}.product-info{padding:15px}.product-info h3{font-family:Georgia,serif;font-size:19px;margin:0 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price{color:var(--gold);font-weight:900}.quick-add{width:calc(100% - 24px);margin:0 12px 12px;border:1px solid var(--ruby);background:#1b080c;color:#fff;border-radius:99px;padding:10px;cursor:pointer}.quick-add:disabled{opacity:.45;cursor:not-allowed}.skeleton{min-height:360px;background:linear-gradient(100deg,#121212 30%,#1c1c1c 50%,#121212 70%);background-size:400% 100%;animation:shimmer 1.4s infinite;border-radius:var(--radius)}@keyframes shimmer{to{background-position:-100% 0}}.load-more{display:flex;margin:30px auto}.cart-panel{position:fixed;z-index:90;inset:0 0 0 auto;width:min(100%,460px);background:#0e0e0e;transform:translateX(105%);transition:.25s;box-shadow:var(--shadow);display:grid;grid-template-rows:auto 1fr auto}.cart-panel.open{transform:none}.cart-head{display:flex;justify-content:space-between;align-items:center;padding:22px;border-bottom:1px solid var(--line)}.cart-head h2{font-family:Georgia,serif;margin:0}.cart-head button{font-size:34px}.cart-items{overflow:auto;padding:12px 20px}.empty-cart{text-align:center;color:var(--muted);padding:60px 10px}.cart-item{display:grid;grid-template-columns:74px 1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.cart-item img{width:74px;height:74px;object-fit:cover;border-radius:10px}.cart-item h3{font-size:15px;margin:0 0 5px}.cart-item p{color:var(--muted);font-size:12px;margin:0}.quantity{display:flex;align-items:center;gap:7px;margin-top:9px}.quantity button{background:#222;color:#fff;border:1px solid #444;border-radius:50%;width:26px;height:26px}.remove{color:#ff8093!important}.cart-footer{padding:20px;border-top:1px solid var(--line);background:#111}.cart-total{display:flex;justify-content:space-between;font-size:18px;margin-bottom:9px}.cart-footer p{color:var(--muted);font-size:12px}.product-dialog{width:min(1040px,94vw);max-height:92vh;padding:0;border:1px solid var(--gold);border-radius:22px;background:#111;color:#fff;box-shadow:var(--shadow)}.product-dialog::backdrop{background:rgba(0,0,0,.82)}.dialog-close{position:sticky;float:right;top:10px;right:12px;z-index:5;font-size:35px;background:rgba(0,0,0,.72);border-radius:50%;width:45px;height:45px}.detail-layout{display:grid;grid-template-columns:1.15fr .85fr}.gallery{padding:20px}.gallery-main{aspect-ratio:1;background:#222;border-radius:16px;overflow:hidden}.gallery-main img{width:100%;height:100%;object-fit:cover}.thumbnails{display:flex;gap:8px;overflow:auto;margin-top:10px}.thumbnails button{width:70px;height:70px;flex:0 0 auto;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:#222}.thumbnails button.active{border-color:var(--gold)}.thumbnails img{width:100%;height:100%;object-fit:cover}.detail-copy{padding:50px 34px 30px}.detail-copy h2{font-family:Georgia,serif;font-size:38px;margin:8px 0}.description{color:#d0d0d0;line-height:1.65;max-height:200px;overflow:auto}.variant-select{width:100%;background:#1a1a1a;color:#fff;border:1px solid #444;border-radius:12px;padding:13px;margin:18px 0}.detail-price{color:var(--gold);font-size:25px;font-weight:900}.setup-card{grid-column:1/-1;border:1px solid var(--gold);border-radius:18px;padding:28px;background:#15120b}.setup-card code{display:block;background:#050505;padding:12px;border-radius:8px;overflow:auto;color:#f8d978}footer{border-top:1px solid rgba(215,182,90,.3);padding:40px 20px;text-align:center;color:var(--muted)}footer img{width:75px;height:75px;border-radius:50%;object-fit:cover;border:1px solid var(--gold)}footer strong{color:#fff}.toast{position:fixed;left:50%;bottom:24px;z-index:120;transform:translate(-50%,130%);background:#fff;color:#111;padding:12px 18px;border-radius:99px;box-shadow:var(--shadow);transition:.25s;font-weight:800}.toast.show{transform:translate(-50%,0)}@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,1fr)}.detail-layout{grid-template-columns:1fr}.detail-copy{padding:10px 24px 30px}}@media(max-width:650px){.brand span{display:none}.topbar{grid-template-columns:52px 1fr auto}.brand{justify-self:start}.hero{min-height:540px;padding-top:60px}.hero h1{font-size:46px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-info{padding:11px}.product-info h3{font-size:16px}.quick-add{font-size:13px}.section-heading{align-items:start}.product-dialog{width:100vw;max-height:100vh;height:100%;border-radius:0;border:0}.gallery{padding:10px}.detail-copy h2{font-size:30px}.content-shell{padding-left:12px;padding-right:12px}}@media(max-width:370px){.product-grid{grid-template-columns:1fr}}


/* v0.1.3 — Full Black Theme + Crowned Pusher P Branding */
html,body{background:#000!important;color:#fff;color-scheme:dark}
body{background:radial-gradient(circle at 50% -20%,rgba(224,0,37,.12),transparent 32%),#000!important}
.app-splash{position:fixed;inset:0;z-index:9999;background:#000;display:grid;place-content:center;text-align:center;transition:opacity .55s ease,visibility .55s ease}
.app-splash img{width:min(92vw,780px);filter:drop-shadow(0 0 35px rgba(224,0,37,.26))}
.app-splash span{margin-top:-8px;color:var(--gold);font-size:11px;font-weight:900;letter-spacing:.42em}
.app-splash.hide{opacity:0;visibility:hidden;pointer-events:none}
.topbar{height:84px;background:rgba(0,0,0,.96);border-bottom:1px solid rgba(215,182,90,.45)}
.brand{width:min(360px,58vw);height:72px;overflow:hidden;justify-content:center}
.brand img{width:100%;height:100%;border:0;border-radius:0;object-fit:contain;filter:drop-shadow(0 0 12px rgba(224,0,37,.24))}
.drawer,.cart-panel,.cart-footer,.product-dialog,.product-card,.setup-card{background:#050505!important}
.drawer{border-right:1px solid rgba(215,182,90,.35)}
.hero{min-height:650px;background:radial-gradient(circle at 50% 24%,rgba(224,0,37,.22),transparent 35%),linear-gradient(180deg,#030303,#000)!important}
.hero-copy{max-width:820px}
.hero-logo{display:block;width:min(760px,92vw);max-height:360px;object-fit:contain;margin:-45px 0 -22px -24px;filter:drop-shadow(0 0 28px rgba(224,0,37,.25))}
.hero h1{font-size:clamp(38px,5.5vw,68px)}
.hero-mark{display:none}
.search-section,.content-shell,footer{background:#000!important}
.search-form input,.variant-select{background:#080808!important;color:#fff!important;border-color:#3a3a3a}
.product-media,.gallery-main,.thumbnails button{background:#0a0a0a!important}
.product-card{border-color:#252525}
.product-info h3,.detail-copy h2,.cart-item h3{color:#fff}
.description,.status,.cart-footer p,.empty-cart,.cart-item p{color:#c8c8c8}
.quick-add{background:linear-gradient(135deg,#52000c,#a80018);border-color:#e00025;font-weight:800}
.quantity button{background:#050505;border-color:#d7b65a;color:#fff}
.product-dialog{border-color:rgba(215,182,90,.8)}
.toast{background:#111;color:#fff;border:1px solid var(--gold)}
footer img{width:min(500px,92vw);height:180px;object-fit:contain;border:0;border-radius:0}
footer p{margin-top:-25px}
@media(max-width:650px){
  .topbar{height:76px;grid-template-columns:46px 1fr auto}
  .brand{width:min(250px,58vw);height:62px;justify-self:center}
  .hero{min-height:600px;padding-top:34px}
  .hero-logo{width:112%;margin:-15px 0 -8px -6%}
  .hero h1{font-size:40px}
  .hero p{font-size:16px}
  .product-card{border-radius:14px}
  .product-info h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  footer img{height:135px}
}


/* v0.2.0 — Live Featured Product Foundation */
.live-feature{max-width:1180px;margin:28px auto 0;padding:0 20px}.live-badge{display:inline-flex;align-items:center;gap:8px;color:#fff;font-weight:900;font-size:12px;letter-spacing:.14em;margin-bottom:10px}.live-badge span{width:10px;height:10px;border-radius:50%;background:var(--red);box-shadow:0 0 16px var(--red);animation:livepulse 1.2s infinite}@keyframes livepulse{50%{opacity:.35}}.live-feature-card{display:grid;grid-template-columns:minmax(180px,340px) 1fr;gap:28px;align-items:center;border:1px solid rgba(215,182,90,.65);border-radius:22px;padding:18px;background:linear-gradient(135deg,#080808,#170006);box-shadow:0 20px 55px rgba(0,0,0,.45)}.live-feature-card>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px;background:#111}.live-feature-copy h2{font-family:Georgia,serif;font-size:clamp(30px,5vw,50px);margin:8px 0}.live-feature-copy strong{display:block;color:var(--gold);font-size:26px}.live-feature-copy p{color:#ccc}.live-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.seller-body{background:#000}.seller-shell{max-width:1100px;margin:auto;padding:30px 18px 80px}.seller-header{display:grid;grid-template-columns:280px 1fr;gap:30px;align-items:center;margin-bottom:24px}.seller-header img{width:100%;height:180px;object-fit:contain}.seller-header h1{font-family:Georgia,serif;font-size:48px;margin:5px 0}.seller-header p{color:#bbb}.seller-panel{border:1px solid #333;background:#070707;border-radius:20px;padding:22px;margin:18px 0}.seller-panel label{display:block;margin:10px 0 7px;color:var(--gold);font-weight:800}.seller-panel input{width:100%;background:#111;color:#fff;border:1px solid #444;border-radius:12px;padding:14px}.seller-search-row{display:grid;grid-template-columns:1fr auto;gap:10px}.seller-results{display:grid;gap:10px;margin-top:18px}.seller-product{display:grid;grid-template-columns:80px 1fr auto;gap:14px;align-items:center;border:1px solid #282828;border-radius:14px;padding:10px;background:#050505}.seller-product img{width:80px;height:80px;object-fit:cover;border-radius:10px}.seller-product h3{margin:0 0 5px;font-family:Georgia,serif}.seller-product p{margin:0;color:#bbb}.seller-current-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.seller-current-head h2{font-family:Georgia,serif;margin:5px 0}@media(max-width:700px){.live-feature-card{grid-template-columns:1fr}.seller-header{grid-template-columns:1fr;text-align:center}.seller-header img{height:130px}.seller-header h1{font-size:36px}.seller-search-row{grid-template-columns:1fr}.seller-product{grid-template-columns:64px 1fr}.seller-product img{width:64px;height:64px}.seller-product .button{grid-column:1/-1}.seller-current-head{align-items:flex-start;flex-direction:column}}


/* v0.2.1 — Live feature reliability, centered seller control, multi-image galleries */
.seller-body{min-height:100vh;background:radial-gradient(circle at 50% 0,rgba(224,0,37,.12),transparent 28%),#000}
.seller-shell{width:min(1120px,calc(100% - 32px));max-width:1120px;margin:0 auto;padding:34px 0 90px}
.seller-header{grid-template-columns:minmax(260px,420px) minmax(0,1fr);justify-content:center}
.seller-header img{height:230px}
.seller-panel{width:100%;margin:20px auto;padding:28px}
.seller-results{grid-template-columns:repeat(2,minmax(0,1fr))}
.seller-current-product{display:grid;grid-template-columns:minmax(280px,520px) 1fr;gap:28px;align-items:center}
.seller-current-product h3{font-family:Georgia,serif;font-size:clamp(28px,4vw,44px);margin:0 0 12px}
.seller-current-product p{font-size:18px;color:#ccc}
.seller-current-gallery>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px;background:#111}
.seller-current-thumbs,.live-feature-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:10px 2px 2px}
.seller-current-thumbs button,.live-feature-thumbnails button{width:68px;height:68px;flex:0 0 auto;padding:0;border:2px solid #333;border-radius:10px;overflow:hidden;background:#111;cursor:pointer}
.seller-current-thumbs button.active,.live-feature-thumbnails button.active{border-color:var(--gold)}
.seller-current-thumbs img,.live-feature-thumbnails img{width:100%;height:100%;object-fit:cover}
.featured-confirmation{display:inline-block;margin-top:14px;padding:8px 12px;border:1px solid var(--red);border-radius:999px;color:#fff;background:rgba(224,0,37,.18);font-size:12px;font-weight:900;letter-spacing:.12em}
.live-feature-gallery>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px;background:#111}
.live-feature-card>.live-feature-gallery{min-width:0}
@media(max-width:800px){.seller-header,.seller-current-product{grid-template-columns:1fr}.seller-results{grid-template-columns:1fr}.seller-header{text-align:center}.seller-header img{height:160px}.seller-panel{padding:18px}.seller-shell{width:min(100% - 20px,1120px)}}


/* v0.2.2 — Live Control improvements + Palace Vault foundation */
.vault-card{border-color:rgba(215,182,90,.55);background:linear-gradient(180deg,#080808,#140e00)!important}.vault-card .product-media{filter:saturate(.8)}.product-info small{display:block;color:#c7b777;margin-top:6px}.vault-notify{background:linear-gradient(135deg,#4a3700,#8b6a0a);border-color:var(--gold)}
.vault-policy{margin:18px 0;padding:16px;border:1px solid rgba(215,182,90,.55);border-radius:14px;background:#0b0903}.vault-policy strong{color:var(--gold);font-size:18px}.vault-policy p{color:#ddd;margin-bottom:0}.availability-form{margin-top:16px;display:grid;gap:12px}.availability-form[hidden]{display:none}.availability-form label{display:grid;gap:6px;color:var(--gold);font-weight:800}.availability-form input{width:100%;padding:13px;border:1px solid #444;border-radius:10px;background:#080808;color:#fff}.availability-form .consent{grid-template-columns:auto 1fr;align-items:start;color:#ddd;font-weight:500}.availability-form .consent input{width:auto;margin-top:4px}
.seller-switch-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin:16px 0;text-align:center;color:#ccc}.seller-product.selected{border-color:var(--gold);box-shadow:0 0 0 1px rgba(215,182,90,.35)}.customer-receipt{margin:8px 0 0;color:#aaa}.customer-receipt.confirmed{color:#7ee787}.availability-requests{display:grid;gap:12px;margin-top:16px}.availability-request{display:grid;grid-template-columns:78px 1fr minmax(150px,auto);gap:14px;align-items:center;padding:12px;border:1px solid #2b2b2b;border-radius:14px;background:#050505}.availability-request img{width:78px;height:78px;object-fit:cover;border-radius:10px}.availability-request h3{margin:0 0 5px;font-family:Georgia,serif}.availability-request p{margin:0;color:#bbb}.availability-request label{color:var(--gold);font-weight:800}.availability-request select{display:block;width:100%;margin-top:6px;padding:10px;background:#111;color:#fff;border:1px solid #444;border-radius:9px}
@media(max-width:700px){.seller-switch-row{grid-template-columns:1fr 1fr}.seller-switch-row span{grid-column:1/-1;grid-row:1}.availability-request{grid-template-columns:64px 1fr}.availability-request img{width:64px;height:64px}.availability-request label{grid-column:1/-1}}

.availability-request-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;margin:0}.availability-request-details dl div{min-width:0}.availability-request-details dt{color:var(--gold);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.availability-request-details dd{margin:2px 0 0;color:#ddd;overflow-wrap:anywhere}.availability-request-details a{color:#fff;text-decoration:underline;text-decoration-color:rgba(215,182,90,.7);text-underline-offset:3px}.availability-request-details a:hover{color:var(--gold)}
@media(max-width:700px){.availability-request-details dl{grid-template-columns:1fr}}


/* v0.2.7 — Palace Find List */
.vault-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.vault-choice-grid .vault-policy{margin:0;display:flex;flex-direction:column}.vault-choice-grid .vault-policy .button{margin-top:auto}.find-policy{border-color:rgba(180,35,35,.72);background:linear-gradient(180deg,#0d0505,#170707)}.find-policy strong{color:#ff8b8b}.availability-form h3{margin:0;color:var(--gold);font-family:Georgia,serif}.availability-form textarea,.find-controls textarea,.find-controls input{width:100%;padding:12px;border:1px solid #444;border-radius:10px;background:#080808;color:#fff;resize:vertical}.find-pricing{padding:12px;border:1px solid rgba(215,182,90,.38);border-radius:12px;background:#090909}.find-pricing p{margin:4px 0;color:#ddd}.find-request{grid-template-columns:78px 1fr minmax(220px,290px);align-items:start}.find-controls{display:grid;gap:10px}.find-controls label{display:grid;gap:6px;color:var(--gold);font-weight:800}.request-notes{margin:12px 0 0;color:#ddd}.request-notes strong{color:var(--gold)}
@media(max-width:780px){.vault-choice-grid{grid-template-columns:1fr}.find-request{grid-template-columns:64px 1fr}.find-controls{grid-column:1/-1}}


/* v0.3.0 New Palace Shopper Check-In */
.shopper-dialog{width:min(92vw,560px);max-height:92vh;overflow:auto;border:1px solid rgba(207,31,42,.7);border-radius:22px;background:#090909;color:#fff;padding:0;box-shadow:0 28px 80px rgba(0,0,0,.75)}
.shopper-dialog::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(5px)}
.shopper-form{display:grid;gap:14px;padding:34px 24px 26px}
.shopper-form h2{margin:0;font-size:clamp(1.6rem,5vw,2.2rem)}
.shopper-form>p{margin:0;color:#c9c9c9;line-height:1.5}
.shopper-form label:not(.policy-check){display:grid;gap:7px;font-weight:800}
.shopper-form label span{font-weight:500;color:#999}
.shopper-form input[type=text],.shopper-form input[type=email],.shopper-form input[type=tel],.shopper-form input:not([type]){width:100%;box-sizing:border-box;border:1px solid #3b3b3b;border-radius:12px;background:#121212;color:#fff;padding:13px 14px;font:inherit}
.policy-check{display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:start;padding:15px;border:1px solid #5a2025;border-radius:14px;background:rgba(149,13,24,.12);line-height:1.45;cursor:pointer}
.policy-check input{width:21px;height:21px;margin:2px 0 0;accent-color:#c51f2b}
.policy-check span{color:#eee!important;font-weight:500!important}
.policy-check strong{color:#fff}
.form-note{font-size:.86rem!important;color:#aaa!important}
.form-status{min-height:22px;color:#f0c36a!important;font-weight:700}
@media (max-width:520px){.shopper-form{padding:30px 18px 22px}.shopper-dialog{border-radius:18px}}

.vault-entry{max-width:1100px;margin:0 auto 1rem;padding:1rem;border:1px solid rgba(196,30,58,.55);border-radius:18px;background:linear-gradient(135deg,rgba(196,30,58,.16),rgba(212,175,55,.08));display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.vault-entry p{margin:0;color:#ccc;flex:1;min-width:220px}.vault-button{background:linear-gradient(135deg,#9f102b,#d4af37);color:#fff;border:0}.cart-deadline-card{margin:0 0 1rem;padding:.9rem 1rem;border:1px solid rgba(212,175,55,.38);border-radius:14px;background:#101010;display:grid;gap:.25rem}.cart-deadline-card span{font-weight:700;color:#fff}.cart-deadline-card small{color:#d4af37}.seller-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.seller-hub-card{display:block;padding:1.15rem;border:1px solid rgba(212,175,55,.35);border-radius:16px;background:#111;color:#fff;text-decoration:none}.seller-hub-card:hover{border-color:#c41e3a;transform:translateY(-1px)}.seller-hub-card strong{display:block;font-size:1.08rem;margin-bottom:.35rem}.seller-hub-card span{color:#bbb;font-size:.92rem}.seller-settings-row{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:end}@media(max-width:600px){.seller-settings-row{grid-template-columns:1fr}.vault-entry{align-items:stretch}.vault-entry .button{text-align:center;width:100%}}

/* v0.3.2B — immediate checkout vs weekly Palace Cart */
.purchase-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 8px 10px}.purchase-choice-row .quick-add,.purchase-choice-row .quick-buy{min-height:42px;border-radius:999px;font-weight:800;cursor:pointer}.purchase-choice-row .quick-buy{border:1px solid #c79a35;background:#0c0c0c;color:#f5d57a}.detail-purchase-choices{display:grid;gap:10px}.purchase-choice-note{font-size:.88rem;line-height:1.45;color:#bbb;margin:2px 0 0}.live-actions{flex-wrap:wrap}@media(max-width:560px){.purchase-choice-row{grid-template-columns:1fr}.live-actions .button,.live-actions .text-button{width:100%}}

.reward-strip{display:flex;justify-content:center;gap:1rem;align-items:center;padding:.7rem 1rem;border-top:1px solid #8b6a18;border-bottom:1px solid #8b6a18;background:linear-gradient(90deg,#080808,#181000,#080808);color:#f7e6ae}.reward-strip strong{color:#d9aa37}.reward-seller-row{display:flex;gap:.6rem;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:.25rem 0}

.invoice-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:1.2rem}.invoice-composer{display:grid;gap:.8rem}.invoice-search-results{display:grid;gap:.4rem;max-height:260px;overflow:auto}.invoice-result{display:flex;justify-content:space-between;gap:1rem;text-align:left;background:#090909;color:#fff;border:1px solid #5f4c18;border-radius:10px;padding:.7rem;cursor:pointer}.invoice-result span{color:#c9c9c9}.invoice-items{display:grid;gap:.45rem}.invoice-line{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.7rem;padding:.65rem;border:1px solid #332b17;border-radius:10px;background:#070707}.invoice-line small{display:block;color:#aaa}@media(max-width:800px){.invoice-grid{grid-template-columns:1fr}.invoice-line{grid-template-columns:1fr auto}.invoice-line>.text-button{grid-column:1/-1;justify-self:start}}

.invoice-result{align-items:center}.invoice-result-main{display:flex;align-items:center;gap:.7rem;min-width:0}.invoice-thumb{width:58px;height:58px;border-radius:9px;object-fit:cover;background:#171717;border:1px solid #4b3d18;flex:0 0 auto}.invoice-line-main{display:flex;align-items:center;gap:.75rem;min-width:0}.invoice-line-main>div{min-width:0}.invoice-line-main strong,.invoice-line-main small{overflow-wrap:anywhere}.customer-result{display:grid;grid-template-columns:1fr auto;align-items:center}.customer-result small{display:block;color:#aaa}.invoice-added-flash{color:#f2c84b;font-weight:700}


/* v0.3.4c invoice totals */
.invoice-summary{display:grid;gap:.5rem;margin:.25rem 0 .45rem;padding:.85rem 1rem;border:1px solid #6b5517;border-radius:12px;background:linear-gradient(145deg,#090909,#11100c);box-shadow:inset 0 0 0 1px rgba(242,200,75,.06)}
.invoice-summary>div{display:flex;justify-content:space-between;align-items:center;gap:1rem;color:#d8d8d8}
.invoice-summary strong{color:#fff;font-variant-numeric:tabular-nums}
.invoice-summary .invoice-total-row{margin-top:.2rem;padding-top:.65rem;border-top:1px solid #4d3d15;font-size:1.12rem;color:#f2c84b}
.invoice-summary .invoice-total-row strong{color:#f2c84b;font-size:1.22rem}
.invoice-line b{color:#f2c84b;font-weight:700}

.invoice-controls-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.invoice-custom-panel{border:1px solid rgba(214,170,42,.45);border-radius:18px;padding:16px;margin:16px 0;background:rgba(12,12,12,.72)}.invoice-custom-presets{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 14px}.invoice-custom-presets button{border:1px solid #b28b22;background:#090909;color:#fff;border-radius:999px;padding:10px 13px;font-weight:800}.invoice-custom-fields{display:grid;grid-template-columns:2fr 1fr auto auto;gap:10px;align-items:end}.invoice-free-badge{color:#9fe7ad;font-weight:800}.invoice-due-note{font-size:.9rem;opacity:.8}.invoice-line.custom-line{border-color:rgba(214,170,42,.6)}@media(max-width:720px){.invoice-controls-grid,.invoice-custom-fields{grid-template-columns:1fr}}

/* v0.3.4k — Palace Brick Brand Sync */
html{background:#050505}
body{
  background:
    linear-gradient(rgba(3,3,4,.82),rgba(3,3,4,.9)),
    url('/assets/pusher-p-palace-brick-v025.jpg') center top / 760px auto fixed;
}
.topbar,.drawer,.cart-panel,.cart-footer,.search-section,.product-dialog,.shopper-dialog{
  background-color:rgba(7,7,8,.94);
  background-image:linear-gradient(rgba(7,7,8,.88),rgba(7,7,8,.94)),url('/assets/pusher-p-palace-brick-v025.jpg');
  background-size:auto,760px auto;
}
.hero{
  background:
    radial-gradient(circle at 84% 40%,rgba(224,0,37,.24),transparent 34%),
    linear-gradient(145deg,rgba(5,5,6,.78) 20%,rgba(24,0,6,.88) 100%),
    url('/assets/pusher-p-palace-brick-v025.jpg') center / cover;
}
.content-shell{background:linear-gradient(rgba(5,5,6,.2),rgba(5,5,6,.42));border-radius:22px}
.product-card,.seller-hub-card,.vault-entry,.cart-deadline-card,.invoice-custom-panel,.invoice-summary,.setup-card{
  background:linear-gradient(rgba(13,13,14,.9),rgba(8,8,9,.94)),url('/assets/pusher-p-palace-brick-v025.jpg') center / 680px auto;
}
footer{
  background:linear-gradient(rgba(2,2,3,.9),rgba(2,2,3,.96)),url('/assets/pusher-p-palace-brick-v025.jpg') center / 720px auto;
}
@media(max-width:700px){
  body{background-size:auto,620px auto;background-attachment:scroll}
  .topbar,.drawer,.cart-panel,.cart-footer,.search-section,.product-dialog,.shopper-dialog{background-size:auto,620px auto}
}

/* v0.3.4l — Full-page Palace Brick visibility correction */
html{
  min-height:100%;
  background:#050505 url('/assets/pusher-p-palace-brick-v025.jpg') center top / 900px auto fixed !important;
}
body,
body.seller-body{
  position:relative;
  min-height:100vh;
  background-color:#050505 !important;
  background-image:
    linear-gradient(rgba(2,2,3,.52),rgba(2,2,3,.68)),
    url('/assets/pusher-p-palace-brick-v025.jpg') !important;
  background-position:center top,center top !important;
  background-size:auto,900px auto !important;
  background-repeat:repeat,repeat !important;
  background-attachment:fixed,fixed !important;
}
/* Keep the page surface transparent enough for the brick wall to remain visible. */
.content-shell,
.seller-shell{
  background:transparent !important;
}
.search-section,
.reward-strip,
.topbar{
  background-color:rgba(5,5,6,.78) !important;
  background-image:
    linear-gradient(rgba(5,5,6,.62),rgba(5,5,6,.76)),
    url('/assets/pusher-p-palace-brick-v025.jpg') !important;
  background-position:center !important;
  background-size:auto,760px auto !important;
}
.seller-header,
.seller-panel,
.seller-hub-card,
.cart-deadline-card,
.vault-entry,
.invoice-custom-panel,
.invoice-summary,
.setup-card,
.product-card{
  background-color:rgba(7,7,8,.84) !important;
  background-image:
    linear-gradient(rgba(7,7,8,.72),rgba(7,7,8,.86)),
    url('/assets/pusher-p-palace-brick-v025.jpg') !important;
  background-position:center !important;
  background-size:auto,720px auto !important;
}
/* The Seller Hub previously overrode the global body background. */
body.seller-body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(rgba(0,0,0,.42),rgba(12,0,3,.58)),
    url('/assets/pusher-p-palace-brick-v025.jpg') center top / 900px auto repeat;
}
@media(max-width:700px){
  html{background-size:680px auto !important;background-attachment:scroll !important}
  body,body.seller-body{
    background-size:auto,680px auto !important;
    background-attachment:scroll,scroll !important;
  }
  body.seller-body::before{background-size:680px auto}
}

/* v0.3.5 — Complete Palace Brand Sync */
:root{
  --palace-glass:rgba(7,7,9,.82);
  --palace-glass-strong:rgba(5,5,7,.94);
  --palace-gold-soft:#efd98c;
  --palace-ruby:#b40b22;
  --palace-line:rgba(215,182,90,.38);
  --palace-glow:0 18px 55px rgba(0,0,0,.56),0 0 0 1px rgba(215,182,90,.08);
}
body{letter-spacing:.005em}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 15% 8%,rgba(224,0,37,.11),transparent 26%),radial-gradient(circle at 84% 72%,rgba(215,182,90,.07),transparent 30%)}
.topbar{height:88px;padding-inline:max(18px,env(safe-area-inset-left));grid-template-columns:52px minmax(160px,1fr) auto;border-bottom:1px solid var(--palace-line);box-shadow:0 10px 30px rgba(0,0,0,.32)}
.brand{justify-self:center;min-width:0}
.brand img{width:min(360px,42vw);height:68px;object-fit:contain;border:0;border-radius:0;filter:drop-shadow(0 0 16px rgba(224,0,37,.22))}
.icon-btn{width:44px;height:44px;border:1px solid rgba(215,182,90,.32);border-radius:50%;background:rgba(0,0,0,.38);transition:.2s ease}
.icon-btn:hover,.icon-btn:focus-visible{border-color:var(--gold);box-shadow:0 0 18px rgba(215,182,90,.2)}
.cart-button{min-height:44px;background:linear-gradient(145deg,rgba(12,12,14,.86),rgba(36,2,8,.86));box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 8px 24px rgba(0,0,0,.3);font-weight:850}
.drawer{border-right:1px solid var(--palace-line);background-position:center top!important}
.drawer a{position:relative;padding-left:2px;transition:.2s ease}
.drawer a::after{content:"";position:absolute;left:0;bottom:8px;width:0;height:1px;background:linear-gradient(90deg,var(--gold),transparent);transition:.2s ease}
.drawer a:hover::after,.drawer a:focus-visible::after{width:72%}
.hero{min-height:610px;isolation:isolate;background-position:center!important;background-size:cover!important}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,2,3,.9) 0%,rgba(3,3,4,.68) 54%,rgba(74,0,13,.22) 100%);z-index:0}
.hero:after{inset:22px;border-radius:18px;border-color:rgba(215,182,90,.42);box-shadow:inset 0 0 40px rgba(215,182,90,.035)}
.hero-copy{max-width:820px}
.hero-logo{width:min(700px,82vw);max-height:290px;margin:-26px 0 -28px -12px;filter:drop-shadow(0 10px 25px rgba(0,0,0,.45)) drop-shadow(0 0 24px rgba(224,0,37,.18))}
.hero h1{max-width:840px;text-wrap:balance;text-shadow:0 6px 24px rgba(0,0,0,.6)}
.hero p{color:#eee;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.hero-actions .button{min-width:175px}
.button{position:relative;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;background-clip:padding-box}
.button:hover,.button:focus-visible{transform:translateY(-2px);box-shadow:0 14px 32px rgba(0,0,0,.38),0 0 20px rgba(215,182,90,.12)}
.primary{background:linear-gradient(135deg,#8c0617 0%,#d80d2c 54%,#9f061c 100%);border-color:#e8bb51}
.ghost{background:linear-gradient(145deg,rgba(0,0,0,.42),rgba(25,25,28,.55));border-color:rgba(215,182,90,.65)}
.search-section{border-top:1px solid rgba(215,182,90,.12);border-bottom:1px solid var(--palace-line);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.vault-entry{box-shadow:var(--palace-glow);backdrop-filter:blur(7px)}
.search-form{filter:drop-shadow(0 10px 24px rgba(0,0,0,.35))}
.search-form input{background:rgba(9,9,11,.88);border-color:rgba(215,182,90,.32)}
.search-form button{background:linear-gradient(135deg,#e3c66d,#b88a21)}
.content-shell{padding-top:56px}
.section-heading{padding:0 4px 12px;border-bottom:1px solid rgba(215,182,90,.14)}
.section-heading h2{letter-spacing:-.025em;text-shadow:0 4px 20px rgba(0,0,0,.45)}
.chips{padding-top:18px}
.chip{background:rgba(9,9,11,.78);border-color:rgba(215,182,90,.28);box-shadow:0 8px 18px rgba(0,0,0,.2);transition:.18s ease}
.chip:hover,.chip:focus-visible{border-color:var(--gold);transform:translateY(-1px)}
.chip.active{background:linear-gradient(135deg,#e8d084,#b98b27);box-shadow:0 0 18px rgba(215,182,90,.18)}
.product-grid{gap:22px}
.product-card{border-color:rgba(215,182,90,.27)!important;border-radius:22px;box-shadow:var(--palace-glow);backdrop-filter:blur(6px);transform:translateZ(0)}
.product-card:hover{transform:translateY(-6px);border-color:rgba(239,217,140,.8)!important;box-shadow:0 24px 58px rgba(0,0,0,.6),0 0 24px rgba(215,182,90,.11)}
.product-media{background:linear-gradient(145deg,#151515,#080808)}
.product-media::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),inset 0 -34px 45px rgba(0,0,0,.09)}
.product-info{padding:17px 16px 14px}
.product-info h3{font-size:18px;letter-spacing:.005em}
.price{color:var(--palace-gold-soft);font-size:1.04rem}
.quick-add{min-height:43px;border-color:rgba(224,0,37,.72);background:linear-gradient(135deg,rgba(88,0,14,.92),rgba(30,3,8,.94));font-weight:800;transition:.18s ease}
.quick-add:hover:not(:disabled){border-color:#efc65c;box-shadow:0 0 18px rgba(224,0,37,.2)}
.badge{backdrop-filter:blur(8px);box-shadow:0 8px 18px rgba(0,0,0,.28)}
.skeleton{border:1px solid rgba(215,182,90,.12);background:linear-gradient(100deg,rgba(10,10,11,.9) 25%,rgba(42,24,28,.8) 50%,rgba(10,10,11,.9) 75%);background-size:300% 100%}
.cart-panel,.product-dialog,.shopper-dialog{border-left:1px solid var(--palace-line);box-shadow:-25px 0 70px rgba(0,0,0,.65)}
.cart-head,.cart-footer{border-color:rgba(215,182,90,.25)}
.cart-item{border-color:rgba(215,182,90,.17)}
.cart-item img{border:1px solid rgba(215,182,90,.35);box-shadow:0 8px 20px rgba(0,0,0,.35)}
.product-dialog{border:1px solid rgba(215,182,90,.68);box-shadow:0 30px 90px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.03)}
.gallery-main{border:1px solid rgba(215,182,90,.22);box-shadow:0 15px 38px rgba(0,0,0,.4)}
.detail-copy h2{letter-spacing:-.02em;text-wrap:balance}
footer{padding:58px 20px 48px;border-top-color:var(--palace-line)!important;box-shadow:0 -15px 42px rgba(0,0,0,.28)}
footer img{width:min(520px,90vw)!important;height:170px!important;filter:drop-shadow(0 0 22px rgba(224,0,37,.14))}
.app-splash{background:linear-gradient(rgba(2,2,3,.7),rgba(2,2,3,.88)),url('/assets/pusher-p-palace-brick-v025.jpg') center/cover}
.app-splash::after{content:"";width:42px;height:42px;border:2px solid rgba(215,182,90,.25);border-top-color:var(--gold);border-radius:50%;margin:18px auto 0;animation:palaceSpin .8s linear infinite}
.app-splash img{animation:palaceLogoIn .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes palaceSpin{to{transform:rotate(360deg)}}
@keyframes palaceLogoIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.toast{background:linear-gradient(135deg,#f8e9b4,#d8b34c);box-shadow:0 16px 48px rgba(0,0,0,.48)}
/* Seller Hub premium synchronization */
.seller-shell{max-width:1180px;padding-top:38px}
.seller-header{padding:26px;border:1px solid var(--palace-line);border-radius:28px;background:linear-gradient(rgba(7,7,8,.68),rgba(7,7,8,.84)),url('/assets/pusher-p-palace-brick-v025.jpg') center/720px auto;box-shadow:var(--palace-glow)}
.seller-header img{filter:drop-shadow(0 0 22px rgba(224,0,37,.16))}
.seller-header h1{letter-spacing:-.025em;text-wrap:balance}
.seller-panel{border-color:rgba(215,182,90,.3)!important;border-radius:24px;box-shadow:var(--palace-glow);backdrop-filter:blur(7px)}
.seller-hub-card{min-height:150px;padding:1.25rem;border-color:rgba(215,182,90,.35)!important;box-shadow:0 12px 28px rgba(0,0,0,.32);transition:.18s ease}
.seller-hub-card:hover{transform:translateY(-4px);border-color:rgba(239,217,140,.78)!important;box-shadow:0 20px 42px rgba(0,0,0,.46)}
.seller-panel input,.seller-panel textarea,.seller-panel select{background:rgba(8,8,10,.86)!important;border-color:rgba(215,182,90,.28)!important}
.seller-panel input:focus,.seller-panel textarea:focus,.seller-panel select:focus{outline:2px solid rgba(215,182,90,.24);border-color:var(--gold)!important}
.invoice-result,.invoice-line{border-color:rgba(215,182,90,.28);background:rgba(5,5,7,.84)}
.invoice-summary{border-color:rgba(215,182,90,.56);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 12px 28px rgba(0,0,0,.28)}
@media(max-width:700px){
  .topbar{height:76px;grid-template-columns:46px minmax(120px,1fr) auto;padding-inline:10px}
  .brand img{width:min(235px,48vw);height:55px}
  .cart-button{padding:8px 10px;font-size:12px}
  .hero{min-height:560px;padding-top:46px}
  .hero-logo{width:106%;margin:-8px 0 -10px -4%}
  .hero h1{font-size:clamp(40px,12vw,52px)}
  .hero:after{inset:10px}
  .product-grid{gap:12px}
  .product-card{border-radius:16px}
  .product-info{padding:12px}
  footer img{height:125px!important}
  .seller-header{padding:18px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* v0.3.6 — Live Selling Mode */
.live-selling-shell{max-width:1320px}
.live-selling-header{grid-template-columns:minmax(240px,360px) minmax(0,1fr)}
.live-access-panel{position:relative;z-index:4}
.live-pin-row{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:12px;align-items:end}
.live-pin-row label{margin:0}
.live-sticky-actions{position:sticky;top:10px;z-index:45;display:flex;gap:8px;overflow-x:auto;padding:10px;border:1px solid rgba(215,182,90,.38);border-radius:999px;background:rgba(7,7,8,.94);backdrop-filter:blur(14px);box-shadow:0 14px 34px rgba(0,0,0,.45);scrollbar-width:none}
.live-sticky-actions::-webkit-scrollbar{display:none}.live-sticky-actions a{flex:0 0 auto;color:#f5e7b2;text-decoration:none;border:1px solid rgba(215,182,90,.3);border-radius:999px;padding:10px 14px;font-size:.86rem;font-weight:800}.live-sticky-actions a:hover{background:rgba(215,182,90,.12);border-color:var(--gold)}
.live-dashboard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}
.live-stat{min-height:138px;padding:18px;border:1px solid rgba(215,182,90,.35);border-radius:20px;background:linear-gradient(150deg,rgba(20,20,22,.9),rgba(6,6,7,.94));box-shadow:0 14px 34px rgba(0,0,0,.38);display:flex;flex-direction:column;justify-content:space-between}.live-stat span{color:#e5cb77;font-weight:800;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}.live-stat strong{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.5rem);line-height:1;color:#fff}.live-stat small{color:#aaa;line-height:1.35}.live-stat-status strong{color:#999}.live-stat-status strong.is-live{color:#ff2647;text-shadow:0 0 18px rgba(224,0,37,.5)}
.live-cart-queue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.live-cart-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px;border:1px solid rgba(215,182,90,.27);border-radius:15px;background:rgba(5,5,6,.82)}.live-cart-card div{display:grid;gap:4px}.live-cart-card div:last-child{text-align:right}.live-cart-card span,.live-cart-card small{color:#aaa}
.live-collapsible{padding:0;overflow:hidden}.live-collapsible>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:22px 26px}.live-collapsible>summary::-webkit-details-marker{display:none}.live-collapsible>summary strong{display:block;font-family:Georgia,serif;font-size:1.8rem;margin-top:5px}.live-collapsible[open]>summary{border-bottom:1px solid rgba(215,182,90,.22)}.live-collapsible>.availability-requests,.live-collapsible>.live-section-tools{margin-left:24px;margin-right:24px}.live-collapsible>.availability-requests{margin-bottom:24px}.request-count{display:inline-flex;min-width:40px;height:40px;align-items:center;justify-content:center;border-radius:999px;background:#9f0018;color:#fff;font-weight:900;border:1px solid #e00025}.live-section-tools{padding-top:12px}
.live-bottom-actions{position:sticky;bottom:10px;z-index:44;display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid rgba(215,182,90,.35);border-radius:22px;background:rgba(7,7,8,.94);backdrop-filter:blur(14px);box-shadow:0 -12px 34px rgba(0,0,0,.5)}
@media(max-width:1050px){.live-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))}.live-pin-row{grid-template-columns:1fr 1fr}.live-pin-row label{grid-column:1/-1}}
@media(max-width:720px){.live-selling-header{grid-template-columns:1fr}.live-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.live-cart-queue{grid-template-columns:1fr}.live-sticky-actions{top:6px;border-radius:18px}.live-bottom-actions{position:static}.live-bottom-actions .button{width:100%}.live-collapsible>summary{padding:18px}.live-collapsible>summary strong{font-size:1.45rem}.live-collapsible>.availability-requests,.live-collapsible>.live-section-tools{margin-left:14px;margin-right:14px}}
@media(max-width:430px){.live-dashboard{grid-template-columns:1fr}.live-pin-row{grid-template-columns:1fr}.live-stat{min-height:112px}.live-stat strong{font-size:2.5rem}}

/* v0.3.7 Seller invoice management */
.invoice-history-controls{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px;margin:10px 0 14px}.invoice-history-controls input,.invoice-history-controls select{width:100%}.invoice-edit-notice{display:grid;gap:6px;margin:10px 0 14px;padding:12px 14px;border:1px solid #a16a27;border-radius:12px;background:#1b1008;color:#f1d596}.invoice-edit-notice strong{color:#fff}.invoice-edit-notice span{font-size:.9rem;line-height:1.4}.invoice-manager .request-card button.text-button{cursor:pointer}.invoice-manager .request-card>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:5px}@media(max-width:760px){.invoice-history-controls{grid-template-columns:1fr}.invoice-manager .request-card>div:last-child{align-items:flex-start}}

.new-customer-actions{display:flex;justify-content:flex-start;margin-top:-.25rem}.new-customer-panel[hidden]{display:none!important}.new-customer-panel h3{margin:.25rem 0;font-family:Georgia,serif}.new-customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:.6rem 0 1rem}.new-customer-panel>.button{width:max-content;max-width:100%}@media(max-width:720px){.new-customer-grid{grid-template-columns:1fr}.new-customer-panel>.button{width:100%}}

.invoice-cancel-button{color:#ff7f7f!important;border-color:rgba(255,90,90,.5)!important}.invoice-cancel-button:hover{color:#fff!important;background:rgba(160,0,20,.35)!important}

.request-offer-button{margin-top:.75rem}.request-offer-meta{margin:.6rem 0 0;color:#d9c47a;font-size:.9rem}

.custom-shipping-toggle{display:flex!important;align-items:center;gap:9px;min-height:44px;padding:0 12px;border:1px solid rgba(214,170,42,.45);border-radius:12px;background:#090909;color:#fff;font-weight:800;white-space:nowrap}.custom-shipping-toggle input{width:18px;height:18px;accent-color:#c80024}.custom-shipping-help{margin:9px 0 0}.invoice-shipping-badge{color:#d7b64a;font-weight:800}

.invoice-charge-controls{margin:0 0 16px}.invoice-charge-controls .status{margin:8px 0 0}.invoice-shipping-toggle{width:max-content;max-width:100%}


/* v0.5.0 Seller Hub collapsible workspace */
.seller-collapsible{padding:0!important;overflow:hidden;scroll-margin-top:14px}
.seller-collapsible>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 26px;user-select:none}
.seller-collapsible>summary::-webkit-details-marker{display:none}
.seller-collapsible>summary h2{margin:.2rem 0 .1rem}
.seller-collapse-hint{display:block;color:#a9a9a9;font-size:.88rem;line-height:1.35;margin-top:4px}
.seller-collapse-control{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;min-width:88px;justify-content:center;padding:9px 12px;border:1px solid rgba(215,182,90,.48);border-radius:999px;background:rgba(4,4,5,.76);color:#f1d47b;font-weight:800;font-size:.9rem}
.seller-collapse-chevron{font-size:1.3rem;line-height:1;transition:transform .18s ease}
.seller-collapsible[open]>.seller-collapse-summary{border-bottom:1px solid rgba(215,182,90,.2);background:rgba(215,182,90,.025)}
.seller-collapsible[open] .seller-collapse-chevron{transform:rotate(180deg)}
.seller-collapse-body{padding:20px 26px 26px}
.seller-section-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.seller-collapsible:not([open]){background:linear-gradient(145deg,rgba(8,8,9,.82),rgba(11,10,8,.72))!important}
.seller-collapsible:not([open]):hover{border-color:rgba(239,217,140,.6)!important;box-shadow:0 18px 40px rgba(0,0,0,.42),0 0 18px rgba(215,182,90,.07)}
@media(max-width:720px){.seller-collapsible>summary{padding:17px 18px}.seller-collapse-body{padding:16px 18px 20px}.seller-collapse-control{min-width:72px;padding:8px 10px}.seller-collapse-hint{font-size:.8rem}.seller-section-actions .button{width:100%}}


/* v0.5.2 — Seller Hub readability, workspace width, and restored mobile invoice camera scanner */
.seller-body{font-size:17px;line-height:1.55}
.seller-shell{width:min(1440px,calc(100% - 28px));max-width:1440px;padding:28px 0 96px}
.seller-header{grid-template-columns:minmax(300px,430px) minmax(0,1fr);gap:38px}
.seller-header img{height:240px}
.seller-header h1{font-size:clamp(44px,4.5vw,64px);line-height:1.03}
.seller-header p{font-size:1.12rem;line-height:1.55}
.seller-panel{padding:28px 30px;margin:20px auto}
.seller-panel h2{font-size:clamp(28px,2.4vw,36px);line-height:1.15}
.seller-panel h3{font-size:clamp(21px,1.8vw,27px);line-height:1.2}
.seller-panel label,.seller-panel input,.seller-panel select,.seller-panel textarea,.seller-panel .status{font-size:1rem}
.seller-panel input,.seller-panel select,.seller-panel textarea{min-height:50px;padding:13px 15px}
.seller-panel textarea{min-height:96px}
.seller-body .button,.seller-body .text-button{font-size:1rem;min-height:48px;padding:11px 17px}
.seller-hub-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.05rem}
.seller-hub-card{padding:1.25rem}
.seller-hub-card strong{font-size:1.22rem}
.seller-hub-card span{font-size:1rem;line-height:1.5}
.seller-collapse-hint{font-size:1rem;line-height:1.45}
.seller-collapse-label{font-size:.98rem}
.request-card,.availability-request{font-size:1rem}
.request-card strong,.availability-request h3{font-size:1.08rem}
.request-card small,.availability-request small{font-size:.9rem;line-height:1.45}
.invoice-grid{grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:1.5rem}
.invoice-result{padding:.85rem;font-size:1rem}
.invoice-line{padding:.8rem}
.invoice-summary{padding:1rem 1.1rem;font-size:1.02rem}
.invoice-product-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.invoice-product-search-row>label{margin:0}
.invoice-scan-button{white-space:nowrap;min-width:190px}
.invoice-camera-capture{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.invoice-scanner-modal[hidden]{display:none}
.invoice-scanner-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.86);backdrop-filter:blur(5px)}
.invoice-scanner-card{width:min(720px,100%);border:1px solid rgba(215,182,90,.7);border-radius:20px;padding:18px;background:#080808;box-shadow:0 24px 80px rgba(0,0,0,.7)}
.invoice-scanner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.invoice-scanner-head h3{margin:4px 0 0;font-family:Georgia,serif}
.invoice-scanner-view{position:relative;overflow:hidden;border:1px solid #554515;border-radius:16px;background:#000;aspect-ratio:4/3}
.invoice-scanner-view video{display:block;width:100%;height:100%;object-fit:cover}
.invoice-scanner-guide{position:absolute;left:10%;right:10%;top:34%;height:32%;border:3px solid #f2c84b;border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.2),0 0 22px rgba(242,200,75,.25);pointer-events:none}
#invoiceScannerStatus{margin:12px 2px 0}
@media(max-width:1050px){
  .invoice-grid{grid-template-columns:1fr}
  .seller-header{grid-template-columns:minmax(250px,340px) minmax(0,1fr)}
}
@media(max-width:760px){
  .seller-body{font-size:17px}
  .seller-shell{width:calc(100% - 12px);padding:14px 0 72px}
  .seller-header{grid-template-columns:1fr;gap:12px;text-align:center;margin-bottom:14px}
  .seller-header img{height:165px}
  .seller-header h1{font-size:clamp(36px,11vw,48px)}
  .seller-header p{font-size:1.05rem}
  .seller-panel{padding:18px 16px;border-radius:16px;margin:12px 0}
  .seller-hub-grid{grid-template-columns:1fr;gap:.75rem}
  .seller-hub-card{padding:1rem 1.05rem}
  .seller-hub-card strong{font-size:1.17rem}
  .seller-hub-card span{font-size:1rem}
  .seller-collapse-summary{gap:12px}
  .seller-collapse-control{min-width:78px}
  .seller-section-actions{gap:8px}
  .seller-section-actions .button{flex:1 1 150px}
  .invoice-product-search-row{grid-template-columns:1fr}
  .invoice-scan-button{width:100%;min-width:0}
  .invoice-scanner-modal{padding:8px}
  .invoice-scanner-card{padding:12px;border-radius:16px}
  .invoice-scanner-head{align-items:center}
  .invoice-scanner-view{aspect-ratio:3/4;max-height:68vh}
  .invoice-scanner-guide{left:6%;right:6%;top:38%;height:24%}
  .invoice-history-controls{grid-template-columns:1fr}
  .request-card{gap:.8rem}
}
@media(max-width:420px){
  .seller-panel{padding:16px 13px}
  .seller-body .button,.seller-body .text-button{font-size:.98rem}
  .seller-panel input,.seller-panel select,.seller-panel textarea{font-size:16px}
  .invoice-scanner-head{align-items:flex-start}
}

/* v0.5.7 proven html5-qrcode scanner container */
#invoiceScannerReader{width:100%;min-height:100%;background:#000;overflow:hidden}
#invoiceScannerReader video{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
#invoiceScannerReader img{display:none!important}

/* v0.5.9 — per-scanned-item Sellable / Free controls */
.invoice-price-mode{display:flex;gap:.4rem;align-items:center;margin-top:.5rem;flex-wrap:wrap}
.invoice-price-mode button{border:1px solid rgba(211,167,58,.55);background:#090909;color:#f5e7b4;border-radius:999px;padding:.35rem .7rem;font:inherit;font-size:.82rem;cursor:pointer}
.invoice-price-mode button.active{background:linear-gradient(180deg,#d5002a,#9d001f);color:#fff;border-color:#ff6a84;font-weight:800}
.invoice-line-free{box-shadow:inset 0 0 0 1px rgba(255,77,102,.45)}
.invoice-line-free .invoice-free-badge{background:#c70028;color:#fff;border-radius:999px;padding:.12rem .42rem;font-weight:800}

/* v0.6.0 — larger, uncropped customer PWA product-detail images */
.gallery-main{
  aspect-ratio:auto;
  min-height:clamp(520px,68vh,820px);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#050505!important;
}
.gallery-main img{
  width:100%;
  height:100%;
  min-height:clamp(520px,68vh,820px);
  object-fit:contain;
  object-position:center;
}
@media(max-width:900px){
  .gallery-main{min-height:min(72vh,720px)}
  .gallery-main img{min-height:min(72vh,720px)}
}
@media(max-width:650px){
  .gallery{padding:12px 14px 6px}
  .gallery-main{min-height:62vh;max-height:72vh;border-radius:16px}
  .gallery-main img{min-height:62vh;max-height:72vh;object-fit:contain}
  .thumbnails button{width:82px;height:82px}
}


/* v0.6.1 — Larger PWA imagery + tap-to-fullscreen */
.gallery-main{
  min-height:clamp(520px,68vh,820px);
  aspect-ratio:auto!important;
  background:#080808;
  cursor:zoom-in;
}
.gallery-main img{
  width:100%;
  height:100%;
  min-height:inherit;
  object-fit:contain!important;
  object-position:center;
}
.zoomable-product-image{cursor:zoom-in}
.product-image-lightbox[hidden]{display:none!important}
.product-image-lightbox{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.96);
  backdrop-filter:blur(8px);
}
.product-image-lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:96vw;
  max-height:94vh;
  object-fit:contain;
  border-radius:14px;
  box-shadow:0 20px 80px rgba(0,0,0,.8);
}
.product-image-lightbox-close{
  position:fixed;
  top:max(14px,env(safe-area-inset-top));
  right:max(14px,env(safe-area-inset-right));
  z-index:20001;
  width:54px;
  height:54px;
  border-radius:50%;
  border:1px solid rgba(215,182,90,.65);
  background:rgba(0,0,0,.78);
  color:#fff;
  font-size:38px;
  line-height:1;
}
body.product-image-lightbox-open{overflow:hidden}

/* Seller Hub: make scanned/searched product imagery easier to verify */
.invoice-search-results .invoice-result{
  min-height:132px;
  padding:12px 14px;
}
.invoice-result-main{
  display:flex;
  align-items:center;
  gap:14px;
}
.invoice-search-results .invoice-thumb{
  width:112px!important;
  height:112px!important;
  min-width:112px;
  border-radius:14px;
  object-fit:contain!important;
  background:#111;
}
.invoice-line .invoice-thumb{
  width:96px!important;
  height:96px!important;
  min-width:96px;
  object-fit:contain!important;
  background:#111;
  border-radius:12px;
}
.invoice-scanner-card{width:min(980px,96vw)!important}
.invoice-scanner-view{
  min-height:min(68vh,720px);
  aspect-ratio:16/10!important;
}
.invoice-scanner-view video{object-fit:contain!important;background:#000}

@media(max-width:760px){
  .product-dialog{
    width:100vw!important;
    max-width:100vw!important;
    max-height:100dvh!important;
    border-radius:0!important;
  }
  .gallery{padding:12px!important}
  .gallery-main{
    min-height:72dvh!important;
    max-height:78dvh;
  }
  .gallery-main img{
    max-height:78dvh;
  }
  .thumbnails button{
    width:82px!important;
    height:82px!important;
  }
  .invoice-search-results .invoice-result{
    min-height:118px;
  }
  .invoice-search-results .invoice-thumb{
    width:96px!important;
    height:96px!important;
    min-width:96px;
  }
  .invoice-line .invoice-thumb{
    width:84px!important;
    height:84px!important;
    min-width:84px;
  }
  .invoice-scanner-modal{padding:4px!important}
  .invoice-scanner-card{
    width:100vw!important;
    max-width:100vw!important;
    min-height:88dvh;
    border-radius:12px!important;
  }
  .invoice-scanner-view{
    min-height:62dvh!important;
    aspect-ratio:auto!important;
  }
}


/* v0.6.2 — FORCE larger product imagery on PWA + Seller Hub.
   This block is intentionally last and highly specific so older sizing rules cannot win. */

/* CUSTOMER PWA PRODUCT DIALOG */
.product-dialog .gallery{
  padding:14px!important;
}
.product-dialog .gallery-main{
  width:100%!important;
  height:min(78vh,900px)!important;
  min-height:650px!important;
  max-height:900px!important;
  aspect-ratio:auto!important;
  background:#050505!important;
  overflow:hidden!important;
  cursor:zoom-in!important;
}
.product-dialog .gallery-main > img,
.product-dialog #mainProductImage{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  cursor:zoom-in!important;
}
.product-dialog .thumbnails button{
  width:100px!important;
  height:100px!important;
}

/* SELLER HUB INVOICE ITEMS — make images impossible to miss */
.seller-body .invoice-line{
  grid-template-columns:minmax(0,1fr) auto auto!important;
  min-height:210px!important;
  padding:16px!important;
  gap:16px!important;
}
.seller-body .invoice-line-main{
  display:grid!important;
  grid-template-columns:180px minmax(0,1fr)!important;
  align-items:center!important;
  gap:18px!important;
}
.seller-body .invoice-line-main > img.invoice-thumb{
  width:180px!important;
  height:180px!important;
  min-width:180px!important;
  min-height:180px!important;
  max-width:180px!important;
  max-height:180px!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#111!important;
  border:2px solid rgba(215,182,90,.55)!important;
  border-radius:16px!important;
  cursor:zoom-in!important;
}
.seller-body .invoice-line-main strong{
  display:block!important;
  font-size:1.22rem!important;
  line-height:1.25!important;
}
.seller-body .invoice-line-main small{
  font-size:1rem!important;
  line-height:1.45!important;
  margin-top:5px!important;
}

/* SELLER SEARCH / SCAN RESULT before it is added */
.seller-body .invoice-search-results .invoice-result{
  min-height:200px!important;
  padding:14px!important;
}
.seller-body .invoice-search-results .invoice-result-main{
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  gap:16px!important;
  align-items:center!important;
}
.seller-body .invoice-search-results img.invoice-thumb{
  width:170px!important;
  height:170px!important;
  min-width:170px!important;
  max-width:170px!important;
  object-fit:contain!important;
  background:#111!important;
  border:2px solid rgba(215,182,90,.55)!important;
  border-radius:16px!important;
  cursor:zoom-in!important;
}

/* SCANNER CAMERA VIEW */
.seller-body .invoice-scanner-card{
  width:min(1100px,98vw)!important;
}
.seller-body .invoice-scanner-view{
  height:min(74vh,780px)!important;
  min-height:600px!important;
  aspect-ratio:auto!important;
}
.seller-body .invoice-scanner-view video{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}

/* SELLER image full-screen viewer */
.seller-image-lightbox[hidden]{display:none!important}
.seller-image-lightbox{
  position:fixed!important;
  inset:0!important;
  z-index:30000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:16px!important;
  background:rgba(0,0,0,.97)!important;
  backdrop-filter:blur(8px);
}
.seller-image-lightbox img{
  width:auto!important;
  height:auto!important;
  max-width:96vw!important;
  max-height:94vh!important;
  object-fit:contain!important;
}
.seller-image-lightbox-close{
  position:fixed!important;
  top:max(14px,env(safe-area-inset-top))!important;
  right:max(14px,env(safe-area-inset-right))!important;
  width:58px!important;
  height:58px!important;
  border-radius:50%!important;
  border:1px solid var(--gold)!important;
  background:#050505!important;
  color:#fff!important;
  font-size:40px!important;
  z-index:30001!important;
}
body.seller-image-lightbox-open{overflow:hidden!important}

@media(max-width:760px){
  .product-dialog .detail-layout{display:block!important}
  .product-dialog .gallery-main{
    height:76dvh!important;
    min-height:560px!important;
    max-height:76dvh!important;
  }
  .product-dialog .thumbnails button{
    width:94px!important;
    height:94px!important;
  }

  .seller-body .invoice-line{
    grid-template-columns:1fr!important;
    min-height:auto!important;
  }
  .seller-body .invoice-line-main{
    grid-template-columns:150px minmax(0,1fr)!important;
    gap:14px!important;
  }
  .seller-body .invoice-line-main > img.invoice-thumb{
    width:150px!important;
    height:150px!important;
    min-width:150px!important;
    max-width:150px!important;
  }
  .seller-body .invoice-search-results .invoice-result-main{
    grid-template-columns:145px minmax(0,1fr)!important;
  }
  .seller-body .invoice-search-results img.invoice-thumb{
    width:145px!important;
    height:145px!important;
    min-width:145px!important;
    max-width:145px!important;
  }
  .seller-body .invoice-scanner-card{
    width:100vw!important;
    max-width:100vw!important;
    min-height:94dvh!important;
  }
  .seller-body .invoice-scanner-view{
    height:68dvh!important;
    min-height:520px!important;
  }
}

/* v0.6.3 — In-Hand Inventory Override */
.invoice-result-soldout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:16px!important;
  align-items:center!important;
  border-color:rgba(215,75,75,.65)!important;
  background:linear-gradient(145deg,#0b0707,#120909)!important;
}
.in-hand-soldout-label{
  color:#ff7777!important;
  font-weight:900!important;
  letter-spacing:.04em;
}
.in-hand-add-button{
  border-color:#d7b65a!important;
  color:#fff!important;
  white-space:normal!important;
  max-width:210px;
}
@media(max-width:760px){
  .invoice-result-soldout{
    grid-template-columns:1fr!important;
  }
  .in-hand-add-button{
    width:100%!important;
    max-width:none!important;
    min-height:54px!important;
  }
}

/* v0.6.7 — live scan workspace + direct customer checkout sharing */
.invoice-live-workspace{border:1px solid rgba(215,182,90,.58);border-radius:18px;background:rgba(4,4,5,.9);padding:14px;min-width:0}
.invoice-live-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.invoice-live-head h3{margin:3px 0 0}.invoice-item-count{font-family:system-ui,sans-serif;font-size:.78rem;color:#f2c84b;margin-left:6px;white-space:nowrap}
.invoice-share-actions{border:1px solid rgba(215,182,90,.58);border-radius:16px;padding:14px;background:rgba(4,4,5,.9);display:grid;gap:10px}.invoice-share-actions[hidden]{display:none}.invoice-share-buttons{display:flex;flex-wrap:wrap;gap:10px}.mobile-invoice-tray-toggle{display:none}
@media(min-width:1101px){
  .invoice-composer{grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);column-gap:18px;align-items:start}
  .invoice-composer>label,.invoice-composer>.new-customer-actions,.invoice-composer>.new-customer-panel,.invoice-composer>.invoice-product-search-row,.invoice-composer>#invoiceCustomerResults,.invoice-composer>#invoiceSearchResults,.invoice-composer>.invoice-scanner-modal,.invoice-composer>.invoice-custom-panel,.invoice-composer>.invoice-controls-grid,.invoice-composer>.invoice-charge-controls,.invoice-composer>.invoice-summary,.invoice-composer>label:has(#invoiceNote),.invoice-composer>.seller-search-row,.invoice-composer>#invoiceStatus,.invoice-composer>#invoiceShareActions{grid-column:1}
  .invoice-live-workspace{grid-column:2;grid-row:1 / span 14;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
  .invoice-live-workspace .invoice-line{grid-template-columns:1fr;align-items:start}.invoice-live-workspace .invoice-line>.quantity,.invoice-live-workspace .invoice-line>.text-button{justify-self:start}
}
@media(max-width:1100px){.invoice-composer{display:grid;grid-template-columns:1fr}.invoice-live-workspace{grid-column:1}.mobile-invoice-tray-toggle{display:block;position:sticky;top:8px;z-index:30;width:100%;box-shadow:0 8px 28px rgba(0,0,0,.45)}.invoice-live-workspace.mobile-collapsed{display:none}.invoice-share-buttons .button{flex:1 1 220px}}


/* v0.6.8 — corrected invoice workspace layout
   Keep only TWO useful columns: scanning/customer controls + live invoice.
   Invoice history moves below the builder so the screen never becomes three cramped columns. */
@media(min-width:1101px){
  .invoice-grid{
    grid-template-columns:1fr!important;
    gap:1.5rem!important;
  }
  .invoice-composer{
    display:grid!important;
    grid-template-columns:minmax(0,1.42fr) minmax(440px,.92fr)!important;
    column-gap:22px!important;
    row-gap:.8rem!important;
    align-items:start!important;
  }
  /* Scanning/customer controls stay left. */
  .invoice-composer>label:has(#invoiceCustomerSearch),
  .invoice-composer>#invoiceCustomerResults,
  .invoice-composer>.new-customer-actions,
  .invoice-composer>.new-customer-panel,
  .invoice-composer>label:has(#invoiceEmail),
  .invoice-composer>.invoice-product-search-row,
  .invoice-composer>#invoiceSearchResults,
  .invoice-composer>.mobile-invoice-tray-toggle,
  .invoice-composer>.invoice-scanner-modal{
    grid-column:1!important;
  }
  /* Live list sits beside the scanner, with enough width to actually read it. */
  .invoice-live-workspace{
    grid-column:2!important;
    grid-row:1 / span 8!important;
    position:sticky!important;
    top:16px!important;
    max-height:72vh!important;
    overflow:auto!important;
    min-width:0!important;
  }
  /* Everything after the scanning area returns to full width. */
  .invoice-composer>.invoice-custom-panel,
  .invoice-composer>.invoice-controls-grid,
  .invoice-composer>.invoice-charge-controls,
  .invoice-composer>.invoice-summary,
  .invoice-composer>label:has(#invoiceNote),
  .invoice-composer>.seller-search-row,
  .invoice-composer>#invoiceStatus,
  .invoice-composer>#invoiceShareActions{
    grid-column:1 / -1!important;
  }
  .invoice-manager{
    width:100%!important;
    min-width:0!important;
  }
  .invoice-live-workspace .invoice-line{
    grid-template-columns:1fr!important;
    gap:10px!important;
    align-items:start!important;
  }
  .invoice-live-workspace .invoice-line-main{
    grid-template-columns:145px minmax(0,1fr)!important;
    gap:14px!important;
    align-items:center!important;
  }
  .invoice-live-workspace .invoice-line-main>img.invoice-thumb{
    width:145px!important;
    height:145px!important;
    min-width:145px!important;
    max-width:145px!important;
  }
  .invoice-live-workspace .invoice-line-main strong,
  .invoice-live-workspace .invoice-line-main small{
    writing-mode:horizontal-tb!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    white-space:normal!important;
  }
  .invoice-live-workspace .invoice-line>.quantity,
  .invoice-live-workspace .invoice-line>.text-button{
    justify-self:start!important;
  }
}

/* Mobile keeps one column and a quick Current Invoice tray; no squeezed side-by-side layout. */
@media(max-width:1100px){
  .invoice-grid{grid-template-columns:1fr!important}
  .invoice-composer{display:grid!important;grid-template-columns:1fr!important}
  .invoice-live-workspace{grid-column:1!important;position:static!important;max-height:none!important}
  .mobile-invoice-tray-toggle{display:block!important;position:sticky!important;top:8px!important;z-index:30!important;width:100%!important;box-shadow:0 8px 28px rgba(0,0,0,.45)!important}
  .invoice-live-workspace.mobile-collapsed{display:none!important}
  .invoice-share-buttons .button{flex:1 1 220px!important}
}


/* v0.7.0 — Premiere-style scan flow: newest item first, always visible, clearly highlighted. */
.invoice-live-workspace{
  scroll-behavior:smooth;
}
.invoice-live-workspace .invoice-items{
  display:grid;
  gap:10px;
}
.invoice-live-workspace .invoice-line{
  position:relative;
  background:rgba(8,8,9,.94)!important;
  border:1px solid rgba(215,182,90,.34)!important;
  border-radius:14px!important;
  padding:12px!important;
}
.invoice-live-workspace .invoice-line-main{
  min-width:0!important;
}
.invoice-live-workspace .invoice-line-main>div{
  min-width:0!important;
}
.invoice-live-workspace .invoice-line-main strong{
  font-size:1.08rem!important;
  line-height:1.2!important;
}
.invoice-live-workspace .invoice-line-main small{
  display:block!important;
  margin-top:3px!important;
}
.invoice-live-workspace .invoice-line-recent{
  border-color:#f2c84b!important;
  box-shadow:0 0 0 2px rgba(242,200,75,.22),0 8px 30px rgba(0,0,0,.34)!important;
  animation:invoiceRecentPulse 1.25s ease-out;
}
.invoice-live-workspace .invoice-line-recent::before{
  content:"JUST SCANNED";
  position:absolute;
  top:8px;
  right:10px;
  z-index:2;
  padding:4px 7px;
  border-radius:999px;
  background:#b90022;
  color:#fff;
  font:800 .64rem/1 system-ui,sans-serif;
  letter-spacing:.06em;
}
@keyframes invoiceRecentPulse{
  0%{transform:scale(.985);background:rgba(116,0,18,.75)}
  55%{transform:scale(1.008)}
  100%{transform:scale(1);background:rgba(8,8,9,.94)}
}
@media(min-width:1101px){
  .invoice-live-workspace{
    max-height:78vh!important;
  }
  .invoice-live-workspace .invoice-line{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:center!important;
    column-gap:12px!important;
  }
  .invoice-live-workspace .invoice-line-main{
    display:grid!important;
    grid-template-columns:118px minmax(0,1fr)!important;
    gap:14px!important;
  }
  .invoice-live-workspace .invoice-line-main>img.invoice-thumb{
    width:118px!important;
    height:118px!important;
    min-width:118px!important;
    max-width:118px!important;
  }
  .invoice-live-workspace .invoice-line>.quantity,
  .invoice-live-workspace .invoice-line>.text-button{
    justify-self:end!important;
  }
}
@media(max-width:1100px){
  .invoice-live-workspace .invoice-line-recent::before{
    font-size:.58rem;
  }
}


/* v0.7.1 — faster invoicing: bin, duplicate protection, running total, scan confirmation */
.invoice-bin-location{
  display:inline-block!important;
  margin-top:6px!important;
  padding:4px 8px!important;
  width:max-content!important;
  max-width:100%!important;
  border:1px solid rgba(242,200,75,.72)!important;
  border-radius:7px!important;
  color:#f2c84b!important;
  background:rgba(242,200,75,.08)!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
}
.invoice-running-total{
  color:#f2c84b!important;
  font-family:system-ui,sans-serif!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.invoice-live-divider{color:rgba(255,255,255,.48);padding:0 .2em}
.invoice-scan-confirmation{
  margin-top:8px;
  padding:8px 10px;
  border-radius:9px;
  background:rgba(22,110,55,.24);
  border:1px solid rgba(70,210,112,.55);
  color:#9df2b5;
  font:800 .78rem/1.25 system-ui,sans-serif;
}
.invoice-scan-confirmation[hidden]{display:none!important}
@media(max-width:760px){
  .invoice-live-head h3{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:baseline}
  .invoice-running-total{font-size:.9em!important}
}


/* v0.7.2 — non-blocking repeat scans + remaining stock */
.invoice-stock-remaining{display:inline-block!important;width:max-content;margin-top:6px!important;padding:5px 9px;border:1px solid rgba(242,200,75,.65);border-radius:8px;color:#fff!important;background:rgba(242,200,75,.10);font:900 .82rem/1.1 system-ui,sans-serif!important;letter-spacing:.04em}
