/* =====================================================================
   Booth Tracker: sticker-shop look
   Plum ink on lilac paper. Berry = act, teal = money in / saved,
   gold = bundle deals. Category tiles are die-cut stickers.
   ===================================================================== */
:root {
  --bg: #F6F2FA;
  --surface: #FFFFFF;
  --sunk: #FBF9FD;
  --ink: #2B1D3A;
  --ink-2: #6F6382;
  --ink-3: #A79DB5;
  --line: #E8E1F0;
  --berry: #D4246E;
  --berry-ink: #B01759;
  --berry-soft: #FCE8F1;
  --teal: #0F8A7F;
  --teal-soft: #E1F3F0;
  --gold: #E3A21A;
  --gold-ink: #8A5D00;
  --gold-soft: #FDF2D8;
  --warn: #CF4A12;
  --warn-soft: #FDEDE4;

  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --lift: 0 1px 1px rgba(43, 29, 58, .04), 0 8px 24px -10px rgba(43, 29, 58, .18);
  --tap: 48px;
  --solid: #2B1D3A;        /* filled buttons, selected chips, toast, full cart bar */
  --on-solid: #FFFFFF;
  --top-bg: rgba(246, 242, 250, .86);
  --bar-fade: rgba(246, 242, 250, 0);
  --sticker-ink: #2B1D3A;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border: 0; background: none; padding: 0; text-align: left; }
button:disabled { cursor: default; }
svg { width: 22px; height: 22px; flex: none; display: block; }
:focus-visible { outline: 2.5px solid var(--berry); outline-offset: 2px; border-radius: 10px; }
b { font-weight: 650; }

#app {
  max-width: 560px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--top-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.top-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.top h1 {
  flex: 1; margin: 0; min-width: 0;
  font: 750 1.6rem/1.1 var(--display); letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top.is-home h1 { font-size: 1.75rem; }
.logo { width: 34px; height: 34px; display: grid; place-items: center; color: var(--berry); }
.logo svg { width: 28px; height: 28px; transform: rotate(-12deg); }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.iconbtn:active { background: var(--sunk); }
.status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 5px 12px 5px 10px; border-radius: 99px;
  font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.status svg { width: 16px; height: 16px; }
.status.live { color: var(--teal); background: var(--teal-soft); box-shadow: none; }
.status.give { color: var(--gold-ink); background: var(--gold-soft); box-shadow: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

main { flex: 1; padding: 8px 16px 28px; }
main h3 { margin: 26px 0 10px; font: 700 1.1rem/1.2 var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
main > h3:first-child { margin-top: 6px; }
main p { line-height: 1.5; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.neg { color: var(--warn); }
.pos { color: var(--teal); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- home ---------- */
.ticket {
  width: 100%; display: flex; align-items: stretch; margin: 4px 0 12px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden;
}
.ticket-main { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.ticket-main small { color: var(--ink-2); font-size: .82rem; }
.ticket-main b { font: 700 1.25rem/1.2 var(--display); letter-spacing: -.01em; }
.ticket-stub {
  width: 84px; display: grid; place-items: center; gap: 4px; position: relative;
  color: var(--ink-2); font-size: .8rem; font-weight: 700;
  border-left: 2px dashed var(--line);
}
.ticket-stub::before, .ticket-stub::after {        /* punched notches */
  content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg);
}
.ticket-stub::before { top: -8px; }
.ticket-stub::after { bottom: -8px; }
.ticket.on .ticket-stub { color: var(--teal); display: flex; align-items: center; justify-content: center; gap: 6px; }

.cloud { display: inline-flex; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; margin: 0 0 12px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.cloud.ok { background: var(--teal-soft); color: var(--teal); box-shadow: none; }
.cloud.wait { background: var(--gold-soft); color: var(--gold-ink); box-shadow: none; }
.cloud.err { background: var(--warn-soft); color: var(--warn); box-shadow: none; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line);
}
.stat { padding: 12px 16px 14px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat small { display: block; font-size: .8rem; color: var(--ink-2); margin-bottom: 2px; }
.stat b { font: 700 1.45rem/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.hero {
  width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  padding: 18px 18px; border-radius: var(--r-lg);
  background: var(--berry); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(212, 36, 110, .7);
}
.hero:active { background: var(--berry-ink); }
.hero > span:nth-child(2) { flex: 1; }
.hero b { display: block; font: 750 1.3rem/1.15 var(--display); letter-spacing: -.01em; }
.hero small { display: block; opacity: .85; font-size: .85rem; margin-top: 2px; }
.hero-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.hero-ic svg { width: 26px; height: 26px; }
.hero .chev { color: #fff; opacity: .8; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.tiles.two-up { grid-template-columns: 1fr 1fr; }
.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 12px;
  border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  min-height: 92px;
}
.tile:active { background: var(--sunk); }
.tile-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.tile-tx b { display: block; font-size: .95rem; line-height: 1.2; }
.tile-tx small { display: block; font-size: .78rem; color: var(--ink-2); margin-top: 1px; }
.two-up .tile { flex-direction: row; align-items: center; min-height: 72px; padding: 14px; }
.two-up .tile-ic { width: 42px; height: 42px; }
.tile.gift .tile-ic { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- sticker tiles (the signature) ---------- */
.stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 6px 4px 10px; }
.sticker {
  --tint: #F7C6DA;
  position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 128px;
  padding: 14px 14px 14px; border-radius: 26px;
  background: var(--tint); color: var(--sticker-ink);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(43, 29, 58, .07), 0 12px 22px -12px rgba(43, 29, 58, .35);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.sticker:nth-child(4n+1) { transform: rotate(-1.4deg); }
.sticker:nth-child(4n+2) { transform: rotate(1.1deg); }
.sticker:nth-child(4n+3) { transform: rotate(.8deg); }
.sticker:nth-child(4n) { transform: rotate(-.9deg); }
.sticker:active { transform: scale(.96) rotate(0); }
.sticker-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: auto;
  background: rgba(255, 255, 255, .7); font: 800 1.4rem/1 var(--display); color: var(--sticker-ink);
}
.sticker b { font: 700 1.05rem/1.15 var(--display); letter-spacing: -.01em; margin-top: 12px; }
.sticker small { font-size: .78rem; color: rgba(43, 29, 58, .62); }
.sticker.deal { --tint: #FDF2D8; }
.sticker.deal .sticker-mark { background: var(--gold); color: #fff; }
.sticker.deal .sticker-mark svg { width: 24px; height: 24px; }

/* ---------- list buttons ---------- */
.big {
  width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
  padding: 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.big:active { background: var(--sunk); }
.big > span:not(.big-ic):not(.chev) { flex: 1; }
.big b { display: block; font: 700 1.1rem/1.2 var(--display); }
.big small { display: block; font-size: .82rem; color: var(--ink-2); margin-top: 2px; }
.big-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); }
.big.alt { background: var(--teal-soft); box-shadow: none; }
.big.alt b { color: var(--teal); }
.chev { color: var(--ink-3); display: grid; place-items: center; }
.chev svg { width: 20px; height: 20px; }

.dealcard {
  width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px rgba(227, 162, 26, .45);
}
.dealcard > span:nth-child(2) { flex: 1; min-width: 0; }
.dealcard b { display: block; font: 700 1.05rem/1.2 var(--display); }
.dealcard small { display: block; font-size: .82rem; color: var(--gold-ink); margin-top: 2px; }
.dealcard em { font: 800 1.25rem/1 var(--display); font-style: normal; color: var(--gold-ink); }
.dealcard-star { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; transform: rotate(-10deg); }

/* ---------- rows ---------- */
.batch {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 2px 8px; font-size: .85rem; font-weight: 650; color: var(--ink-2);
}
.batch::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.batch:first-child { margin-top: 4px; }
.row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 10px 10px 16px; margin-bottom: 8px;
  border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.row.link:active { background: var(--sunk); }
.row.link { padding-right: 14px; }
.row.sel { background: var(--berry-soft); box-shadow: inset 0 0 0 1.5px rgba(212, 36, 110, .35); }
.row.void { opacity: .5; }
.row.void b { text-decoration: line-through; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.row-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; color: var(--ink-2); font-size: .82rem; }
.row-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); margin-left: -4px; }
.row-ic.gold { background: var(--gold-soft); color: var(--gold); }
.row .amt { font: 700 1.05rem/1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.row .x svg { width: 18px; height: 18px; }
.price { font-weight: 650; color: var(--ink); }
.pill { padding: 1px 8px; border-radius: 99px; background: var(--bg); font-size: .75rem; font-weight: 600; }
.pill.low { background: var(--gold-soft); color: var(--gold-ink); }
.pill.out { background: var(--warn-soft); color: var(--warn); }
.pill.res { background: var(--teal-soft); color: var(--teal); }
.lowstock { color: var(--warn); font-weight: 650; }

.step { display: flex; align-items: center; gap: 2px; }
.step button {
  width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.step button svg { width: 20px; height: 20px; }
.step button:last-child { background: var(--berry); color: #fff; box-shadow: none; }
.step button:last-child:active { background: var(--berry-ink); }
.step button:disabled { opacity: .3; }
.step span { min-width: 30px; text-align: center; font: 700 1.15rem/1 var(--display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step span.on { color: var(--berry); }

.reorder { display: flex; gap: 6px; }
.reorder button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 700; }

/* ---------- bundle ---------- */
.deal-head { padding: 14px 16px; border-radius: var(--r-md); background: var(--gold-soft); margin-bottom: 4px; }
.deal-head b { display: block; font: 700 1.1rem/1.2 var(--display); }
.deal-head small { display: block; color: var(--gold-ink); font-size: .85rem; margin-top: 2px; }
.count { padding: 3px 10px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 700 .85rem/1.2 var(--body); color: var(--ink-2); }
.count.ok { background: var(--teal); color: #fff; box-shadow: none; }
.subhead { margin: 14px 2px 6px; font-weight: 650; font-size: .9rem; color: var(--ink-2); }

/* ---------- cart ---------- */
.seg { display: flex; padding: 4px; margin-bottom: 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { flex: 1; padding: 10px; border-radius: 99px; text-align: center; font-weight: 650; color: var(--ink-2); }
.seg button.on { background: var(--solid); color: var(--on-solid); }
.total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 4px 10px; margin-top: 6px; border-top: 1px dashed var(--ink-3);
  font-weight: 650; color: var(--ink-2);
}
.total b { font: 800 2.2rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.warnbox, .infobox, .mode-banner { padding: 12px 14px; border-radius: var(--r-sm); margin: 0 0 14px; font-size: .9rem; line-height: 1.45; }
.warnbox { background: var(--warn-soft); color: var(--warn); }
.infobox { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.infobox .btn { margin-top: 8px; }
.mode-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); color: var(--gold-ink); }
.mode-banner svg { margin-top: 1px; }

/* ---------- forms ---------- */
label.f { display: block; margin-bottom: 14px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
label.f input, label.f select, label.f textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 1rem; font-weight: 450;
}
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--berry); }
label.f textarea { min-height: 240px; resize: vertical; line-height: 1.5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px; border-radius: 99px; font-weight: 650; font-size: .92rem;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn:active { background: var(--sunk); }
.btn.primary { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.btn.danger { color: var(--warn); }
.btn.green { color: var(--teal); background: var(--teal-soft); box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.chips button.on { background: var(--solid); color: var(--on-solid); box-shadow: none; }
details { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
summary { font-weight: 650; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
.bigstock { font: 800 3rem/1 var(--display); letter-spacing: -.03em; margin: 6px 0 4px; }
.bigstock small { font: 600 .9rem var(--body); letter-spacing: 0; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 8px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .78rem; font-weight: 650; color: var(--ink-2); background: var(--sunk); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.sum td { font-weight: 750; background: var(--sunk); }

/* ---------- bottom bar ---------- */
.bar {
  position: sticky; bottom: 0; z-index: 10; display: flex;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: linear-gradient(to top, var(--bg) 70%, var(--bar-fade));
}
.bar-btn {
  flex: 1; min-height: 56px; border-radius: 99px; text-align: center;
  font: 700 1.08rem/1 var(--display); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.bar-btn.primary { background: var(--berry); color: #fff; box-shadow: 0 10px 22px -10px rgba(212, 36, 110, .8); }
.bar-btn.primary:disabled { background: var(--ink-3); box-shadow: none; }
.cartbar {
  flex: 1; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px 0 10px;
  border-radius: 99px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.cartbar.full { background: var(--solid); color: var(--on-solid); box-shadow: 0 12px 24px -12px rgba(43, 29, 58, .7); }
.cartbar.full.give { background: var(--gold); }
.cartbar-ic { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.cartbar:not(.full) .cartbar-ic { background: var(--bg); }
.cartbar-ic i {
  position: absolute; top: -3px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--berry); color: #fff; font: 700 .72rem/20px var(--body); font-style: normal; text-align: center;
  box-shadow: 0 0 0 2px var(--solid);
}
.cartbar-tx { flex: 1; font-weight: 650; }
.cartbar b { font: 750 1.2rem/1 var(--display); font-variant-numeric: tabular-nums; }

#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  background: var(--solid); color: var(--on-solid); padding: 11px 18px; border-radius: 99px;
  font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1); max-width: 90vw; text-align: center;
  box-shadow: 0 12px 28px -12px rgba(43, 29, 58, .6);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- events view card ---------- */
.event-card { padding: 16px; border-radius: var(--r-md); background: var(--teal-soft); color: var(--ink); margin-bottom: 8px; }
.event-card .dot { color: var(--teal); margin-right: 6px; }

/* ---------- sign in ---------- */
#login {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#login form { width: 100%; max-width: 380px; padding: 28px 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--lift); position: relative; }
#login form::before {                          /* one star sticker on the card corner */
  content: ""; position: absolute; top: -46px; right: 18px; width: 96px; height: 96px; border-radius: 50%;
  background: #fff url("icons/logo-256.png") center / 100% no-repeat;
  box-shadow: 0 0 0 4px #fff, 0 12px 22px -10px rgba(43, 29, 58, .5); transform: rotate(8deg);
}
#login h2 { margin: 0 0 4px; font: 800 1.8rem/1.1 var(--display); letter-spacing: -.02em; }
#login p { margin: 0 0 20px; color: var(--ink-2); font-size: .92rem; }
#login .err { color: var(--warn); font-size: .88rem; min-height: 1.2em; margin: 4px 0 12px; }
#login button { width: 100%; padding: 15px; border-radius: 99px; background: var(--berry); color: #fff; text-align: center; font: 700 1.05rem/1 var(--display); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sticker { transform: none !important; }
}

/* compact links on home */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.mini {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 8px;
  border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: .92rem;
}
.mini:active { background: var(--sunk); }
.mini > span:nth-child(2) { flex: 1; }
.mini-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); }
.mini-ic svg { width: 20px; height: 20px; }
.mini i { font-style: normal; font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--berry); color: #fff; }

/* ---------- occasion surprises (birthday, Christmas...) ---------- */
#occasion {
  --oc-accent: var(--berry); --oc-accent-shadow: rgba(212, 36, 110, .8);
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, #FCE8F1 0%, #F6F2FA 55%, #EFE6F8 100%);
  animation: oc-in .45s ease-out both;
}
#occasion.oc-christmas {
  --oc-accent: #C8323C; --oc-accent-shadow: rgba(200, 50, 60, .7);
  background: radial-gradient(120% 80% at 50% 0%, #2E5E4A 0%, #1E4436 55%, #163328 100%);
}
#occasion.oc-out { animation: oc-fade .35s ease-in both; }
@keyframes oc-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes oc-fade { to { opacity: 0; transform: scale(1.03); } }
.oc-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.oc-balloons { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.oc-balloon { position: absolute; bottom: -120px; height: auto; animation: oc-rise linear infinite; }
@keyframes oc-rise {
  0% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(14px, -55vh) rotate(4deg); }
  100% { transform: translate(-6px, -115vh) rotate(-3deg); }
}
.oc-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px; margin: 16px 0; padding: 18px 24px 22px; text-align: center;
  background: #fff; border-radius: 30px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(43, 29, 58, .08), 0 24px 48px -18px rgba(43, 29, 58, .45);
  animation: oc-pop .7s cubic-bezier(.3, 1.5, .5, 1) .1s both;
}
@keyframes oc-pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(-1deg); opacity: 1; } }
.oc-art { width: 170px; height: auto; margin: -6px auto 4px; display: block; }
.oc-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: oc-flicker .9s ease-in-out infinite alternate; }
.oc-flame.f2 { animation-delay: .3s; } .oc-flame.f3 { animation-delay: .55s; }
@keyframes oc-flicker { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.85, 1.15) rotate(3deg); } }
.oc-lights circle { animation: oc-twinkle 1.4s ease-in-out infinite alternate; }
.oc-lights circle:nth-child(2n) { animation-delay: .5s; } .oc-lights circle:nth-child(3n) { animation-delay: .9s; }
@keyframes oc-twinkle { from { opacity: 1; } to { opacity: .35; } }
.oc-star { transform-box: fill-box; transform-origin: center; animation: oc-glow 2s ease-in-out infinite alternate; }
@keyframes oc-glow { from { transform: scale(1) rotate(0); } to { transform: scale(1.12) rotate(8deg); } }
#occasion h2 { margin: 0 0 10px; font: 800 2.3rem/1 var(--display); letter-spacing: -.03em; color: var(--oc-accent); }
#occasion.oc-christmas h2 { color: #1F7A4D; }
#occasion p { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.oc-note { display: block; margin: 0 0 18px; font-size: .8rem; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.oc-close {
  width: 100%; padding: 15px; border-radius: 99px; text-align: center;
  background: var(--oc-accent); color: #fff; font: 700 1.05rem/1 var(--display);
  box-shadow: 0 10px 22px -10px var(--oc-accent-shadow);
}
.oc-test { display: block; margin-top: 10px; color: var(--ink-2); font-size: .78rem; }
.oc-sticker {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 16px -8px rgba(43, 29, 58, .5);
}
.oc-sticker.s1 { top: -16px; left: -10px; background: var(--oc-accent); transform: rotate(-14deg); }
.oc-sticker.s2 { bottom: 90px; right: -14px; background: var(--gold); transform: rotate(12deg); }
@media (prefers-reduced-motion: reduce) { .oc-balloons { display: none; } }
.oc-close:focus-visible { outline-color: var(--oc-accent); }
#occasion p { white-space: pre-line; }
#occasion.oc-valentine { background: radial-gradient(120% 80% at 50% 0%, #FFD6E3 0%, #FCE8F1 55%, #F6DDE8 100%); }
#occasion.oc-halloween {
  --oc-accent: #E8701A; --oc-accent-shadow: rgba(232, 112, 26, .7);
  background: radial-gradient(120% 80% at 50% 0%, #4A2B6B 0%, #2E1A45 55%, #1C0F2C 100%);
}
#occasion.oc-halloween h2 { color: #E8701A; }
#occasion.oc-firstevent {
  --oc-accent: var(--teal); --oc-accent-shadow: rgba(15, 138, 127, .7);
  background: radial-gradient(120% 80% at 50% 0%, #D3EFEA 0%, #F2F7F6 55%, #F6F2FA 100%);
}
#occasion.oc-tenthevent { background: radial-gradient(120% 80% at 50% 0%, #FDE9B8 0%, #FDF5E4 55%, #F6F2FA 100%); }
#occasion.oc-tenthevent h2 { color: #B07A00; }
.oc-beat { transform-box: fill-box; transform-origin: center; animation: oc-beat 1.2s ease-in-out infinite; }
@keyframes oc-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.oc-wink { animation: oc-twinkle 1.1s ease-in-out infinite alternate; }
.oc-spark path { transform-box: fill-box; transform-origin: center; animation: oc-glow 1.3s ease-in-out infinite alternate; }
.oc-medal { transform-box: fill-box; transform-origin: center; animation: oc-swing 2.4s ease-in-out infinite alternate; }
@keyframes oc-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.oc-bats { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.oc-bats span { position: absolute; left: -80px; width: 56px; animation: oc-fly linear infinite; }
.oc-bats svg { width: 100%; height: auto; animation: oc-flap .28s ease-in-out infinite alternate; }
@keyframes oc-fly { 0% { transform: translate(0, 0); } 50% { transform: translate(55vw, -30px); } 100% { transform: translate(115vw, 10px); } }
@keyframes oc-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .oc-bats { display: none; } }
#occasion.oc-newyear {
  --oc-accent: #B8790F; --oc-accent-shadow: rgba(184, 121, 15, .7);
  background: radial-gradient(120% 80% at 50% 0%, #2B3170 0%, #1A1E4A 55%, #0E1130 100%);
}
#occasion.oc-newyear h2 { color: #B8790F; }
.oc-clink-l { transform-box: fill-box; transform-origin: 50% 100%; animation: oc-clink-l 1.6s ease-in-out infinite; }
.oc-clink-r { transform-box: fill-box; transform-origin: 50% 100%; animation: oc-clink-r 1.6s ease-in-out infinite; }
@keyframes oc-clink-l { 0%, 60%, 100% { transform: rotate(0); } 30% { transform: rotate(10deg) translateX(3px); } }
@keyframes oc-clink-r { 0%, 60%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg) translateX(-3px); } }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; padding: 0 6px 0 14px; min-height: 48px;
  border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-3);
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--berry); color: var(--berry); }
.search svg { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; color: var(--ink); padding: 12px 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--bg); }
.search-x svg { width: 16px; height: 16px; }
.search input:placeholder-shown + .search-x { display: none; }
.where { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 600; margin-bottom: 1px; }
#searchResults:empty { display: none; }

