:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --line: #e2e0da;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #7a7974;
  --accent: #2a78d6;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --good: #0f7a3a;
  --good-bg: #e3f4e8;
  --warn: #8a5a00;
  --warn-bg: #fbf0d9;
  --bad: #b3261e;
  --bad-bg: #fbe5e3;
  --chip: #eceae5;
}
/* Dark mode for everyone, whatever the device is set to. */
:root {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1a1a19;
  --surface-2: #232321;
  --line: #34332f;
  --text: #ffffff;
  --text-2: #c3c2b7;
  --muted: #8f8e86;
  --accent: #3987e5;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --good: #6fd08f;
  --good-bg: #17301f;
  --warn: #f0bd5a;
  --warn-bg: #33280f;
  --bad: #ff8a80;
  --bad-bg: #3a1a18;
  --chip: #2b2b29;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.top { display: flex; align-items: center; gap: 24px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; color: var(--text); }
.sport { font-size: 11px; font-weight: 600; background: var(--chip); color: var(--text-2); padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--text-2); padding: 6px 10px; border-radius: 6px; }
nav a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
main { max-width: 1400px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.sub { color: var(--text-2); margin: 0 0 16px; }
.banner { padding: 8px 20px; font-size: 13px; }
.banner.sample { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--text-2); gap: 3px; }
input, select, textarea, button { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
input[type=number] { width: 90px; }
input[type=checkbox] { width: auto; }
textarea { width: 100%; min-height: 110px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
button { cursor: pointer; background: var(--surface-2); }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { color: var(--text-2); font-weight: 600; font-size: 12px; position: sticky; top: 0; background: var(--surface); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; min-width: 220px; }
tr.outlier td { color: var(--muted); text-decoration: line-through; }
tr.outlier td.reason { text-decoration: none; }
.pos { color: var(--good); font-weight: 600; }
.neg { color: var(--bad); font-weight: 600; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: var(--chip); color: var(--text-2); }
.chip.High, .chip.Easy { background: var(--good-bg); color: var(--good); }
.chip.Medium, .chip.Moderate { background: var(--warn-bg); color: var(--warn); }
.chip.Low, .chip.Hard, .chip.Very.hard, .chip.flag { background: var(--bad-bg); color: var(--bad); }
.chip.sample { background: var(--warn-bg); color: var(--warn); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; margin: 6px 0 4px; }
.stat .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--text-2); }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; min-width: 90px; position: relative; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--series-1); }
.chart { width: 100%; height: 320px; }
.cardcell { display: flex; gap: 10px; align-items: flex-start; }
.thumb { width: 44px; height: 62px; object-fit: contain; border-radius: 4px; background: var(--surface-2); flex: none; }
.thumb.none { display: inline-block; }
.hero { float: right; max-width: 220px; max-height: 310px; margin: 0 0 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 640px) { .hero { float: none; display: block; margin: 0 auto 12px; max-width: 60%; } }
ul.notes { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.disclaimer { max-width: 1280px; margin: 0 auto; padding: 0 16px 30px; color: var(--muted); font-size: 12px; }
.bookmarklet { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.empty { padding: 24px; text-align: center; color: var(--text-2); }
@media (max-width: 640px) {
  .top { gap: 10px; padding: 10px 16px; }
  main { padding: 16px; }
}

/* Compact ROI table: all 16 columns fit a laptop screen without sideways scrolling. */
table.compact { font-size: 12px; }
table.compact th { white-space: normal; line-height: 1.15; vertical-align: bottom; padding: 5px 4px; font-size: 11px; }
table.compact td { padding: 5px 4px; }
table.compact td.wrap { min-width: 0; white-space: normal; }
table.compact .c-card { width: 220px; min-width: 180px; }
table.compact .cardcell { gap: 6px; }
table.compact .thumb { width: 30px; height: 42px; }
table.compact .chip { font-size: 10.5px; padding: 0 5px; }

/* Sortable headers */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sorted { color: var(--text); }
.sort-arrow { font-size: 9px; margin-left: 2px; }
/* (i) info buttons and their popover */
.info { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; padding: 0; margin-left: 2px;
  border-radius: 50%; border: 1px solid var(--muted); background: transparent; color: var(--muted);
  font: italic 600 9.5px/1 Georgia, serif; cursor: help; vertical-align: 1px; }
.info:hover, .info:focus-visible { color: var(--accent); border-color: var(--accent); }
.info-pop { position: absolute; z-index: 50; padding: 9px 11px; border-radius: 8px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 12.5px; line-height: 1.4; }
.filters label > span { display: inline-flex; align-items: center; gap: 2px; }

/* Filters fold into a disclosure (closed by default on phones) */
.filters-box > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; color: var(--text-2); }
.filters-box[open] > summary { margin-bottom: 12px; }
/* Grading ROI: List (table) or Tiles (photo grid), switched with the view bar */
.view-bar { display: flex; justify-content: flex-end; margin: 2px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: transparent; padding: 5px 12px; font-size: 13px; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
#roi-out[data-view="tiles"] .table-wrap { display: none; }
#roi-out[data-view="list"] .roi-tiles, #roi-out[data-view="list"] .m-sort { display: none; }
.m-sort { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; max-width: 420px; }
.m-sort label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); flex: 1; }
.m-sort select { flex: 1; }
.roi-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tile { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile-img { width: 84px; flex: none; }
.tile-img img { width: 84px; height: 118px; object-fit: contain; border-radius: 6px; background: var(--surface-2); display: block; }
.tile-img:empty { height: 118px; border-radius: 6px; background: var(--surface-2); }
.tile-body { min-width: 0; flex: 1; }
.tile-name { font-weight: 600; line-height: 1.25; }
.tile-profit { font-size: 20px; font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.tile-profit .small { font-weight: 500; color: var(--text-2); }
.tile-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 12px; justify-content: start; }
.tile-stats div { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.tile-stats b { font-size: 13.5px; }
.tile-stats span { font-size: 11px; color: var(--muted); }
.tile-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.roi-count { margin-top: 10px; }
@media (max-width: 760px) { .roi-tiles { grid-template-columns: 1fr; } .m-sort { max-width: none; } }
@media (min-width: 520px) and (max-width: 760px) { .roi-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .desk-only { display: none; } }
.prog { margin: 10px 0 14px; }
.prog-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.prog .bar { height: 10px; }

/* Market overview */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kpi .k { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.kpi-row { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2px 8px; font-variant-numeric: tabular-nums; font-size: 14px; }
.kpi-row span { color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
h3.small { margin: 0 0 6px; color: var(--text-2); }
.watch { font-size: 13px; vertical-align: middle; margin-left: 8px; }
.watch.on { color: var(--warn); border-color: var(--warn); }

/* Signals */
.banner-inline { padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); margin-bottom: 14px; font-size: 13px; }
.sig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; }
@media (max-width: 760px) { .sig-list { grid-template-columns: 1fr; } }
ul.why { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); }
ul.why li { margin: 2px 0; }

.sig-types { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; }
.sig-cat { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sig-cat > .small { width: 100%; margin-bottom: 2px; }
.sig-type { border-radius: 16px; padding: 4px 10px; font-size: 12.5px; background: var(--surface); }
.sig-type span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.sig-type.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sig-type.on span { color: #e8f0fb; }
details.card > summary { cursor: pointer; }
.proj { font-size: 12.5px; margin: 2px 0 4px; }

/* Grading ROI: price-point tabs. Wrap on wide screens, one swipeable row on phones. */
.price-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.price-head > .small { flex: none; }
.price-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.price-tabs button { display: inline-flex; align-items: baseline; gap: 6px; border-radius: 18px; padding: 6px 12px; font-size: 13px;
  background: var(--surface); color: var(--text-2); white-space: nowrap; }
.price-tabs button span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-tabs button:hover { border-color: var(--accent); color: var(--text); }
.price-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.price-tabs button.on span { color: #e8f0fb; }
.price-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#roi-out.loading { opacity: .5; transition: opacity .15s; pointer-events: none; }

@media (max-width: 760px) {
  .price-head { flex-direction: column; align-items: stretch; gap: 6px; margin: 0 -16px 12px; }
  .price-head > .small { padding: 0 16px; }
  .price-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 16px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .price-tabs::-webkit-scrollbar { display: none; }
  .price-tabs button { scroll-snap-align: center; padding: 8px 14px; font-size: 14px; }
  /* Header: brand and sport switch on one row, the nav as one swipeable row underneath. */
  .top { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 10px 16px 0; }
  .top > .acct { grid-row: 1; grid-column: 3; margin-left: 0; }
  .top > .sport-switch { grid-row: 1; grid-column: 2; }
  .acct .acct-login { display: none; }
  .acct .acct-join { padding: 6px 10px; font-size: 13px; }
  .top .acct .acct-join .long { display: none; }
  .top .acct .acct-join .short { display: inline; }
  .top { gap: 6px; }
  .top .sport-switch button { padding: 5px 7px; font-size: 13px; }
  .top .brand-name { font-size: 19px; }
  .top nav { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; padding: 8px 12px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .filters label { min-width: 0; }
  .filters input, .filters select { width: 100%; box-sizing: border-box; }
  .filters .row { grid-column: 1 / -1; }
  .filters .row button { flex: 1; padding: 9px; }
}

/* ROI tiles: headline numbers, then what you'd make at each grade */
.tile-headline { display: flex; gap: 16px; margin: 8px 0 8px; }
.tile-headline div { display: flex; flex-direction: column; }
.tile-headline span, .grade-col .g-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tile-headline b { font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.grade-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.grade-col { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; font-variant-numeric: tabular-nums; min-width: 0; }
.grade-col + .grade-col { border-left: 1px solid var(--line); }
.grade-col:first-child { background: var(--surface-2); }
.grade-col b { font-size: 14px; }
.grade-col .g-sub { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.tile-cost { margin-top: 6px; }

/* Gradient ROI logo (rebuilt as SVG so it stays sharp and follows the light/dark theme) */
:root { --logo-blue: #3b7cf5; --logo-frame: #9aa3b5; --logo-inner: #c9cfda; }
:root { --logo-blue: #4b8bff; --logo-frame: #cfd6e4; --logo-inner: #3a4357; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 30px; width: auto; flex: none; }
.bm-frame { stroke: var(--logo-frame); }
.bm-blue { fill: var(--logo-blue); }
.bm-inner { stroke: var(--logo-inner); }
.bm-line { stroke: var(--logo-blue); }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand-tag { align-self: flex-start; margin: -2px 0 0 -3px; padding: 2px 6px; border-radius: 6px; background: var(--logo-blue);
  color: #11141b; font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; }
@media (max-width: 760px) {
  .grade-grid { grid-template-columns: 1fr; }
  .grade-col { flex-direction: row; align-items: baseline; gap: 10px; padding: 6px 10px; }
  .grade-col + .grade-col { border-left: 0; border-top: 1px solid var(--line); }
  .grade-col .g-label { flex: 1; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--text-2); }
  .grade-col b { order: 3; min-width: 64px; text-align: right; }
  .tile-headline b { font-size: 18px; }
}
@media (max-width: 760px) {
  /* Phone tiles: photo beside the name and headline numbers, grade table full width underneath. */
  .roi-tiles .tile { display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; align-items: start; }
  .roi-tiles .tile-body { display: contents; }
  .roi-tiles .tile-img { grid-column: 1; grid-row: 1 / span 3; width: 72px; }
  .roi-tiles .tile-img img { width: 72px; height: 101px; }
  .roi-tiles .tile-img:empty { height: 101px; }
  .roi-tiles .tile-name, .roi-tiles .tile-body > .small.muted:not(.tile-cost), .roi-tiles .tile-headline { grid-column: 2; }
  .roi-tiles .grade-grid, .roi-tiles .tile-cost, .roi-tiles .tile-chips { grid-column: 1 / -1; }
  .roi-tiles .grade-grid { margin-top: 10px; }
  .grade-col .g-label { white-space: nowrap; }
}
.chip.unverified { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-weight: 500; }

/* ---- Home page ---- */
.home-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 28px; margin: 8px 0 22px;
  border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--logo-blue) 18%, transparent), transparent 60%), var(--surface); }
.home-hero h1, .home-hero .hero-h { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; }
.home-hero p { color: var(--text-2); font-size: 15px; margin: 0 0 16px; max-width: 560px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; }
.hero-search input { flex: 1; padding: 10px 12px; font-size: 15px; border-radius: 10px; }
.hero-search button { padding: 10px 16px; border-radius: 10px; }
.hero-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 600; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-big { padding: 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.stat-big b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-big span { font-size: 12px; color: var(--muted); }
.home-sec { margin-bottom: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin: 0; font-size: 20px; }
.home-sec > .sub { margin: 4px 0 12px; }
.flip-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.flip-cols h3 { margin: 0 0 8px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.flip-list { display: grid; gap: 10px; }
.flip { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.flip:hover, .hot:hover, .sig-card:hover { border-color: var(--accent); text-decoration: none; }
.flip-img { width: 64px; flex: none; }
.flip-img img { width: 64px; height: 90px; object-fit: contain; border-radius: 6px; background: var(--surface-2); display: block; }
.flip-img:empty { height: 90px; border-radius: 6px; background: var(--surface-2); }
.flip-body { min-width: 0; flex: 1; }
.flip-nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 16px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.flip-nums div { display: flex; flex-direction: column; }
.flip-nums span { font-size: 11px; color: var(--muted); }
.hot-list { display: grid; gap: 8px; }
.hot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.hot > div:nth-child(2) { flex: 1; min-width: 0; }
.hot-num { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hot-num b { font-size: 16px; }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; padding: 20px; }
  .home-hero h1, .home-hero .hero-h { font-size: 27px; }
  .flip-cols { grid-template-columns: 1fr; }
}

/* ---- Signals ---- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.page-head h1 { margin-bottom: 4px; }
.page-head .sub { margin: 0; }
.seg.big button { padding: 9px 22px; font-size: 15px; font-weight: 600; }
.seg.big button span { font-size: 12px; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.side-toggle button[data-side="buy"].on { background: var(--good-bg); color: var(--good); }
.side-toggle button[data-side="sell"].on { background: var(--bad-bg); color: var(--bad); }
.side-toggle button.on span { color: inherit; opacity: .8; }
.sig-controls { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; color: var(--text-2); }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.sig-card { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
  border-top: 3px solid var(--good); }
.sig-card.sell { border-top-color: var(--bad); }
.sig-img { width: 88px; flex: none; }
.sig-img img { width: 88px; height: 124px; object-fit: contain; border-radius: 8px; background: var(--surface-2); display: block; }
.sig-img:empty { height: 124px; border-radius: 8px; background: var(--surface-2); }
.sig-body { min-width: 0; flex: 1; }
.sig-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.side-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px; border-radius: 10px; background: var(--good-bg); color: var(--good); }
.side-badge.sell { background: var(--bad-bg); color: var(--bad); }
.sig-move { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; flex-wrap: wrap; }
.sig-move b { font-size: 22px; font-variant-numeric: tabular-nums; }
.sig-move span { font-size: 12px; color: var(--muted); }
.sig-prices { color: var(--text-2); margin-bottom: 4px; }
details.how { margin-top: 16px; }
@media (max-width: 760px) {
  .sig-grid { grid-template-columns: 1fr; }
  .page-head { align-items: stretch; }
  .side-toggle { width: 100%; }
  .side-toggle button { flex: 1; }
  .sig-img, .sig-img img { width: 72px; } .sig-img img, .sig-img:empty { height: 101px; }
}
.btn-small { padding: 3px 10px; font-size: 12.5px; border-radius: 8px; }
.sec-head .row { gap: 12px; }

/* Card page: grading outcomes fit a phone (outcome, chance, sale price, profit). */
.mob-only { display: none; }
@media (max-width: 760px) {
  .mob-only { display: inline; }
  table.outcomes .o-bar, table.outcomes .o-net { display: none; }
  table.outcomes th, table.outcomes td { padding: 8px 6px; }
  table.outcomes td:first-child { white-space: normal; }
}

/* Watchlist: stacked cards that read well on a phone and line up in a grid on desktop. */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.watch-card { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.watch-img { width: 84px; flex: none; }
.watch-img img { width: 84px; height: 118px; object-fit: contain; border-radius: 8px; background: var(--surface-2); display: block; }
.watch-img:empty { height: 118px; border-radius: 8px; background: var(--surface-2); }
.watch-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.watch-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.watch-top .tile-name { color: var(--text); display: block; }
.watch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.watch-row div { display: flex; flex-direction: column; min-width: 0; }
.watch-row > div > span { font-size: 11px; color: var(--muted); }
.watch-row b { font-size: 14px; }
@media (max-width: 760px) {
  .watch-grid { grid-template-columns: 1fr; }
  .watch-card { display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; }
  .watch-body { display: contents; }
  .watch-img { grid-row: 1 / span 1; width: 72px; }
  .watch-img img, .watch-img:empty { width: 72px; height: 101px; }
  .watch-top { grid-column: 2; }
  .watch-row, .watch-grade, .watch-card .tile-chips { grid-column: 1 / -1; margin-top: 8px; }
}

/* ---- Signals page (v3): summary, filter pills, top picks, compact rows ---- */
.sig-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.sig-stats div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.sig-stats b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sig-stats span { font-size: 12px; color: var(--muted); }
.sig-filters { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { border-radius: 18px; padding: 6px 13px; font-size: 13px; background: var(--surface); color: var(--text-2); white-space: nowrap; }
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.sec-title { font-size: 17px; margin: 18px 0 10px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { display: flex; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--good) 12%, var(--surface)) 0%, var(--surface) 55%); }
.feature.sell { background: linear-gradient(160deg, color-mix(in srgb, var(--bad) 12%, var(--surface)) 0%, var(--surface) 55%); }
.feature:hover { border-color: var(--accent); text-decoration: none; }
.feature-img { width: 96px; flex: none; }
.feature-img img { width: 96px; height: 134px; object-fit: contain; border-radius: 8px; background: var(--surface-2); display: block; }
.feature-img:empty { height: 134px; border-radius: 8px; background: var(--surface-2); }
.feature-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.feature .sig-top { gap: 6px; flex-wrap: wrap; }
.feature-move { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.feature-move b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.feature-move span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.feature-spark { display: flex; flex-direction: column; gap: 2px; }
.reasons { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.reason-chip { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.reason-chip.more { color: var(--muted); }
svg.spark path { stroke: var(--muted); }
svg.spark circle { fill: var(--muted); }
svg.spark.buy path { stroke: var(--good); } svg.spark.buy circle { fill: var(--good); }
svg.spark.sell path { stroke: var(--bad); } svg.spark.sell circle { fill: var(--bad); }
.sig-rows { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.sig-row + .sig-row { border-top: 1px solid var(--line); }
.row-main { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px 4px; color: var(--text); }
.row-main:hover { background: var(--surface-2); text-decoration: none; }
.row-img img { width: 44px; height: 62px; object-fit: contain; border-radius: 4px; background: var(--surface-2); display: block; }
.row-img:empty { width: 44px; height: 62px; border-radius: 4px; background: var(--surface-2); }
.row-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.move-badge { display: inline-block; min-width: 62px; text-align: center; padding: 5px 10px; border-radius: 10px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.move-badge.up { background: var(--good-bg); color: var(--good); }
.move-badge.down { background: var(--bad-bg); color: var(--bad); }
.move-badge.none { background: var(--surface-2); color: var(--muted); font-size: 12px; }
.row-why { padding: 0 12px 8px 68px; }
.row-why summary { font-size: 12px; color: var(--accent); cursor: pointer; list-style: none; width: max-content; }
.row-why summary::-webkit-details-marker { display: none; }
.row-why[open] summary { margin-bottom: 4px; }
.more-wrap { display: flex; justify-content: center; margin: 14px 0; }
@media (max-width: 900px) { .feature-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .sig-stats b { font-size: 18px; }
  .sig-stats div { padding: 10px; }
  .sig-filters { flex-direction: column; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .feature-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .feature-strip::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 86%; scroll-snap-align: center; }
  .row-main { grid-template-columns: 40px 1fr auto; }
  .row-spark { display: none; }
  .row-img img, .row-img:empty { width: 40px; height: 56px; }
  .row-why { padding-left: 64px; }
}
@media (max-width: 760px) {
  .sig-row .reasons .reason-chip ~ .reason-chip { display: none; }  /* one reason per row on phones; "Why" has the rest */
}

/* ---- Card page photo, plus buy/sell signal treatment ---- */
.hero-wrap { float: right; width: 230px; margin: 0 0 14px 18px; position: relative; border-radius: 14px; }
.hero-wrap img { display: block; width: 100%; max-height: 330px; object-fit: contain; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.hero-wrap.signal { --sig: var(--good); --sig-hi: #b9f5cf; overflow: hidden; padding: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--sig) 40%, transparent), 0 8px 34px -8px color-mix(in srgb, var(--sig) 70%, transparent); animation: sig-pulse 3.2s ease-in-out infinite; }
.hero-wrap.signal.sell { --sig: var(--bad); --sig-hi: #ffc4be; }
.hero-frame { position: relative; padding: 4px; border-radius: 14px; overflow: hidden; }
.hero-frame::before { content: ""; position: absolute; inset: -60%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--sig) 70%, var(--sig-hi) 76%, var(--sig) 82%, transparent 96%);
  animation: sig-spin 4.5s linear infinite; }
.hero-frame::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; background: var(--surface-2); z-index: 0; }
.hero-frame > a { position: relative; z-index: 1; display: block; }
.hero-wrap.signal img { border: 0; }
.hero-ribbon { position: absolute; top: 18px; left: -38px; z-index: 3; width: 140px; transform: rotate(-45deg); text-align: center;
  padding: 4px 0; font: 800 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .14em; color: #06210f;
  background: linear-gradient(90deg, var(--sig), var(--sig-hi), var(--sig)); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-ribbon.sell { color: #2b0805; }
.hero-move { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--sig-hi);
  background: rgba(10, 12, 16, .62); border: 1px solid color-mix(in srgb, var(--sig) 60%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.hero-move small { font-weight: 600; font-size: 11px; opacity: .8; }
@keyframes sig-spin { to { transform: rotate(1turn); } }
@keyframes sig-pulse { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--sig) 55%, transparent), 0 10px 44px -6px color-mix(in srgb, var(--sig) 90%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hero-frame::before, .hero-wrap.signal { animation: none; } }

.signal-panel { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; margin: 4px 0 14px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); color: var(--text);
  background: linear-gradient(100deg, color-mix(in srgb, var(--good) 16%, var(--surface)) 0%, var(--surface) 70%); }
.signal-panel.sell { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--bad) 16%, var(--surface)) 0%, var(--surface) 70%); }
.signal-panel:hover { text-decoration: none; border-color: var(--accent); }
.sp-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--good-bg); color: var(--good); }
.sp-icon.sell { background: var(--bad-bg); color: var(--bad); }
.sp-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-head b { font-size: 16px; }
.sp-why { display: flex; gap: 4px; flex-wrap: wrap; }
.sp-move { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sp-move b { white-space: nowrap; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sp-move span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.sp-spark { display: flex; flex-direction: column; align-items: center; gap: 2px; }

@media (max-width: 760px) {
  .hero-wrap { float: none; width: 64%; margin: 0 auto 14px; }
  .signal-panel { grid-template-columns: auto 1fr auto; }
  .sp-spark { display: none; }
  .sp-move b { font-size: 22px; }
}
@media (max-width: 760px) {
  .signal-panel { grid-template-columns: 44px 1fr; align-items: start; }
  .sp-move { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; text-align: left; justify-content: flex-start;
    padding-top: 8px; border-top: 1px solid var(--line); }
  .sp-move span br { display: none; }
}

/* ---- Home: pick of the day ---- */
.spot { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--good) 14%, transparent), transparent 60%), var(--surface); }
.spot .hero-wrap { float: none; width: 100%; margin: 0; }
.spot-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good); }
.spark-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: dot-ping 1.8s ease-out infinite; }
@keyframes dot-ping { to { box-shadow: 0 0 0 10px transparent; } }
.spot-name { display: block; margin-top: 6px; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.spot-move { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.spot-move b { font-size: 34px; line-height: 1; white-space: nowrap; }
.spot-move span { font-size: 13px; color: var(--muted); }
.spot-spark { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.spot-spark svg { width: 100%; max-width: 320px; height: auto; }
.spot .reasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spot-cta { margin-top: 14px; display: inline-block; }
/* Phones: stacked like desktop, but trimmed so it fits well under a screen. */
@media (max-width: 640px) {
  .spot { grid-template-columns: 1fr; gap: 10px; padding: 14px; text-align: center; }
  .spot .hero-wrap { width: 40%; max-width: 160px; margin: 0 auto; }
  .spot .hero-wrap img { max-height: 210px; }
  .spot .hero-ribbon { top: 10px; left: -44px; font-size: 10px; padding: 2px 0; }
  .spot .hero-move { display: none; }
  .spot-kicker { justify-content: center; font-size: 11px; }
  .spot-name { font-size: 18px; margin-top: 4px; }
  .spot-move { justify-content: center; margin: 8px 0 0; gap: 10px; text-align: left; }
  .spot-move b { font-size: 26px; }
  .spot-move span { font-size: 12px; line-height: 1.35; }
  .spot-move .spot-why, .spot-spark { display: none; }
  .spot .reasons { justify-content: center; margin-top: 8px; }
  .spot .reasons .reason-chip:nth-child(n+3) { display: none; }
  .spot-cta { margin-top: 10px; }
}

/* ---- Home: market ticker ---- */
.ticker { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; margin: 0 0 22px; }
.ticker:empty { display: none; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); }
.ticker-view { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick-scroll calc(var(--n) * 6.5s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker:active .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; white-space: nowrap; color: var(--text); font-size: 13px; border-right: 1px solid var(--line); }
.tick:hover { text-decoration: none; background: var(--surface-2); }
.tick b { font-variant-numeric: tabular-nums; }
.tick.up b { color: var(--good); }
.tick.down b { color: var(--bad); }
.tick span { color: var(--muted); font-size: 12px; }
@keyframes tick-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-view { overflow-x: auto; }
  .spark-dot { animation: none; }
}

/* ---- Home: flip badges and profit ring ---- */
.flip-img { position: relative; }
.flip-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; padding: 2px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; background: var(--good); color: var(--surface); box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--good) 70%, transparent); }
.flip-foot { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ring { --c: var(--good); position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 10px; font-variant-numeric: tabular-nums; }
.ring.mid { --c: var(--accent); }
.ring.lo { --c: var(--bad); }

/* ---- Signal feature cards: glow frame + mini ribbon ---- */
.feature-img.glow { position: relative; border-radius: 10px; overflow: hidden; padding: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--good) 45%, transparent), 0 6px 22px -8px color-mix(in srgb, var(--good) 75%, transparent); }
.feature-img.glow.sell { box-shadow: 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent), 0 6px 22px -8px color-mix(in srgb, var(--bad) 75%, transparent); }
.feature-img.glow img { width: 90px; height: 128px; }
.mini-ribbon { position: absolute; top: 10px; left: -24px; width: 90px; transform: rotate(-45deg); text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 0; background: var(--good); color: var(--surface); }
.mini-ribbon.sell { background: var(--bad); }

/* ---- Home: tagline at the top ---- */
.tagline { margin: 6px 0 16px; }
.tagline h1 { margin: 0; font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; }
.tl-grad { background: linear-gradient(90deg, var(--logo-blue), var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
@media (max-width: 640px) {
  .tagline { margin: 2px 0 12px; }
  .tagline h1 { font-size: 23px; }
  .tagline p { font-size: 13px; }
}
@media (max-width: 640px) { .ticker-label { padding: 0 9px; font-size: 10px; white-space: nowrap; } }

/* ---- Pick of the day v2: story copy, facts and motion ---- */
.spot-hook { margin: 10px 0 0; font-size: 16px; line-height: 1.4; font-style: italic; color: var(--text); max-width: 46ch; }
.spot-move b span { font-size: inherit; color: inherit; line-height: inherit; }
.spot-facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.spot-facts span { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.spot-facts small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.spot-facts b { font-size: 15px; font-variant-numeric: tabular-nums; }
.spot-photo { position: relative; }
.spot-photo .sheen { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: 14px; overflow: hidden; }
.spot-photo .sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 5.5s ease-in-out 1.2s infinite; }
@keyframes sheen { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.spot-spark path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s ease-out .5s forwards; }
.spot-spark circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .4s ease-out 2.2s forwards, ping-dot 2s ease-out 2.6s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes ping-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.8); } }
.spot-body > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.spot-body > :nth-child(2) { animation-delay: .08s; } .spot-body > :nth-child(3) { animation-delay: .14s; }
.spot-body > :nth-child(4) { animation-delay: .22s; } .spot-body > :nth-child(5) { animation-delay: .3s; }
.spot-body > :nth-child(6) { animation-delay: .38s; } .spot-body > :nth-child(7) { animation-delay: .46s; }
.spot-body > :nth-child(8) { animation-delay: .54s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spot-move b { text-shadow: 0 0 24px color-mix(in srgb, var(--good) 45%, transparent); }
.cta-arrow { display: inline-block; transition: transform .2s; }
.spot-cta:hover .cta-arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .spot-hook { font-size: 14px; margin: 6px auto 0; }
  .spot-facts { justify-content: center; margin: 8px 0 0; gap: 6px; }
  .spot-facts span { padding: 4px 9px; }
  .spot-facts b { font-size: 13px; }
  .spot-facts span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-photo .sheen::before, .spot-body > *, .spot-spark path, .spot-spark circle { animation: none; }
  .spot-spark path { stroke-dashoffset: 0; } .spot-spark circle { opacity: 1; }
}
/* "3-Month Projection" label beside the big number */
.spot-move .spot-proj { display: flex; flex-direction: column; gap: 3px; }
.spot-proj em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(90deg, var(--good), var(--logo-blue), var(--good)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: proj-shine 4s linear infinite; }
.spot-proj .spot-why { font-size: 12px; color: var(--muted); }
@keyframes proj-shine { to { background-position: -200% 0; } }
@media (max-width: 640px) { .spot-proj em { font-size: 11px; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) { .spot-proj em { animation: none; } }

/* ---- Card page: "Should you grade it?" ---- */
.grade-card h2 { margin-bottom: 12px; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--v);
  --v: var(--bad); background: linear-gradient(120deg, color-mix(in srgb, var(--v) 16%, transparent), transparent 70%); }
