/* Precision-instrument aesthetic: graphite field, one chartreuse signal,
   serif voice for the human words, mono for everything measured. */

:root {
  --ink: #eceee6;
  --ink-dim: #9a9d92;
  --ink-faint: #5c5f55;
  --field: #131410;
  --field-raised: #191b15;
  --hairline: #272921;
  --signal: #d3ff4d;
  --signal-dim: rgba(211, 255, 77, 0.14);
  --danger: #ff7a5c;
  --serif: "Instrument Serif", georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

/* The hidden attribute must win over any display: set by a class. */
[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  background: var(--field);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}

.frame {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- left rail ---------- */

.rail {
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  /* the plotting-paper grid lives on the rail only; the trace stays clean */
  background-color: var(--field);
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  padding: 44px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.brand-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--field);
  background: var(--signal);
  padding: 3px 8px;
  margin-bottom: 22px;
}

.brand-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.brand-title em { color: var(--signal); font-style: italic; }

.brand-sub { color: var(--ink-dim); font-size: 12.5px; max-width: 34ch; }

.micro-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  background: var(--field-raised);
  border: 1px solid var(--hairline);
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 120ms, color 120ms;
}

.chip:hover { border-color: var(--ink-faint); color: var(--ink); }

.chip.is-active {
  color: var(--field);
  background: var(--signal);
  border-color: var(--signal);
  font-weight: 500;
}

.chip.is-pending { opacity: 0.55; cursor: progress; }

/* repo form */

.repo-form { display: flex; gap: 8px; }

.repo-form input {
  flex: 1;
  min-width: 0;
  background: var(--field-raised);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 10px;
  outline: none;
  transition: border-color 120ms;
}

.repo-form input:focus { border-color: var(--signal); }
.repo-form input::placeholder { color: var(--ink-faint); }

.repo-form button,
#repo-submit {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 9px 14px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}

.repo-form button:hover { background: var(--signal); color: var(--field); }
.repo-form button:disabled { opacity: 0.4; cursor: wait; }

/* progress */

.progress { margin-top: 14px; }

.progress-track {
  height: 3px;
  background: var(--hairline);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--signal);
  transition: width 300ms ease;
}

.progress-fill.is-indeterminate {
  width: 30%;
  animation: sweep 1.1s ease-in-out infinite alternate;
}

@keyframes sweep {
  from { transform: translateX(-40%); }
  to { transform: translateX(280%); }
}

.progress-text { margin-top: 8px; font-size: 11px; color: var(--ink-dim); }

/* modes */

.modes { display: flex; border: 1px solid var(--hairline); width: max-content; }

.mode {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 14px;
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  cursor: pointer;
  border-right: 1px solid var(--hairline);
  transition: color 120ms, background 120ms;
}

.mode:last-child { border-right: 0; }
.mode:hover { color: var(--ink); }
.mode.is-active { background: var(--signal); color: var(--field); font-weight: 500; }

.mode-hint { margin-top: 10px; font-size: 11px; color: var(--ink-faint); max-width: 36ch; }

.rail-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  gap: 10px;
}

.rail-foot a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.rail-foot a:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- stage ---------- */

.stage {
  padding: 44px 40px 60px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 14px;
  transition: border-color 150ms;
}

.search:focus-within { border-color: var(--signal); }

.search-glyph { font-size: 20px; color: var(--ink-faint); }

.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
}

.search input::placeholder { color: var(--ink-faint); }
.search input:disabled { opacity: 0.45; }

.search-repo {
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  padding: 4px 8px;
  white-space: nowrap;
}

.search-repo.is-set { color: var(--signal); border-color: var(--signal); }

/* meter */

.meter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0 6px;
}

.meter-hits { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }

.meter-took { font-size: 13px; color: var(--ink-dim); }

.meter-took b {
  font-size: 34px;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: -0.02em;
}

