:root {
  /* Floor Trader — slate terminal × sneaker drop site */
  --bg: #0B1014;
  --bg-sunken: #07090C;
  --bg-elevated: #11181E;
  --panel: #131B22;
  --panel-2: #18222B;
  --border: #1F2733;
  --border-strong: #2A3441;
  --fg: #E6E9EE;
  --fg-soft: #B5BCC8;
  --muted: #8B95A8;

  /* Signals */
  --accent: #6CF5C8;          /* electric mint — BUY */
  --accent-soft: rgba(108, 245, 200, 0.14);
  --accent-ink: #0B1014;
  --highlight: #FFB347;       /* trader amber — HOLD */
  --highlight-soft: rgba(255, 179, 71, 0.16);
  --danger: #FF4470;          /* signal red — WAIT/SKIP */
  --danger-soft: rgba(255, 68, 112, 0.16);

  /* Marketplace tags */
  --stockx: #6CF5C8;
  --goat:   #FFB347;
  --nike:   #FF4470;

  --shadow: 0 0 0 1px rgba(108, 245, 200, 0.04), 0 8px 24px rgba(0, 0, 0, 0.4);
  --dotgrid: radial-gradient(rgba(108, 245, 200, 0.04) 1px, transparent 1px);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  overflow: hidden;
}

body {
  background-image: var(--dotgrid);
  background-size: 18px 18px;
  background-position: 0 0;
  /* Two-row grid so the ticker rail at the top of the body claims its
     own row, and the app-shell fills the remaining viewport. When the
     ticker is hidden, its row collapses to 0 (auto). Without this the
     sticky ticker would overlay the canvas-header. */
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

/* ───────── App shell layout ───────── */

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  /* Stretch into body's 1fr row — without explicit 100%, some
     browsers shrink to content height when the canvas is short,
     leaving the sidebar floating instead of reaching the bottom. */
  height: 100%;
  min-height: 0;
}

.sidebar {
  background: var(--bg-sunken);
  border-right: 1px solid var(--border);
  padding: 24px 22px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* Always fill the grid column so .sidebar-footer { margin-top: auto }
     actually anchors to the bottom — without this, short anon sidebars
     collapse to content height and the footer floats up. */
  height: 100%;
  min-height: 0;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--accent-soft), inset 0 0 12px rgba(108, 245, 200, 0.08);
}

.brand-glyph {
  display: block;
  filter: drop-shadow(0 0 6px var(--accent-soft));
}

.brand-name {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--fg);
  text-transform: uppercase;
}

.brand-name-dot {
  color: var(--accent);
}

.brand-tag {
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
}

.sidebar-form {
  display: grid;
  gap: 10px;
}

.sidebar-form .form-section { display: grid; gap: 6px; }
.sidebar-form .form-section.row { grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-form .form-section.row .field { display: grid; gap: 4px; }

.filters-row .field input { padding: 8px 12px; font-size: 13px; }

.query-section { position: relative; }

/* Search bar — built as a <label> so clicking the icon focuses the input.
   Grid layout (icon | input) so the two children can't collide regardless
   of font-size / box-sizing. type="text" (not "search") to avoid Safari's
   stubborn user-agent search-field paint. */
.search-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: text;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.search-field:hover { border-color: var(--border-strong); }

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--bg-elevated);
}

.search-field .search-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.14s;
}

.search-field:focus-within .search-icon { color: var(--accent); }

/* Specificity has to beat the global input[type=text]|[number] rule. */
.search-field > input,
.search-field > input[type="text"] {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.search-field > input::placeholder {
  color: var(--muted);
  opacity: 1;
  font-weight: 400;
}

.search-field > input:focus,
.search-field > input:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px;
  z-index: 80;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 245, 200, 0.05);
  display: grid;
  gap: 1px;
  max-height: 420px;
  overflow-y: auto;
}

.suggest-list[hidden] { display: none; }

.suggest-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.08s, border-color 0.08s, color 0.08s;
}

.suggest-item:hover,
.suggest-item.active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.suggest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.suggest-item.kind-recent  .suggest-icon { color: var(--accent); }
.suggest-item.kind-history .suggest-icon { color: var(--highlight); }
.suggest-item.kind-popular .suggest-icon { color: var(--muted); }

