/* ============================================================================
   DropScan — "market intelligence desk"
   Deep petrol ink, warm paper type, amber signal. Fraunces for display,
   IBM Plex Mono for every number, IBM Plex Sans for prose.
   ========================================================================== */

:root {
  --ink:        #0A1411;
  --ink-2:      #0E1B17;
  --ink-3:      #132420;
  --ink-4:      #1A2E28;

  --paper:      #F4EEE2;
  --paper-dim:  #BFCDC5;
  --muted:      #7E958B;
  --faint:      #5A6F66;

  --amber:      #F2A93B;
  --amber-soft: rgba(242, 169, 59, .16);
  --mint:       #6FD6A8;
  --mint-soft:  rgba(111, 214, 168, .14);
  --coral:      #FF6B57;
  --coral-soft: rgba(255, 107, 87, .14);
  --sky:        #7FB8FF;

  --line:       rgba(244, 238, 226, .11);
  --line-2:     rgba(244, 238, 226, .20);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(111, 214, 168, .07), transparent 62%),
    radial-gradient(900px 560px at 100% 0%, rgba(242, 169, 59, .075), transparent 58%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* film grain over everything --------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--ink); }

/* ─────────────────────────── masthead ───────────────────────────────────── */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 28px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  animation: rise .7s var(--ease) both;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: .92;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.brand-mark span { color: var(--amber); }

.brand-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper-dim);
  position: relative;
  padding-left: 20px;
}
.pill::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--faint);
  transition: background .3s, box-shadow .3s;
}
.pill.live::before {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(111, 214, 168, .18);
}
.pill.down::before { background: var(--coral); }

.spend-badge {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  text-align: right;
}
.spend-figure {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--mint);
  letter-spacing: -.02em;
}
.spend-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────── tabs ───────────────────────────────────────── */
.tabs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;            /* never push tabs off-screen on narrow views */
  gap: 2px;
  border-bottom: 1px solid var(--line);
  animation: rise .7s .08s var(--ease) both;
}
.tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 15px 16px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--paper); background: rgba(244, 238, 226, .03); }
.tab.is-active { color: var(--amber); border-bottom-color: var(--amber); }
.tab-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  margin-left: 5px;
  border-radius: 9px;
  background: rgba(244, 238, 226, .09);
  font-size: 10px;
  text-align: center;
}
.tab.is-active .tab-count { background: var(--amber-soft); color: var(--amber); }

/* ─────────────────────────── layout ─────────────────────────────────────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 28px 60px;
}
.view { display: none; }
.view.is-active { display: block; animation: fade .45s var(--ease) both; }

.view-intro { max-width: 640px; margin-bottom: 28px; }
.view-intro h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.025em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.view-intro p { margin: 0 0 18px; color: var(--paper-dim); font-size: 15.5px; }
code {
  font-family: var(--mono);
  font-size: .87em;
  background: rgba(244, 238, 226, .07);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--amber);
}

/* ─────────────────────────── searcher ───────────────────────────────────── */
.searcher {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
  animation: rise .7s .14s var(--ease) both;
}
.searcher-field { flex: 1; }
.searcher-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.searcher input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  padding: 13px 16px;
  letter-spacing: -.015em;
  transition: border-color .2s, box-shadow .2s;
}
.searcher input::placeholder { color: var(--faint); }
.searcher input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .14);
}

.btn {
  appearance: none;
  border: 1px solid var(--line-2);
  background: rgba(244, 238, 226, .05);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .16s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--paper); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: progress; transform: none; }

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A1206;
  font-weight: 600;
  flex-shrink: 0;
}
.btn-primary:hover { background: #FFBC55; border-color: #FFBC55; }
.btn-ghost { padding: 10px 16px; font-size: 11px; }

.btn .btn-busy { display: none; }
.btn.is-busy .btn-label { display: none; }
.btn.is-busy .btn-busy { display: inline; }

/* seed chips --------------------------------------------------------------- */
.seeds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 16px;
  animation: rise .7s .2s var(--ease) both;
}
.seeds-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 3px;
}
.chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--paper-dim);
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

/* ─────────────────────────── loader ─────────────────────────────────────── */
.loader {
  margin-top: 28px;
  padding: 26px 22px;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  background: rgba(244, 238, 226, .02);
}
.loader-track {
  height: 3px;
  background: rgba(244, 238, 226, .09);
  border-radius: 3px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 6%;
  background: linear-gradient(90deg, var(--amber), var(--mint));
  border-radius: 3px;
  transition: width .7s var(--ease);
}
.loader-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.loader-steps li {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  padding-left: 22px;
  position: relative;
  transition: color .3s;
}
.loader-steps li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 9px; height: 9px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  transition: all .3s;
}
.loader-steps li.is-active { color: var(--paper); }
.loader-steps li.is-active::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, .16);
  animation: pulse 1.1s infinite;
}
.loader-steps li.is-done { color: var(--muted); }
.loader-steps li.is-done::before {
  border-color: var(--mint);
  background: var(--mint);
  animation: none;
}

