/* in10x-predict — dark hacker-terminal on the in10x identity.
   Palette + grid are the existing in10x.com system; the neon layer is new
   and applied ONLY where the spec says. Everything else stays restrained. */

:root {
  --bg: #0a0a0b;
  --surface: #0f0f11;
  --surface2: #151517;
  --line: #212125;
  --line-soft: #19191c;
  --text: #f0f0f2;
  --dim: #a1a1a9;
  --faint: #6b6b73;
  --neon: #00ff9c;
  --neon-dim: rgba(0, 255, 156, .45);
  --neon-faint: rgba(0, 255, 156, .12);
  --neon-cyan: #00e5ff;
  --neon-cyan-dim: rgba(0, 229, 255, .45);
  --err: #ff5f5f;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background-color: var(--bg);
  /* subtle 56px grid — same linear-gradient trick as in10x.com */
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

.mono { font-family: var(--mono); }

a { color: var(--dim); text-decoration: none; }
a:hover { color: var(--text); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, .model-card:focus-visible {
  outline: 1px solid var(--neon-dim);
  outline-offset: 2px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ---------------- header ---------------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.brand .brand-dot { color: var(--faint); font-weight: 400; padding: 0 2px; }
.brand em { color: var(--neon); font-style: normal; }

.head-right { display: flex; align-items: center; gap: 10px; }

.offline-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  opacity: .8;
}

.status-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  background: var(--surface);
}
.status-pill[data-status="open"]   { color: var(--neon); border-color: var(--neon-dim); }
.status-pill[data-status="locked"] { color: var(--neon-cyan); border-color: var(--neon-cyan-dim); }
.status-pill[data-status="scored"] { color: var(--dim); }

/* ---------------- hero ---------------- */

.hero { padding: 44px 0 8px; text-align: center; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.hero-kicker .sep { color: var(--line); padding: 0 6px; }
.hero-kicker #hero-company { color: var(--dim); }

/* scanline overlay lives on the wrapper (the h1's pseudos are used by glitch) */
.scanlines { position: relative; display: inline-block; max-width: 100%; }
.scanlines::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(10, 10, 11, .32) 0px,
    rgba(10, 10, 11, .32) 1px,
    transparent 1px,
    transparent 3px
  );
}

h1.glitch {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(44px, 11vw, 96px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--text);
  position: relative;
  white-space: nowrap;
}

/* intermittent glitch: two clipped copies jitter in neon green / cyan */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  opacity: .9;
}
.glitch::before {
  color: var(--neon);
  transform: translate(2px, -1px);
  animation: glitch-a 7s infinite steps(1, end);
}
.glitch::after {
  color: var(--neon-cyan);
  transform: translate(-2px, 1px);
  animation: glitch-b 7s infinite steps(1, end);
  animation-delay: .12s;
}
@keyframes glitch-a {
  0%, 91%, 100% { clip-path: inset(0 0 100% 0); }
  92%  { clip-path: inset(8% 0 62% 0); }
  93%  { clip-path: inset(58% 0 12% 0); }
  94%  { clip-path: inset(30% 0 48% 0); }
  95%  { clip-path: inset(76% 0 4% 0); }
  96%  { clip-path: inset(4% 0 82% 0); }
  97%  { clip-path: inset(44% 0 34% 0); }
}
@keyframes glitch-b {
  0%, 91%, 100% { clip-path: inset(0 0 100% 0); }
  92%  { clip-path: inset(64% 0 8% 0); }
  93%  { clip-path: inset(12% 0 70% 0); }
  94%  { clip-path: inset(48% 0 22% 0); }
  95%  { clip-path: inset(2% 0 88% 0); }
  96%  { clip-path: inset(70% 0 10% 0); }
  97%  { clip-path: inset(24% 0 56% 0); }
}

/* ---------------- live price ---------------- */

.price-block { padding: 20px 0 12px; }