.suggest-label {
  font-weight: 400;
  line-height: 1.35;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggest-label mark {
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  padding: 0;
  border-radius: 0;
}

.suggest-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.suggest-footer {
  display: flex;
  gap: 12px;
  padding: 8px 10px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.suggest-footer kbd {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  margin-right: 2px;
  font-family: inherit;
  font-size: 9px;
  color: var(--fg-soft);
}

.sidebar-form label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
  margin: 0;
  padding-left: 2px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.recent-list .empty {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.recent-row {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  transition: opacity 0.16s ease, transform 0.16s ease, max-height 0.18s ease, margin 0.18s ease;
  max-height: 60px;
  overflow: hidden;
}

.recent-row.removing {
  opacity: 0;
  transform: translateX(8px);
  max-height: 0;
  margin-top: -4px;
}

.recent-row.entering {
  animation: recentRowIn 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes recentRowIn {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    max-height: 0;
    margin-bottom: -4px;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 60px;
    margin-bottom: 0;
  }
}

.recent-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-soft);
  padding: 6px 32px 6px 10px;  /* right padding leaves room for the absolute × */
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.recent-pill:hover {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--fg);
}

.recent-pill .recent-query {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.recent-remove {
  /* Absolutely positioned so the pill itself can fill the full sidebar width
     instead of leaving a grid track for the × button at rest. */
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, background 0.12s, color 0.12s;
}

.recent-row:hover .recent-remove,
.recent-remove:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.recent-remove:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.recent-pill .recent-meta {
  font-size: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.sidebar-action {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateX(2px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.12s, color 0.12s, background 0.12s;
}

.sidebar-action.visible {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.sources-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.sources-pills li {
  font-size: 13px;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.source-dot.stockx { background: var(--stockx); }
.source-dot.goat   { background: var(--goat); }
.source-dot.nike   { background: var(--nike); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sidebar-footer p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.sidebar-footer a {
  color: var(--accent);
  text-decoration: none;
}
.sidebar-footer a:hover { text-decoration: underline; }

.footer-sep { margin: 0 6px; color: var(--border-strong); }

/* Footer "Contact" — looks like the Terms link, behaves like a button
   so it can open the contact modal without a navigation. */
.footer-link {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  letter-spacing: inherit;
  text-transform: none;
}
.footer-link:hover { text-decoration: underline; background: transparent; }
.footer-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── Account section in sidebar ─────────────────────────────────── */

.account-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 12px auto 1fr;
  align-items: baseline;
  gap: 10px;
  background: transparent;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.account-btn-glyph {
  display: inline-block;
  width: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transform: translateY(1px);
  transition: color 0.16s ease, transform 0.16s ease;
}
.account-btn-label {
  color: var(--fg);
  font-weight: 700;
}
.account-btn-meta {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 10px;
  justify-self: end;
}
.account-btn:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.account-btn:hover .account-btn-glyph {
  color: var(--accent);
  transform: translate(2px, 1px);
}
.account-btn:hover .account-btn-label { color: var(--accent); }
.account-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 245, 200, 0.18);
}

.account-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.account-info {
  display: grid;
  gap: 6px;
}

.account-email {
  font-size: 12px;
  color: var(--fg);
  word-break: break-all;
  line-height: 1.35;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Free tier — plain muted line, no chip. The big upgrade button is the
   real CTA in this state, so the chip would compete for attention. */
.account-plan {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Subscribed — promote to a colored pill with status dot. */
.account-plan[data-tier] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.account-plan[data-tier]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  opacity: 0.9;
}
.account-plan[data-tier="starter"] {
  color: var(--accent);
  background: rgba(108, 245, 200, 0.10);
  border-color: rgba(108, 245, 200, 0.24);
}
.account-plan[data-tier="pro"] {
  color: var(--accent);
  background: rgba(108, 245, 200, 0.14);
  border-color: rgba(108, 245, 200, 0.32);
}
.account-plan[data-tier="reseller"] {
  color: var(--accent-amber);
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.32);
}

/* Primary upgrade CTA — only shown when there's an action to take.
   In free state this is the prominent path to purchase. */
.account-action {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, filter 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.account-action:hover { background: #84F8D2; }
.account-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 245, 200, 0.32);
}

/* Manage subscription — secondary, ghost style. */
.account-action.ghost {
  background: transparent;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 10px;
}
.account-action.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Sign out — quiet text link at the bottom of the card. Not a button
   that competes with the upgrade CTA. */
.account-signout {
  justify-self: center;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  margin-top: 2px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.12s ease;
  box-shadow: none;
}
.account-signout:hover { color: var(--signal-red); }
.account-signout:focus-visible {
  outline: none;
  color: var(--signal-red);
}

/* ── Auth modal ─────────────────────────────────────────────────── */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.auth-modal.open { opacity: 1; }

.auth-modal[hidden] { display: none; }

.auth-modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px 28px 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(108, 245, 200, 0.05);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: none;
  font-family: inherit;
}

.auth-close:hover { border-color: var(--border); color: var(--fg); background: transparent; }

.auth-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.auth-tab {
  flex: 1 1 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s, color 0.12s;
}

.auth-tab:hover { color: var(--fg-soft); background: transparent; }

.auth-tab.active {
  background: var(--panel);
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

/* Brand mark above the intro — small mono signature so the modal
   reads as a Scout dialogue, not a generic auth form. */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: -2px;
}
.auth-brand-glyph {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(108, 245, 200, 0.25));
}
.auth-brand-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  font-weight: 800;
  color: var(--fg-soft);
}

/* Intro pair: hero title + subline. Title is what the modal IS for,
   subline is the why. No pricing mentioned here — that lives in the
   plans picker. */
.auth-intro {
  display: grid;
  gap: 6px;
}
.auth-intro-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-feature-settings: "kern" 1, "ss01" 1;
}
.auth-intro-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  color: var(--muted);
}

.auth-form { display: grid; gap: 12px; }

/* Honeypot — kept in the DOM so bots fill it, kept off-screen so humans
   don't. position:absolute + tiny size + opacity:0 covers the common
   "headless browser still treats display:none as not-real". */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-field { display: grid; gap: 4px; }

.auth-field > span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-error {
  font-size: 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 68, 112, 0.25);
  padding: 8px 10px;
  border-radius: 6px;
}

