/* The web app: the same look as the phone app (light screens, a dark live room),
   one column on phones and a wider layout on computers. */
:root {
  color-scheme: light;
  --bg: #F4F2F7; --surface: #FFFFFF; --ink: #17141F; --muted: #6A6479; --line: #E2DDEA; --chip: #EDE9F3;
  --hot: #FF2D55; --hot-ink: #C8102E; --ok: #0E8A78; --ok-bg: #E2F5F1; --warn: #9A6200; --warn-bg: #FFF2D6;
  --night: #120F18; --glass: rgba(18,15,24,.55);
  --font: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --num: "Rubik", "Heebo", Arial, sans-serif;
  --top-h: 60px; --tab-h: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #FF8FA6; outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 900; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 12px; }

/* Header and tabs */
.top { position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0;
       display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--num); font-weight: 800; font-size: 24px; color: var(--hot); text-decoration: none; letter-spacing: -.5px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 700; padding: 7px 12px; border-radius: 999px; color: var(--muted); }
.nav a[aria-current="page"] { background: var(--chip); color: var(--ink); }
.who { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.tabbar { display: none; }
main { min-height: calc(100vh - var(--top-h)); }
main:focus { outline: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
            padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--hot-ink); }
  .tabbar svg { width: 22px; height: 22px; }
  main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  body.in-live .top, body.in-live .tabbar { display: none; }
  body.in-live main { padding-bottom: 0; }
}

