/* ============ FormCoach AI — dark athletic theme ============ */
:root {
  --bg: #f5f1f0;            /* warm off-white page plane */
  --surface: #ffffff;       /* cards / chart surface */
  --surface-2: #f2f0fa;
  --border: rgba(0, 0, 0, 0.08);
  --ink: #1d1d1f;
  --ink-2: #4b4b54;
  --ink-muted: #86868b;
  --accent: #5e5ce6;        /* indigo accent — validated on white */
  --accent-ink: #ffffff;    /* text on accent */
  --series-1: #5e5ce6;      /* chart series — validated vs surface */
  --grid: #e9e7f2;
  --baseline: #c9c7d6;
  --good: #0b8a0b;
  --warning: #b45309;
  --critical: #c43d3d;
  --radius: 14px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(94, 92, 230, 0.08), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(233, 128, 116, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
h1, h2, h3, .brand-name, .hud-value, .phase-badge {
  font-family: "Space Grotesk", system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.4rem;
  background: rgba(245, 241, 240, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.85rem; font-weight: 800;
}
.brand-name em { color: var(--accent); font-style: normal; }
.topnav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.92rem; }
.topnav a { text-decoration: none; color: var(--ink-2); }
.topnav a:hover { color: var(--ink); }

.chip {
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-size: 0.82rem;
}
.chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 5rem 1.4rem 4rem;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-visual { display: none; } }

.hero-visual { display: grid; place-items: center; }
.mock-stage {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #eeeafa);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 2rem 2.4rem 1.2rem;
  box-shadow: 0 24px 60px rgba(70, 60, 160, 0.14), 0 0 0 1px rgba(94, 92, 230, 0.10);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock-stage { animation: none; } }
.mock-badge {
  position: absolute; top: 12px; left: 14px;
  color: var(--accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
}
.mock-skeleton { width: 170px; height: auto; display: block; filter: drop-shadow(0 0 14px rgba(94, 92, 230, 0.35)); }
.mock-hud { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.mock-chip {
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.25rem 0.6rem; font-size: 0.75rem; color: var(--ink-2);
}
.mock-chip b { color: var(--accent); font-size: 0.95rem; }
.mock-chip-score b { color: var(--good); }
.mock-cue { color: var(--ink-muted); font-size: 0.72rem; }
.eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.lede { max-width: 46rem; margin: 1.3rem 0 1.8rem; color: var(--ink-2); font-size: 1.08rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.4rem; margin-top: 2.6rem; list-style: none; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; color: var(--accent); }
.hero-stats span { color: var(--ink-muted); font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 10px;
  padding: 0.65rem 1.3rem; font-weight: 700; text-decoration: none;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(94, 92, 230, 0.35);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- sections ---------- */
.section-title { font-size: 1.6rem; letter-spacing: -0.01em; position: relative; padding-left: 0.9rem; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: 0.25em; bottom: 0.25em;
  width: 4px; border-radius: 2px; background: var(--accent);
}
.how-card { transition: transform 0.15s ease, box-shadow 0.2s ease; }
.how-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(29, 29, 31, 0.10); }
.section-sub { color: var(--ink-muted); margin: 0.3rem 0 1.4rem; }
.app, .progress, .coachsec, .how, .summary {
  max-width: var(--maxw); margin: 0 auto; padding: 3.2rem 1.4rem;
}

/* ---------- exercise picker ---------- */
.exercise-picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem; margin-bottom: 1.2rem;
}
.ex-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: left;
  display: flex; flex-direction: column; gap: 0.25rem; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
}
.ex-card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.10);
}
.ex-card.selected { border-color: var(--accent); background: var(--surface-2); }
.ex-icon { font-size: 1.5rem; }
.ex-name { font-weight: 700; }
.ex-desc { color: var(--ink-muted); font-size: 0.8rem; }

.jump-calib {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
  color: var(--ink-2); font-size: 0.9rem;
}
.jump-calib input {
  width: 90px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.6rem;
}

/* ---------- stage + HUD ---------- */
.stage-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; }
@media (max-width: 800px) { .stage-wrap { grid-template-columns: 1fr; } }

.stage {
  position: relative; background: #000; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border);
}
.stage video, .stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1); /* mirror = natural selfie view */
}
/* uploaded footage isn't a selfie — don't mirror it */
.stage.file-mode video, .stage.file-mode canvas { transform: none; }
.stage-msg {
  position: absolute; inset: 0; display: grid; place-items: center;
  align-content: center; gap: 1rem; background: var(--surface);
  color: var(--ink-2); text-align: center; padding: 1rem;
}
.phase-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(20, 18, 40, 0.75); color: #c3c1ff;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.8rem; padding: 0.35rem 0.7rem; border-radius: 8px;
}

.hud { display: flex; flex-direction: column; gap: 0.8rem; }
.hud-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1rem;
}
.hud-label {
  display: block; color: var(--ink-muted); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem;
}
.hud-value { font-size: 3rem; font-weight: 800; line-height: 1; }