.auth-success {
  font-size: 13px;
  color: var(--accent);
  background: rgba(108, 245, 200, 0.08);
  border: 1px solid rgba(108, 245, 200, 0.28);
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.auth-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.auth-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* The contact modal carries a textarea so it gets a slightly wider
   card to keep typing comfortable. */
.contact-modal .auth-modal-card { width: min(520px, 100%); }

.auth-submit {
  width: 100%;
  height: 42px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.auth-fine {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.auth-fine a { color: var(--accent); text-decoration: none; }
.auth-fine a:hover { text-decoration: underline; }

/* ───────── Canvas ───────── */

.canvas {
  overflow-y: auto;
  background: var(--bg);
  /* No top padding here — the sticky canvas-header owns its own padding
     so the header sits flush at the top of the scroll viewport. Before,
     a -28px top margin pulled the header up to swallow the canvas's
     padding-top, which clipped any content that landed in the gap. */
  padding: 0 36px 64px;
  height: 100%;
  min-height: 0;
}

.canvas-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  /* Horizontal bleed so the sticky bar covers the full canvas width;
     no vertical bleed — vertical padding sits inside the header now. */
  margin: 0 -36px 20px;
  padding: 22px 36px 18px;
  border-bottom: 1px solid var(--border);
  /* Frosted: blurred bg behind so content scrolls under cleanly. */
  background: rgba(11, 16, 20, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.canvas-header::after {
  /* Subtle hairline shadow under the header when stuck — reads like a
     real app surface, not just a scrolling column header. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent);
}

@media (max-width: 900px) {
  .canvas-header {
    margin: 0 -16px 16px;
    padding: 14px 16px 12px;
  }
}

.canvas-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.canvas-query {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.canvas-query::before {
  content: "› ";
  color: var(--accent);
  font-weight: 700;
}

.canvas .status {
  font-size: 12px;
  color: var(--muted);
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lane-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.lane-status.lane-pending { color: var(--fg-soft); border-color: var(--border-strong); }
.lane-status.lane-pending::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: lane-pulse 1.1s ease-in-out infinite;
}

.lane-status.lane-ok    { color: var(--accent);    border-color: rgba(108, 245, 200, 0.25); }
.lane-status.lane-empty { color: var(--muted); }
.lane-status.lane-err   { color: var(--danger);    border-color: rgba(255, 68, 112, 0.25); }

.lane-status .lane-tick { font-weight: 700; }
.lane-status .lane-elapsed { color: var(--muted); font-variant-numeric: tabular-nums; }
.lane-status .lane-count {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 600;
}

@keyframes lane-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.1); }
}

#results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1280px) {
  #results { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1920px) {
  #results { grid-template-columns: 1fr 1fr 1fr; }
}

/* Cards inside a 2-col grid: when expanded, take the full row */
.card.expanded { grid-column: 1 / -1; }

/* ───────── Hamburger button (mobile only) ───────── */

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger:hover span { background: var(--accent); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(5, 8, 12, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
.sidebar-backdrop[hidden] { display: none; }

/* ───────── Mobile (≤ 900px): sidebar becomes a slide-in drawer ───────── */

@media (max-width: 900px) {
  html, body { height: auto; overflow-x: hidden; }
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  /* Slide-in drawer */
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    height: 100dvh;
    z-index: 960;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid var(--border-strong);
    background: var(--panel);
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 6px 0 22px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open { transform: translateX(0); }

  /* Hamburger is the only way in or out — show it on mobile */
  .hamburger { display: inline-flex; }

  /* Sticky frosted top bar so search results stay tappable from the
     top edge. Hamburger sits next to the title to live in thumb reach. */
  .canvas { padding: 0 16px 16px; }
  .canvas-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -16px -16px 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-top));
    position: sticky;
    top: 0;
    background: rgba(11, 16, 20, 0.92);
    backdrop-filter: blur(14px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
  }
  .canvas-query {
    font-size: 15px;
  }
  .sidebar-footer { padding-top: 12px; }
}

/* Desktop and up: hamburger and backdrop must not interfere. */
@media (min-width: 901px) {
  .hamburger, .sidebar-backdrop { display: none !important; }
}

input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  /* 16px prevents iOS Safari from auto-zooming when focusing the input. */
  font-size: 16px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}

@media (min-width: 720px) {
  input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
    font-size: 14px;
  }
}

input[type="text"]::placeholder,
input[type="number"]::placeholder {
  color: var(--muted);
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--panel);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background-color 0.12s, transform 0.06s, box-shadow 0.12s;
  box-shadow: 0 0 0 1px var(--border), 0 6px 14px rgba(108, 245, 200, 0.08);
}

button:hover {
  background: #84F8D2;
  box-shadow: 0 0 0 1px var(--accent), 0 6px 18px rgba(108, 245, 200, 0.16);
}
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.scout {
  margin: 0 0 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

.scout.hidden { display: none; }

.scout-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(108, 245, 200, 0.2);
}

.model {
  color: var(--muted);
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

.scout pre {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 15px;
  color: var(--fg);
}

.status {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.status .err {
  color: var(--danger);
}

#results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* ── Live ticker rail (always-on market movers) ──────────────────── */

.ticker {
  width: 100%;
  height: 30px;
  /* Lives in its own grid row on body — no sticky needed. */
  background: linear-gradient(180deg, var(--bg-sunken), var(--panel));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  /* Soft fade on both edges so items "enter and leave" cleanly. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.ticker[hidden] { display: none; }

.ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  height: 30px;
  align-items: center;
  padding-left: 28px;
  /* 60s per cycle — fast enough to feel alive, slow enough to read. */
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  /* -50% because we render the list twice and translate one full set. */
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--fg-soft);
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  cursor: pointer;
  transition: color 0.14s ease;
}
.ticker-item:hover { color: var(--accent); }

.ticker-src {
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
}
.ticker-src-stockx { color: var(--accent); }
.ticker-src-goat   { color: var(--accent-amber); }
.ticker-src-nike   { color: var(--danger); }

.ticker-name {
  color: var(--fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ticker-delta-up   { color: var(--danger); }
.ticker-delta-down { color: var(--accent); }

@media (max-width: 720px) {
  .ticker { height: 28px; font-size: 10.5px; }
  .ticker-track { height: 28px; gap: 20px; }
  .ticker-item  { height: 28px; }
}

/* ── Trending feed (landing/empty state) ─────────────────────────── */

.trending {
  margin: 0 0 24px;
  display: grid;
  gap: 14px;
}
.trending.hidden { display: none; }

.trending-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.trending-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.003em;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trending-card {
  text-align: left;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elevated) 130%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  box-shadow: none;
  min-height: auto;
  transition: border-color 0.18s ease, transform 0.14s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s ease;
}
.trending-card:hover {
  border-color: rgba(108, 245, 200, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), 0 0 22px rgba(108, 245, 200, 0.05);
}
.trending-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 245, 200, 0.18);
}

.trending-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.trending-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
}
.trending-thumb .card-image-placeholder {
  width: 60px !important;
  height: 60px !important;
  border-radius: 8px;
  border: 0;
}
.trending-thumb .card-image-placeholder svg {
  width: 36px;
  height: 18px;
}
.trending-thumb[data-source="stockx"] { box-shadow: inset 0 0 0 1px rgba(108, 245, 200, 0.42); }
.trending-thumb[data-source="goat"]   { box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.42); }
.trending-thumb[data-source="nike"]   { box-shadow: inset 0 0 0 1px rgba(255, 68, 112, 0.42); }