.verdict.go { --v: var(--good); }
.verdict.risky { --v: #e0a526; }
.verdict-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 800;
  color: var(--v); background: color-mix(in srgb, var(--v) 18%, transparent); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--v) 60%, transparent); }
.verdict-head { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--v); }
.verdict p { margin: 2px 0 0; color: var(--text); font-size: 14px; line-height: 1.45; }
.g-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.g-metric { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.g-metric small, .odds-row span, .g-metric span { font-size: 12px; color: var(--text-2); }
.g-metric small { text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.g-metric b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ring-metric { flex-direction: row; align-items: center; gap: 12px; }
.ring-metric .ring { width: 56px; height: 56px; }
.ring-metric .ring::before { inset: 6px; }
.ring-metric .ring b { font-size: 16px; }
.odds-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.odds-bar { display: flex; gap: 2px; height: 16px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.odds-bar span { flex-basis: 0; min-width: 3px; transform-origin: left; animation: grow-x .8s cubic-bezier(.2,.8,.2,1) both; }
.odds-bar span:nth-child(2) { animation-delay: .1s; } .odds-bar span:nth-child(3) { animation-delay: .2s; } .odds-bar span:nth-child(4) { animation-delay: .3s; }
.odds-bar .win, .odds-row i.win { background: var(--good); }
.odds-bar .loss, .odds-row i.loss { background: color-mix(in srgb, var(--bad) 75%, var(--surface-2)); }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.odds-rows { margin-top: 10px; display: grid; gap: 2px; }
.odds-row { display: grid; grid-template-columns: 10px 1fr auto auto minmax(76px, auto); gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.odds-row:last-child { border-bottom: 0; }
.odds-row i { width: 10px; height: 10px; border-radius: 3px; }
.odds-row b { font-weight: 600; }
.g-pl { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px !important; }
.g-pl.pos { color: var(--good); } .g-pl.neg { color: var(--bad); }
.g-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.cost-pill { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.cost-pill.total { color: var(--text); font-weight: 700; }
.plus { color: var(--muted); }
.conf-meter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; }
.conf-meter .meter { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.conf-meter .meter span { display: block; height: 100%; background: var(--accent); }
.conf-meter.High .meter span { background: var(--good); } .conf-meter.Low .meter span { background: var(--bad); }
@media (max-width: 640px) {
  .verdict { padding: 12px; gap: 12px; align-items: flex-start; }
  .verdict-icon { width: 38px; height: 38px; font-size: 18px; }
  .verdict-head { font-size: 19px; }
  .g-metrics { grid-template-columns: 1fr 1fr; }
  .ring-metric { grid-column: 1 / -1; }
  .g-metric b { font-size: 22px; }
  .odds-row { grid-template-columns: 10px 1fr auto auto minmax(58px, auto); gap: 8px; }
  .odds-row b { font-size: 13.5px; }
  .conf-meter { margin-left: 0; }
}

/* ---- Card page: price history ---- */
.ph-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph-head h2 { margin: 0; }
.ph-range button { padding: 4px 10px; font-size: 12px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.ph-stat { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ph-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex: none; }
.ph-stat small { display: block; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.ph-stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.ph-stat { min-width: 0; }
.ph-stat span.pos, .ph-stat span.neg { font-size: 12px; }
.ph-card .chart { height: 300px; }
@media (max-width: 640px) { .ph-stat { padding: 6px 10px; } .ph-stat b { font-size: 15px; } .ph-card .chart { height: 240px; } }
@media (prefers-reduced-motion: reduce) { .odds-bar span { animation: none; } }

/* Card photo badge: never wider than the photo */
.hero-move { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.ring-metric > div > small, .ring-metric > div > span { display: block; }
.ring-metric small { margin-bottom: 2px; }
@media (max-width: 640px) {
  .ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ph-stat { padding: 6px 8px; gap: 6px; min-width: 0; }
  .ph-stat b { display: block; font-size: 14px; }
  .ph-dot { width: 8px; height: 8px; }
}

/* ---- Grading ROI v2 ---- */
.roi-hero { margin: 4px 0 14px; }
.roi-hero h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.roi-hero p { margin: 6px 0 0; color: var(--text-2); max-width: 64ch; }
.roi-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.roi-summary:empty { display: none; }
.roi-summary div { display: flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.roi-summary b { font-size: 17px; font-variant-numeric: tabular-nums; }
.roi-summary span { font-size: 12px; color: var(--text-2); }
.roi-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.ctl-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ctl-label { flex: none; width: 72px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sweet { display: flex; flex-wrap: wrap; gap: 6px; }
.sweet button { display: inline-flex; gap: 6px; align-items: center; border-radius: 18px; padding: 6px 12px; font-size: 13px; color: var(--text-2); }
.sweet button span { font-weight: 800; color: var(--accent); }
.sweet button:hover { border-color: var(--accent); color: var(--text); }
.sweet button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--text); font-weight: 600; }
.roi-card { padding-top: 12px; }
.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-bar .m-sort { margin: 0; flex: 1; }
#roi-out[data-view="list"] .view-bar .m-sort { display: none; }
#roi-out.loading { opacity: .5; transition: opacity .2s; }

.roi-tiles { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.rtile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); transition: transform .15s, border-color .15s, box-shadow .15s; }
.rtile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.rtile.go { background: linear-gradient(160deg, color-mix(in srgb, var(--good) 10%, transparent), transparent 45%), var(--surface); }
.r-rank { position: absolute; top: 10px; left: 12px; font-size: 11px; font-weight: 800; color: var(--muted); }
.r-verdict { position: absolute; top: 10px; right: 12px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: var(--bad); background: var(--bad-bg); }
.r-verdict.go { color: var(--good); background: var(--good-bg); }
.r-verdict.risky { color: #e0a526; background: color-mix(in srgb, #e0a526 16%, transparent); }
.r-verdict.inline { position: static; display: inline-block; margin: 4px 6px 0 0; }
.r-top { display: flex; gap: 12px; margin-top: 14px; }
.r-img { width: 76px; flex: none; }
.r-img img { width: 76px; height: 106px; object-fit: contain; border-radius: 6px; background: var(--surface-2); display: block; }
.r-img:empty { height: 106px; border-radius: 6px; background: var(--surface-2); }
.rtile.go .r-img img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--good) 45%, transparent), 0 6px 18px -8px color-mix(in srgb, var(--good) 80%, transparent); }
.r-id { min-width: 0; flex: 1; }
.r-name { font-weight: 700; line-height: 1.25; }
.r-set { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.r-money { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.r-money .ring { width: 42px; height: 42px; }
.r-money .ring::before { inset: 5px; }
.r-money .ring b { font-size: 12px; }
.r-money > div { display: flex; flex-direction: column; min-width: 0; }
.r-money > div b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.r-money > div span { font-size: 11.5px; color: var(--text-2); }
.odds-bar.mini { height: 8px; border-radius: 4px; }
.r-grades { display: grid; gap: 4px; }
.r-grades div { display: grid; grid-template-columns: 8px 1fr auto 70px; gap: 8px; align-items: center; font-size: 13px; }
.r-grades i { width: 8px; height: 8px; border-radius: 2px; }
.r-grades i.win { background: var(--good); }
.r-grades i.loss { background: color-mix(in srgb, var(--bad) 75%, var(--surface-2)); }
.r-grades em { font-style: normal; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 12px; }
.r-grades b { text-align: right; font-variant-numeric: tabular-nums; }
.r-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.r-foot b { color: var(--text); }
.r-foot .arrow { color: var(--muted); }
.r-diff { margin-left: auto; }
.rtile .tile-chips { margin-top: -4px; }

.roi-list td { vertical-align: middle; }
.roi-list .ring-cell { display: flex; justify-content: flex-end; }
.roi-list .conf-meter { margin: 0; }
@media (max-width: 640px) {
  .roi-hero h1 { font-size: 25px; }
  .roi-hero p { font-size: 14px; }
  .roi-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .roi-summary div { flex-direction: column; gap: 0; padding: 6px 8px; }
  .roi-summary b { font-size: 15px; }
  .roi-summary span { font-size: 10.5px; line-height: 1.2; }
  .ctl-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .ctl-label { width: auto; }
  .ctl-row .price-tabs, .sweet { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .ctl-row .price-tabs::-webkit-scrollbar, .sweet::-webkit-scrollbar { display: none; }
  .sweet button, .ctl-row .price-tabs button { flex: none; }
  .roi-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rtile { transition: none; } .rtile:hover { transform: none; } }
.r-foot { flex-wrap: nowrap; white-space: nowrap; }
.r-set .r-diff { margin-left: 4px; }
.r-set .r-diff .chip { font-size: 10px; padding: 1px 6px; }
.r-foot b.pos { color: var(--good); }
.r-grades div { grid-template-columns: 8px 1fr 34px 62px 70px; }
.r-grades em { text-align: right; }
.r-grades .r-sells { color: var(--text); }
.r-grades .r-ghead { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.r-grades .r-ghead em, .r-grades .r-ghead b { font-size: 10px; color: var(--muted); font-weight: 600; }

/* ---- Market pulse ---- */
#mk.loading { opacity: .5; transition: opacity .2s; }
.mv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-col { margin: 0; }
.mv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mv-head h2 { margin: 0; }
.mv-head span { font-size: 12px; color: var(--text-2); }
.mv-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 14px !important; font-weight: 800; }
.mv-head.up .mv-icon { color: var(--good) !important; background: var(--good-bg); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--good) 60%, transparent); }
.mv-head.down .mv-icon { color: var(--bad) !important; background: var(--bad-bg); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--bad) 60%, transparent); }
.mv-list { display: grid; gap: 6px; }
.mv-tile { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); transition: border-color .15s, transform .15s; }
.mv-tile:hover { text-decoration: none; border-color: var(--accent); transform: translateX(2px); }
.mv-img img { width: 44px; height: 62px; object-fit: contain; border-radius: 4px; display: block; background: var(--surface); }
.mv-img:empty { height: 62px; border-radius: 4px; background: var(--surface); }
.mv-body { min-width: 0; }
.mv-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-set { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-path { display: flex; gap: 5px; align-items: baseline; margin-top: 3px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mv-path b { color: var(--text); }
.mv-path .arrow { color: var(--muted); }
.mv-chg { padding: 4px 9px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mv-chg.up { color: var(--good); background: var(--good-bg); }
.mv-chg.down { color: var(--bad); background: var(--bad-bg); }

.dv { display: grid; gap: 4px; }
.dv-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 58px; gap: 10px; align-items: center; padding: 4px 0; }
.dv-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-name span { margin-left: 6px; font-size: 11px; color: var(--muted); }
.dv-track { display: grid; grid-template-columns: 1fr 1fr; height: 10px; }
.dv-half { position: relative; }
.dv-half.neg { border-right: 1px solid var(--text-2); }
.dv-half i { position: absolute; top: 0; bottom: 0; border-radius: 3px; animation: grow-x .7s cubic-bezier(.2,.8,.2,1) both; }
.dv-half.pos i { left: 2px; background: var(--good); transform-origin: left; }
.dv-half.neg i { right: 2px; background: var(--bad); transform-origin: right; }
.dv-row b { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }

.mt-list { display: grid; gap: 4px; }
.mt-row { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 8px; color: var(--text); }
.mt-row:hover { text-decoration: none; background: var(--surface-2); }
.mt-rank { font-weight: 800; color: var(--muted); text-align: right; font-size: 13px; }
.mt-row .thumb { width: 40px; height: 56px; }
.mt-id { min-width: 0; }
.mt-bar { height: 6px; margin-top: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.mt-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: grow-x .8s cubic-bezier(.2,.8,.2,1) both; }
.mt-row > b { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.mt-row > b span { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-2); }
@media (max-width: 760px) {
  .mv-cols { grid-template-columns: 1fr; }
  .dv-row { grid-template-columns: minmax(0, 1fr) 90px 52px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .dv-half i, .mt-bar i { animation: none; } .mv-tile { transition: none; } }
.roi-summary b.name { font-size: 15px; } @media (max-width: 640px) { .roi-summary b.name { font-size: 13px; line-height: 1.25; } }

/* ---- Market mood ---- */
#mk-mood:empty { display: none; }
.mood { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: center; margin: 0 0 16px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--logo-blue) 12%, transparent), transparent 60%), var(--surface); }
.mood-gauge { position: relative; }
.mood-gauge svg { width: 100%; display: block; }
.needle { transform-origin: 100px 100px; transform: rotate(var(--a)); animation: needle 1.4s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes needle { from { transform: rotate(-90deg); } to { transform: rotate(var(--a)); } }
.mood-word { text-align: center; margin-top: -4px; font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #e0a526; }
.mood-word.pos { color: var(--good); } .mood-word.neg { color: var(--bad); }
.mood-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mood-head { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; }
.mood-head span:not(.pos):not(.neg) { color: #e0a526; }
.mood-body p { margin: 6px 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.mood-body p b { color: var(--text); }
.mood-body p b.pos { color: var(--good); } .mood-body p b.neg { color: var(--bad); }
.spread { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 92px; align-items: end; }
.sp-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.sp-bar { border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow-y .9s cubic-bezier(.2,.8,.2,1) both; }
.sp-col:nth-child(2) .sp-bar { animation-delay: .05s; } .sp-col:nth-child(3) .sp-bar { animation-delay: .1s; } .sp-col:nth-child(4) .sp-bar { animation-delay: .15s; }
.sp-col:nth-child(5) .sp-bar { animation-delay: .2s; } .sp-col:nth-child(6) .sp-bar { animation-delay: .25s; } .sp-col:nth-child(7) .sp-bar { animation-delay: .3s; }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sp-col span { font-size: 10px; color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-bar.neg3 { background: var(--bad); } .sp-bar.neg2 { background: color-mix(in srgb, var(--bad) 72%, var(--surface-2)); } .sp-bar.neg1 { background: color-mix(in srgb, var(--bad) 45%, var(--surface-2)); }
.sp-bar.flat { background: var(--muted); opacity: .6; }
.sp-bar.pos1 { background: color-mix(in srgb, var(--good) 45%, var(--surface-2)); } .sp-bar.pos2 { background: color-mix(in srgb, var(--good) 72%, var(--surface-2)); } .sp-bar.pos3 { background: var(--good); }
@media (max-width: 640px) {
  .mood { grid-template-columns: 1fr; gap: 8px; padding: 14px; text-align: center; }
  .mood-gauge { width: 200px; margin: 0 auto; }
  .mood-head { font-size: 20px; }
  .mood-body p { font-size: 13px; }
  .spread { height: 72px; }
  .sp-col span { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) { .needle, .sp-bar { animation: none; } }

/* ---- Today's pick: right-hand panel on wide screens ---- */
.spot { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); }
.spot-side { display: grid; gap: 14px; align-self: stretch; align-content: center; padding-left: 22px; border-left: 1px solid var(--line); }
.side-block { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.side-head span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-head b { font-size: 15px; font-variant-numeric: tabular-nums; }
.side-head b i { font-style: normal; color: var(--muted); }
.side-spark svg { width: 100%; height: auto; display: block; }
.side-spark path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s ease-out .5s forwards; }
.side-spark circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .4s ease-out 2.2s forwards, ping-dot 2s ease-out 2.6s infinite; }
.range-bar { position: relative; height: 14px; margin: 10px 0 6px; border-radius: 7px; background: var(--surface); }
.rb-band { position: absolute; top: 0; bottom: 0; border-radius: 7px; transform-origin: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--good) 35%, transparent), var(--good)); animation: grow-x 1s cubic-bezier(.2,.8,.2,1) .4s both; }
.rb-zero { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-2); }
.rb-mark { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--surface); border: 3px solid var(--good);
  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--good) 80%, transparent); }