/* Page frame */
.page { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.page.narrow { max-width: 640px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 15px;
       background: var(--hot); color: #fff; text-decoration: none; white-space: nowrap; }
.btn.block { width: 100%; }
.btn.dark { background: var(--ink); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.apple { background: #000; }
.btn.gpay { background: #fff; color: #3C4043; border: 1px solid #DADCE0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--hot-ink); font-weight: 800; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.in { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 16px; color: var(--ink); width: 100%; }
.in.ltr { direction: ltr; text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--hot); flex: 0 0 auto; margin-top: 2px; }
.err { color: var(--hot-ink); font-weight: 700; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.hot { background: #FFE3E9; color: var(--hot-ink); } .pill.gray { background: var(--chip); color: var(--muted); }
.stars { color: #E0941B; letter-spacing: 1px; }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #D5D0DD; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(-18px); }
.switch input:focus-visible + span { outline: 3px solid #FF8FA6; outline-offset: 2px; }

/* App banner */
.getapp { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px; }
.getapp p { flex: 1; font-size: 14px; }
.getapp .x { color: #fff; opacity: .7; font-size: 18px; padding: 4px; }

/* Feed */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-weight: 700; font-size: 13px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.stories a { width: 68px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 12px; font-weight: 700; }
.ring { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--hot), #FF8A3D, var(--hot)); position: relative; }
.ring span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--surface); color: #fff; font-weight: 900; font-size: 20px; }
.ring i { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--hot); color: #fff; font-style: normal; font-size: 9px; font-weight: 900; border-radius: 4px; padding: 1px 4px; }
.stories small { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4.3; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; max-width: 100%; }
.tile .letter { position: absolute; top: 20%; left: 0; right: 0; text-align: center; font-size: 72px; font-weight: 900; color: rgba(255,255,255,.3); }
.tile .tag-live { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--hot); font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.tile .likes { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.45); font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.tile .over { padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: flex; flex-direction: column; gap: 2px; }
.tile b { font-size: 15px; line-height: 1.3; }
.tile span { font-size: 12px; opacity: .92; }
.tile:hover { transform: translateY(-2px); transition: transform .15s; }
.soon { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.soon .when { color: var(--hot-ink); font-weight: 800; font-size: 13px; text-align: center; min-width: 54px; line-height: 1.25; }
.soon .t { flex: 1; min-width: 0; text-decoration: none; }
.soon .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remind { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.remind[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 22px 0; }
.soon-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 900px) { .soon-grid { grid-template-columns: 1fr 1fr; } }

/* Live room: the whole screen on a phone, video + side panel on a computer */
.live { position: relative; background: var(--night); color: #fff; height: calc(100vh - var(--top-h)); display: grid; grid-template-columns: 1fr 400px; }
.stage { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 70% 20%, #3A2F4A, #120F18 70%); display: grid; place-items: center; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage .wait { color: rgba(255,255,255,.75); font-weight: 700; text-align: center; padding: 20px; }
.side { background: #1B1724; display: flex; flex-direction: column; min-height: 0; border-inline-start: 1px solid #2B2535; }
.livehead { display: flex; align-items: center; gap: 10px; padding: 12px; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.8); color: #fff; text-decoration: none; }
.livehead .who2 { flex: 1; min-width: 0; text-decoration: none; }
.livehead .who2 b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livehead .who2 span { font-size: 12px; opacity: .85; }
.glass { background: var(--glass); color: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 13px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.glass.round { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; text-decoration: none; }
.follow { background: var(--hot); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.follow.on { background: rgba(255,255,255,.18); }
.cards { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.panel { background: rgba(255,255,255,.97); color: var(--ink); border-radius: 16px; padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; }
.panel .k { color: var(--hot-ink); font-weight: 800; font-size: 12px; }
.panel .name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.panel .sub { font-size: 12px; color: var(--muted); }
.auc { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.clock { font-family: var(--num); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1; }
.clock.hot { color: var(--hot-ink); }
.price { font-family: var(--num); font-weight: 800; text-align: center; }
.bidcol { display: flex; flex-direction: column; gap: 6px; }
.bid { background: var(--hot); color: #fff; border-radius: 12px; padding: 11px 12px; font-weight: 800; white-space: nowrap; }
.bid.lead { background: var(--ok); }
.bid2 { background: var(--chip); border-radius: 10px; padding: 6px; font-weight: 700; font-size: 13px; }
.result { text-align: center; font-weight: 800; }
.result.win { color: var(--ok); }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.chat p { font-size: 14px; line-height: 1.4; }
.chat p b { font-weight: 800; }
.chat p.sys { color: #FFD3DD; font-weight: 700; }
.chatform { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.chatform input { flex: 1; background: rgba(255,255,255,.14); border: 0; color: #fff; border-radius: 999px; padding: 10px 14px; font-size: 15px; min-width: 0; }
.chatform input::placeholder { color: rgba(255,255,255,.7); }
.chatform button { background: rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 0 16px; font-weight: 800; }
.rail { position: absolute; inset-inline-end: 14px; bottom: 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; z-index: 3; }
.rail button, .rail a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rail .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--glass); display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rail .liked .ic { background: var(--hot); }
.rail svg { width: 24px; height: 24px; }
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.heart { position: absolute; bottom: 90px; inset-inline-end: 22px; width: 28px; height: 28px; animation: float 2.2s ease-out forwards; }
@keyframes float { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(4px,-30px) scale(1); } 100% { transform: translate(var(--dx),-280px) scale(1.1); opacity: 0; } }
.ended { display: grid; place-items: center; text-align: center; gap: 10px; padding: 30px; }
@media (max-width: 900px) {
  .live { grid-template-columns: 1fr; height: 100vh; height: 100dvh; }
  .stage { position: absolute; inset: 0; }
  .side { position: absolute; inset: 0; background: transparent; border: 0; pointer-events: none; }
  .side > * { pointer-events: auto; }
  .livehead { padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: linear-gradient(rgba(0,0,0,.45), transparent); }
  .side .spacer { flex: 1; pointer-events: none; }
  .chat { flex: 0 0 auto; max-height: 150px; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
  .chat p { text-shadow: 0 1px 3px rgba(0,0,0,.7); }
  .rail { bottom: auto; top: 30%; }   /* above the chat and the cards, clear of their clocks */
}
@media (min-width: 901px) { .side .spacer { display: none; } }
@media (prefers-reduced-motion: reduce) { .heart { animation-duration: .01s; } .tile:hover { transform: none; } }

/* Seller page, profile */
.shophead { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 8px; }
.shophead .big { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 4px; text-align: center; }
.stats b { display: block; font-family: var(--num); font-size: 19px; }
.stats span { font-size: 12px; color: var(--muted); }
.review { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }
.review:first-of-type { border-top: 0; padding-top: 0; }
.order { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.order:first-of-type { border-top: 0; padding-top: 0; }
.paybox { background: var(--warn-bg); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.me-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .me-grid { grid-template-columns: 1fr 1fr; align-items: start; } .me-grid > .col { display: flex; flex-direction: column; gap: 14px; } }
.note { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; text-decoration: none; }
.note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); flex: 0 0 auto; }

/* Sheets and toasts */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,8,14,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--bg); color: var(--ink); width: 100%; max-width: 520px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .25s ease; }
@media (min-width: 761px) { .backdrop { align-items: center; } .sheet { border-radius: 22px; max-height: 86vh; } }
.sheet .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 0; }
.sheet .body { overflow-y: auto; padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps div { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px; font-weight: 800; font-size: 13px; text-align: center; }
.steps .on { border-color: var(--ink); } .steps .done { color: var(--ok); }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu button { padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 16px; }
.menu button.danger { color: var(--hot-ink); }
.choice { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px; text-align: start; width: 100%; }
.choice[aria-pressed="true"] { border-color: var(--ink); }
.choice b { display: block; }
.cardframe { width: 100%; height: 600px; border: 0; border-radius: 14px; background: var(--bg); }
.code { letter-spacing: 8px; text-align: center; font-family: var(--num); font-size: 24px; }
.toast { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff;
         border-radius: 14px; padding: 11px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); width: max-content; max-width: calc(100vw - 32px); animation: drop .25s ease; }
.toast.good { background: var(--ok); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes drop { from { transform: translate(-50%, -10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .backdrop, .sheet, .toast { animation: none; } }

/* ---------------------------------------------------------------- purchases, seller home, labels */
[hidden] { display: none !important; }
.small { font-size: 12px; }
.spread.wrap { flex-wrap: wrap; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.four b { font-size: 16px; }
.timeline { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.timeline li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.timeline li.on { color: var(--ok); border-top-color: var(--ok); }
.timeline small { font-weight: 400; min-height: 1em; }
.track { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--chip); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.track > span { flex: 1; min-width: 0; }
.hub h1 { margin: 0; }
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert { display: block; text-align: start; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer; }
.alert.hot { background: #FFE3E9; border-color: #FFC2CF; color: var(--hot-ink); }
.alert.warn { background: var(--warn-bg); border-color: #F3DDA8; color: var(--warn); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi > span { font-size: 13px; color: var(--muted); font-weight: 700; }
.kpi b { font-family: var(--num); font-size: 24px; }
.kpi small { font-size: 12px; font-weight: 700; }
.kpi small.up { color: var(--ok); } .kpi small.down { color: var(--hot-ink); }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.hub-grid > .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bars { width: 100%; height: 120px; }
.bars rect { fill: var(--hot); opacity: .85; }
.bars rect:hover { opacity: 1; }
.money { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.money b { font-family: var(--num); font-size: 18px; }
.sorder { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.sorder .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sorder .pick { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--hot); flex: 0 0 auto; }
.sorder .row { flex-wrap: wrap; margin-top: 4px; }
.late { color: var(--hot-ink); font-weight: 800; }
select.in { appearance: auto; }

/* labels: on screen a preview, on paper only the labels */
.sheet-print { display: flex; flex-wrap: wrap; gap: 12px; }
.label { background: #fff; color: #000; border: 1px dashed #999; border-radius: 6px; display: flex; flex-direction: column; gap: 3mm; padding: 5mm; font-size: 11pt; line-height: 1.35; }
.thermal .label { width: 100mm; height: 150mm; }
.a4 .label { width: 92mm; height: 132mm; }
.label small { font-size: 8pt; text-transform: uppercase; letter-spacing: .5px; color: #444; font-weight: 700; }
.label .lto { display: flex; flex-direction: column; gap: 1mm; border: 2px solid #000; border-radius: 3mm; padding: 4mm; flex: 1; }
.label .lto .big { font-size: 20pt; line-height: 1.15; }
.label .lto .addr { font-size: 16pt; font-weight: 700; }
.label .lfrom { display: flex; flex-direction: column; gap: .5mm; font-size: 9.5pt; }
.label .lfoot { display: flex; flex-direction: column; gap: .5mm; border-top: 1px solid #000; padding-top: 2mm; font-size: 9.5pt; }
.label .code { font-size: 16pt; font-weight: 800; letter-spacing: 1px; text-align: start; }
@media print {
  @page { margin: 0; }
  body { background: #fff !important; }
  .top, .tabbar, .noprint, #layer, .toast { display: none !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .sheet-print { gap: 0; }
  .label { border: 0; border-radius: 0; break-inside: avoid; }
  .thermal .label { break-after: page; }
  .a4.sheet-print { display: grid; grid-template-columns: 105mm 105mm; grid-auto-rows: 148.5mm; }
  .a4 .label { width: 105mm; height: 148.5mm; padding: 7mm; }
  .a4 .label:nth-child(4n) { break-after: page; }
}
.stage .idle { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; z-index: 5; background: rgba(0,0,0,.7); color: #fff; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 16px; }

/* ---------------------------------------------------------------- seller web: nav, catalogue, go live, host panel */
.subnav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 8px; overflow-x: auto; }
.subnav a { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pgrid.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pcard { display: flex; flex-direction: column; gap: 3px; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.pimg { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--chip); display: grid; place-items: center; border: 2px solid transparent; }
.pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pletter { font-size: 34px; font-weight: 800; color: var(--muted); }
.psold { position: absolute; top: 8px; right: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.pcard.pick .pimg { opacity: .5; } .pcard.pick.on .pimg { opacity: 1; border-color: var(--hot); }
.pnum { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.pcard.pick.on .pnum { background: var(--hot); }
.empty-state { align-items: center; text-align: center; padding: 36px 20px; }
.shots { display: flex; gap: 8px; overflow-x: auto; min-height: 40px; }
.shot { position: relative; flex: 0 0 auto; width: 92px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--chip); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot i { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 5px; padding: 1px 5px; }
.shot button { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; }
.filebtn { cursor: pointer; }
.price-in { font-size: 28px; font-weight: 900; text-align: center; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
textarea.in { resize: vertical; font-family: inherit; }
.golive { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .golive { grid-template-columns: 1fr 1fr; align-items: start; } }
.golive > .col { display: flex; flex-direction: column; gap: 12px; }
.preview { position: relative; aspect-ratio: 9 / 16; height: min(42vh, 560px); width: auto; background: #1d1927; border-radius: 18px; overflow: hidden; display: grid; place-items: center; margin-inline: auto; }
.preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview p { color: rgba(255,255,255,.75); z-index: 1; padding: 12px; text-align: center; }
.big-live { padding: 18px; font-size: 19px; border-radius: 16px; }
.dot-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 3px rgba(255,45,85,.25); vertical-align: middle; }
.big-live .dot-live { background: #fff; box-shadow: none; }
.stage video.mirror { transform: scaleX(-1); }
.onair { color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; }
.glass.hot { background: var(--hot); }
.hostpanel { background: rgba(255,255,255,.97); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.hstrip { display: flex; gap: 6px; overflow-x: auto; }
.hthumb { position: relative; flex: 0 0 auto; width: 54px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--chip); border: 2px solid transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hthumb span { font-weight: 800; color: var(--muted); font-size: 18px; }
.hthumb i { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; text-align: center; }
.hthumb.on { border-color: var(--hot); } .hthumb.out { opacity: .4; }
.hthumb.add { border: 1.5px dashed #C9C3D6; } .hthumb.add span { color: var(--hot); font-size: 22px; } .hthumb.add i { background: none; color: var(--ink); }
.hcur { font-size: 14px; text-align: start; }
.hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.hrow label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.hrow input { width: 70px; padding: 6px 8px; font-size: 15px; }
.hrow .chips { overflow: visible; }
.btn.grow { flex: 1; }
.sheet .body.loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