.trending-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trending-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trending-price {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.trending-delta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.trending-delta-up   { color: var(--danger); background: rgba(255, 68, 112, 0.10);  border-color: rgba(255, 68, 112, 0.30); }
.trending-delta-down { color: var(--accent); background: rgba(108, 245, 200, 0.10); border-color: rgba(108, 245, 200, 0.30); }

@media (max-width: 720px) {
  .trending-grid { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elevated) 140%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s cubic-bezier(0.4, 0.0, 0.2, 1),
    background 0.18s ease;
}

/* Source identity reads on the image edge (outlined ring) and the
   source-tag pill — no decorative left bar needed on the card itself. */

.card-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.card.has-image .card-row {
  grid-template-columns: 88px minmax(0, 1fr) auto;
}

.card .card-image,
.card .skeleton-thumb,
.card .card-image-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.card .card-image {
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(108, 245, 200, 0.04), rgba(255, 179, 71, 0.03)) var(--bg-elevated);
  /* Real image fades in over the placeholder once it actually loads,
     so the cell never flashes empty during the swap. */
  transition: opacity 0.28s ease;
}
.card .card-image.card-image-loading { opacity: 0; }

/* While the real image hasn't loaded yet the placeholder sits in the
   same grid cell. Stacking them via grid-column overlap keeps layout
   stable instead of forcing the image to push the placeholder out. */
.card.has-image .card-row > .card-image,
.card.has-image .card-row > .card-image-placeholder {
  grid-column: 1;
  grid-row: 1;
}

/* Brand-source identity ring on the image. Subtle 1px inner outline
   in the source colour so even a thumbnail signals where the listing
   came from before the title is read. */
.card[data-source="stockx"] .card-image,
.card[data-source="stockx"] .card-image-placeholder {
  outline: 1px solid rgba(108, 245, 200, 0.42);
  outline-offset: -1px;
}
.card[data-source="goat"] .card-image,
.card[data-source="goat"] .card-image-placeholder {
  outline: 1px solid rgba(255, 179, 71, 0.42);
  outline-offset: -1px;
}
.card[data-source="nike"] .card-image,
.card[data-source="nike"] .card-image-placeholder {
  outline: 1px solid rgba(255, 68, 112, 0.42);
  outline-offset: -1px;
}

/* Empty-image stand-in — same footprint as a real image so the row
   grid stays steady. Quiet slate fill with a mint-tinted sneaker
   silhouette so missing data feels intentional, not broken. */
.card .card-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 30%, rgba(108, 245, 200, 0.08), transparent 60%),
    var(--bg-elevated);
  opacity: 0.85;
}
.card .card-image-placeholder svg {
  width: 56px;
  height: 28px;
  opacity: 0.7;
}
.card:hover .card-image-placeholder svg { opacity: 1; transition: opacity 0.16s ease; }

.skeleton-thumb {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--panel-2) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-price-loading {
  width: 80px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--panel-2) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card:hover {
  border-color: rgba(108, 245, 200, 0.32);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--panel) 130%);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(108, 245, 200, 0.10),
    0 10px 26px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(108, 245, 200, 0.04);
}

.card .title {
  text-decoration: none;
  letter-spacing: -0.012em;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  font-weight: 500;
  font-size: 15px;
}
.card .title:hover {
  color: var(--accent);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-feature-settings: "tnum" 1;
}

/* Unified chip system. Every pill (source / stock / delta) shares the
   same height, family, and rhythm — only colour and content differ.
   This is what makes the card-meta strip read as one row instead of
   three competing labels. */
.stock-pill,
.delta-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.stock-pill.stock-ok  { background: rgba(108, 245, 200, 0.10); color: var(--accent);    border-color: rgba(108, 245, 200, 0.28); }
.stock-pill.stock-low { background: rgba(255, 179, 71, 0.10);  color: var(--highlight); border-color: rgba(255, 179, 71, 0.28); }
.stock-pill.stock-out { background: rgba(255, 68, 112, 0.10);  color: var(--danger);    border-color: rgba(255, 68, 112, 0.28); }

.delta-pill.delta-up   { background: rgba(255, 68, 112, 0.10);  color: var(--danger);  border-color: rgba(255, 68, 112, 0.30); }
.delta-pill.delta-down { background: rgba(108, 245, 200, 0.10); color: var(--accent);  border-color: rgba(108, 245, 200, 0.30); }

/* Cross-marketplace arbitrage chip — visually distinct from the
   stock/delta pills because it represents *action* (one tap to the
   cheaper listing) rather than info. Bigger weight, deeper colour,
   a glyph, and a small drop-shadow give it the "deal alert" feel. */