.price-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.price-label .price-ts { text-transform: none; letter-spacing: .04em; color: var(--faint); }

.price-line {
  font-family: var(--mono);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.price-usd {
  font-size: clamp(18px, 4vw, 30px);
  color: var(--neon-dim);
  font-weight: 500;
}
.live-price {
  font-size: clamp(52px, 12vw, 108px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
  /* layered CRT glow, pulsing */
  text-shadow:
    0 0 2px rgba(0, 255, 156, .95),
    0 0 10px rgba(0, 255, 156, .60),
    0 0 30px rgba(0, 255, 156, .35),
    0 0 70px rgba(0, 255, 156, .18);
  animation: price-pulse 2.4s ease-in-out infinite;
}
@keyframes price-pulse {
  0%, 100% {
    text-shadow:
      0 0 2px rgba(0, 255, 156, .95),
      0 0 10px rgba(0, 255, 156, .60),
      0 0 30px rgba(0, 255, 156, .35),
      0 0 70px rgba(0, 255, 156, .18);
  }
  50% {
    text-shadow:
      0 0 3px rgba(0, 255, 156, 1),
      0 0 16px rgba(0, 255, 156, .85),
      0 0 48px rgba(0, 255, 156, .50),
      0 0 110px rgba(0, 255, 156, .30);
  }
}
.live-price.stale { opacity: .55; animation: none; }

/* terminal blinking block cursor */
.cursor {
  color: var(--neon);
  font-size: .55em;
  align-self: center;
  text-shadow: 0 0 8px var(--neon-dim);
  animation: blink 1.1s steps(1, end) infinite;
}
.price-line .cursor { font-size: clamp(26px, 6vw, 54px); }
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.price-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 8px;
}
.price-sub span { color: var(--dim); }

/* ---------------- sections ---------------- */

section { margin-top: 40px; }

.sec-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

/* ---------------- model cards ---------------- */

.model-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .model-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .model-cards { grid-template-columns: repeat(4, 1fr); } }

.model-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease;
  width: 100%;
  display: block;
}
.model-card:hover { border-color: var(--faint); }

.model-card .mc-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.model-card .mc-chevron { color: var(--faint); font-size: 10px; transition: transform .15s ease; }
.model-card.open .mc-chevron { transform: rotate(90deg); }

.model-card .mc-guess {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
  /* faint CRT glow on the key number */
  text-shadow: 0 0 14px rgba(240, 240, 242, .12);
}
.model-card .mc-err {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

.model-card .mc-reasoning {
  display: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dim);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.model-card.open .mc-reasoning { display: block; }

.model-card.unavailable { opacity: .5; }
.model-card.unavailable .mc-guess {
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
  text-shadow: none;
}

/* winning guess after scoring — neon treatment (spec) */
.model-card.winner,
.winning-guess {
  border: 1px solid var(--neon);
  box-shadow: 0 0 14px rgba(0, 255, 156, .25), inset 0 0 24px rgba(0, 255, 156, .04);
  background: linear-gradient(180deg, var(--neon-faint), transparent 60%), var(--surface);
}
.model-card.winner .mc-guess {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-dim);
}

/* ---------------- return-visit recap card ---------------- */

.recap-card {
  position: relative;
  background: linear-gradient(180deg, var(--neon-faint), transparent 55%), var(--surface);
  border: 1px solid var(--neon);
  border-radius: 6px;
  padding: 22px 20px 16px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow:
    0 0 18px rgba(0, 255, 156, .22),
    inset 0 0 40px rgba(0, 255, 156, .05);
}

.recap-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  gap: 8px;
  justify-content: center;
}
.recap-kicker .sep { color: var(--faint); }
.recap-scored-tag { color: var(--neon); }

