:root {
  color-scheme: light dark;
  --bg: #f3f3f6;
  --card: #ffffff;
  --raised: #ffffff;
  --subtle: #ececf1;
  --sheet: #f3f3f6;
  --glass: rgba(243, 243, 246, 0.82);
  --text: #0b0b0e;
  --text-2: rgba(42, 42, 48, 0.74);
  --text-3: rgba(42, 42, 48, 0.48);
  --hairline: rgba(60, 60, 67, 0.14);
  --fill: rgba(118, 118, 128, 0.11);
  --fill-strong: rgba(118, 118, 128, 0.21);
  --ink: #111114;
  --on-ink: #ffffff;
  --accent: #0066cc;
  --buy: #0b6e3b;        --buy-bg: #dff5e8;     --buy-border: rgba(11, 110, 59, 0.18);
  --pass: #b42318;       --pass-bg: #fee8e6;    --pass-border: rgba(180, 35, 24, 0.18);
  --depends: #865200;    --depends-bg: #fef0d6; --depends-border: rgba(134, 82, 0, 0.20);
  --neutral: #46464f;    --neutral-bg: #e8e8ee; --neutral-border: rgba(70, 70, 79, 0.14);
  --scrim: rgba(8, 8, 12, 0.40);
  --string: #ad9f82;
  --paper: #ffffff;
  --paper-ink: #1d1d1f;
  --paper-ink-2: rgba(29, 29, 31, 0.58);
  --great-glow: #fff1bf;
  --shadow-card: 0 1px 2px rgba(12, 12, 18, 0.04), 0 8px 24px rgba(12, 12, 18, 0.035);
  --shadow-xs: 0 1px 2px rgba(12, 12, 18, 0.04);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --pad: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --raised: #2c2c2e;
    --subtle: #242426;
    --sheet: #1c1c1e;
    --glass: rgba(28, 28, 30, 0.82);
    --text: #ffffff;
    --text-2: rgba(235, 235, 245, 0.70);
    --text-3: rgba(235, 235, 245, 0.44);
    --hairline: rgba(255, 255, 255, 0.10);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.36);
    --ink: #ffffff;
    --on-ink: #000000;
    --accent: #4da3ff;
    --buy: #5ce693;      --buy-bg: #0b2617;     --buy-border: rgba(92, 230, 147, 0.24);
    --pass: #ff8b82;     --pass-bg: #30110e;    --pass-border: rgba(255, 139, 130, 0.24);
    --depends: #f7c95c;  --depends-bg: #2c1f06; --depends-border: rgba(247, 201, 92, 0.24);
    --neutral: #c8c8d0;  --neutral-bg: #232326; --neutral-border: rgba(200, 200, 208, 0.16);
    --scrim: rgba(0, 0, 0, 0.66);
    --string: #8a7f69;
    --paper: #ebe9e4;
    --great-glow: #3d3208;
    --shadow-card: none;
    --shadow-xs: none;
  }
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 1rem/1.38 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.footnote { margin: 0; font-size: 0.8125rem; line-height: 1.38; color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#app {
  max-width: 34rem; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) var(--pad) calc(env(safe-area-inset-bottom) + 32px);
}
.screen { display: flex; flex-direction: column; gap: 14px; animation: screen-rise 0.34s var(--ease-out) both; }
.slot-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.slot-wrap:empty, .sheet-slot:empty { display: none; }

@keyframes screen-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-slide { from { transform: translateY(100%); } }
@keyframes pulse { 50% { opacity: 0.45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes text-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes scan-beam { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fill-strong); border-top-color: var(--text); animation: spin 0.75s linear infinite; }

.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 3px; min-height: 44px;
  padding: 0 10px 0 4px; margin-left: -6px; border-radius: 12px;
  color: var(--accent); font-size: 1rem; font-weight: 600;
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; background: var(--fill); color: var(--text-2);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge-archived { background: var(--depends-bg); color: var(--depends); border: 0.5px solid var(--depends-border); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 44px; min-height: 44px; padding: 0 13px; border-radius: 999px;
  background: var(--card); border: 0.5px solid var(--hairline); box-shadow: var(--shadow-xs);
  font-size: 0.875rem; font-weight: 600;
}
.icon-circle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--text-2); flex: none; }