.arb-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px 4px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(108, 245, 200, 0.18), rgba(108, 245, 200, 0.10));
  color: var(--accent);
  border: 1px solid rgba(108, 245, 200, 0.42);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(108, 245, 200, 0.12);
}
.arb-pill:hover {
  filter: brightness(1.08);
  border-color: rgba(108, 245, 200, 0.7);
  box-shadow: 0 4px 12px rgba(108, 245, 200, 0.22);
}
.arb-pill-goat {
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.20), rgba(255, 179, 71, 0.10));
  color: var(--accent-amber);
  border-color: rgba(255, 179, 71, 0.45);
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.12);
}
.arb-pill-goat:hover { box-shadow: 0 4px 12px rgba(255, 179, 71, 0.22); border-color: rgba(255, 179, 71, 0.7); }

.arb-pill-nike {
  background: linear-gradient(180deg, rgba(255, 68, 112, 0.16), rgba(255, 68, 112, 0.08));
  color: var(--danger);
  border-color: rgba(255, 68, 112, 0.42);
  box-shadow: 0 2px 8px rgba(255, 68, 112, 0.10);
}
.arb-pill-nike:hover { box-shadow: 0 4px 12px rgba(255, 68, 112, 0.22); border-color: rgba(255, 68, 112, 0.7); }

.arb-glyph {
  font-size: 11px;
  line-height: 1;
}

/* ── Watchlist: card action button + sidebar trigger + modal rows ── */

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.watch-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.watch-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.watch-toggle.watch-on {
  color: var(--accent);
  border-color: var(--accent);
}
.watch-toggle.watch-on svg path { fill: currentColor; }

/* Tier meter — small sidebar card showing the user's current daily
   Brief allowance with a contextual upgrade CTA. Anon gets the
   loudest treatment because it's the most-conversion-leverage slot;
   paid tiers get a quieter version. Hidden at top tier. */
.tier-meter {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tier-meter[hidden] { display: none; }
.tier-meter[data-tier="anon"] {
  border-color: rgba(108, 245, 200, 0.28);
  background: linear-gradient(180deg, rgba(108, 245, 200, 0.06), var(--bg-elevated) 80%);
}

.tier-meter-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tier-meter-label {
  color: var(--muted);
  font-weight: 700;
}
.tier-meter[data-tier="anon"] .tier-meter-label { color: var(--accent); }

.tier-meter-value {
  color: var(--fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 11px;
}

.tier-meter-cta {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-soft);
  padding: 7px 10px;
  border-radius: 7px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.tier-meter-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.tier-meter[data-tier="anon"] .tier-meter-cta {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.tier-meter[data-tier="anon"] .tier-meter-cta:hover {
  background: #84F8D2;
  border-color: #84F8D2;
  color: var(--accent-ink);
}

.sidebar-watch {
  width: 100%;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  text-align: left;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.sidebar-watch:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-elevated);
}
.sidebar-watch[hidden] { display: none; }

.sidebar-watch-label {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sidebar-watch-count {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.sidebar-watch-count[hidden] { display: none; }

/* Watchlist modal — reuses auth-modal chrome, slightly wider for rows. */
.watchlist-modal .watchlist-card { width: min(640px, 100%); }

.watchlist-grid {
  display: grid;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

.watchlist-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.watch-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.watch-row:hover { border-color: var(--border-strong); }
.watch-row[data-source="stockx"] { box-shadow: inset 0 0 0 1px rgba(108, 245, 200, 0.20); }
.watch-row[data-source="goat"]   { box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.20); }
.watch-row[data-source="nike"]   { box-shadow: inset 0 0 0 1px rgba(255, 68, 112, 0.20); }

.watch-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  display: block;
}
.watch-thumb img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
}
.watch-thumb-placeholder {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(108, 245, 200, 0.04), rgba(255, 179, 71, 0.03)) var(--panel);
}

.watch-body { display: grid; gap: 6px; min-width: 0; }

.watch-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.watch-title:hover { color: var(--accent); }

.watch-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.watch-current {
  color: var(--fg);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.watch-target {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-transform: lowercase;
  letter-spacing: 0;
  font-weight: 500;
}

.watch-status {
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.watch-status-hit      { color: var(--accent);    background: rgba(108, 245, 200, 0.12); border-color: rgba(108, 245, 200, 0.32); }
.watch-status-above    { color: var(--muted);     background: rgba(139, 149, 168, 0.10); border-color: var(--border); }
.watch-status-watching { color: var(--fg-soft);   background: rgba(139, 149, 168, 0.10); border-color: var(--border); }
.watch-status-stale    { color: var(--accent-amber); background: rgba(255, 179, 71, 0.10); border-color: rgba(255, 179, 71, 0.30); }

.watch-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  box-shadow: none;
}
.watch-remove:hover { color: var(--danger); background: transparent; }
.delta-pill::before {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  line-height: 1;
}
.delta-pill.delta-up::before   { content: "▲"; }
.delta-pill.delta-down::before { content: "▼"; }

/* ── Buy banner ───────────────────────────────────────────────────── */

.buy-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.buy-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--muted);
}

.buy-banner.verdict-strong { background: linear-gradient(95deg, rgba(108, 245, 200, 0.10) 0%, var(--panel) 70%); }
.buy-banner.verdict-strong::before { background: var(--accent); box-shadow: 0 0 12px var(--accent-soft); }
.buy-banner.verdict-buy    { background: linear-gradient(95deg, rgba(108, 245, 200, 0.06) 0%, var(--panel) 70%); }
.buy-banner.verdict-buy::before    { background: var(--accent); }
.buy-banner.verdict-hold   { background: linear-gradient(95deg, rgba(255, 179, 71, 0.08) 0%, var(--panel) 70%); }
.buy-banner.verdict-hold::before   { background: var(--highlight); }
.buy-banner.verdict-wait   { background: linear-gradient(95deg, rgba(255, 68, 112, 0.08) 0%, var(--panel) 70%); }
.buy-banner.verdict-wait::before   { background: var(--danger); }
.buy-banner.verdict-skip   { background: linear-gradient(95deg, rgba(255, 68, 112, 0.14) 0%, var(--panel) 70%); }
.buy-banner.verdict-skip::before   { background: var(--danger); box-shadow: 0 0 12px var(--danger-soft); }