/* ---------- charts ---------- */
.chart { background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; margin-bottom: 8px; }
.chart p { margin: 6px 0 0; }
.donut { display: flex; align-items: center; gap: 14px; }
.donut svg { width: 150px; height: 150px; flex: none; }
.donut-k { font-size: 11px; fill: var(--ink-2); font-family: var(--body); }
.donut-v { font: 800 17px var(--display); fill: var(--ink); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 7px; font-size: .82rem; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 7px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.legend b { font-variant-numeric: tabular-nums; font-weight: 650; }
.legend em { grid-column: 2 / 4; font-style: normal; color: var(--ink-2); font-size: .74rem; margin-top: -2px; }
@media (max-width: 370px) { .donut { flex-direction: column; } .legend { width: 100%; } }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; column-gap: 8px; row-gap: 4px; }
.bar-label { grid-area: label; min-width: 0; font-size: .86rem; font-weight: 600; }
.bar-label span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-val { grid-area: val; align-self: end; font-size: .84rem; font-variant-numeric: tabular-nums; }
.bar-track { grid-area: track; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }
.ax { font-size: 10px; fill: var(--ink-2); font-family: var(--body); }
.ax-v { font-size: 10px; fill: var(--ink); font-weight: 700; font-family: var(--body); }
.chart svg { width: 100%; height: auto; display: block; } .donut svg { width: 150px; height: 150px; }