.rb-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-labels small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-2); }
.rb-labels span:last-child { text-align: right; }
/* The big chart lives in the side panel now; the small one under the facts is gone. */
.spot-body .spot-spark { display: none; }
@media (max-width: 1100px) {
  .spot { grid-template-columns: 220px minmax(0, 1fr); }
  .spot-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) { .spot-side { display: none; } .spot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .side-spark path, .side-spark circle, .rb-band { animation: none; } .side-spark path { stroke-dashoffset: 0; } .side-spark circle { opacity: 1; } }

/* ---- Card page: recent sales ---- */
.rs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.rs-head h2 { margin: 0; }
.rs-tiles { display: flex; gap: 8px; margin-bottom: 12px; }
.rs-tiles .rs-tile { flex: 1; }
.rs-tile { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.rs-tile small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.rs-tile b { font-size: 19px; font-variant-numeric: tabular-nums; }
.rs-tile span { font-size: 11.5px; color: var(--text-2); }
.rs-tile em { font-style: normal; font-weight: 700; }
.rs-tile em.pos { color: var(--good); } .rs-tile em.neg { color: var(--bad); }
.rs-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rs-filter button { border-radius: 16px; padding: 4px 11px; font-size: 12px; color: var(--text-2); }
.rs-filter button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--text); font-weight: 600; }
.rs-list { display: grid; }
.rs-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line);
  animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.rs-row:nth-child(2) { animation-delay: .04s; } .rs-row:nth-child(3) { animation-delay: .08s; } .rs-row:nth-child(4) { animation-delay: .12s; }