.verdict-mark {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.verdict-strong .verdict-icon,
.verdict-buy    .verdict-icon { color: var(--accent); }
.verdict-hold   .verdict-icon { color: var(--highlight); }
.verdict-wait   .verdict-icon,
.verdict-skip   .verdict-icon { color: var(--danger); }

.verdict-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.verdict-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.verdict-reason {
  font-size: 14px;
  color: var(--fg-soft);
}

.verdict-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  margin-top: 2px;
}

/* Snipe action — one-tap link straight to the cheapest live source for
   the SKU. Only shows on STRONG_BUY / BUY verdicts. STRONG_BUY gets
   the full mint-fill button; BUY gets a quieter mint-tinted variant. */
.snipe-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
  transition: background 0.14s ease, transform 0.12s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.snipe-strong {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(108, 245, 200, 0.22);
}
.snipe-strong:hover {
  background: #84F8D2;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(108, 245, 200, 0.30);
}
.snipe-buy {
  background: rgba(108, 245, 200, 0.14);
  color: var(--accent);
  border: 1px solid rgba(108, 245, 200, 0.40);
}
.snipe-buy:hover {
  background: rgba(108, 245, 200, 0.22);
  border-color: rgba(108, 245, 200, 0.60);
  transform: translateY(-1px);
}
.snipe-price {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.snipe-arrow {
  font-size: 14px;
  line-height: 1;
}

.verdict-helper {
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .buy-banner { grid-template-columns: auto 1fr; }
  .verdict-helper { display: none; }
}

/* ── Lightbox ─────────────────────────────────────────────────────── */

.hero-image-wrap.clickable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 9, 12, 0.96);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 12px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.lightbox.open { opacity: 1; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.lightbox-close:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: grab;
}

.lightbox-stage.dragging { cursor: grabbing; }

.lightbox-img {
  max-width: 90vw;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease;
  will-change: transform, filter;
  pointer-events: auto;
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  max-height: 80px;
  overflow-y: auto;
}

.lightbox-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.12s, transform 0.08s;
}

.lightbox-thumb:hover { border-color: var(--border-strong); }

.lightbox-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--fg);
}

.lb-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.lb-btn:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}

.lb-scale {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  min-width: 48px;
  text-align: center;
}

.lb-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lb-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
}

.lb-filters input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.lb-filters output {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--fg-soft);
  align-self: flex-end;
}

@media (max-width: 720px) {
  .lightbox-controls { grid-template-columns: 1fr; }
  .lb-filters { grid-template-columns: 1fr 1fr; }
}

.card .source-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--fg-soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card .source-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  opacity: 0.85;
}

.card .source-tag.stockx { color: var(--stockx); border-color: rgba(108, 245, 200, 0.32); }
.card .source-tag.goat   { color: var(--goat);   border-color: rgba(255, 179, 71, 0.32); }
.card .source-tag.nike   { color: var(--nike);   border-color: rgba(255, 68, 112, 0.32); }

.card.is-protected { background: var(--bg-sunken); }
.card.is-protected .title { color: var(--fg-soft); }

.protection-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--highlight-soft);
  color: var(--highlight);
  border: 1px solid rgba(255, 179, 71, 0.3);
  white-space: nowrap;
  width: max-content;
}

.protection-badge .cf-icon { font-size: 11px; }

.card-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.card .title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--fg);
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
  letter-spacing: -0.002em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.card .arrow {
  color: var(--muted);
  font-size: 18px;
}

.chevron {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-soft);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s, border-color 0.12s, background 0.12s;
}

.chevron:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card.expanded .chevron {
  transform: rotate(180deg);
}

.details-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 16px;
  animation: panelIn 0.22s ease;
  transform-origin: top;
}

.details-panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Expanded cards no longer take a colored left border — relies on the
   source-tag pill + the card's natural border for identity. */

/* Hero gallery */
.hero-block {
  display: grid;
  gap: 8px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 460px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s ease;
}

.hero-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.hero-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-sunken);
  cursor: pointer;
  transition: border-color 0.12s, transform 0.08s;
}

.hero-thumb:hover { border-color: var(--accent); }

.hero-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Chip row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg);
}

.info-chip .chip-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.info-chip .chip-value {
  font-weight: 500;
}

.info-chip.kind-brand      { border-color: rgba(108, 245, 200, 0.3); background: var(--accent-soft);    color: var(--accent); }
.info-chip.kind-silhouette { border-color: rgba(255, 179, 71, 0.3);  background: var(--highlight-soft); color: var(--highlight); }
.info-chip.kind-colorway   { border-color: rgba(255, 68, 112, 0.25); background: var(--danger-soft);    color: var(--danger); }
.info-chip.kind-sku        { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 11px; }