/* her logo in the header */
img.logo { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(43, 29, 58, .4); }
#login h2 { padding-right: 84px; }

/* ---------- stock count ---------- */
.count-row { padding-right: 8px; }
.count-row.changed { background: var(--teal-soft); box-shadow: inset 0 0 0 1.5px rgba(15, 138, 127, .4); }
.count-in {
  width: 84px; height: 48px; flex: none; border: 0; border-radius: 12px; text-align: center;
  font: 700 1.2rem/1 var(--display); color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line);
  -moz-appearance: textfield;
}
.count-in::-webkit-outer-spin-button, .count-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.count-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); background: var(--surface); }

/* =====================================================================
   Light mode gradients (dark mode overrides these below)
   ===================================================================== */
body {
  background:
    radial-gradient(80% 45% at 100% 0%, rgba(212, 36, 110, .09), transparent 60%),
    radial-gradient(70% 40% at 0% 100%, rgba(150, 110, 240, .10), transparent 60%),
    var(--bg) fixed;
}
.sticker {
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .65), transparent 55%),
    linear-gradient(150deg, var(--l1, var(--tint)), var(--l2, var(--tint)));
}
.sticker-mark { background: rgba(255, 255, 255, .75); }
.sticker.deal {
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .6), transparent 55%),
    linear-gradient(135deg, #F9C3DC 0%, #D7C4FA 50%, #BDE5F4 100%);
}
.sticker.deal .sticker-mark { background: linear-gradient(135deg, #E0337A, #9B4FE0); color: #fff; }
.hero {
  background: linear-gradient(120deg, #E0337A 0%, #C23C9E 50%, #8E4BD6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -14px rgba(194, 60, 158, .75);
}
.hero:active { background: linear-gradient(120deg, #E0337A 0%, #C23C9E 50%, #8E4BD6 100%); filter: brightness(.94); }
.bar-btn.primary { background: linear-gradient(120deg, #E0337A, #A945C8); box-shadow: 0 10px 24px -10px rgba(194, 60, 158, .75); }
.bar-btn.primary:disabled { background: var(--ink-3); }
.step button:last-child { background: linear-gradient(135deg, #E0337A, #B145C9); }
#login button, .oc-close { background-image: none; }
.cartbar.full { background: linear-gradient(120deg, #2B1D3A, #4A2A70); }
.dealcard {
  background: linear-gradient(120deg, #FDE3EF 0%, #EEE5FD 100%);
  box-shadow: inset 0 0 0 1.5px rgba(212, 36, 110, .28);
}
.dealcard small, .dealcard em { color: #B01759; }
.dealcard-star { background: linear-gradient(135deg, #E0337A, #9B4FE0); color: #fff; }
.deal-head { background: linear-gradient(120deg, #FDE3EF 0%, #EEE5FD 100%); }
.deal-head small { color: #B01759; }
.row-ic.gold { background: #FCE8F1; color: var(--berry); }
.seg button.on, .chips button.on { background: linear-gradient(120deg, #2B1D3A, #4A2A70); }
html[data-mode="dark"] .seg button.on, html[data-mode="dark"] .chips button.on { background: var(--solid); }

/* =====================================================================
   Dark mode: deep plum / purple
   ===================================================================== */
html[data-mode="dark"] {
  color-scheme: dark;
  --bg: #170F25;
  --surface: #241838;
  --sunk: #2C1F44;
  --ink: #F3EDFB;
  --ink-2: #BDB0D3;
  --ink-3: #85779E;
  --line: #3B2C57;
  --berry: #A866F0;
  --berry-ink: #9150DE;
  --berry-soft: #33204F;
  --teal: #4DD0C0;
  --teal-soft: #163634;
  --gold: #FF9E6B;
  --gold-ink: #FFB894;
  --gold-soft: #3D2232;
  --warn: #FF8F66;
  --warn-soft: #3F2019;
  --solid: #4E3388;
  --on-solid: #FFFFFF;
  --top-bg: rgba(23, 15, 37, .86);
  --bar-fade: rgba(23, 15, 37, 0);
  --lift: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 26px -10px rgba(0, 0, 0, .6);
}
html[data-mode="dark"] body {
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(130, 83, 230, .22), transparent 60%),
    radial-gradient(70% 40% at 0% 100%, rgba(240, 85, 154, .12), transparent 60%),
    var(--bg) fixed;
}
/* Record a sale: violet → magenta, glowing */
html[data-mode="dark"] .hero {
  background: linear-gradient(120deg, #6A35D8 0%, #9B3FD0 55%, #C9479E 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 34px -14px rgba(160, 70, 220, .85);
}
html[data-mode="dark"] .hero:active { filter: brightness(.92); }
html[data-mode="dark"] .hero-ic { background: rgba(255, 255, 255, .16); }
html[data-mode="dark"] .bar-btn.primary { background: linear-gradient(120deg, #7A45D6, #B04BD0); box-shadow: 0 10px 26px -10px rgba(160, 70, 220, .8); }
html[data-mode="dark"] .cartbar.full { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .8); }
html[data-mode="dark"] .step button:last-child { background: linear-gradient(135deg, #7A45D6, #A866F0); }

/* category tiles: glossy jewel-tone stickers */
html[data-mode="dark"] .sticker {
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(150deg, var(--d1, #4F2DB3), var(--d2, #7D57E8));
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 0 0 5px rgba(0, 0, 0, .25), 0 18px 28px -14px rgba(0, 0, 0, .85);
}
html[data-mode="dark"] .sticker-mark { background: rgba(255, 255, 255, .2); color: #fff; }
html[data-mode="dark"] .sticker small { color: rgba(255, 255, 255, .78); }
html[data-mode="dark"] .sticker.deal {
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(135deg, #D2468A 0%, #9B4FE0 50%, #3FA9D8 100%);
}
html[data-mode="dark"] .sticker.deal .sticker-mark { background: rgba(255, 255, 255, .22); color: #fff; }

/* bundle deals: pink-magenta instead of yellow */
html[data-mode="dark"] .dealcard {
  background: linear-gradient(120deg, rgba(214, 70, 140, .26), rgba(150, 80, 230, .2));
  box-shadow: inset 0 0 0 1.5px rgba(255, 140, 200, .4);
}
html[data-mode="dark"] .dealcard small, html[data-mode="dark"] .dealcard em, html[data-mode="dark"] .deal-head small { color: #FFAED3; }
html[data-mode="dark"] .dealcard-star { background: linear-gradient(135deg, #D2468A, #F07AB4); color: #fff; }
html[data-mode="dark"] .deal-head { background: linear-gradient(120deg, rgba(214, 70, 140, .26), rgba(150, 80, 230, .2)); }
html[data-mode="dark"] .row-ic.gold { background: rgba(240, 122, 180, .18); color: #FF9CCB; }
html[data-mode="dark"] .tile.gift .tile-ic { background: rgba(255, 170, 120, .16); color: #FFB48A; }
html[data-mode="dark"] .ticket.on .ticket-stub, html[data-mode="dark"] .status.live { color: var(--teal); }
html[data-mode="dark"] .chart svg line { stroke: var(--line); }
html[data-mode="dark"] img.logo { box-shadow: 0 0 0 2px #F3EDFB, 0 4px 10px -4px rgba(0, 0, 0, .6); }
html[data-mode="dark"] #login { background: var(--bg); }
/* the occasion cards stay light paper cards in both modes */
html[data-mode="dark"] #occasion {
  --surface: #FFFFFF; --ink: #2B1D3A; --ink-2: #6F6382; --ink-3: #A79DB5; --line: #E8E1F0;
  --berry: #D4246E; --gold: #E3A21A; --teal: #0F8A7F; color-scheme: light;
}
.theme-seg { max-width: 360px; }
.theme-seg button { white-space: nowrap; font-size: .92rem; padding: 10px 6px; }
html[data-mode="dark"] .cartbar.full.give { background: linear-gradient(120deg, #C2553E, #E07B45); }
html[data-mode="dark"] .sticker-mark svg { color: #fff; }
html[data-mode="dark"] .cartbar.full:not(.give) { background: linear-gradient(120deg, #3F2A70, #5B3A99); }

/* ---------- page transitions ---------- */
@keyframes nav-fwd { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes nav-back { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes nav-fade { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes nav-title { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
main.nav-fwd { animation: nav-fwd .32s cubic-bezier(.2, .8, .2, 1) both; }
main.nav-back { animation: nav-back .32s cubic-bezier(.2, .8, .2, 1) both; }
main.nav-fade { animation: nav-fade .36s cubic-bezier(.2, .8, .2, 1) both; }
.top h1.nav-title { animation: nav-title .3s ease-out both; }

/* pressed feel on taps */
.big, .row.link, .tile, .mini, .hero, .dealcard, .btn, .cartbar, .bar-btn, .iconbtn, .ticket {
  transition: transform .12s ease, filter .12s ease, background-color .15s ease;
}
.big:active, .row.link:active, .tile:active, .mini:active, .dealcard:active, .ticket:active { transform: scale(.98); }
.hero:active, .cartbar:active, .bar-btn:active { transform: scale(.985); }
.btn:active, .iconbtn:active { transform: scale(.95); }
.step button { transition: transform .1s ease; }
.step button:active { transform: scale(.88); }

/* ---------- offline / uploading badge ---------- */
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.status-row .status { margin-top: 8px; }
.net {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 5px 12px 5px 9px; border-radius: 99px; font-size: .8rem; font-weight: 650;
}
.net[hidden] { display: none; }
.net svg { width: 16px; height: 16px; }
.net.off { background: var(--gold-soft); color: var(--gold-ink); }
.net.up { background: var(--teal-soft); color: var(--teal); }
.net.up svg { display: none; }
.net.up::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.top.is-home .net { margin: 6px 0 0; }

/* ---------- showcase mode ---------- */
.showcase-tag {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px;
  background: var(--solid); color: var(--on-solid); font-size: .75rem; font-weight: 700; letter-spacing: .01em;
}
html[data-showcase] label.f input[inputmode], html[data-showcase] .count-in,
html[data-showcase] #nBody, html[data-showcase] #resName, html[data-showcase] #resNote { filter: blur(6px); }

/* ---------- sign-in attempt limit ---------- */
.lg-left { margin: 14px 0 0; text-align: center; font-size: .84rem; color: var(--ink-2); }
.lg-left b { color: var(--ink); font-weight: 700; }
.lg-left.warn b:first-child { color: var(--warn); }
#login input:disabled { opacity: .5; }
#login button:disabled { background: var(--ink-3); background-image: none; box-shadow: none; cursor: not-allowed; }
#login form.locked label.f { opacity: .55; }
.lg-lock {
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 4px 12px;
  padding: 12px 14px; margin: 2px 0 6px; border-radius: 14px;
  background: var(--warn-soft); color: var(--warn);
}
.lg-lock[hidden] { display: none; }
.lg-lock > svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.lg-lock b { display: block; font-size: .95rem; }
.lg-lock span { font-size: .88rem; color: var(--ink-2); }
.lg-lock strong { font: 800 1.05rem var(--display); color: var(--warn); font-variant-numeric: tabular-nums; }
.lg-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: rgba(207, 74, 18, .15); overflow: hidden; margin-top: 6px; }
.lg-bar i { display: block; height: 100%; border-radius: 99px; background: var(--warn); transition: width .25s linear; }
html[data-mode="dark"] .lg-lock > svg { background: rgba(255, 255, 255, .08); }