.large-title { margin: 4px 0; font-size: 2.125rem; font-weight: 700; letter-spacing: -0.026em; line-height: 1.08; }
.lede { margin: 0; color: var(--text-2); font-size: 0.96875rem; line-height: 1.4; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 2px 6px; }
.section-title { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em; }
.section-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; margin: -10px -8px; color: var(--accent); font-size: 0.875rem; font-weight: 600; }

.rail {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); scrollbar-width: none;
}
.rail::-webkit-scrollbar, .comps-track::-webkit-scrollbar, .demo-shelf::-webkit-scrollbar, .photo-strip::-webkit-scrollbar { display: none; }
.chip-rail { margin: 0; padding: 2px 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; padding: 0 15px; border-radius: 999px;
  background: var(--card); border: 0.5px solid var(--hairline); box-shadow: var(--shadow-xs);
  color: var(--text); font-size: 0.90625rem; font-weight: 560; white-space: nowrap;
  transition: transform 0.14s var(--ease-out), background-color 0.16s, color 0.16s;
}
.sticker-card .chip, .sheet .chip { background: var(--subtle); box-shadow: none; }
.chip-sm { min-height: 44px; padding: 0 12px; font-size: 0.8125rem; }
.chip:active, .btn:active, .comp-tile:active, .demo-card:active { transform: scale(0.975); }
.chip-active, .chip[aria-pressed="true"],
.sticker-card .chip-active, .sticker-card .chip[aria-pressed="true"],
.sheet .chip-active, .sheet .chip[aria-pressed="true"] {
  background: var(--ink); color: var(--on-ink); border-color: transparent; box-shadow: none;
}

.capture-card {
  padding: 14px; border-radius: var(--radius-xl); background: var(--card);
  border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
}
.viewfinder-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 214px; padding: 24px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--subtle) 0%, var(--fill) 100%);
  text-align: center; cursor: pointer;
}
.viewfinder-main strong { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.015em; }
.viewfinder-main > span:not(.lens-ring) { color: var(--text-2); font-size: 0.875rem; max-width: 26ch; }
.lens-ring {
  width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; box-shadow: 0 0 0 4px var(--card), 0 0 0 5.5px var(--fill-strong);
}
.capture-library-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  border-radius: var(--radius-md); background: var(--subtle); color: var(--text);
  font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}

.photo-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 460px) { .photo-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--subtle); border: 0.5px solid var(--hairline); }
.shot-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-role-pill {
  position: absolute; left: 6px; bottom: 6px; min-height: 44px; min-width: 44px; padding: 0 11px;
  border-radius: 999px; background: rgba(12, 12, 16, 0.80); border: 0.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff; font-size: 0.75rem; font-weight: 650;
}
.shot-remove {
  position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #ffffff;
  background: radial-gradient(circle, rgba(12, 12, 16, 0.78) 50%, transparent 52%);
}
.shot-add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1 / 1; min-height: 96px; padding: 10px; border-radius: 16px;
  border: 1.5px dashed var(--fill-strong); background: var(--card); color: var(--text-2);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.tag-callout {
  padding: 12px 15px; border-radius: var(--radius-md); background: var(--depends-bg);
  border: 0.5px solid var(--depends-border); color: var(--depends); font-size: 0.875rem; font-weight: 560;
}
label.tag-callout { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
div.tag-callout { display: flex; flex-direction: column; gap: 8px; color: var(--text); background: var(--raised); border-color: var(--hairline); }

.demo-shelf {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none;
}
.demo-card {
  flex: 0 0 210px; width: 210px; scroll-snap-align: start; display: flex; flex-direction: column;
  text-align: left; border-radius: var(--radius-lg); background: var(--card);
  border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform 0.16s var(--ease-out), opacity 0.2s;
}
.demo-card:disabled { opacity: 0.65; cursor: wait; }
.demo-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--subtle); display: block; }
.demo-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.demo-body strong { font-size: 0.9375rem; font-weight: 650; line-height: 1.25; }
.demo-body > span:last-child { font-size: 0.8125rem; color: var(--text-2); line-height: 1.32; }
.demo-tag, .verdict-pill {
  display: inline-flex; align-items: center; align-self: flex-start; padding: 3px 9px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 660; font-variant-numeric: tabular-nums;
  white-space: nowrap; background: var(--neutral-bg); color: var(--neutral);
}
.verdict-pill { align-self: center; flex: none; padding: 4px 10px; font-size: 0.78125rem; }
.demo-tag.buy, .demo-tag.pay_up_to, .verdict-pill.buy, .verdict-pill.pay_up_to { background: var(--buy-bg); color: var(--buy); }
.demo-tag.depends, .verdict-pill.depends { background: var(--depends-bg); color: var(--depends); }
.demo-tag.pass, .verdict-pill.pass { background: var(--pass-bg); color: var(--pass); }
.demo-tag.cant_tell, .verdict-pill.cant_tell { background: var(--neutral-bg); color: var(--neutral); }