/* Big price comparison */
.price-block {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.price-block .price-cell {
  flex: 1 1 140px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.price-block .price-cell strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.price-block .price-cell.retail strong { color: var(--muted); }
.price-block .price-cell.current strong { color: var(--fg); }

.price-arrow {
  align-self: center;
  font-size: 24px;
  color: var(--muted);
  padding: 0 4px;
}

.premium-chip {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.premium-chip.premium { background: var(--highlight-soft); color: var(--highlight); }
.premium-chip.hot     { background: var(--danger-soft);    color: var(--danger);    }
.premium-chip.below   { background: var(--accent-soft);    color: var(--accent);    }

.price-side-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.price-side-row .price-cell.muted {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-side-row .price-cell.muted strong {
  font-size: 15px;
  font-weight: 500;
}

.price-cell .label,
.fact .label,
.sizes-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.price-cell strong {
  font-size: 16px;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  min-width: 0;
}

.fact .value {
  color: var(--fg);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.sizes-label {
  margin-bottom: 6px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 6px;
}

.size-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--fg-soft);
  cursor: default;
  transition: border-color 0.12s, color 0.12s;
}

.size-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.story {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-soft);
}

.story p { margin: 0; }

.scout-take {
  background: linear-gradient(180deg, rgba(108, 245, 200, 0.04), var(--panel));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.scout-take-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.scout-take-body {
  font-size: 14px;
  line-height: 1.55;
}

.scout-take-body strong {
  color: var(--accent);
  font-weight: 600;
}

.scout-take-body code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}

.scout-take[data-state="loading"] .scout-take-body {
  color: var(--muted);
  font-style: italic;
}

.scout-take[data-state="error"] .scout-take-body {
  color: var(--danger);
  font-size: 12px;
}

/* Buyer's Brief */
.deep-dive {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  gap: 8px;
}

.deep-dive-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.deep-dive .badge.brief {
  background: var(--highlight-soft);
  color: var(--highlight);
  border-color: rgba(255, 179, 71, 0.3);
}

.deep-dive-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
}

.deep-dive[data-state="loading"] .deep-dive-body {
  color: var(--muted);
  font-style: italic;
}

.deep-dive[data-state="error"] .deep-dive-body {
  color: var(--danger);
  font-size: 12px;
}

.deep-dive-body {
  display: grid;
  gap: 12px;
}

.deep-dive-body > p { margin: 0; }

/* Lead — the curator's opening read. Editorial-style kicker + supporting
   line so the headline thought lands before the context. Visually
   distinct from the section cards below; the eye finds it first. */
.brief-lead {
  margin: 0;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(108, 245, 200, 0.07) 0%, var(--bg-elevated) 70%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1, "tnum" 1;
  position: relative;
  overflow: hidden;
}
.brief-lead::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(108, 245, 200, 0.15) 100%);
  opacity: 0.85;
}

.brief-lead-kicker {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--fg);
  font-weight: 600;
}

.brief-lead-rest {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  color: var(--muted);
  font-weight: 400;
}

.brief-lead-kicker strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brief-empty,
.brief-empty-inline {
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.002em;
}

/* ── Brief section cards ──────────────────────────────────────── */

.brief-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}
.brief-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.brief-card[data-accent="accent"]:hover    { border-color: rgba(108, 245, 200, 0.32); }
.brief-card[data-accent="verify"]:hover    { border-color: rgba(108, 245, 200, 0.28); }
.brief-card[data-accent="highlight"]:hover { border-color: rgba(255, 179, 71, 0.32); }
.brief-card[data-accent="danger"]:hover    { border-color: rgba(255, 68, 112, 0.32); }

/* Brief cards now carry their accent via the icon color, the bold/num
   tint, and a quiet diagonal bg gradient. No left bar — the icon row
   is the identity. */
.brief-card[data-accent="accent"]    { background: linear-gradient(96deg, rgba(108, 245, 200, 0.05), var(--bg-elevated) 70%); }
.brief-card[data-accent="verify"]    { background: linear-gradient(96deg, rgba(108, 245, 200, 0.04), var(--bg-elevated) 70%); }
.brief-card[data-accent="neutral"]   { background: var(--bg-elevated); }
.brief-card[data-accent="highlight"] { background: linear-gradient(96deg, rgba(255, 179, 71, 0.05), var(--bg-elevated) 70%); }
.brief-card[data-accent="danger"]    { background: linear-gradient(96deg, rgba(255, 68, 112, 0.06), var(--bg-elevated) 70%); }

.brief-card-head {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.brief-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--fg-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}
.brief-card[data-accent="accent"]    .brief-icon { background: rgba(108, 245, 200, 0.10); }
.brief-card[data-accent="verify"]    .brief-icon { background: rgba(108, 245, 200, 0.08); }
.brief-card[data-accent="highlight"] .brief-icon { background: rgba(255, 179, 71, 0.10); }
.brief-card[data-accent="danger"]    .brief-icon { background: rgba(255, 68, 112, 0.10); }

.brief-card[data-accent="accent"]    .brief-icon { color: var(--accent); }
.brief-card[data-accent="verify"]    .brief-icon { color: #4FE3A4; }
.brief-card[data-accent="highlight"] .brief-icon { color: var(--highlight); }
.brief-card[data-accent="danger"]    .brief-icon { color: var(--danger); }

.brief-title {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  font-feature-settings: "tnum" 1;
}

.brief-body {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  color: var(--fg);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1, "tnum" 1;
}

.brief-body p { margin: 0; }

/* Bullet lists inside a Brief section — used by "Spot the Fakes" to
   render distinct physical tells as a scannable checklist. */
.brief-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

/* Save-this-Brief hook — appears at the bottom of the Brief panel for
   anon users only. Mint-tinted card with a clear CTA. */
.brief-save-hook {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(108, 245, 200, 0.08) 0%, var(--bg-elevated) 80%);
  border: 1px solid rgba(108, 245, 200, 0.30);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.brief-save-text {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  color: var(--fg-soft);
}
.brief-save-text strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-right: 4px;
}
.brief-save-cta {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(108, 245, 200, 0.18);
  transition: background 0.14s ease, transform 0.12s ease;
}
.brief-save-cta:hover {
  background: #84F8D2;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .brief-save-hook {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.brief-list li {
  position: relative;
  padding: 2px 0 2px 22px;
  line-height: 1.5;
  letter-spacing: -0.004em;
}
.brief-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: transparent;
}
.brief-card[data-accent="verify"] .brief-list li::before {
  border-color: rgba(108, 245, 200, 0.45);
}