.rs-row:nth-child(5) { animation-delay: .16s; } .rs-row:nth-child(n+6) { animation-delay: .2s; }
.rs-row:last-child { border-bottom: 0; }
.rs-grade { justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.rs-grade.g-psa10 { color: var(--series-3); background: color-mix(in srgb, var(--series-3) 16%, transparent); }
.rs-grade.g-g9 { color: var(--series-2); background: color-mix(in srgb, var(--series-2) 16%, transparent); }
.rs-grade.g-raw { color: var(--series-1); background: color-mix(in srgb, var(--series-1) 16%, transparent); }
.rs-mid { display: flex; flex-direction: column; min-width: 0; }
.rs-mid b { font-size: 16px; font-variant-numeric: tabular-nums; }
.rs-mid span { font-size: 11.5px; color: var(--text-2); }
.rs-mid i { font-style: normal; font-weight: 600; }
.rs-mid i.pos { color: var(--good); } .rs-mid i.neg { color: var(--bad); }
.rs-chg { font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--surface-2); }
.rs-chg.up { color: var(--good); background: var(--good-bg); }
.rs-chg.down { color: var(--bad); background: var(--bad-bg); }
.rs-note { margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .rs-row { animation: none; } }
body:not([data-owner="1"]) .owner-only { display: none !important; }