.meter-took-note { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* results */

.results { display: flex; flex-direction: column; }

.hit {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0 20px;
  animation: rise 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hit:nth-child(1) { animation-delay: 0ms; }
.hit:nth-child(2) { animation-delay: 40ms; }
.hit:nth-child(3) { animation-delay: 80ms; }
.hit:nth-child(4) { animation-delay: 120ms; }
.hit:nth-child(5) { animation-delay: 160ms; }
.hit:nth-child(n + 6) { animation-delay: 200ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hit { animation: none; }
  .progress-fill.is-indeterminate { animation: none; }
}

.hit-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.hit-rank {
  font-size: 11px;
  color: var(--ink-faint);
  min-width: 2ch;
}

.hit-path {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hit-path:hover { color: var(--signal); border-color: var(--signal); }

.hit-lines { font-size: 11px; color: var(--ink-faint); }

.hit-lang {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  padding: 1px 6px;
}

.hit-score { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.hit-score-bar {
  width: 72px;
  height: 3px;
  background: var(--hairline);
  position: relative;
}

.hit-score-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--signal);
}

.hit-score-num { font-size: 11px; color: var(--ink-dim); }

.hit-snippet {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 9.5em;
  overflow: hidden;
  position: relative;
}

.hit-snippet::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2.2em;
  background: linear-gradient(transparent, var(--field));
}

.hit-snippet mark {
  background: var(--signal-dim);
  color: var(--signal);
}

/* empty + errors */

.empty { margin-top: 96px; max-width: 46ch; }

.empty-rule { width: 56px; height: 2px; background: var(--signal); margin-bottom: 22px; }

.empty p { font-family: var(--serif); font-size: 22px; line-height: 1.3; }

.empty-fine {
  margin-top: 14px;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  color: var(--ink-faint);
  line-height: 1.6 !important;
}

.inline-error {
  margin-top: 12px;
  font-size: 12px;
  color: var(--danger);
  border-left: 2px solid var(--danger);
  padding-left: 10px;
}

.stage-error { margin-top: 18px; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; }
  .rail { border: 0; border-bottom: 1px solid var(--hairline); padding-top: 32px; gap: 26px; }
  .stage { padding: 28px 20px 48px; border: 0; }
  .brand-title { font-size: 36px; }
  .search input { font-size: 20px; }
  .rail-foot { margin-top: 4px; }
}

/* ---------- ask (agent lane) ---------- */

.ask {
  border: 1px solid var(--signal);
  padding: 20px 22px 16px;
  margin-bottom: 34px;
  background: linear-gradient(rgba(211, 255, 77, 0.045), transparent 70%);
}

.ask-label { color: var(--signal); margin-bottom: 10px; display: block; }

.ask-row { display: flex; gap: 10px; }

.ask-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  outline: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  padding: 4px 0 8px;
  transition: border-color 150ms;
}

.ask-row input:focus { border-color: var(--signal); }
.ask-row input::placeholder { color: var(--ink-faint); }

.ask-row button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--signal);
  color: var(--field);
  border: 1px solid var(--signal);
  padding: 8px 18px;
  cursor: pointer;
  align-self: center;
}

.ask-row button:disabled { opacity: 0.4; cursor: progress; }

.ask-answer {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 2px solid var(--signal);
  padding-left: 14px;
}

.ask-answer .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--signal);
  animation: blink 0.9s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

.ask-note { margin-top: 12px; font-size: 11px; color: var(--ink-faint); max-width: 68ch; }

.tool-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0 4px;
  font-size: 11px;
  color: var(--ink-dim);
}

.tool-head b { color: var(--signal); font-weight: 500; }
.tool-head .tool-ms { margin-left: auto; color: var(--signal); }

/* ---------- raw-search drawer + meter split ---------- */

.raw { margin-bottom: 6px; }

.raw-summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  user-select: none;
  transition: color 120ms;
}

.raw-summary::-webkit-details-marker { display: none; }
.raw-summary::before { content: "▸ "; color: var(--ink-faint); }
.raw[open] .raw-summary::before { content: "▾ "; }
.raw-summary:hover { color: var(--ink-dim); }

.raw[open] { border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }

.raw .search { margin-top: 6px; }

.raw-modes { margin-top: 14px; }

.meter-times { display: flex; gap: 22px; align-items: baseline; }

.meter-claude b { color: var(--ink-dim); }

/* ---------- trace (tool cards + streaming answer) ---------- */