.brief-body strong {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brief-card[data-accent="accent"]    .brief-body strong { color: var(--accent); }
.brief-card[data-accent="verify"]    .brief-body strong { color: #4FE3A4; }
.brief-card[data-accent="highlight"] .brief-body strong { color: var(--highlight); }
.brief-card[data-accent="danger"]    .brief-body strong { color: var(--danger); }

.brief-body .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.brief-card[data-accent="accent"]    .brief-body .num { color: var(--accent);    border-color: rgba(108, 245, 200, 0.25); }
.brief-card[data-accent="highlight"] .brief-body .num { color: var(--highlight); border-color: rgba(255, 179, 71, 0.25); }
.brief-card[data-accent="danger"]    .brief-body .num { color: var(--danger);    border-color: rgba(255, 68, 112, 0.25); }

.brief-body code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}

.deep-dive-sources {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.sources-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.sources-list li {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.sources-list a {
  color: var(--accent);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sources-list a:hover { text-decoration: underline; }

.sources-q {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.details-loading {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  padding: 4px 6px;
  background: var(--bg-sunken);
  border-radius: 6px;
  width: max-content;
}

.price-tag {
  background: linear-gradient(180deg, rgba(108, 245, 200, 0.16), rgba(108, 245, 200, 0.08));
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 18px;
  padding: 7px 12px 6px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: -0.015em;
  border: 1px solid rgba(108, 245, 200, 0.36);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
  box-shadow:
    0 4px 12px rgba(108, 245, 200, 0.06),
    inset 0 1px 0 rgba(108, 245, 200, 0.18);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover .price-tag {
  border-color: rgba(108, 245, 200, 0.52);
  box-shadow:
    0 6px 18px rgba(108, 245, 200, 0.12),
    inset 0 1px 0 rgba(108, 245, 200, 0.24);
}

.enrichment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  opacity: 0.85;
}

.enrichment .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.enrichment[data-state="pending"] .dot {
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.enrichment[data-state="done"] .dot { background: var(--accent); }
.enrichment[data-state="error"] .dot { background: var(--danger); }
.enrichment[data-state="error"] .enrichment-text { color: var(--danger); }

.enrichment-retry {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.12s;
}

.enrichment-retry:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

.retry-note {
  color: var(--accent);
  font-weight: 600;
}

.agent-reasoning {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.agent-reasoning .agent-icon {
  font-size: 11px;
  opacity: 0.85;
  flex-shrink: 0;
  margin-top: 1px;
}

.agent-reasoning .agent-text {
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 32px 24px;
}

/* ── Plans modal (tier picker) ────────────────────────────────────── */
.plans-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.plans-modal.open { opacity: 1; }
.plans-modal[hidden] { display: none; }

.plans-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px 32px 26px;
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(108, 245, 200, 0.05);
}

.plans-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}

.plans-pitch {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plans-loading,
.plans-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.plans-error { color: var(--signal-red); }

.plan-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.plan-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.plan-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(108, 245, 200, 0.18);
}
.plan-card.current {
  border-color: var(--accent-amber);
}

.plan-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.plan-tag.current {
  background: var(--accent-amber);
  color: var(--accent-ink);
}

.plan-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.plan-price-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.plan-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.plan-features {
  margin: 4px 0 4px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--fg);
}
.plan-features li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

.plan-pick {
  margin-top: auto;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.plan-pick:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.plan-card.recommended .plan-pick {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.plan-card.recommended .plan-pick:hover:not(:disabled) {
  background: var(--accent-strong, var(--accent));
  filter: brightness(1.06);
}
.plan-pick:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ───────── Mobile modal sheets (≤ 720px) ───────── */

@media (max-width: 720px) {
  /* Auth modal becomes a bottom sheet — slides up from the edge of
     the viewport, full-width, respects iOS home indicator inset. */
  .auth-modal,
  .plans-modal {
    align-items: flex-end;
    padding: 0;
  }
  .auth-modal-card,
  .plans-modal-card {
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateY(24px);
    transition: transform 0.2s ease;
  }
  .auth-modal.open .auth-modal-card,
  .plans-modal.open .plans-modal-card {
    transform: translateY(0);
  }
  .plans-modal-card { max-height: 88dvh; }

  /* Touch-target floors — 44pt minimum on tappable primary actions.
     Iconic buttons (close ×, chevron, hamburger) opt out via explicit
     dimensions or their own selectors. */
  #go,
  .plan-pick,
  .auth-submit,
  .account-action,
  .account-btn,
  .sidebar-action {
    min-height: 44px;
  }
  .account-signout { min-height: 36px; }
  /* Sidebar inputs already meet 44px via 9px padding + 16px font. */
  .search-field > input { min-height: 44px; }

  .card-image,
  .card-image-placeholder,
  .skeleton-thumb {
    width: 72px !important;
    height: 72px !important;
  }
  .card-image-placeholder svg { width: 44px; height: 22px; }

  /* Meta pills get their own wrap line so the title runs full width
     instead of fighting the source tag for horizontal space. */
  .card-meta { gap: 6px; }
  .card .source-tag { font-size: 9px; }
}

@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .card { grid-template-columns: 64px 1fr auto; }
  .card.has-image { grid-template-columns: 56px 56px 1fr; }
  .card.has-image .card-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .card .arrow { display: none; }
  .card .card-image,
  .card .card-image-placeholder,
  .card .skeleton-thumb {
    width: 56px !important;
    height: 56px !important;
  }
  .card-image-placeholder svg { width: 36px; height: 18px; }
  header { padding-top: 36px; }

  /* Plan cards: stack the price big, features tighter. */
  .plan-name { font-size: 12px; }
  .plan-price-amount { font-size: 26px; }
  .plan-features { font-size: 12.5px; }
}