/* ---- Card page: Shop on eBay ---- */
.shop { margin: 16px 0; padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--logo-blue) 14%, transparent), transparent 55%), var(--surface); }
.shop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.shop-head h2 { margin: 0; }
.shop-head span { font-size: 12px; color: var(--text-2); }
.shop-logo { flex: none; display: flex; align-items: baseline; padding: 6px 10px; border-radius: 10px; background: #fff; font: 800 20px/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.06em; }
.shop-logo span:nth-child(1) { color: #e53238; } .shop-logo span:nth-child(2) { color: #0064d2; }
.shop-logo span:nth-child(3) { color: #f5af02; } .shop-logo span:nth-child(4) { color: #86b817; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-tile { --c: var(--series-1); display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); transition: transform .15s, box-shadow .15s, border-color .15s; }
.shop-tile.g9 { --c: var(--series-2); } .shop-tile.psa10 { --c: var(--series-3); }
.shop-tile:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--c) 80%, transparent); }
.shop-top { display: flex; align-items: center; gap: 10px; }
.shop-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); }
.shop-top b { display: block; font-size: 16px; }
.shop-top small { font-size: 11px; color: var(--text-2); }
.shop-guide { margin-left: auto; text-align: right; }
.shop-guide small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.shop-guide b { font-size: 15px; font-variant-numeric: tabular-nums; }
.shop-actions { display: flex; gap: 6px; }
.shop-buy { flex: 1; text-align: center; padding: 9px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--c) 90%, transparent); }
.shop-buy:hover { text-decoration: none; filter: brightness(1.1); }
.shop-sold { padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }
.shop-sold:hover { text-decoration: none; color: var(--text); border-color: var(--c); }
@media (max-width: 640px) {
  .shop { padding: 12px; }
  .shop-grid { grid-template-columns: 1fr; gap: 8px; }
  .shop-tile { gap: 8px; padding: 10px 12px; }
  .shop-icon { width: 30px; height: 30px; font-size: 14px; }
  .shop-top b { display: inline; font-size: 15px; }
  .shop-top small { margin-left: 6px; }
  .shop-guide { display: flex; align-items: baseline; gap: 5px; }
  .shop-guide small { display: inline; }
  .shop-buy { padding: 8px 12px; font-size: 13.5px; }
  .shop-sold { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .shop-tile { transition: none; } .shop-tile:hover { transform: none; } }

/* ---- Search suggestions ---- */
.sg-wrap { position: relative; flex: 1; min-width: 220px; display: flex; }
.sg-wrap > input { flex: 1; width: 100%; min-width: 0 !important; }
.sg-box { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); max-height: min(70vh, 520px); overflow-y: auto; animation: sg-in .14s ease-out; }
@keyframes sg-in { from { opacity: 0; transform: translateY(-4px); } }
.sg-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; color: var(--text); }
.sg-item:hover, .sg-item.on { background: var(--surface-2); text-decoration: none; }
.sg-item.on { box-shadow: inset 0 0 0 1px var(--accent); }
.sg-item .thumb { width: 34px; height: 48px; }
.sg-text { min-width: 0; }
.sg-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-set { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item mark { background: none; color: var(--accent); font-weight: 700; }
.sg-rc { font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; color: #e0a526; background: color-mix(in srgb, #e0a526 16%, transparent); vertical-align: 1px; }
.sg-sport { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; color: var(--text-2); background: var(--surface-2); }
.sg-sport.basketball { color: #f08a4b; background: color-mix(in srgb, #f08a4b 15%, transparent); }
.sg-sport.football { color: #6fd08f; background: color-mix(in srgb, #6fd08f 14%, transparent); }
.sg-sport.baseball { color: #7fb0ff; background: color-mix(in srgb, #7fb0ff 14%, transparent); }
.sg-all { display: block; width: 100%; margin-top: 4px; padding: 9px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px;
  background: transparent; color: var(--accent); font-weight: 600; text-align: center; cursor: pointer; }
.sg-all:hover { background: var(--surface-2); }
.sg-empty { padding: 12px; color: var(--text-2); font-size: 13px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .sg-box { animation: none; } }
/* The suggestion list spans the whole search bar (input + button), not just the input. */
form:has(> .sg-wrap) { position: relative; }
.sg-wrap { position: static; }

/* ---- Home: quick search between the ticker and Today's pick ---- */
.qsearch { position: relative; display: flex; align-items: center; gap: 10px; max-width: 560px; margin: -8px auto 18px; padding: 3px 6px 3px 16px;
  border-radius: 999px; background: linear-gradient(var(--surface), var(--surface)) padding-box,
  linear-gradient(90deg, var(--logo-blue), var(--good), var(--logo-blue)) border-box; border: 1.5px solid transparent;
  background-size: auto, 200% 100%; animation: qs-flow 6s linear infinite; box-shadow: 0 8px 30px -16px color-mix(in srgb, var(--logo-blue) 70%, transparent); }
@keyframes qs-flow { to { background-position: 0 0, -200% 0; } }
.qsearch:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--logo-blue) 22%, transparent), 0 10px 34px -12px color-mix(in srgb, var(--logo-blue) 80%, transparent); }
.qs-icon { flex: none; display: grid; color: var(--logo-blue); }
.qsearch .sg-wrap { min-width: 0; }
.qsearch input { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; padding: 10px 0; font-size: 15px; color: var(--text); }
.qsearch input::placeholder { color: var(--muted); transition: opacity .3s; }
.qs-key { flex: none; font: 600 11px/1 ui-monospace, Menlo, monospace; padding: 4px 7px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); background: var(--surface-2); }
.qsearch .sg-box { top: calc(100% + 8px); }
@media (hover: none) { .qs-key { display: none; } }
@media (max-width: 640px) { .qsearch { margin: -6px 0 14px; } .qsearch input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .qsearch { animation: none; } }
a.rs-row { color: var(--text); }
a.rs-row:hover { text-decoration: none; background: var(--surface-2); border-radius: 8px; }
.rs-mid i.offer { color: #e0a526; }
.rs-mid i.odd { color: var(--muted); text-decoration: underline dotted; }
.ph-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.ph-key .k-line { width: 16px; height: 3px; border-radius: 2px; background: var(--text-2); }
.ph-key .k-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); margin-left: 8px; }
.odds-row .o-sells { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.odds-row > span:nth-of-type(1) { text-align: right; font-variant-numeric: tabular-nums; }
.odds-head-row { padding: 2px 4px 4px !important; }
.odds-head-row b, .odds-head-row span { font-size: 10px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted) !important; }
.o-basis { display: block; font-size: 10px; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* "Projected" above the photo badge's number, in the same font and color */
.hero-move.has-label { text-align: center; border-radius: 14px; padding: 5px 12px 6px; line-height: 1.15; }
.hm-label { display: block; font: inherit; color: inherit; }

/* ---- Signals: 3-month projections list ---- */
.proj-head { margin: 26px 0 10px; }
.proj-head .sec-title { margin: 0; }
.proj-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); max-width: 70ch; }
.sig-rows .row-main { grid-template-columns: 26px 44px minmax(0, 1fr) 116px; gap: 12px; padding: 12px 14px 6px; align-items: center; }
.row-rank { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.row-set { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-px { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.row-px b { color: var(--text); }
.row-px b.pos { color: var(--good); } .row-px b.neg { color: var(--bad); }
.row-px .arrow { color: var(--muted); }
.row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); margin-top: 3px; }
.row-meta .conv { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); }
.row-meta .conv.High { color: var(--good); background: var(--good-bg); }
.row-meta .conv.Medium { color: #e0a526; background: color-mix(in srgb, #e0a526 15%, transparent); }
.row-ret { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.row-ret b { font-size: 24px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-ret.up b { color: var(--good); } .row-ret.down b { color: var(--bad); }
.row-ret b.flat { font-size: 15px; color: var(--text-2); }
.row-ret small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row-ret small.rng { text-transform: none; letter-spacing: 0; font-size: 10.5px; color: var(--text-2); }
.ret-range { position: relative; width: 100%; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--surface-2); }
.ret-range .band { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--good) 55%, transparent); }
.row-ret.down .ret-range .band { background: color-mix(in srgb, var(--bad) 55%, transparent); }
.ret-range .mid { position: absolute; top: -2px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: var(--text); }
.sig-rows .row-why { padding: 0 14px 10px 96px; }
.sig-rows .row-why summary { font-weight: 600; }
@media (max-width: 640px) {
  .sig-rows .row-main { grid-template-columns: 40px minmax(0, 1fr) 92px; gap: 10px; padding: 12px 12px 6px; }
  .row-rank { display: none; }
  .row-ret b { font-size: 21px; }
  .sig-rows .row-why { padding-left: 62px; }
}
@media (max-width: 640px) {
  .row-px { flex-wrap: nowrap; white-space: nowrap; font-size: 12px; gap: 4px; }
  .row-meta { flex-wrap: nowrap; white-space: nowrap; gap: 6px; font-size: 10.5px; }
  .row-meta .conv { font-size: 9px; padding: 2px 6px; }
  .sig-rows .row-why { padding-bottom: 8px; }
}
@media (max-width: 640px) { .row-px .tl { display: none; } .row-px, .row-meta { overflow: hidden; } }
@media (max-width: 640px) { .sig-rows .row-main { grid-template-columns: 40px minmax(0, 1fr) 82px; gap: 9px; } .row-meta { gap: 5px; } .row-ret b { font-size: 20px; } }
@media (max-width: 640px) { .row-meta .hr-w { display: none; } }