.score-ring {
  --pct: 0;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; margin: 0.3rem auto 0;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0);
}
.score-ring span { font-size: 1.5rem; font-weight: 800; }

.live-cue { color: var(--ink-2); font-size: 0.95rem; min-height: 2.8em; }
.live-cue.warn { color: var(--warning); }
.live-cue.bad { color: var(--critical); }
.live-cue.good { color: var(--good); }
.hud-actions .btn { width: 100%; }

/* ---------- summary ---------- */
.summary-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem; margin-bottom: 1rem;
}
.sum-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
.sum-card b { display: block; font-size: 1.8rem; }
.sum-card span { color: var(--ink-muted); font-size: 0.82rem; }
.rep-strip {
  display: flex; align-items: flex-end; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1rem;
  min-height: 64px;
}
.rep-strip:empty { display: none; }
.rep-strip-label { color: var(--ink-muted); font-size: 0.78rem; margin-right: 0.6rem; align-self: center; }
.rep-bar {
  width: 14px; min-height: 6px; max-height: 48px;
  border-radius: 3px 3px 0 0; background: currentColor;
}
.rep-bar[data-band="good"] { color: var(--good); }
.rep-bar[data-band="warn"] { color: var(--warning); }
.rep-bar[data-band="bad"]  { color: var(--critical); }

.agent-radar { width: 140px; height: 140px; margin-left: auto; flex-shrink: 0; }
@media (max-width: 600px) { .agent-radar { display: none; } }

.coach-note {
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem; color: var(--ink-2);
}

/* ---------- multi-agent report ---------- */
.reportsec { max-width: var(--maxw); margin: 0 auto; padding: 3.2rem 1.4rem; }
.report-status { color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem; }
.report-status code { color: var(--accent); font-size: 0.85em; }
.report-overall {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem;
}
.report-overall-num { font-size: 2.6rem; font-weight: 800; }
.report-overall p { color: var(--ink-muted); font-size: 0.88rem; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; }
.agent-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.agent-card header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.agent-icon { font-size: 1.4rem; }
.agent-card h4 { font-size: 0.95rem; }
.agent-engine { color: var(--ink-muted); font-size: 0.72rem; }
.agent-score { margin-left: auto; font-size: 1.4rem; font-weight: 800; }
[data-band="good"] { color: var(--good); }
[data-band="warn"] { color: var(--warning); }
[data-band="bad"] { color: var(--critical); }
.agent-card ul { margin: 0 0 0.6rem 1.1rem; color: var(--ink-2); font-size: 0.88rem; display: grid; gap: 0.3rem; }
.agent-reasoning { color: var(--ink-muted); font-size: 0.8rem; font-style: italic; }

/* ---------- chart ---------- */
.viz-root {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.viz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.viz-head h3 { font-size: 1rem; font-weight: 700; }
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-empty { color: var(--ink-muted); font-size: 0.9rem; padding: 1.5rem 0; text-align: center; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.chart-table th, .chart-table td {
  text-align: left; padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.chart-table th { color: var(--ink-muted); font-weight: 600; }
.viz-tooltip {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.8rem;
  color: var(--ink); box-shadow: 0 4px 14px rgba(29, 29, 31, 0.18);
}

/* ---------- chat ---------- */
.chat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.chat-log {
  padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem;
  max-height: 340px; overflow-y: auto;
}
.msg { max-width: 80%; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.94rem; }
.msg-coach { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; }
.msg-user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }
.msg-coach.thinking { color: var(--ink-muted); font-style: italic; }
.chat-form {
  display: flex; gap: 0.5rem; padding: 0.7rem;
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 0.9rem; color: var(--ink);
}
.memory-chat { margin-top: 1rem; }
.memory-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--border);
}
.memory-head h3 { font-size: 1rem; }
.memory-head p { color: var(--ink-muted); font-size: 0.84rem; }

/* ---------- how ---------- */
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.how-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
}
.how-card span {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 0.85rem; margin-bottom: 0.5rem;
}
.how-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.how-card p { color: var(--ink-2); font-size: 0.88rem; }