.recap-verdict-wrap { text-align: center; margin: 14px 0 4px; }
.recap-verdict {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1.1;
  color: var(--neon);
  text-shadow:
    0 0 2px rgba(0, 255, 156, .9),
    0 0 14px rgba(0, 255, 156, .55),
    0 0 40px rgba(0, 255, 156, .3);
}
.recap-verdict.lost {
  color: var(--neon-cyan);
  text-shadow:
    0 0 2px rgba(0, 229, 255, .9),
    0 0 14px rgba(0, 229, 255, .5);
}

.recap-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
  text-align: center;
}
.recap-stat { display: grid; gap: 4px; }
.recap-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.recap-v {
  font-family: var(--mono);
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 700;
  color: var(--text);
}
.recap-v.me { color: var(--neon); text-shadow: 0 0 10px var(--neon-dim); }

.recap-rows {
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
}
.recap-row {
  display: grid;
  grid-template-columns: 2.4em 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.recap-row .rr-rank { color: var(--faint); }
.recap-row .rr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap-row .rr-guess { color: var(--text); }
.recap-row .rr-err { min-width: 6ch; text-align: right; }
.recap-row.top .rr-err { color: var(--neon); }
.recap-row.me {
  color: var(--text);
  background: linear-gradient(90deg, transparent, var(--neon-faint), transparent);
}
.recap-row.me .rr-name { color: var(--neon); text-shadow: 0 0 8px var(--neon-dim); }

.recap-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-top: 12px;
}

/* ---------------- countdown ---------------- */

.countdown-sec { text-align: center; }

.cd-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.countdown {
  font-family: var(--mono);
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.cd-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.4ch; }
.cd-num {
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon-cyan);
  text-shadow:
    0 0 2px rgba(0, 229, 255, .9),
    0 0 12px rgba(0, 229, 255, .55),
    0 0 34px rgba(0, 229, 255, .3);
}
.cd-unit {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 6px;
}
.cd-colon {
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, .55);
  animation: blink 1.1s steps(1, end) infinite;
}
.cd-target {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 10px;
}

/* ---------------- guess form ---------------- */

.guess-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  max-width: 560px;
}

#guess-form { display: grid; gap: 12px; }
#guess-form label {
  display: grid;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
#guess-form input[type="text"],
#guess-form input[type="number"] {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
#guess-form input::placeholder { color: var(--faint); }
#guess-form input:focus { border-color: var(--faint); outline: none; }

/* honeypot — never visible to humans */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

#guess-submit {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--neon);
  border-radius: 4px;
  padding: 11px 14px;
  transition: box-shadow .15s ease, opacity .15s ease;
}
#guess-submit:hover:not(:disabled) { box-shadow: 0 0 16px var(--neon-dim); }
#guess-submit:disabled { opacity: .35; cursor: not-allowed; background: var(--line); color: var(--dim); }

#guess-form.locked input { opacity: .5; }

.guess-msg {
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 12px;
}
.guess-msg.ok { color: var(--neon); text-shadow: 0 0 10px var(--neon-dim); }
.guess-msg.err { color: var(--err); }
.guess-msg.info { color: var(--faint); }

/* ---------------- leaderboard ---------------- */

.lb-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.lb-tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 7px 18px;
  background: var(--surface);
}
.lb-tab + .lb-tab { border-left: 1px solid var(--line); }
.lb-tab.active { color: var(--neon); background: var(--surface2); }

.lb-table { font-family: var(--mono); font-size: 13px; }
.lb-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) 4.5rem 7.5rem 6.5rem;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 4px;
}
.lb-row.lb-head {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.lb-row .lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.lb-row .lb-rank { color: var(--faint); }
.lb-row .lb-weeks { color: var(--dim); text-align: right; }
.lb-row .lb-total { text-align: right; }
.lb-row .lb-avg { color: var(--faint); text-align: right; }

/* rank #1 — neon border + outer glow + faint tint (spec) */
.lb-row.rank-1 {
  border: 1px solid var(--neon);
  box-shadow: 0 0 14px rgba(0, 255, 156, .22), inset 0 0 20px rgba(0, 255, 156, .04);
  background: var(--neon-faint);
}
.lb-row.rank-1 .lb-rank,
.lb-row.rank-1 .lb-name,
.lb-row.rank-1 .lb-total {
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon-dim);
}