.recent-list, .signal-card { border-radius: var(--radius-lg); background: var(--card); border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card); overflow: hidden; }
.recent-row { position: relative; display: flex; align-items: center; gap: 2px; padding-right: 6px; cursor: pointer; }
.recent-row + .recent-row::before, .signal-row + .signal-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--hairline); }
.recent-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 6px 10px 14px; }
.recent-main .thumb { width: 48px; height: 48px; min-height: 48px; border-radius: 11px; object-fit: cover; flex: none; background: var(--subtle); }
.recent-main .title { display: block; font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-main .sub { display: block; font-size: 0.8125rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-delete { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); flex: none; }
.haul-mark { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; color: var(--buy); font-weight: 650; }

.haul-card {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 12px 12px 14px;
  border-radius: var(--radius-lg); background: var(--card); border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card);
  color: var(--text); text-align: left; transition: transform 0.14s var(--ease-out);
}
.haul-card:active { transform: scale(0.985); }
.haul-card > svg { color: var(--text-3); flex: none; }
.haul-stack { display: flex; flex: none; }
.haul-stack > img, .haul-stack-blank {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card);
  background: var(--subtle); display: grid; place-items: center; color: var(--text-3);
}
.haul-stack > * + * { margin-left: -14px; }
.haul-card-title { display: block; font-size: 0.9375rem; font-weight: 650; }
.haul-card-sub { display: block; font-size: 0.8125rem; color: var(--text-2); }
.haul-card-net { display: flex; flex-direction: column; align-items: flex-end; font-size: 1.0625rem; font-weight: 740; letter-spacing: -0.015em; color: var(--buy); }
.haul-card-net small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0; color: var(--text-3); }