/* ---------- footer / modal ---------- */
.footer {
  text-align: center; color: var(--ink-muted); font-size: 0.85rem;
  padding: 2.5rem 1rem; border-top: 1px solid var(--border); margin-top: 2rem;
}
.modal {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; max-width: 420px; width: 92vw;
}
.modal::backdrop { background: rgba(29, 29, 31, 0.35); }
.modal h3 { margin-bottom: 0.2rem; }
.modal-sub { color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.modal label { display: block; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 0.8rem; }
.modal input {
  display: block; width: 100%; margin-top: 0.25rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 0.7rem; color: var(--ink);
}
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

/* ---------- privacy HUD ---------- */
.hud-privacy { border-color: rgba(94, 92, 230, 0.30); }
.privacy-stats { color: var(--ink-2); font-size: 0.8rem; line-height: 1.5; }
.privacy-stats b { color: var(--accent); font-variant-numeric: tabular-nums; }
.privacy-local {
  display: flex; gap: 0.45rem; align-items: flex-start;
  margin-top: 0.55rem; color: var(--ink-muted); font-size: 0.76rem; cursor: pointer;
}
.privacy-local input { accent-color: var(--accent); margin-top: 2px; }

/* ---------- guided workout ---------- */
.guided-bar {
  display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap;
  margin: 0.9rem 0 1rem; color: var(--ink-2); font-size: 0.9rem;
}
.guided-bar select {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.5rem;
}

/* ---------- auth ---------- */
.auth-error { color: var(--critical); font-size: 0.82rem; min-height: 1.2em; margin: -0.3rem 0 0.5rem; }

/* engine tag on chat replies — shows exactly what produced the answer */
.msg-engine {
  display: block; margin-top: 0.4rem;
  font-size: 0.68rem; color: var(--ink-muted);
}

/* ---------- hero photo with product HUD overlay ---------- */
.hero-shot {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(70, 60, 160, 0.20), 0 0 0 1px rgba(94, 92, 230, 0.12);
  animation: floaty 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-shot { animation: none; } }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot-badge {
  position: absolute; top: 12px; left: 14px;
  background: rgba(20, 18, 40, 0.65); color: #e6e5ff;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 0.3rem 0.65rem; border-radius: 8px; backdrop-filter: blur(6px);
}
.hero-shot-hud {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.hero-shot .mock-chip {
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.06); color: var(--ink-2);
}

/* ---------- any-sport band (cover) ---------- */
.sport-band {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(70, 60, 160, 0.12);
}
.sport-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sport-band-copy { padding: 2.2rem; }
.sport-band-copy h2 { font-size: 1.7rem; line-height: 1.15; margin-bottom: 0.8rem; }
.sport-band-copy p { color: var(--ink-2); margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .sport-band { grid-template-columns: 1fr; }
  .sport-band img { max-height: 240px; }
}

/* ---------- app tabs ---------- */
.tab-hidden { display: none !important; }
.topnav a.active { color: var(--accent); font-weight: 700; }

/* ---------- typographic statement band ---------- */
.statement {
  max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.4rem;
  text-align: center;
}
.statement-big {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.03em; color: var(--ink);
}
.statement-sub {
  color: var(--ink-muted); margin: 1.1rem auto 1.6rem; max-width: 34rem;
}

/* ---------- fault evidence gallery ---------- */
.fault-gallery {
  display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: flex-start;
  margin-bottom: 1rem;
}
.fault-gallery:empty { display: none; }
.fault-shot {
  width: 180px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.fault-shot img { display: block; width: 100%; height: auto; }
.fault-shot figcaption {
  padding: 0.4rem 0.55rem; font-size: 0.72rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- error notebook ---------- */
.notebook { margin-top: 1rem; }
.note-entry {
  color: #c0392b;
  font-size: 0.86rem;
  margin: 0.3rem 0;
  padding-left: 0.7rem;
  border-left: 3px solid #c0392b;
}
.notebooks { margin-top: 2rem; }
.notebooks-title { font-size: 1rem; margin-bottom: 0.6rem; }
.notebook-session {
  background: var(--card, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.6rem;
}
.notebook-session summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
#visionReport { white-space: pre-line; }

/* ---------- hosted-page local-AI banner ---------- */
.lan-banner {
  background: #fff3cd; color: #663c00; border-bottom: 1px solid #e0c068;
  padding: 0.6rem 1rem; font-size: 0.92rem; text-align: center;
  display: flex; gap: 0.6rem; align-items: center; justify-content: center; flex-wrap: wrap;
}
.lan-banner a { color: #5e5ce6; }
.lan-small { font-size: 0.8rem; opacity: 0.8; }
.lan-banner button { border: 0; background: none; cursor: pointer; font-size: 1rem; }

/* ---------- vision walkthrough cards ---------- */
.vision-report { display: grid; gap: 0.7rem; margin-top: 1rem; }
.vr-status { color: #666; font-size: 0.92rem; }
.vision-card {
  background: #fff; border-radius: 14px; padding: 0.9rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-left: 4px solid #5e5ce6;
}
.vision-card.vr-fault { border-left-color: #c0392b; }
.vr-head { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.45rem; }
.vr-stamp {
  font-weight: 700; font-size: 0.82rem; color: #5e5ce6;
  background: rgba(94, 92, 230, 0.1); border-radius: 6px; padding: 0.12rem 0.5rem;
}
.vr-tag { font-size: 0.82rem; color: #555; }
.vision-card.vr-fault .vr-tag { color: #c0392b; font-weight: 600; }
.vr-body { font-size: 0.92rem; color: #333; white-space: pre-wrap; }
.vr-line { margin: 0.3rem 0; white-space: normal; }
.vr-line b { color: #5e5ce6; margin-right: 0.35rem; }
.vision-card.vr-fault .vr-line b { color: #c0392b; }

.mic-level { font-family: ui-monospace, monospace; color: #5e5ce6; font-size: 0.95rem; }