/* ---- card scanner ------------------------------------------------------------------------ */
.scan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; width: 38px; height: 38px; padding: 0;
  border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--logo-blue) 14%, var(--surface)); color: var(--text); cursor: pointer; }
.scan-btn:hover { background: color-mix(in srgb, var(--logo-blue) 26%, var(--surface)); }
.scan-btn.with-label { width: auto; padding: 0 12px; }
.qsearch .scan-btn { width: 34px; height: 34px; border-radius: 999px; border: 0; }
body.scan-open { overflow: hidden; }
.scan-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); animation: scanFade .2s ease-out; }
@media (min-width: 700px) { .scan-sheet { align-items: center; } }
.scan-panel { position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; animation: scanUp .25s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .scan-panel { border-radius: 18px; padding: 22px; } }
.scan-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-2); font-size: 26px; cursor: pointer; }
.scan-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.scan-photo { position: relative; flex: none; width: 96px; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.scan-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-beam { position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--logo-blue) 55%, transparent), transparent); animation: scanBeam 1.4s ease-in-out infinite; }
.scan-photo.done .scan-beam { display: none; }
.scan-info { min-width: 0; padding-right: 28px; }
.scan-info h2 { margin: 0 0 4px; font-size: 18px; }
.scan-status { margin: 0 0 4px; color: var(--text-2); font-size: 14px; }
.scan-read b { display: block; font-size: 15px; line-height: 1.35; }
.scan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.scan-results { display: grid; gap: 8px; }
.scan-results > p { margin: 2px 0 2px; }
.scan-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.scan-hit:hover { border-color: color-mix(in srgb, var(--logo-blue) 60%, var(--line)); }
.scan-hit.best { border-color: color-mix(in srgb, var(--logo-blue) 70%, var(--line)); background: color-mix(in srgb, var(--logo-blue) 9%, var(--surface)); }
.scan-hit img, .scan-hit .thumb { width: 44px; height: 62px; object-fit: cover; border-radius: 6px; flex: none; }
.scan-hit-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.scan-hit-text b { font-size: 14px; overflow-wrap: anywhere; }
.scan-best { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--logo-blue); }
.scan-go { color: var(--text-2); font-size: 22px; }
.scan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.scan-again { display: inline-flex; align-items: center; gap: 8px; }
@keyframes scanBeam { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes scanUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scanFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scan-beam, .scan-panel, .scan-sheet { animation: none; } }