.find-card-frame {
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #f6f3ec;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 30px rgba(0, 0, 0, 0.14);
  animation: card-in 0.42s var(--ease-out) both;
}
.find-card-img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-touch-callout: default; }
.find-card-empty { display: grid; place-items: center; padding: 24px; text-align: center; color: #5f5a50; font-weight: 600; animation: none; }
.find-card-empty p { margin: 0; }
.find-card-hint { text-align: center; }
@keyframes card-in { from { opacity: 0; transform: scale(0.96) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .find-card-frame { animation: none; } }
.receipt-wrap { padding: 4px 6px 2px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.07)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.09)); }
.receipt {
  --tooth: 8px;
  --zigzag:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) 51% repeat-x;
  padding: calc(var(--tooth) + 16px) 18px calc(var(--tooth) + 18px);
  background: var(--paper); color: var(--paper-ink);
  font: 500 0.8125rem/1.5 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  -webkit-mask: var(--zigzag); mask: var(--zigzag);
}
.receipt-head { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.receipt-head strong { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; }
.receipt-head span { color: var(--paper-ink-2); }
.receipt-rule { margin: 12px 0; border-top: 1.5px dashed rgba(29, 29, 31, 0.26); }
.receipt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.receipt-line { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; }
.receipt-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; filter: grayscale(1) contrast(1.08); background: rgba(29, 29, 31, 0.08); }
.receipt-thumb-blank { display: grid; place-items: center; color: var(--paper-ink-2); }
.receipt-item { min-width: 0; }
.receipt-name { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-meta { display: block; font-size: 0.75rem; color: var(--paper-ink-2); }
.receipt-paid { font-weight: 650; }
.receipt-remove { width: 44px; height: 44px; margin: 0 -8px; display: grid; place-items: center; border-radius: 50%; color: var(--paper-ink-2); }
.receipt-totals { margin: 0; display: grid; gap: 3px; }
.receipt-totals div { display: flex; justify-content: space-between; gap: 12px; }
.receipt-totals dt, .receipt-totals dd { margin: 0; }
.receipt-total-net { font-size: 0.9375rem; font-weight: 750; }
.receipt-foot { margin: 0; text-align: center; font-weight: 650; }
.receipt-lifetime { text-align: center; }
.half-off-note { margin-top: -2px; }

.step-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  margin-top: 16px; padding-top: 13px; border-top: 0.5px solid var(--hairline);
}
.step-node { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-3); font-size: 0.75rem; font-weight: 600; }
.step-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--fill); }
.step-done { color: var(--text); }
.step-done .step-dot { background: var(--buy-bg); color: var(--buy); }
.step-active { color: var(--text); }
.step-active .step-dot { background: var(--ink); color: var(--on-ink); animation: pulse 1.2s ease-in-out infinite; }
.step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.identity-card {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 12px;
  padding: 14px 16px; border-radius: var(--radius-lg); background: var(--card);
  border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card);
}
.photo-strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.photo-thumb-btn { position: relative; width: 58px; height: 58px; border-radius: 13px; overflow: hidden; flex: none; background: var(--subtle); border: 0.5px solid var(--hairline); }
.identity-card[data-scanning="true"] .photo-thumb-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  animation: scan-beam 1.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
.photo-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-role-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(12, 12, 16, 0.80); color: #ffffff; font-size: 0.65rem; font-weight: 650; }
.identity-body { min-width: 0; }
.identity-body:last-child { grid-column: 1 / -1; }
.identity-title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.018em; line-height: 1.2; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.meta-pill { padding: 3px 9px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 0.78125rem; font-weight: 560; }
.identity-edit-btn { min-width: 44px; min-height: 44px; padding: 0 13px; border-radius: 999px; background: var(--subtle); color: var(--accent); font-size: 0.84375rem; font-weight: 600; }
.identity-edit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* The verdict hangs off the item card above like a store tag: string tucks under the identity card, eyelet punched top right. */
.verdict-tag { position: relative; z-index: 1; transform-origin: calc(100% - 30px) 30px; }
.tag-string { position: absolute; right: 8px; bottom: calc(100% - 30px); z-index: 1; width: 44px; height: 76px; overflow: visible; pointer-events: none; }
.tag-string path { fill: none; stroke: var(--string); stroke-width: 2; stroke-linecap: round; }
.tag-face {
  position: relative; overflow: hidden; padding: 20px 22px 22px; border-radius: var(--radius-xl);
  background: var(--neutral-bg); color: var(--neutral); border: 0.5px solid var(--neutral-border);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.verdict-tag.buy .tag-face, .verdict-tag.pay_up_to .tag-face { background-color: var(--buy-bg); color: var(--buy); border-color: var(--buy-border); }
.verdict-tag.depends .tag-face { background-color: var(--depends-bg); color: var(--depends); border-color: var(--depends-border); }
.verdict-tag.pass .tag-face { background-color: var(--pass-bg); color: var(--pass); border-color: var(--pass-border); }
.verdict-tag.pending .tag-face { background-color: var(--card); color: var(--text); border-color: var(--hairline); box-shadow: var(--shadow-card); }
.verdict-tag.is-great .tag-face { background-image: radial-gradient(120% 90% at 100% 0%, var(--great-glow) 0%, transparent 62%); }
.tag-eyelet {
  position: absolute; top: 22px; right: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent), inset 0 1px 2px rgba(0, 0, 0, 0.22);
}
.tag-sheen {
  position: absolute; inset: -10% -20%; opacity: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, 0.72) 50%, transparent 62%);
}
@media (prefers-color-scheme: dark) {
  .tag-sheen { background: linear-gradient(104deg, transparent 38%, rgba(255, 236, 170, 0.28) 50%, transparent 62%); }
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-right: 34px; min-height: 26px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.008em; }
.tag-pending-line { margin: 8px 0 6px; font-size: 1.625rem; font-weight: 720; letter-spacing: -0.024em; line-height: 1.14; text-wrap: balance; }
.shimmer-text {
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 38%, var(--text-3) 50%, var(--text) 62%, var(--text) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-shimmer 2.4s linear infinite;
}
.verdict-tag.pending .hero-because { color: var(--text-2); opacity: 1; }
.headroom { margin-top: 14px; display: grid; gap: 7px; }
.headroom-track { position: relative; height: 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.headroom-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: currentColor; opacity: 0.5; transition: width 0.4s var(--ease-out); }
.headroom-max { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: currentColor; transform: translateX(-50%); transition: left 0.4s var(--ease-out); }
.headroom-label { font-size: 0.875rem; font-weight: 650; }
.curation-pill { padding: 3px 10px; border-radius: 999px; background: rgba(12, 12, 18, 0.08); font-size: 0.75rem; font-weight: 650; }
@media (prefers-color-scheme: dark) { .curation-pill { background: rgba(255, 255, 255, 0.12); } }
.hero-display { margin: 4px 0 8px; line-height: 0.98; font-weight: 760; letter-spacing: -0.038em; }
.hero-num { font-size: clamp(3.375rem, 16vw, 4.625rem); font-variant-numeric: tabular-nums; }
.hero-word { font-size: clamp(2.875rem, 13.5vw, 3.875rem); }
.hero-because { margin: 0; font-size: 0.96875rem; line-height: 1.38; opacity: 0.92; max-width: 38ch; }
.tag-recovery-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-recovery-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 15px; border-radius: 12px;
  background: var(--ink); color: var(--on-ink); font-size: 0.875rem; font-weight: 650; cursor: pointer;
}
.tag-recovery-btn.secondary { background: var(--card); color: var(--text); border: 0.5px solid var(--hairline); }
.tag-share {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent); color: inherit;
  font-size: 0.875rem; font-weight: 650; cursor: pointer;
  transition: transform 0.14s var(--ease-out), background-color 0.2s;
}
.tag-share:active { transform: scale(0.96); background: color-mix(in srgb, currentColor 20%, transparent); }