.lb-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding: 14px 2px;
}

@media (max-width: 480px) {
  .lb-row { grid-template-columns: 2.4rem minmax(0, 1fr) 3.4rem 5.6rem; }
  .lb-row .lb-avg { display: none; }
}

/* ---------------- strips (last week / monthly) ---------------- */

.strip-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  display: grid;
  gap: 8px;
}
.strip-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.strip-k {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  min-width: 8.5rem;
}
.strip-v { color: var(--text); }
.strip-v .num { text-shadow: 0 0 10px rgba(240, 240, 242, .12); }
.strip-v.neon { color: var(--neon); text-shadow: 0 0 8px var(--neon-dim); }
.strip-v .dimmed { color: var(--faint); }
.winning-guess { padding: 1px 7px; border-radius: 3px; color: var(--neon); }

/* ---------------- footer ---------------- */

.site-foot {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.foot-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.foot-link:hover { color: var(--neon); text-shadow: 0 0 8px var(--neon-dim); }

/* ---------------- /system page ---------------- */

.sys-hero { padding: 40px 0 6px; }
.sys-hero h1.glitch { font-size: clamp(34px, 8vw, 64px); }
.sys-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--dim);
  margin-top: 10px;
  max-width: 640px;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 680px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }

.agent-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0;
}
.panel-head {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-head .prompt { color: var(--neon); }
.panel-head .cursor { font-size: 11px; }

.panel-body {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 12px;
  max-height: 235px; /* ~10 lines */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.log-line { margin-bottom: 2px; word-break: break-word; }
.log-ts { color: var(--faint); margin-right: 8px; font-size: 11px; }
.log-action { color: var(--text); }
.log-detail { color: var(--dim); }
.panel-empty { color: var(--faint); font-size: 12px; }

.feedback-sec { margin-top: 44px; }
.feedback-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--neon-dim);
  border-radius: 4px;
  padding: 13px 15px;
  margin-bottom: 10px;
}
.feedback-item .fb-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 6px;
}
.feedback-item .fb-analysis { font-family: var(--sans); font-size: 13px; color: var(--dim); }
.feedback-item .fb-adjustment {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--neon);
  margin-top: 8px;
  text-shadow: 0 0 8px rgba(0, 255, 156, .25);
}
.feedback-item .fb-adjustment::before { content: "→ "; color: var(--faint); }
.feedback-empty { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .glitch::before, .glitch::after { display: none; }
  .cursor, .cd-colon { opacity: 1; }
}

/* --- pipeline flow strip (/system) --- */
.pipeline { margin: 26px 0 40px; }
.pipe-flow {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
.pipe-node {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 8px; padding: 9px 13px;
  color: var(--text); font-size: 13px; letter-spacing: .02em;
}
.pipe-node em {
  font-style: normal; color: var(--faint); font-size: 10.5px;
  letter-spacing: .04em;
}
.pipe-arrow {
  align-self: center; color: var(--neon); font-size: 16px;
  text-shadow: 0 0 8px var(--neon-dim);
}
.pipe-loop {
  margin: 12px 0 0; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11.5px; letter-spacing: .05em; color: var(--dim);
}
.pipe-loop span { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0,229,255,.4); }
@media (max-width: 640px) {
  .pipe-flow { flex-direction: column; gap: 6px; }
  .pipe-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 18px; }
}

/* feedback item labels: what changed / why (overrides the "→ " default above) */
.feedback-item .fb-adjustment::before, .feedback-item .fb-analysis::before {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  margin-right: 8px;
}
.feedback-item .fb-adjustment::before { content: "changed"; color: var(--neon); }
.feedback-item .fb-analysis::before { content: "why"; color: var(--faint); }