/* ─────────────────────────── result ─────────────────────────────────────── */
.result { margin-top: 34px; }
.result > * { animation: rise .6s var(--ease) both; }
.result > *:nth-child(1) { animation-delay: .02s; }
.result > *:nth-child(2) { animation-delay: .10s; }
.result > *:nth-child(3) { animation-delay: .18s; }
.result > *:nth-child(4) { animation-delay: .26s; }
.result > *:nth-child(5) { animation-delay: .34s; }

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--amber);
  margin-bottom: 7px;
}
.result-title h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.result-why {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}

.confidence { min-width: 190px; text-align: right; }
.confidence-bar {
  height: 4px;
  background: rgba(244, 238, 226, .09);
  border-radius: 3px;
  overflow: hidden;
}
.confidence-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--mint));
  transition: width 1s var(--ease);
}
.confidence-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.confidence-label span { color: var(--paper); }

/* scoreboard --------------------------------------------------------------- */
.scoreboard {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.gauge-wrap { position: relative; text-align: center; }
.gauge { width: 100%; max-width: 230px; transform: rotate(-90deg); }
.gauge-track, .gauge-value { fill: none; stroke-width: 11; }
.gauge-track { stroke: rgba(244, 238, 226, .08); }
.gauge-value {
  stroke: url(#gaugeGrad);
  stroke-linecap: round;
  stroke-dasharray: 540.4;
  stroke-dashoffset: 540.4;
  transition: stroke-dashoffset 1.3s var(--ease);
  filter: drop-shadow(0 0 10px rgba(242, 169, 59, .35));
}
.gauge-ticks line {
  stroke: rgba(244, 238, 226, .2);
  stroke-width: 1.5;
}
.gauge-centre {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  line-height: 1;
}
.gauge-number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 62px;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.gauge-of {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 4px;
}
.tier {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 13px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.tier.hot     { color: var(--mint);  background: var(--mint-soft); }
.tier.strong  { color: var(--amber); background: var(--amber-soft); }
.tier.viable  { color: var(--sky);   background: rgba(127, 184, 255, .12); }
.tier.thin    { color: var(--coral); background: var(--coral-soft); }
.tier.skip    { color: var(--coral); background: transparent; }

/* component bars ----------------------------------------------------------- */
.components { display: grid; gap: 20px; align-content: start; padding-top: 6px; }
.component-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.component-name {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.component-val {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 7px;
  background: rgba(244, 238, 226, .08);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 1.1s var(--ease);
}
.component[data-key="margin"]      .bar-fill { background: linear-gradient(90deg, #2E7D5B, var(--mint)); }
.component[data-key="demand"]      .bar-fill { background: linear-gradient(90deg, #A8712A, var(--amber)); }
.component[data-key="competition"] .bar-fill { background: linear-gradient(90deg, #3D6E9E, var(--sky)); }
.component-hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 7px;
}

/* ledger ------------------------------------------------------------------- */
.ledger {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px 16px;
}
.ledger-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.ledger-rows { margin: 0; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
}
.ledger-row dt {
  font-size: 13.5px;
  color: var(--paper-dim);
}
.ledger-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.ledger-dim dt, .ledger-dim dd { color: var(--muted); font-size: 13px; }
.ledger-rule { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 11px; }
.ledger-rule dt { color: var(--paper); font-weight: 600; }
.ledger-rule dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.03em;
  color: var(--mint);
}
.ledger-row.margin-neg .ledger-rule dd { color: var(--coral); }
.ledger.is-estimated .ledger-rule dd { color: var(--amber); }
.ledger.is-estimated #ledRetail,
.ledger.is-estimated #ledProfit,
.ledger.is-estimated #ledMargin { color: var(--amber); font-style: italic; }
.ledger.is-estimated #ledRetailLabel::after {
  content: "est.";
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  border-radius: 2px;
  padding: 1px 5px;
  margin-left: 7px;
}
.ledger-target dd { color: var(--amber); font-size: 17px; }

.ledger-src {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.ledger-src div {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.ledger-src span {
  color: var(--faint);
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ledger-src em {
  color: var(--paper-dim);
  font-style: normal;
  text-align: right;
  margin-left: auto;
}
.ledger-note {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
}

/* verdict ------------------------------------------------------------------ */
.verdict {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.verdict-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: .85;
  color: var(--amber);
  letter-spacing: -.05em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  flex-shrink: 0;
  opacity: .85;
}
.verdict p {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
  letter-spacing: -.012em;
  color: var(--paper);
  flex: 1;
}
.verdict-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* evidence ----------------------------------------------------------------- */
.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
}
.ev {
  background: rgba(244, 238, 226, .022);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ev header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 238, 226, .028);
}
.ev h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  letter-spacing: -.02em;
}
.ev-src {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--muted);
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
}
.ev-body { padding: 6px 0; flex: 1; }

.ev-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
}
.ev-stat:last-child { border-bottom: none; }
.ev-stat dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ev-stat dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.line-item {
  display: flex;
  gap: 11px;
  padding: 10px 17px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.line-item:last-child { border-bottom: none; }
.line-thumb {
  width: 42px; height: 42px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--ink-4);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.line-main { flex: 1; min-width: 0; }
.line-title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--paper-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.line-price {
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  flex-shrink: 0;
}
.line-price.cost { color: var(--mint); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 17px; }
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--paper-dim);
  background: rgba(244, 238, 226, .03);
}
.tag.buyer { border-color: rgba(242, 169, 59, .45); color: var(--amber); background: var(--amber-soft); }
.tag.problem { border-color: rgba(255, 107, 87, .4); color: var(--coral); background: var(--coral-soft); }

.ev-note {
  padding: 12px 17px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(244, 238, 226, .02);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
}
.src-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
}
.src-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.src-chip.ok::before { background: var(--mint); }
.src-chip.ok { color: var(--paper-dim); }

/* ─────────────────────────── tables ─────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.grid td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.grid tbody tr { transition: background .18s; }
.grid tbody tr:hover { background: rgba(244, 238, 226, .035); }
.grid tbody tr:last-child td { border-bottom: none; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.grid .idea { font-weight: 500; }
.grid .idea small {
  display: block;
  color: var(--faint);
  font-weight: 400;
  font-size: 12px;
  margin-top: 2px;
  max-width: 46ch;
}
.score-cell { font-family: var(--mono); font-weight: 600; }
.tier-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.tier-dot.hot { background: var(--mint); }
.tier-dot.strong { background: var(--amber); }
.tier-dot.viable { background: var(--sky); }
.tier-dot.thin, .tier-dot.skip { background: var(--coral); }

.scan-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.scan-progress .loader-track { flex: 1; height: 4px; }
.scan-progress span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.row-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 11px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.row-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ─────────────────────────── watchlist ──────────────────────────────────── */
.watch-list { display: grid; gap: 14px; }
.watch-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(244, 238, 226, .022);
  transition: border-color .2s, transform .2s var(--ease);
}
.watch-card:hover { border-color: var(--line-2); transform: translateX(3px); }
.watch-score {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.watch-score small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 2px;
}
.watch-main h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 5px;
  letter-spacing: -.02em;
}
.watch-facts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.watch-facts b { color: var(--paper); font-weight: 500; }
.watch-actions { display: flex; gap: 7px; }

.empty {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  padding: 30px 0;
  border-top: 1px dashed var(--line);
}

/* ─────────────────────────── sell ───────────────────────────────────────── */
.path {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(242, 169, 59, .07), rgba(111, 214, 168, .05));
  padding: 22px 24px;
  margin-bottom: 30px;
}
.path-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 15px;
}
.path-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  counter-reset: step;
}
.path-steps li {
  display: flex;
  gap: 13px;
  align-items: baseline;
  font-size: 15px;
  color: var(--paper);
}
.path-steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--amber);
  width: 19px; height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 600;
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.channel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: rgba(244, 238, 226, .022);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s var(--ease);
}
.channel:hover { transform: translateY(-3px); border-color: var(--line-2); }
.channel.free { border-color: rgba(111, 214, 168, .38); }
.channel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.channel h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.fee-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.fee-badge.free { background: var(--mint-soft); color: var(--mint); }
.fee-badge.paid { background: var(--coral-soft); color: var(--coral); }
.fee-verdict {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 9px;
}
.channel p {
  font-size: 13.5px;
  color: var(--paper-dim);
  margin: 0 0 13px;
}
.channel ol {
  margin: 0 0 13px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.channel-meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.channel-catch {
  font-size: 12.5px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 3px;
  padding: 8px 11px;
  margin-top: 11px;
}

.honest-note {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--paper);
  border-radius: 0 3px 3px 0;
}