.comps-section { display: flex; flex-direction: column; }
.comps-track {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none;
}
.comp-tile {
  flex: 0 0 144px; width: 144px; scroll-snap-align: start; display: flex; flex-direction: column;
  text-align: left; border-radius: 16px; background: var(--card);
  border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform 0.14s var(--ease-out);
}
.comp-tile-media { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--subtle); overflow: hidden; }
.comp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comp-img-fallback {
  width: 100%; height: 100%; min-height: 64px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(155deg, var(--subtle), var(--fill)); color: var(--text-2); text-align: center;
}
.fallback-price { font-size: 0.96875rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fallback-label { font-size: 0.6875rem; font-weight: 560; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-price-badge {
  position: absolute; left: 7px; bottom: 7px; padding: 3px 8px; border-radius: 999px;
  background: rgba(12, 12, 16, 0.82); border: 0.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.comp-clear-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.comp-clear-dot.clears { background: #30d158; }
.comp-clear-dot.misses { background: #ff453a; }
.comp-tile-media .comp-clear-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; box-shadow: 0 0 0 2px rgba(12, 12, 16, 0.56); }
.comp-pinned-tag {
  position: absolute; top: 7px; left: 7px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 999px; background: rgba(12, 12, 16, 0.82); color: #ffffff;
  font-size: 0.65rem; font-weight: 650;
}
.comp-tile-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.comp-tile-title { font-size: 0.78125rem; font-weight: 560; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp-tile-sub { font-size: 0.71875rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sticker-card, .dist-card, .econ-card {
  padding: 15px 16px; border-radius: var(--radius-lg); background: var(--card);
  border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
}
.sticker-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sticker-label { font-size: 0.9375rem; font-weight: 650; margin-right: auto; }
.sticker-input-wrap { display: flex; align-items: center; gap: 3px; min-height: 46px; padding: 0 10px 0 12px; border-radius: 13px; background: var(--subtle); border: 1px solid transparent; }
.sticker-input-wrap:focus-within { border-color: var(--accent); background: var(--card); }
.currency-prefix { font-size: 1.0625rem; font-weight: 650; color: var(--text-2); }
.sticker-input { width: 5.25rem; min-height: 44px; border: 0; background: none; outline: none; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sticker-input::placeholder { color: var(--text-3); font-weight: 500; }
.sticker-inline-actions { display: flex; align-items: center; gap: 6px; }

.dist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dist-typical { font-size: 1.375rem; font-weight: 740; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }
.dist-track-wrap { padding: 10px 0 6px; }
.dist-track { position: relative; height: 10px; border-radius: 999px; background: var(--fill); }
.dist-band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--fill-strong); }
.dist-band, .dist-tick, .dist-cautious, .dist-median, .dist-breakeven {
  transition: left 0.4s var(--ease-out), width 0.4s var(--ease-out), background-color 0.3s, opacity 0.3s;
}
.dist-tick { position: absolute; top: 1px; bottom: 1px; width: 2px; border-radius: 1px; background: var(--text-3); transform: translateX(-50%); opacity: 0.72; }
.dist-tick.clears { background: var(--buy); opacity: 0.92; }
.dist-tick.misses { background: var(--pass); opacity: 0.78; }
.dist-cautious { position: absolute; top: -4px; width: 2.5px; height: 18px; border-radius: 2px; background: var(--buy); transform: translateX(-50%); }
.dist-median { position: absolute; top: -6px; width: 4px; height: 22px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 1.5px var(--card); transform: translateX(-50%); }
.dist-breakeven { position: absolute; top: -7px; width: 3px; height: 24px; border-radius: 2px; background: var(--depends); box-shadow: 0 0 0 1.5px var(--card); transform: translateX(-50%); }
.dist-ends { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.dist-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 0.75rem; color: var(--text-3); }

.econ-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.econ-col { padding: 10px; border-radius: 13px; background: var(--subtle); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.econ-col-featured { background: var(--buy-bg); color: var(--buy); border: 0.5px solid var(--buy-border); }
.econ-col-label { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.econ-col-featured .econ-col-label { color: inherit; opacity: 0.86; }
.econ-col-val { font-size: 1.125rem; font-weight: 740; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.econ-ledger-line { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); }
.rules-trigger-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--subtle); color: var(--text-2); font-size: 0.8125rem; font-weight: 580; text-align: left; }

.signal-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 11px 16px; }
.signal-label { color: var(--text-2); font-size: 0.875rem; flex: none; }
.signal-value { margin-left: auto; text-align: right; font-size: 0.875rem; font-weight: 560; max-width: 72%; text-wrap: balance; }
.flaw-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.flaw-pill { padding: 3px 9px; border-radius: 999px; background: var(--depends-bg); color: var(--depends); font-size: 0.75rem; font-weight: 600; }
.caution-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--depends-bg); border: 0.5px solid var(--depends-border); color: var(--depends); font-size: 0.875rem; line-height: 1.4; }
.caution-banner svg { flex: none; margin-top: 1px; }

.action-stack { display: grid; gap: 10px; }
.action-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 15px;
  font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.14s var(--ease-out), opacity 0.2s, background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.action-row .btn { padding: 0 12px; font-size: 0.9375rem; }
.btn-haul-added { background: var(--buy-bg); color: var(--buy); border: 0.5px solid var(--buy-border); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary, .btn.primary { background: var(--ink); color: var(--on-ink); }
.btn-secondary, .btn.secondary { background: var(--card); color: var(--text); border: 0.5px solid var(--hairline); box-shadow: var(--shadow-xs); }
.sheet .btn-secondary { background: var(--raised); box-shadow: none; }
.btn-quiet, .btn.quiet { min-height: 44px; color: var(--text-2); font-size: 0.84375rem; font-weight: 560; }

.gate-card {
  padding: 22px 20px 20px; border-radius: var(--radius-xl); background: var(--card);
  border: 0.5px solid var(--hairline); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.gate-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--great-glow); color: var(--depends); font-size: 0.75rem; font-weight: 650;
}
.gate-title { margin: 4px 0 0; font-size: 1.375rem; font-weight: 720; letter-spacing: -0.02em; }
.gate-copy { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.42; }
.gate-form { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.gate-input {
  min-height: 52px; padding: 0 16px; border-radius: 15px; border: 1px solid transparent;
  background: var(--subtle); outline: none; font-size: 1.125rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.gate-input::placeholder { color: var(--text-3); font-weight: 500; letter-spacing: 0; text-transform: none; }
.gate-input:focus { border-color: var(--accent); background: var(--card); }
.gate-error { margin: 0; color: var(--pass); font-size: 0.875rem; font-weight: 560; }
.allowance { text-align: center; }

.feedback-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-lg); background: var(--fill);
  animation: fade-in 0.24s var(--ease-out) both;
}
.feedback-q { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.feedback-votes { display: flex; gap: 10px; }
.feedback-vote {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--card); border: 0.5px solid var(--hairline);
  box-shadow: var(--shadow-xs); font-size: 0.9375rem; font-weight: 600;
  transition: transform 0.14s var(--ease-out);
}
.feedback-vote:active { transform: scale(0.95); }
.feedback-reasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.feedback-done { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 0.875rem; font-weight: 560; text-align: left; }
.feedback-done svg { color: var(--buy); flex: none; }

.timing-wrap { display: flex; flex-direction: column; align-items: center; }
.waterfall { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--card); border: 0.5px solid var(--hairline); display: grid; gap: 6px; font-size: 0.78125rem; }
.wf-row { display: grid; grid-template-columns: 6rem 1fr 3.75rem; align-items: center; gap: 8px; color: var(--text-2); }
.wf-row > .num { text-align: right; }
.wf-track { height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.wf-track i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }

.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); animation: fade-in 0.22s var(--ease-out) both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 34rem; max-height: 89dvh;
  margin: 0 auto; display: flex; flex-direction: column; border-radius: 28px 28px 0 0;
  background: var(--sheet); border-top: 0.5px solid var(--hairline); overflow: hidden;
  animation: sheet-slide 0.34s var(--ease-out) both;
}
.sheet-drag-handle { padding: 10px var(--pad) 6px; touch-action: none; user-select: none; flex: none; }
.grabber { width: 38px; height: 5px; border-radius: 999px; background: var(--fill-strong); margin: 0 auto 8px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.sheet-header h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad) calc(env(safe-area-inset-bottom) + 26px); display: flex; flex-direction: column; gap: 14px; }
.sheet-slot { display: flex; flex-direction: column; gap: 10px; }
.sheet-slot:has(> .sheet-sticky-bar) { position: sticky; top: 0; z-index: 4; }
.sheet-sticky-bar {
  position: sticky; top: 0; z-index: 4; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid var(--hairline); font-size: 0.84375rem;
}