.step {
  border: 1px solid var(--hairline);
  background: var(--field-raised);
  margin-top: 10px;
  animation: rise 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.step-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  user-select: none;
}

.step-summary::-webkit-details-marker { display: none; }

.step-chevron { color: var(--ink-faint); font-size: 10px; transition: transform 150ms; }
.step[open] .step-chevron { transform: rotate(90deg); }

.step-server {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--field);
  background: var(--signal);
  padding: 1px 6px;
  font-weight: 700;
}

.step-tool { color: var(--ink); font-weight: 500; }

.step-query {
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.step-meta { color: var(--signal); font-size: 11px; white-space: nowrap; }

.step-hits { border-top: 1px solid var(--hairline); padding: 4px 14px 10px; }

.step-hit {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}

.step-hit:last-child { border-bottom: 0; }

.step-hit .hit-path { font-size: 12px; }
.step-hit .hit-score { margin-left: auto; }

.step-working {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 2px;
  font-size: 12px;
  color: var(--ink-dim);
}

.step-working-dot {
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.7); }
}

.step-answer {
  margin-top: 18px;
  padding: 16px 0 6px 16px;
  border-left: 2px solid var(--signal);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.step-answer .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--signal);
  animation: blink 0.9s steps(1) infinite;
  vertical-align: text-bottom;
}

.meter-tokens b { color: var(--ink-dim); }

@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  .step-working-dot { animation: none; }
}

/* Interstitial narration between tool calls — quiet, Claude-Desktop-style. */
.step-note {
  margin-top: 14px;
  padding-left: 16px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.step-note .cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--ink-dim);
  animation: blink 0.9s steps(1) infinite;
  vertical-align: text-bottom;
}

/* ---------- turns, lanes, benchmark ---------- */

.turn-q {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  padding: 4px 0 14px;
  border-bottom: 2px solid var(--hairline);
}

.lane-divider {
  margin-top: 28px;
  padding: 8px 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px dashed var(--hairline);
}

.step-server.is-baseline { background: var(--ink-faint); color: var(--field); }

.step-preview {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 8px 0;
  max-height: 16em;
  overflow-y: auto;
}

.bench-offer { margin-top: 22px; }

.bench-button {
  font-family: var(--mono);
  font-size: 12px;
  background: transparent;
  color: var(--ink-dim);
  border: 1px dashed var(--ink-faint);
  padding: 9px 16px;
  cursor: pointer;
  transition: color 120ms, border-color 120ms;
}

.bench-button:hover { color: var(--signal); border-color: var(--signal); }
.bench-button:disabled { opacity: 0.5; cursor: progress; }

.bench-table { margin-top: 24px; border: 1px solid var(--hairline); }

.bench-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }

.bench-table th, .bench-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
}

.bench-table th {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.bench-table tr:last-child td { border-bottom: 0; }
.bench-table td:first-child { color: var(--ink-dim); }
.bench-table td.is-win { color: var(--signal); font-weight: 700; }


/* ---------- slim sticky composer + appended turns ---------- */

.ask {
  border: 0;
  background: var(--field);
  padding: 14px 0 18px;
  margin-bottom: 0;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
}

.ask-row input { font-size: 19px; }

.turn-q:not(:first-child) { margin-top: 44px; }


/* ---------- fixed viewport: only the trace scrolls ---------- */

@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
  .frame { height: 100vh; min-height: 0; }
  .rail { height: 100vh; overflow-y: auto; }
  .stage { height: 100vh; overflow: hidden; }
  .results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--hairline) transparent;
    padding-right: 6px;
  }
  .empty { margin-top: 12vh; }
  .ask { position: static; }
}

.results::-webkit-scrollbar { width: 6px; }
.results::-webkit-scrollbar-thumb { background: var(--hairline); }

.lane-note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--ink-faint);
}


/* ---------- right drawer (benchmark trace / index inspector) ---------- */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 92vw);
  background: var(--field-raised);
  border-left: 1px solid var(--hairline);
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--hairline);
}

.drawer-head .micro-label { margin: 0; color: var(--signal); }

#drawer-close {
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font-size: 14px;
  cursor: pointer;
}