/* ─────────────────────────── footer ─────────────────────────────────────── */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 28px 60px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.foot-h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.foot p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.linkish {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 1px dotted var(--muted);
  color: var(--paper-dim);
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.linkish:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ─────────────────────────── toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 24px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 13px 22px;
  border-radius: 3px;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .8);
  opacity: 0;
  z-index: 10000;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: min(560px, calc(100vw - 40px));
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─────────────────────────── motion ─────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242, 169, 59, .16); }
  50%      { box-shadow: 0 0 0 7px rgba(242, 169, 59, .05); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─────────────────────────── responsive ─────────────────────────────────── */
@media (max-width: 1080px) {
  .scoreboard { grid-template-columns: 210px 1fr; }
  .ledger { grid-column: 1 / -1; }
  .evidence { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .masthead-meta { justify-content: flex-start; }
  .spend-badge { border-left: none; padding-left: 0; text-align: left;
                 border-top: 1px solid var(--line); padding-top: 12px; width: 100%; }
  .searcher { flex-direction: column; align-items: stretch; }
  .scoreboard { grid-template-columns: 1fr; }
  .gauge-wrap { margin-bottom: 6px; }
  .evidence { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .confidence { text-align: left; width: 100%; }
  .verdict { flex-wrap: wrap; }
  .verdict-mark { writing-mode: horizontal-tb; transform: none; font-size: 30px; }
  .verdict-actions { flex-direction: row; width: 100%; }
  .watch-card { grid-template-columns: 74px 1fr; }
  .watch-actions { grid-column: 1 / -1; }
}

/* ── publish view (launch kit) ─────────────────────────────────────────── */
#kitWrap { display: flex; flex-direction: column; gap: 18px; }
.kit-money header { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.kit-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.kit-stats .ev-stat dt { font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kit-stats .ev-stat dd { font-family: var(--display); font-size: 26px;
  color: var(--mint); margin: 2px 0 0; }
.kit-block { border-left: 3px solid var(--line-2); }
.kit-block[data-id="marketplace"] { border-left-color: var(--mint); }
.kit-block[data-id="social"]      { border-left-color: var(--amber); }
.kit-block[data-id="pinterest"]   { border-left-color: var(--coral); }
.kit-block[data-id="dm"]          { border-left-color: var(--sky); }
.kit-hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.kit-copy {
  margin: 0; padding: 14px 16px; background: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  color: var(--paper); white-space: pre-wrap; word-break: break-word;
}
.copy-btn { font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--mint); border-color: var(--line-2); }
.copy-btn:hover { background: var(--mint-soft); border-color: var(--mint); }
.kit-steps { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.kit-steps li { display: flex; justify-content: space-between; gap: 16px;
  align-items: baseline; padding: 10px 14px; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 4px; }
.kit-steps li::before { counter-increment: step; content: counter(step) ".";
  font-family: var(--display); font-size: 17px; color: var(--amber); width: 24px; }
.kit-step-text { flex: 1; font-size: 14px; color: var(--paper-dim); }
.kit-step-meta { font-family: var(--mono); font-size: 11.5px;
  color: var(--mint); white-space: nowrap; }
.kit-pay-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kit-pay-row:last-child { border-bottom: none; }
.kit-pay-row b { font-size: 14.5px; margin-right: 10px; }
.kit-pay-row p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.kit-honest .honest-note { display: flex; flex-direction: column; gap: 8px; }
.kit-honest .honest-note b { color: var(--amber); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 820px) {
  .kit-steps li { flex-wrap: wrap; }
  .kit-stats .ev-stat dd { font-size: 21px; }
}

/* Publish is the money action — make it findable. */
.tab[data-view="publish"] { color: var(--mint); }
.tab[data-view="publish"]:hover { background: var(--mint-soft); }
.tab[data-view="publish"].is-active {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

/* store page actions inside the launch kit */
.kit-store { border-left: 3px solid var(--mint); }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.store-actions .btn { text-decoration: none; font-size: 14px; }
.btn-deploy { background: linear-gradient(135deg, var(--amber), var(--mint));
              color: var(--ink); border: 0; font-weight: 700; }
.btn-deploy:hover { filter: brightness(1.06); }
.btn-deploy:disabled { opacity: .75; cursor: wait; }
.deploy-status { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.deploy-status a { color: var(--mint); }
.pay-setup { border: 1px solid var(--line); border-radius: 10px;
             padding: 14px 16px; margin-bottom: 12px; background: var(--ink-2); }
.ps-title { font: 700 11.5px/1.5 var(--mono); letter-spacing: .12em;
            text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.ps-hint { color: var(--faint); text-transform: none; letter-spacing: 0;
           font-weight: 400; margin-left: 8px; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
           gap: 10px 14px; margin-bottom: 12px; }
.ps-grid label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ps-opt { color: var(--mint); font-weight: 400; font-size: 11px; }
.ps-grid input { display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
                 border: 1px solid var(--line-2); border-radius: 7px;
                 background: var(--ink); color: var(--paper); font-size: 13.5px; }
.ps-grid input:focus { outline: none; border-color: var(--amber); }
.ps-fees { font-size: 12px; color: var(--faint); line-height: 1.6; margin-bottom: 12px; }
.ps-done { font-size: 13px; color: var(--mint); margin-left: 10px; }
.kit-store code { font-family: var(--mono); background: var(--ink);
  padding: 1px 6px; border-radius: 3px; font-size: 12.5px; }
.kit-store .ev-note { font-size: 13.5px; color: var(--paper-dim); line-height: 1.7; }
.kit-store .ev-note b { color: var(--mint); }

/* ── masthead: engine status + dashboard publish ───────────────────── */
.mast-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.engine { font: 600 11px/1 var(--mono); letter-spacing: .08em;
          text-transform: uppercase; padding: 7px 11px; border-radius: 99px;
          border: 1px solid var(--line-2); color: var(--faint); }
.engine.is-on { color: var(--mint); border-color: rgba(111,214,168,.45); }
.engine.is-off { color: var(--hot, #e0715f); border-color: rgba(224,113,95,.5); }
.engine.is-wait { color: var(--faint); }
.pub-btn { font: 600 12px/1 var(--mono); letter-spacing: .06em;
           padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 8px;
           background: var(--ink-2); color: var(--paper); cursor: pointer;
           transition: border-color .15s, color .15s; }
.pub-btn:hover { border-color: var(--amber); color: var(--amber); }
.pub-btn[disabled] { opacity: .55; cursor: default; }
.pub-status { font-size: 12.5px; color: var(--muted); }
.pub-status a { color: var(--mint); font-weight: 600; }
@media (max-width: 820px) { .mast-actions { width: 100%; } }


/* ── private lock screen ────────────────────────────────────────────────── */
.lock { position: fixed; inset: 0; z-index: 300; padding: 24px;
  background: rgba(9, 11, 15, .93); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; }
.lock[hidden] { display: none; }
.lock-card { background: #fff; border-radius: 18px; padding: 30px 28px;
  width: min(430px, 100%); text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lock-mark { font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 10px; }
.lock-card p { font-size: 14.5px; color: #4b5563; line-height: 1.65; }
.lock-row { display: flex; gap: 10px; margin: 18px 0 6px; }
.lock-row input { flex: 1; min-width: 0; border: 1.5px solid #e6e1d7;
  border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.lock-row input:focus { outline: 0; border-color: #0e7a5f;
  box-shadow: 0 0 0 3px rgba(14, 122, 95, .15); }
.lock-hint { font-size: 12.5px !important; color: #9ca3af !important;
  margin-top: 12px; }
.lock-hint code { background: #f3f0e9; padding: 1px 6px; border-radius: 6px; }
.lock-err { color: #b91c1c; font-size: 13.5px; font-weight: 600;
  margin-top: 8px; }
.key-chip { cursor: pointer; user-select: none; }
.key-chip:hover { filter: brightness(1.2); }

/* ── your website: published product list ───────────────────────────────── */
.site-box { margin-top: 14px; border: 1.5px solid #e6e1d7; background: #fbfaf7;
  border-radius: 14px; padding: 16px; }
.sb-head { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; font-size: 14.5px; }
.sb-home { color: #0e7a5f; font-weight: 700; font-size: 13px;
  text-decoration: none; white-space: nowrap; }
.sb-home:hover { text-decoration: underline; }
.sb-list { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chip { display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e6e1d7; border-radius: 999px;
  padding: 5px 6px 5px 13px; font-size: 13px; }
.site-chip a { color: #101418; font-weight: 600; text-decoration: none; }
.site-chip a:hover { color: #0e7a5f; }
.site-x { border: 0; background: #efece5; width: 21px; height: 21px;
  border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
  color: #6b7280; padding: 0; }
.site-x:hover { background: #fee2e2; color: #b91c1c; }
.site-x:disabled { opacity: .45; cursor: default; }
.sb-empty { font-size: 13.5px; color: #6b7280; }
.sb-note { font-size: 12.5px; color: #6b7280; margin-top: 10px;
  line-height: 1.6; }