.comp-list { display: grid; gap: 8px; }
.comp-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--raised); border: 0.5px solid var(--hairline); }
.comp-row:not(:has(.comp-row-thumb)) { grid-template-columns: minmax(0, 1fr) auto; }
.comp-row-excluded { opacity: 0.52; }
.comp-row-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--subtle); flex: none; }
.comp-row-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.comp-row-title { font-size: 0.875rem; font-weight: 570; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp-row-meta { font-size: 0.75rem; color: var(--text-2); }
.comp-row-Badges, .comp-row-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.format-pill { padding: 2px 7px; border-radius: 6px; background: var(--fill); color: var(--text-2); font-size: 0.6875rem; font-weight: 600; }
.comp-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.comp-row-price { font-size: 0.96875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.comp-toggle-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text-2); }
.comp-toggle-btn[aria-pressed="true"] { background: var(--buy-bg); color: var(--buy); }
.comp-ext-link { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); text-decoration: none; }

.dropped-drawer { border-radius: 16px; background: var(--raised); border: 0.5px solid var(--hairline); overflow: hidden; }
.dropped-drawer > .comp-list { padding: 0 10px 10px; }
.dropped-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 12px 14px; font-size: 0.875rem; font-weight: 650; cursor: pointer; list-style: none; }
.dropped-summary::-webkit-details-marker { display: none; }