/* ---- share button + toast ----------------------------------------------------------------- */
.share-btn { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 14px; animation: scanUp .2s ease-out; }

/* ---- cheaper alternatives ----------------------------------------------------------------- */
.alt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (max-width: 720px) { .alt-grid { grid-template-columns: 1fr; } }
.alt-tile { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.alt-tile:hover { border-color: color-mix(in srgb, var(--logo-blue) 60%, var(--line)); transform: translateY(-1px); }
.alt-tile .thumb { width: 52px; height: 73px; object-fit: cover; border-radius: 6px; flex: none; }
.alt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alt-text b { font-size: 14px; overflow-wrap: anywhere; }
.alt-price { font-size: 14px; font-weight: 600; }
.alt-price .pos { font-size: 12px; margin-left: 4px; }
.alt-proj { font-size: 12px; font-weight: 600; }

/* ---- player pulse --------------------------------------------------------------------------- */
.pulse-form { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 12px; }
.pulse-form > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.pulse-form b { font-size: 26px; }
.pulse-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; flex: 0 1 260px; }
.pulse-bars span { flex: 1; min-width: 6px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--logo-blue) 55%, transparent); }
.pulse-bars span.big { background: #34c778; }
.pulse-events { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.pulse-events li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.pulse-impact { border-top: 1px solid var(--line); padding-top: 10px; }
.pulse-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pulse-chip { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.k-ev { color: #34c778; margin-left: 8px; font-size: 11px; }

/* ---- track record ---------------------------------------------------------------------------- */
.tr-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .tr-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-big > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.tr-big b { font-size: 28px; }
.tr-big small { color: var(--text-2); }
.tr-wait p { margin: 0 0 12px; line-height: 1.5; }
.tr-progress { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; margin-bottom: 6px; }
.tr-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--logo-blue), #34c778); border-radius: 999px; }
.tr-bar-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.tr-bar { position: relative; flex: 1; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.tr-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--logo-blue); }
.tr-bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .7; }

/* ---- card page: brand / set line under the name ------------------------------------------- */
.card-sub { margin: -6px 0 14px; color: var(--text-2); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-sub a { color: var(--text); font-weight: 600; }
.card-sub-sport { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--logo-blue) 18%, var(--surface)); color: color-mix(in srgb, var(--logo-blue) 70%, var(--text)); }

