/* Evolve. Dark green identity. System typefaces only (strict CSP, no external fonts).
   Structural language: the left "evidence rail" of a row says what kind of claim it is.
   solid = observation, dashed = hypothesis, double = verified result. */
:root {
  --bg: #101b19;
  --surface: #172723;
  --surface-2: #1d302b;
  --line: #2b3f38;
  --line-strong: #3d564d;
  --text: #e9f0ea;
  --muted: #9eb4a9;
  --accent: #8bfaad;
  --accent-ink: #0b2013;
  --amber: #f2c66d;
  --coral: #ff9d8a;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 68ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 100%; line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 0.4em; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 650; margin: 1.2em 0 0.4em; }
p { margin: 0 0 0.9em; max-width: var(--measure); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code, pre, kbd { font-family: var(--code); font-size: 0.86em; }
small, .fine { font-size: 0.86rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---- top bar ---------------------------------------------------------------- */
.top { display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0; }
.brand img { width: 32px; height: 32px; display: block; }
.top-nav { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.top-nav a, a.quiet { color: var(--muted); text-decoration: none; }
.top-nav a:hover, a.quiet:hover { color: var(--text); text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.top-actions .who { color: var(--muted); font-size: 0.88rem; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- controls --------------------------------------------------------------- */
button, .button { font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: 7px; padding: 9px 15px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
button:hover, .button:hover { filter: brightness(1.07); text-decoration: none; }
button:disabled { opacity: 0.55; cursor: progress; }
.button.big { padding: 13px 20px; font-size: 1.05rem; }
button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
button.secondary:hover { background: var(--surface-2); filter: none; }
button.danger { background: transparent; color: var(--coral); border-color: #7a4a42; }
button.danger:hover { background: #2a1d1b; filter: none; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button.small, .button.small { padding: 6px 10px; font-size: 0.86rem; font-weight: 600; }
label { display: block; font-size: 0.9rem; color: #c9d8cf; margin: 0 0 14px; }
label .hint, .hint { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; margin-top: 4px; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--text); background: #0d1614; border: 1px solid var(--line-strong); border-radius: 7px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea { min-height: 92px; resize: vertical; }
input[type=checkbox], input[type=radio] { display: inline-block; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
label.check { display: flex; gap: 10px; align-items: flex-start; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form label { margin: 0; flex: 1 1 180px; }

/* ---- landing ------------------------------------------------------------------ */
#landing { width: 100%; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 7vw, 92px) clamp(16px, 4vw, 44px) clamp(36px, 6vw, 72px); max-width: 1280px; margin: 0 auto; align-items: start; }
.hero h1 { max-width: 17ch; }
.lede { font-size: 1.14rem; line-height: 1.6; color: #d3e0d7; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 1.6em 0 0.8em; }
.hero-lineage { border-left: 1px solid var(--line); padding-left: clamp(18px, 3vw, 40px); }
.hero-lineage h2 { font-size: 1.2rem; font-family: var(--body); font-weight: 650; letter-spacing: 0; margin-bottom: 1.1em; }

/* The lineage: one stem, nine steps. Filled marker = automatic, ring = a person decides. */
.lineage { list-style: none; counter-reset: step; margin: 0; padding: 0; position: relative; }
.lineage::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 14px; width: 2px; background: var(--line-strong); transform-origin: top; animation: grow 900ms cubic-bezier(.2,.7,.2,1) both; }
.lineage li { position: relative; counter-increment: step; padding: 0 0 15px 38px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; max-width: 46ch; }
.lineage li strong { display: block; color: var(--text); font-weight: 650; }
.lineage li strong::before { content: counter(step) ". "; color: var(--muted); font-weight: 500; }
.lineage li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.lineage li.human::before { background: var(--bg); border: 3px solid var(--amber); }
.lineage li.human strong { color: var(--amber); }
.legend { display: flex; gap: 22px; font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.key.human::before { background: transparent; border: 3px solid var(--amber); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.band { max-width: 1280px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) clamp(16px, 4vw, 44px); border-top: 1px solid var(--line); width: 100%; }
.section-lede { color: var(--muted); max-width: 64ch; }
.claims { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 1.4em; }
.claim { padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); }
.claim p { color: var(--muted); margin: 0; }
.claim.hypothesis { border-left: 3px dashed var(--amber); }
.claim.verified { border-left: 5px double var(--accent); }
.cannot { list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; gap: 14px; max-width: 78ch; }
.cannot li { padding-left: 30px; position: relative; color: var(--muted); }
.cannot li strong { color: var(--text); }
.cannot li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 16px; height: 2px; background: var(--coral); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; background: var(--surface); }
.plan.current { background: var(--surface-2); box-shadow: inset 0 3px 0 var(--accent); }
.plan .price { font-family: var(--display); font-size: 2rem; line-height: 1; margin: 6px 0 10px; }
.plan .price small { font-family: var(--body); font-size: 0.85rem; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.plan li { padding: 3px 0; }
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 18px clamp(16px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 0.88rem; }
.foot a { margin-left: 16px; color: var(--muted); }

/* ---- auth and onboarding ------------------------------------------------------- */
.narrow { max-width: 470px; margin: clamp(26px, 6vw, 70px) auto; padding: 0 18px; width: 100%; }
.narrow h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.narrow form + p, .narrow form + .actions { margin-top: 18px; }
.wizard { max-width: 780px; margin: clamp(22px, 4vw, 54px) auto; padding: 0 18px; width: 100%; }
.wizard h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 0 0 26px; counter-reset: wz; font-size: 0.9rem; color: var(--muted); }
.steps li { counter-increment: wz; display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(wz); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; }
.steps li.current { color: var(--text); font-weight: 650; }
.steps li.current::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps li.done::before { content: "\2713"; color: var(--accent); border-color: var(--accent); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 14px 0; }
.progress > span { display: block; height: 100%; width: 35%; background: var(--accent); border-radius: 3px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* ---- app shell ------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; }
.side { border-right: 1px solid var(--line); padding: 20px 12px 30px; }
.side nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 14px; }
.side a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 6px; border-left: 3px solid transparent; font-size: 0.96rem; }
.side a:hover { color: var(--text); background: var(--surface); }
.side a[aria-current=page] { color: var(--text); border-left-color: var(--accent); background: var(--surface); font-weight: 650; }
.side .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.content { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.stack > * + * { margin-top: 26px; }
.stack, .stack > *, .cols > * { min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; overflow-wrap: anywhere; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel h2 { font-family: var(--body); font-size: 1.1rem; font-weight: 650; letter-spacing: 0; }
.section-title { font-family: var(--body); font-size: 1.1rem; font-weight: 650; letter-spacing: 0; margin: 0 0 12px; }

/* rows: lists separated by hairlines, with an evidence rail on the left */
.rows { border-top: 1px solid var(--line); }
.row { padding: 16px 0 16px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line-strong); overflow-wrap: anywhere; }
.row.observation { border-left: 3px solid var(--accent); }
.row.hypothesis { border-left: 3px dashed var(--amber); }
.row.verified { border-left: 5px double var(--accent); }
.row.off { border-left-color: var(--line); opacity: 0.8; }
.row h3 { margin-bottom: 4px; }
.row p { margin: 4px 0; }
.row-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 8px 0; font-size: 0.93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: #cfdcd4; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip.good { border-color: #3f7a55; color: var(--accent); }
.chip.good::before { background: var(--accent); }
.chip.warn { border-color: #7a6532; color: var(--amber); }
.chip.warn::before { background: var(--amber); }
.chip.bad { border-color: #7a4a42; color: var(--coral); }
.chip.bad::before { background: var(--coral); }
.chip.plain::before { display: none; }

.note { border: 1px solid var(--line-strong); border-left: 3px solid var(--amber); border-radius: 6px; padding: 12px 14px; color: #dfe8e1; background: #1a2622; margin: 0 0 16px; max-width: none; }
.note.error { border-left-color: var(--coral); }
.note.good { border-left-color: var(--accent); }
.empty { color: var(--muted); padding: 22px 0; }
.empty strong { color: var(--text); display: block; margin-bottom: 4px; }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.meter-label { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--muted); }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meter.full > span { background: var(--coral); }
.score { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.score small { font-family: var(--body); font-size: 0.85rem; margin-left: 6px; }
.up { color: var(--accent); }
.down { color: var(--coral); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters button { background: transparent; color: var(--muted); border-color: var(--line-strong); font-weight: 500; padding: 6px 11px; font-size: 0.88rem; }
.filters button[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 650; }
.filters select { width: auto; margin: 0; padding: 6px 10px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding: 7px 14px 7px 0; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 8px 14px 8px 0; vertical-align: top; overflow-wrap: anywhere; }

/* build detail */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 12px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 14px 32px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 4px var(--bg); }
.timeline li.passed::before { background: var(--accent); }
.timeline li.failed::before { background: var(--coral); }
.timeline li.skipped::before { background: var(--bg); border: 2px solid var(--line-strong); }
.timeline li.pending::before { background: var(--bg); border: 2px dashed var(--muted); }
.timeline .what { font-weight: 650; }
.timeline .detail { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.diff { margin: 0; padding: 12px 0; background: #0c1513; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; max-height: 560px; }
.diff span { display: block; padding: 0 14px; white-space: pre; min-width: max-content; }
.diff .add { background: rgba(139, 250, 173, 0.12); color: #c8fbd8; }
.diff .del { background: rgba(255, 157, 138, 0.12); color: #ffd0c6; }
.diff .hunk { color: var(--amber); }
.diff .meta { color: var(--muted); }
pre.out { margin: 8px 0 0; padding: 12px 14px; background: #0c1513; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; max-height: 320px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.82rem; }
.preview-frame { width: 100%; height: 520px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.copybox { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.copybox input, .copybox textarea { margin: 0; font-family: var(--code); font-size: 0.84rem; }

/* dialog and status */
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 24px; width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; }
dialog::backdrop { background: rgba(5, 10, 9, 0.72); }
dialog h2 { font-family: var(--body); font-size: 1.2rem; font-weight: 650; letter-spacing: 0; }
dialog .actions { justify-content: flex-end; margin-top: 20px; }
#status { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; max-width: min(640px, calc(100vw - 24px)); pointer-events: none; }
#status > div { background: #0d1614; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); pointer-events: auto; }
#status > div.error { border-left-color: var(--coral); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; color: var(--accent); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark span { width: 8px; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; opacity: 0.85; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-lineage { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; overflow-x: auto; }
  .side nav { flex-direction: row; position: static; gap: 4px; width: max-content; }
  .side a { border-left: 0; border-bottom: 3px solid transparent; padding: 8px 10px; white-space: nowrap; }
  .side a[aria-current=page] { border-bottom-color: var(--accent); }
  .side .sep { width: 1px; height: auto; margin: 6px 4px; }
}
@media (max-width: 620px) {
  .top { flex-wrap: wrap; gap: 10px 14px; }
  .top-nav { order: 3; flex-basis: 100%; margin: 0; gap: 16px; font-size: 0.9rem; overflow-x: auto; }
  .top-actions .who { display: none; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 6px; }
  .preview-frame { height: 380px; }
  .foot a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* refinements */
.copybox button, button.small, .button.small { flex: none; white-space: nowrap; }
.wizard .panel { margin-top: 18px; }
.wizard .panel + .actions { margin-top: 22px; }
#main:focus, #main:focus-visible { outline: none; }

/* ---- live status ---- */
.live { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.live strong { display: block; font-size: 1.25rem; }
.live span:not(.pulse) { color: var(--muted); }
.live .pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.live.on { border-color: #3f7a55; }
.live.on .pulse { background: var(--accent); box-shadow: 0 0 0 0 rgba(139, 250, 173, 0.6); animation: pulse 2s infinite; }
.live.off { border-color: #7a6532; }
.live.off .pulse { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 250, 173, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(139, 250, 173, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 250, 173, 0); } }
@media (prefers-reduced-motion: reduce) { .live.on .pulse { animation: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--display); font-size: 2.1rem; line-height: 1.1; }
.stat .stat-label { font-weight: 600; }
.stat .stat-help { color: var(--muted); font-size: 0.85rem; }
.stat.good strong { color: var(--accent); }
.stat.attention strong { color: var(--amber); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; padding-top: 6px; }
.bars span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.85; }
.bars span.zero { background: var(--line-strong); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-head h3 { margin: 0 6px 0 0; font-family: var(--body); font-size: 1.1rem; }
.score-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 2px; }
.score-line .score { font-family: var(--display); font-size: 2.4rem; }
.spark { width: 160px; height: 40px; flex: none; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent); }
.up { color: var(--accent); margin: 0; }
.down { color: var(--coral); margin: 0; }
.small { font-size: 0.85rem; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; font-size: 0.93rem; }
@media (max-width: 560px) { .feed li { grid-template-columns: 1fr; gap: 0; } .spark { width: 110px; } }