#drawer-close:hover { color: var(--signal); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 32px; }

.inspect-btn {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  background: transparent;
  color: var(--ink-dim);
  border: 1px dashed var(--ink-faint);
  padding: 8px 12px;
  cursor: pointer;
  transition: color 120ms, border-color 120ms;
}

.inspect-btn:hover { color: var(--signal); border-color: var(--signal); }

.index-stats { font-size: 12px; color: var(--ink-dim); line-height: 1.9; margin-bottom: 14px; }
.index-stats b { color: var(--signal); font-weight: 700; }
.index-schema { font-size: 11px; color: var(--ink-faint); margin-bottom: 18px; }

.index-chunk {
  border: 1px solid var(--hairline);
  background: var(--field);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.index-chunk-head { display: flex; gap: 10px; font-size: 11px; margin-bottom: 6px; }
.index-chunk-head .path { color: var(--ink); font-weight: 500; }
.index-chunk-head .lines { color: var(--ink-faint); }
.index-chunk-head .lang { margin-left: auto; color: var(--signal); text-transform: uppercase; font-size: 9px; letter-spacing: 0.12em; }
.index-chunk { cursor: pointer; }

.index-chunk pre {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 8.5em;
  overflow: hidden;
  position: relative;
}

/* collapsed chunks fade out at the bottom; click the card to expand */
.index-chunk:not(.is-open) pre::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2.5em;
  background: linear-gradient(transparent, var(--field));
}

.index-chunk.is-open pre { max-height: none; }

.bench-pending { margin-top: 20px; font-size: 11px; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; }
/* The trace-view button is the comparison's call to action — attached to the
   table, full width, unmissable. */
.bench-view {
  display: block;
  width: 100%;
  background: var(--signal-dim);
  border: 1px solid var(--signal);
  border-top: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  padding: 11px 14px;
  transition: background 120ms, color 120ms;
}

.bench-view b { font-weight: 700; }

.bench-view:hover { background: var(--signal); color: var(--field); }

/* snug against the comparison table above it */
.bench-table { margin-bottom: 0; }


/* ---------- index storage tree ---------- */

.storage-label { margin: 20px 0 10px; color: var(--signal); }

.storage-tree {
  border: 1px solid var(--hairline);
  background: var(--field);
  padding: 8px 12px;
  margin-bottom: 6px;
  max-height: 18em;
  overflow-y: auto;
}

.storage-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--ink-dim);
}

.storage-row .storage-path { overflow-wrap: anywhere; }
.storage-row .storage-size { color: var(--ink-faint); white-space: nowrap; }

/* ---------- indexing pipeline steps + mono composer ---------- */

.index-pipeline {
  margin: 0 0 6px 18px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-dim);
}

.index-pipeline li::marker { color: var(--signal); }

/* the composer input joins the mono voice of everything measured */
.ask-row input {
  font-family: var(--mono);
  font-size: 14px;
  font-style: normal;
}

.ask-row input::placeholder { font-style: italic; }


/* partial-index banner: the index is still building under this answer */
.partial-banner {
  margin-top: 14px;
  padding: 9px 12px;
  font-size: 11.5px;
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px dashed var(--signal);
}

/* bench-view now stands alone (table moved to the drawer) */
.bench-view { border-top: 1px solid var(--signal); margin-top: 20px; }
.drawer-body .bench-table { margin-bottom: 18px; }


/* user questions render in the mono voice, not the display serif */
.turn-q {
  font-family: var(--mono);
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}


/* headline joins the mono voice */
.brand-title {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-title em { font-style: normal; }


/* empty-state lantern */
.empty {
  margin: auto;
  padding-bottom: 6vh;
  display: flex;
  justify-content: center;
  max-width: none;
}

.empty-flame { animation: flame 2.6s ease-in-out infinite; }
.empty-flame-halo { animation: flame 2.6s ease-in-out infinite; }

@keyframes flame {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.empty-flame-halo { animation-name: halo; }

@keyframes halo {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.07; }
}

@media (prefers-reduced-motion: reduce) {
  .empty-flame, .empty-flame-halo { animation: none; }
}