/* ---- accounts --------------------------------------------------------------------------------- */
.acct { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.acct .acct-join { white-space: nowrap; }
.acct-login { background: transparent; border-color: var(--line); }
.acct-btn { padding: 0; border: 0; background: none; cursor: pointer; }
.acct-avatar { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800;
  background: linear-gradient(135deg, var(--logo-blue), #34c778); color: #fff; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 50; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.acct-menu[hidden] { display: none; }
.acct-menu b { overflow-wrap: anywhere; margin-bottom: 4px; }
.acct-menu a, .acct-menu button { text-align: left; padding: 8px 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; border-top: 1px solid var(--line); }
.acct-owner { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.verify-bar { padding: 8px 16px; text-align: center; font-size: 14px; background: color-mix(in srgb, var(--logo-blue) 14%, var(--surface)); border-bottom: 1px solid var(--line); }
.verify-bar[hidden] { display: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.big { padding: 12px 20px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.tiny { font-size: 11px; }
.join-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 24px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--logo-blue) 45%, var(--line));
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--logo-blue) 26%, transparent), transparent 60%),
              radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, #34c778 18%, transparent), transparent 60%), var(--surface); }
.join-text { flex: 1 1 340px; min-width: 0; }
.join-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #34c778; }
.join-card h2 { margin: 6px 0 6px; font-size: 26px; }
.join-card p { margin: 0 0 12px; color: var(--text-2); }
.join-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.join-chips span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 5%, transparent); }
.join-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
@media (max-width: 640px) { .join-card { padding: 18px 16px; } .join-card h2 { font-size: 22px; } .join-actions { width: 100%; } .join-actions .primary { width: 100%; } }
.gate { max-width: 760px; margin: 40px auto; }
.auth-panel { max-width: 420px; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 10px; }
.auth-panel h2 { margin: 4px 0 6px; font-size: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-form input { font-size: 16px; padding: 11px 12px; border-radius: 10px; }
.auth-form .pw { position: relative; display: flex; }
.auth-form .pw input { flex: 1; padding-right: 64px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 4px 8px; font-size: 12px; }
.auth-msg:empty { display: none; }
.auth-alt { margin-top: 12px; text-align: center; }
.auth-page { max-width: 520px; margin: 30px auto; }
.acct .acct-join .short { display: none; }

/* ---- pricing / paywall -------------------------------------------------------------------------- */
.pricing { max-width: 760px; margin: 24px auto; text-align: center; }
.pricing h1 { margin-bottom: 6px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 18px; text-align: left; }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.plan.best { border-color: color-mix(in srgb, #34c778 60%, var(--line));
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, #34c778 14%, transparent), transparent 60%), var(--surface); }
.plan h3 { margin: 0; font-size: 16px; color: var(--text-2); }
.plan-price b { font-size: 38px; }
.plan-price span { color: var(--text-2); margin-left: 2px; }
.plan .primary { margin-top: 8px; }
.plan-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: #34c778; color: #06210f; }
.plan-feats { justify-content: center; margin-bottom: 14px; }

/* ---- admin ----------------------------------------------------------------------------------------- */
.adm-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .adm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.adm-tile b { font-size: 26px; }
.adm-tile span { font-weight: 600; }
.adm-tile small { color: var(--text-2); }
.adm-tools { gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.adm-state { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.adm-state.paying { color: #34c778; border-color: color-mix(in srgb, #34c778 50%, var(--line)); }
.adm-state.trial { color: var(--logo-blue); border-color: color-mix(in srgb, var(--logo-blue) 50%, var(--line)); }
.adm-state.canceled { color: var(--text-2); }
.adm-state.admin { color: #f59e0b; border-color: color-mix(in srgb, #f59e0b 50%, var(--line)); }

.auth-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 14px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 0; }
.adm-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .adm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-dl { margin: -4px 0 14px; }

/* ---- home showcase ------------------------------------------------------------------------------- */
.show { margin: 4px auto 18px; max-width: 880px; }
.show-head { text-align: center; margin-bottom: 8px; }
.show-head h2 { margin: 0 0 2px; font-size: 20px; }
.show-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; align-items: stretch; }
.show-track::-webkit-scrollbar { display: none; }
.show-slide { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; padding: 16px 20px; color: var(--text); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--logo-blue) 35%, var(--line)); border-radius: 16px;
  background: radial-gradient(110% 130% at 0% 0%, color-mix(in srgb, var(--logo-blue) 16%, transparent), transparent 60%),
              radial-gradient(110% 130% at 100% 100%, color-mix(in srgb, #34c778 12%, transparent), transparent 60%), var(--surface); }
.show-kicker { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #34c778; margin-bottom: 8px; }
.show-body { display: flex; gap: 20px; align-items: center; }
.show-cards { display: flex; align-items: center; gap: 8px; flex: none; }
.show-cards figure { margin: 0; text-align: center; }
.show-cards figcaption { font-size: 11px; font-weight: 700; color: var(--text-2); margin-top: 4px; }
.show-cards img, .show-noimg { display: block; width: 92px; height: 129px; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.show-noimg { background: var(--surface-2); }
.show-arrow { font-size: 22px; color: #34c778; }
.show-slab { display: flex; flex-direction: column; align-items: center; padding: 5px 6px 6px; border-radius: 10px; background: linear-gradient(180deg, #e9ecf2, #c9cfda); box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.show-slab .slab-label { align-self: stretch; }
.show-slab img { width: 84px; height: 118px; box-shadow: none; border-radius: 5px; margin: 0 auto; }
.show-slab figcaption { color: #2a3140; }
.slab-label { display: flex; justify-content: space-between; align-items: center; gap: 4px; background: #c8102e; color: #fff; border-radius: 3px; padding: 2px 5px; margin-bottom: 4px; font-size: 7px; }
.slab-label b { font-size: 9px; letter-spacing: .08em; }
.show-info { min-width: 0; flex: 1; }
.show-info h3 { margin: 0; font-size: 18px; }
.show-info > p.muted { margin: 2px 0 10px; font-size: 13px; }
.show-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.show-stats div { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.show-stats > div > span { display: block; font-size: 11px; color: var(--text-2); }
.show-stats b { font-size: 16px; white-space: nowrap; }
.show-proj { display: flex; align-items: center; gap: 12px; margin: 2px 0 4px; }
.show-proj b { font-size: 38px; line-height: 1; font-weight: 900; }
.show-proj span { font-size: 13px; }
.show-spark { width: 100%; max-width: 300px; height: 42px; display: block; margin-bottom: 4px; }
.show-info .small { margin: 4px 0; }
.show-frame { flex: 0 0 56%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 26px rgba(0,0,0,.45); background: #111; }
.show-frame-bar { display: flex; align-items: center; gap: 5px; padding: 6px 9px; background: #1d1d1b; border-bottom: 1px solid var(--line); }
.show-frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.show-frame-bar i:nth-child(1) { background: #ef5f57; } .show-frame-bar i:nth-child(2) { background: #f6bd2f; } .show-frame-bar i:nth-child(3) { background: #3fc84a; }
.show-frame-bar span { margin-left: 8px; font-size: 10px; color: var(--text-2); }
.show-frame img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: top; }
.show-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.show-nav > button { width: 30px; height: 30px; border-radius: 50%; padding: 0; font-size: 18px; line-height: 1; }
.show-dots { display: flex; gap: 7px; }
.show-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--text) 25%, transparent); transition: width .2s, background .2s; }
.show-dots button.on { width: 22px; background: var(--logo-blue); }
.show-gauge { flex: none; width: 130px; text-align: center; }
.show-gauge svg { width: 100%; display: block; }
.show-gauge b { display: block; margin-top: -4px; font-size: 18px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.show-mkt h3 span.pos { color: #34c778; } .show-mkt h3 span.neg { color: var(--bad); }
.show-risers { margin-top: 10px; min-width: 0; }
.show-riser-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
@media (max-width: 720px) { .show-riser-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.show-risers small { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--text-2); }
.show-riser { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.show-riser img, .show-riser .show-noimg { width: 30px; height: 42px; border-radius: 4px; object-fit: cover; box-shadow: none; flex: none; }
.show-riser div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.show-riser b, .show-riser span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-riser b { font-size: 13px; }
.show-riser span { font-size: 11px; color: var(--text-2); }
.show-riser em { flex: none; font-style: normal; font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #34c778 16%, transparent); }
@media (max-width: 720px) {
  .show-slide { padding: 12px 12px 14px; }
  .show-body { gap: 12px; align-items: flex-start; }
  .show-cards { flex-direction: column; gap: 4px; }
  .show-cards img, .show-noimg { width: 54px; height: 76px; border-radius: 5px; }
  .show-slab { padding: 3px 4px 4px; border-radius: 7px; }
  .show-slab img { width: 48px; height: 67px; }
  .slab-label { font-size: 5px; padding: 1px 3px; margin-bottom: 3px; }
  .slab-label b { font-size: 6px; }
  .show-cards figcaption { font-size: 9px; margin-top: 2px; }
  .show-cards.one img { width: 64px; height: 90px; }
  .show-gauge { width: 92px; }
  .show-gauge b { font-size: 12px; }
  .show-mkt { flex-wrap: wrap; }
  .show-mkt .show-info { flex: 1 1 180px; }
  .show-arrow { transform: rotate(90deg); font-size: 16px; line-height: 1; }
  .show-cards.one { flex-direction: row; }
  .show-info h3 { font-size: 15px; }
  .show-info > p.muted { font-size: 12px; margin-bottom: 8px; }
  .show-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .show-stats div { padding: 5px 8px; }
  .show-stats b { font-size: 14px; }
  .show-proj b { font-size: 30px; }
  .show-proj span { font-size: 12px; }
  .show-spark { height: 34px; }
  .show-shot .show-body { flex-direction: column; align-items: stretch; }
  .show-frame { flex: none; }
  .show-frame img { height: 150px; }
}