.form-group { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8125rem; font-weight: 620; color: var(--text-2); }
.form-input, .form-textarea { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--raised); font-size: 1rem; text-align: left; outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.sticker-input-wrap .form-input { border: 0; background: transparent; padding-left: 2px; }
.form-textarea { min-height: 118px; resize: vertical; line-height: 1.44; }

.copy-card { padding: 13px 15px; border-radius: 16px; background: var(--raised); border: 0.5px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-head > span { display: inline-flex; align-items: center; gap: 10px; }
.char-counter { font-size: 0.78125rem; font-weight: 600; color: var(--text-3); }
.char-counter.over { color: var(--pass); }
.specifics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.specifics-grid .signal-row { min-height: 40px; padding: 8px 10px; border-radius: 10px; background: var(--subtle); }
.specifics-grid .signal-row + .signal-row::before { display: none; }

.lightbox-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.92); animation: fade-in 0.2s var(--ease-out) both; }
.lightbox {
  position: fixed; inset: 0; z-index: 31; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 18px);
  color: #ffffff; pointer-events: none;
}
.lightbox-top { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; max-width: 44rem; width: 100%; margin: 0 auto; }
.lightbox-badge { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 0.8125rem; font-weight: 600; }
.lightbox .icon-circle { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.lightbox-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; max-width: 48rem; width: 100%; margin: 10px auto; }
.lightbox-img { pointer-events: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; display: block; }
.lightbox-stage .comp-img-fallback { pointer-events: auto; width: min(260px, 72vw); height: auto; aspect-ratio: 1 / 1; border-radius: 18px; background: rgba(255, 255, 255, 0.08); }
.lightbox-stage .fallback-price { color: #ffffff; font-size: 1.5rem; }
.lightbox-stage .fallback-label { color: rgba(255, 255, 255, 0.65); font-size: 0.8125rem; }
.lightbox-nav-btn {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(28, 28, 32, 0.78);
  border: 0.5px solid rgba(255, 255, 255, 0.22); color: #ffffff; display: grid; place-items: center;
}
.lightbox-nav-btn[data-delta="-1"] { left: 4px; }
.lightbox-nav-btn[data-delta="1"] { right: 4px; }
.lightbox-meta {
  pointer-events: auto; max-width: 34rem; width: 100%; margin: 0 auto; padding: 14px 16px;
  border-radius: 18px; background: rgba(28, 28, 30, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 8px;
}
.lightbox-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.34; }
.lightbox-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.lightbox-price-row strong { font-size: 1.1875rem; color: #ffffff; }
.lightbox .badge-pill { background: rgba(255, 255, 255, 0.16); color: #ffffff; margin-left: auto; }
.lightbox-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.lightbox .btn-primary { background: #ffffff; color: #0b0b0e; }
.lightbox .btn-secondary { background: rgba(255, 255, 255, 0.14); color: #ffffff; border-color: rgba(255, 255, 255, 0.18); box-shadow: none; }

#toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); z-index: 40;
  transform: translate(-50%, 16px); padding: 11px 18px; border-radius: 999px;
  background: rgba(20, 20, 24, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid rgba(255, 255, 255, 0.14); color: #ffffff; font-size: 0.90625rem; font-weight: 580;
  opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.22s var(--ease-out), transform 0.28s var(--ease-out);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
