/* ════════════════════════════════════════════════════════════════════════════
   Wauldo Studio — shared stylesheet
   Tokens, personality variants (signal/forge/grid), density (compact/regular/airy),
   backdrop texture (clean/dotted/grid). Source: Claude Design 2026-04-27.
   Personality "signal" + texture "grid" are the production defaults.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* PERSONALITY: signal (default) */
  --bg: #0B1120;
  --surface: #111726;
  --surface-2: #151B2E;
  --line: #1E2533;
  --line-2: #2A3142;
  --text: #E4E4E7;
  --muted: #B5BCCD;
  --muted-2: #828B9E;
  --accent: #7DD3FC;
  --accent-hover: #BAE6FD;
  --accent-dim: rgba(125, 211, 252, 0.12);
  --accent-ink: #08111E;
  --ok: #4ADE80;
  --warn: #FBBF24;
  --bad: #F87171;
  --neutral: #828B9E;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --d-pad: 1;
  --d-row: 1;
  --d-type: 1;
  --d-gap: 1;

  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

body[data-personality="forge"] {
  --bg: #120D08;
  --surface: #1B130C;
  --surface-2: #221810;
  --line: #2A1F14;
  --line-2: #3A2C1D;
  --text: #F4ECE0;
  --muted: #D4C4B0;
  --muted-2: #95826B;
  --accent: #F59E0B;
  --accent-hover: #FBBF24;
  --accent-dim: rgba(245, 158, 11, 0.14);
  --accent-ink: #1A1108;
}
body[data-personality="grid"] {
  --bg: #0A0B14;
  --surface: #11121F;
  --surface-2: #161826;
  --line: #1E2030;
  --line-2: #2A2D42;
  --text: #E8E8F0;
  --muted: #B8BAD0;
  --muted-2: #7A7D9A;
  --accent: #A78BFA;
  --accent-hover: #C4B5FD;
  --accent-dim: rgba(167, 139, 250, 0.14);
  --accent-ink: #0E0A1C;
}

body[data-density="compact"] { --d-pad: 0.7; --d-row: 0.82; --d-type: 0.94; --d-gap: 0.7; }
body[data-density="airy"]    { --d-pad: 1.4; --d-row: 1.18; --d-type: 1.08; --d-gap: 1.5; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: calc(14px * var(--d-type));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background-color .25s ease;
}

/* MONO PRESSURE escalation (default 1) */
body[data-mono="2"] .btn,
body[data-mono="2"] .desc,
body[data-mono="2"] .answer-text,
body[data-mono="2"] .topnav-links a,
body[data-mono="2"] .text-muted,
body[data-mono="2"] .step-help,
body[data-mono="2"] .dz-title,
body[data-mono="2"] .agent-row .name,
body[data-mono="2"] .step-title,
body[data-mono="2"] p {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
body[data-mono="3"] *:not(svg):not(svg *) {
  font-family: var(--font-mono) !important;
  letter-spacing: -0.015em;
}
body[data-mono="3"] h1, body[data-mono="3"] h2, body[data-mono="3"] h3 {
  letter-spacing: -0.04em;
}

/* TEXTURE — ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s ease;
}
body[data-texture="clean"]::before {
  background-image:
    radial-gradient(circle at 20% 0%, var(--accent-dim), transparent 55%),
    radial-gradient(circle at 80% 100%, var(--accent-dim), transparent 55%);
  opacity: 0.7;
}
body[data-texture="dotted"]::before {
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 60%);
  background-size: 20px 20px, 100% 100%;
  background-position: 0 0, 0 0;
  opacity: 0.85;
}
body[data-texture="grid"]::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--accent-dim), transparent 70%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  opacity: 0.9;
}

/* TYPE */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 16px; line-height: 1.3; }
p  { margin: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero", "ss01"; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}

.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  text-transform: lowercase;
  letter-spacing: 0.06em;
}
.crumb .sep { color: var(--line-2); margin: 0 8px; }
.crumb .here { color: var(--muted); }

.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.accent-word { color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--muted); background: transparent; }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--muted-2); background: var(--surface-2); }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14px; border-radius: var(--r-md); }
.btn-block { width: 100%; justify-content: center; }

/* FORMS */
.field { display: flex; flex-direction: column; gap: 8px; }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color .15s ease, background .15s ease;
  outline: none;
}
.input { height: 40px; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: #131A2C;
  box-shadow: 0 0 0 3px rgba(125,211,252,0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { resize: vertical; min-height: 84px; font-family: var(--font-sans); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* CARDS */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: calc(20px * var(--d-pad)); }
.card-pad-lg { padding: calc(32px * var(--d-pad)); }
.card-hd {
  padding: calc(14px * var(--d-row)) calc(20px * var(--d-pad));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.card-bd { padding: calc(20px * var(--d-pad)); }
.nested { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }

/* VERDICT BADGE */
.verdict-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px 0 7px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid;
  background: rgba(255,255,255,0.02);
  text-transform: uppercase;
}
.verdict-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.verdict-badge[data-verdict="SAFE"]               { color: var(--ok);  border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.08); }
.verdict-badge[data-verdict="PARTIAL"]            { color: var(--warn); border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.verdict-badge[data-verdict="UNVERIFIED"]         { color: var(--muted); border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.verdict-badge[data-verdict="CONFLICT"]           { color: var(--bad);  border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); }
.verdict-badge[data-verdict="INSUFFICIENT_CLAIMS"]{ color: var(--muted); border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.verdict-badge[data-verdict="BLOCK"]              { color: var(--bad); border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.12); }

/* Status dot */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.live  { background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
.dot.idle  { background: var(--muted-2); }

/* KPI TILE */
.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: calc(20px * var(--d-pad));
  display: flex; flex-direction: column;
  gap: calc(14px * var(--d-gap));
}
.kpi-tile .kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.kpi-tile .kpi-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.kpi-tile .kpi-trend {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.kpi-tile .kpi-trend.up   { color: var(--ok); }
.kpi-tile .kpi-trend.down { color: var(--bad); }
.kpi-tile .kpi-trend.flat { color: var(--muted-2); }
.kpi-tile .kpi-trend.good-down { color: var(--ok); }

/* LAYOUT */
.topnav {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 32px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand .mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.brand .lo { color: var(--muted-2); font-weight: 400; }

.topnav-links { display: flex; gap: 4px; margin-left: 8px; }
.topnav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-weight: 500;
}
.topnav-links a:hover { color: var(--text); background: var(--surface-2); }
.topnav-links a.active { color: var(--text); background: var(--surface-2); }

.topnav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-2);
  font-size: 12px;
  cursor: pointer;
  min-width: 220px;
}
.search-chip:hover { border-color: var(--line-2); color: var(--muted); }
.search-chip .kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  background: var(--surface-2);
}
.avatar {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px 0 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.avatar:hover { border-color: var(--line-2); color: var(--text); }
.avatar .ava {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E2533, #2A3142);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.avatar .caret { color: var(--muted-2); }

.subnav {
  padding: calc(32px * var(--d-pad)) calc(32px * var(--d-pad)) 0;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  z-index: 1;
}
.subnav .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.subnav .meta { display: flex; flex-direction: column; gap: 6px; }

.container {
  padding: calc(32px * var(--d-pad));
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.container.wide { max-width: 1400px; }

/* PAGE 1 — LOGIN */
.login-stage {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.login-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(125,211,252,0.06), transparent 60%);
  pointer-events: none;
}
.login-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  z-index: 1;
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.login-foot {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.login-banner {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-family: var(--font-mono);
  display: none;
}
.login-banner.show { display: block; }
.login-banner.error { background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.3); color: var(--bad); }
.login-banner.ok { background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.4); color: var(--ok); }

/* PAGE 2 — AGENTS LIST */
.stats-strip {
  display: flex; align-items: center; gap: 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.stats-strip .item {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.stats-strip .item:first-child { padding-left: 0; }
.stats-strip .item:last-child { border-right: 0; padding-right: 0; }
.stats-strip .item .v { color: var(--text); font-weight: 500; }
.stats-strip .item .l { color: var(--muted-2); font-size: 12px; }

.agent-list { display: flex; flex-direction: column; gap: calc(10px * var(--d-gap)); }
.agent-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: calc(18px * var(--d-row)) calc(20px * var(--d-pad));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s, background .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.agent-row:hover { border-color: var(--line-2); background: #131A2C; }
.agent-row .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agent-row .name { font-size: 15px; font-weight: 600; color: var(--text); }
.agent-row .desc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset-badge {
  display: inline-flex; align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.agent-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; align-items: center; }
.agent-stat { display: flex; flex-direction: column; gap: 2px; min-width: 64px; }
.agent-stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.agent-stat .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.open-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  height: 36px;
}

.empty-state {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: 56px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(125,211,252,0.015) 11px 12px),
    var(--surface);
}
.empty-illu {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* PAGE 3 — CREATE AGENT */
.step {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: calc(32px * var(--d-gap)) 0;
  border-bottom: 1px solid var(--line);
}
.step:last-of-type { border-bottom: 0; }
.step-head { display: flex; flex-direction: column; gap: 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.step-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.step-help { font-size: 13px; color: var(--muted-2); }

.input-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }

.dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(125,211,252,0.02) 11px 12px),
    var(--surface-2);
  padding: 40px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.is-drag { border-color: var(--accent); background: rgba(125,211,252,0.06); }
.dropzone .dz-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.dropzone .dz-title { font-size: 14px; font-weight: 500; }
.dropzone .dz-sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.file-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.file-row.is-ghost { opacity: 0.55; border-color: rgba(248,113,113,.4); }
.file-row .ftype {
  width: 28px; height: 28px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}
.file-row .fname { font-size: 13px; color: var(--text); }
.file-row .fsize { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.file-row .frem  {
  background: transparent; border: 0; color: var(--muted-2);
  font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 4px;
  font-family: var(--font-mono);
}
.file-row .frem:hover { color: var(--bad); background: rgba(248,113,113,0.08); }

.note-callout {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(125,211,252,0.04);
  border: 1px solid rgba(125,211,252,0.2);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start;
}
.note-callout .ic { color: var(--accent); flex-shrink: 0; }

.sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 calc(-32px * var(--d-pad)) calc(-32px * var(--d-pad));
  padding: 16px 32px;
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.sticky-bar .summary { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.sticky-bar .summary .ok { color: var(--ok); }

/* PAGE 4 — AGENT DETAIL / RUN */
.run-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .run-grid { grid-template-columns: 1fr; }
}

.prompt-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.try-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prompt-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.prompt-meta .kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  background: var(--surface-2);
  color: var(--muted);
  margin-left: 4px;
}

.result-card { padding: 0; overflow: hidden; }
/* Defense-in-depth: even if inline style="display:none" gets clobbered by
   a back-nav or upstream JS, this attribute guard keeps the card invisible
   until renderResult() flips data-rendered="true". */
.result-card[data-rendered="false"] { display: none !important; }
.result-head { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.verdict-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.score-block { display: flex; flex-direction: column; gap: 8px; }
.score-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.score-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.score-bar-track { position: absolute; inset: 0; background: linear-gradient(to right, var(--bad) 0%, var(--warn) 50%, var(--ok) 100%); opacity: 0.18; }
.score-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(to right, var(--bad), var(--warn), var(--ok)); border-radius: 999px; transition: width .6s cubic-bezier(.22,1,.36,1); }
.score-tick {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  display: flex; justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.answer-block {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.answer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.answer-text { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }

.claims-section { padding: 18px 20px; }
.claims-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.claims-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.claims-title .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 2px 6px;
}
.claims-list { display: flex; flex-direction: column; gap: 10px; }
.claim {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.claim-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.claim-flag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
}
.claim-flag.supported { color: var(--ok); background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); }
.claim-flag.flagged   { color: var(--bad); background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); }
.claim-source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--line-2);
  line-height: 1.55;
}
.claim-source .src-cite { color: var(--accent); }

.meta-line {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #0E1422;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  display: flex; gap: 0; flex-wrap: wrap;
}
.meta-line .seg { padding: 0 12px; border-right: 1px solid var(--line); }
.meta-line .seg:first-child { padding-left: 0; }
.meta-line .seg:last-child { border-right: 0; }
.meta-line .seg .v { color: var(--text); }

.runs-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 16px;
}
.runs-side-hd {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.runs-list { display: flex; flex-direction: column; max-height: 70vh; overflow-y: auto; }
.run-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: background .12s;
}
.run-item:last-child { border-bottom: 0; }
.run-item:hover { background: var(--surface-2); }
.run-item.is-active { background: var(--surface-2); border-left: 2px solid var(--accent); padding-left: 14px; }
.run-item .top {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.run-item .top .score { margin-left: auto; color: var(--text); }
.run-item .prompt-text {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

/* PAGE 5 — STATS */
.stats-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap .select {
  height: 36px;
  padding-right: 32px;
  width: auto;
  min-width: 180px;
  font-size: 13px;
  appearance: none;
  background: var(--surface);
  cursor: pointer;
}
.select-wrap .caret {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.chart-card { padding: 0; }
.chart-card .chart-hd {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.chart-card .chart-bd { padding: 20px; }

.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) {
  .twoup { grid-template-columns: 1fr; }
}

.stack-bar {
  height: 28px;
  width: 100%;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  overflow: hidden;
}
.stack-bar > .seg {
  height: 100%;
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,0,0,0.7);
  font-weight: 600;
  overflow: hidden;
}
.stack-bar > .seg.safe       { background: var(--ok);  }
.stack-bar > .seg.partial    { background: var(--warn); }
.stack-bar > .seg.unverified { background: var(--neutral); color: rgba(255,255,255,0.85); }
.stack-bar > .seg.conflict   { background: var(--bad); }

.stack-legend {
  display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
}
.stack-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.stack-legend .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.stack-legend .sw.safe { background: var(--ok); }
.stack-legend .sw.partial { background: var(--warn); }
.stack-legend .sw.unverified { background: var(--neutral); }
.stack-legend .sw.conflict { background: var(--bad); }
.stack-legend .v { color: var(--text); }

.lowscore-table { width: 100%; border-collapse: collapse; }
.lowscore-table th, .lowscore-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.lowscore-table tr:last-child td { border-bottom: 0; }
.lowscore-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  font-weight: 500;
  padding-top: 0;
  padding-bottom: 8px;
}
.lowscore-table td.score { font-family: var(--font-mono); color: var(--bad); width: 80px; }
.lowscore-table td.score.warn-color { color: var(--warn); }
.lowscore-table td.verdict { width: 130px; }
.lowscore-table td.prompt { color: var(--muted); }

.stats-foot {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 8px;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Trial badge in topnav (hooked by /api/studio/me) */
.trial-badge {
  display: none;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.trial-badge.show { display: inline-flex; }
.trial-badge.is-warn  { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.06); }
.trial-badge.is-block { color: var(--bad);  border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.08); }

/* Skip-link helper */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; border-radius: var(--r-md); font-family: var(--font-mono); font-size: 13px; }

/* ─── Responsive: tablet/mobile (≤720px) and small phone (≤480px) ─────── */
@media (max-width: 720px) {
  .topnav { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .topnav-links { display: none; }
  .search-chip { display: none; }
  .avatar { padding: 4px 8px; }
  .avatar #user-email { display: none; }

  .subnav { padding: 16px 12px 12px; }
  .subnav .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .subnav h1 { font-size: 22px; }

  .container { padding: 16px 12px; }
  .container.wide { padding: 16px 12px; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }

  .stats-toolbar { gap: 8px; }
  .stats-toolbar .select-wrap,
  .stats-toolbar select { max-width: 100%; }

  .run-grid { grid-template-columns: 1fr; gap: 16px; }
  .twoup { grid-template-columns: 1fr; gap: 16px; }
  .runs-side { max-height: none; }

  .meta-line { flex-wrap: wrap; row-gap: 6px; }

  .agent-row { grid-template-columns: auto 1fr; row-gap: 8px; }
  .agent-stats { grid-column: 1 / -1; justify-content: flex-start; gap: 18px; flex-wrap: wrap; }

  .sticky-bar { padding: 12px; }
}

@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
  .lowscore-table th:nth-child(2),
  .lowscore-table td:nth-child(2) { display: none; }
  .stack-legend { flex-direction: column; align-items: flex-start; gap: 6px; }
  .topnav .brand .lo { display: none; }
}

/* The `hidden` attribute is `display:none` by default but loses against
   class rules that set `display: grid|flex|block`. Force it. */
[hidden] { display: none !important; }

/* ── Demo agents (empty state on /studio/agents) ───────────────── */
.empty-hero {
  text-align: center;
  margin: 24px auto 24px;
  max-width: 720px;
}
.empty-hero h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 8px 0 0 0;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 auto;
  max-width: 1100px;
}
.demo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, transform .12s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(125,211,252,0.06), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.demo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.demo-card:hover::before { opacity: 1; }
.demo-card:disabled { cursor: wait; }
.demo-card-hd {
  display: flex; align-items: center; gap: 10px;
}
.demo-icon { font-size: 22px; line-height: 1; }
.demo-title { font-size: 16px; font-weight: 600; color: var(--text); }
.demo-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.demo-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.demo-tool {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}
.demo-prompt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
}
.demo-prompt {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
}
.demo-cta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.empty-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 32px auto 16px;
  max-width: 1100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  position: relative;
}
.empty-divider::before, .empty-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.empty-divider span { padding: 0 14px; }
.empty-cta-row {
  display: flex; justify-content: center;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .demo-grid { grid-template-columns: 1fr; }
  .empty-hero h2 { font-size: 20px; }
}

/* ── Run progress timeline (during agent run) ───────────────────── */
.run-timeline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-top: 12px;
  animation: rt-fadein .25s ease-out;
}
@keyframes rt-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.run-timeline-hd {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}
.run-timeline-hd .dot.live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: rt-pulse 1.5s ease-in-out infinite;
}
@keyframes rt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}
.run-timeline-hd .rt-label { font-weight: 500; }
.run-timeline-hd .rt-elapsed {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-2);
}
.rt-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.rt-step {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  padding: 6px 0;
  transition: color .2s;
}
.rt-step .rt-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center; justify-content: center;
  position: relative;
}
.rt-step .rt-time {
  font-size: 11px;
  color: var(--muted-2);
  opacity: 0;
  transition: opacity .2s;
}
.rt-step.is-active .rt-icon {
  border-color: var(--accent);
}
.rt-step.is-active .rt-icon::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: rt-pulse 1s ease-in-out infinite;
}
.rt-step.is-active { color: var(--text); }
.rt-step.is-done .rt-icon {
  border-color: var(--ok, #10b981);
  background: var(--ok, #10b981);
}
.rt-step.is-done .rt-icon::after {
  content: "✓";
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.rt-step.is-done { color: var(--text); }
.rt-step.is-done .rt-time { opacity: 1; }
.rt-step.is-pending { opacity: 0.5; }

/* Pulse on the Run button when autorun=1 from a demo card — a 600ms
   visual cue so the user sees the action before it fires automatically. */
@keyframes btn-pulse-kf {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125,211,252,0.65); }
  50%      { box-shadow: 0 0 0 8px rgba(125,211,252,0); }
}
.btn-pulse {
  animation: btn-pulse-kf 0.6s ease-out 1;
}

/* ── Agent type cards (create.html Step 02) ─────────────────────── */
.mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  position: relative;
}
.mode-card:hover { border-color: var(--muted-2); }
.mode-card.is-selected {
  border-color: var(--accent);
  background: rgba(125,211,252,0.04);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mode-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.mode-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mode-card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.mode-card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.mode-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ── Tools picker (create.html Step 04b) ────────────────────────── */
.tools-picker { display: flex; flex-direction: column; gap: 18px; }
.tools-picker-cat-hd { margin-bottom: 8px; }
.tools-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.tool-pick-card {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.tool-pick-card:hover { border-color: var(--muted-2); }
.tool-pick-card.is-selected {
  border-color: var(--accent);
  background: rgba(125,211,252,0.05);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.tool-pick-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tool-pick-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.tool-pick-desc { font-size: 12px; color: var(--muted-2); line-height: 1.4; }
.tool-pick-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(248,113,113,0.08);
  color: var(--bad, #f87171);
  border: 1px solid rgba(248,113,113,0.25);
  font-weight: 500;
}

@media (max-width: 720px) {
  .mode-cards { grid-template-columns: 1fr; }
  .tools-picker-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════════════
   VERDICT HERO — drama-first verdict header (replaces the small pill above
   the score). One emoji + one label + one tagline. Reads in <1 second.
   Color comes from the `data-verdict` attribute applied to the parent.
   ════════════════════════════════════════════════════════════════════════════ */
.verdict-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
  background: rgba(255,255,255,0.015);
}
/* Severity wins over verdict for color heat — UNVERIFIED with most claims
   false reads `data-severity="bad"` so the user sees red, not yellow. */
.verdict-hero[data-verdict="SAFE"]               { border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.04); }
.verdict-hero[data-verdict="PARTIAL"]            { border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.04); }
.verdict-hero[data-verdict="UNVERIFIED"]         { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.03); }
.verdict-hero[data-verdict="CONFLICT"]           { border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.06); }
.verdict-hero[data-verdict="BLOCK"]              { border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.08); }
.verdict-hero[data-verdict="INSUFFICIENT_CLAIMS"]{ border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.verdict-hero[data-severity="bad"]               { border-color: rgba(248,113,113,0.55) !important; background: rgba(248,113,113,0.08) !important; }
.verdict-hero[data-severity="bad"] .verdict-hero-label { color: var(--bad) !important; }
.verdict-hero[data-severity="warn"]              { border-color: rgba(251,191,36,0.4) !important; background: rgba(251,191,36,0.04) !important; }
.verdict-hero[data-severity="warn"] .verdict-hero-label { color: var(--warn) !important; }
.verdict-hero[data-severity="safe"]              { border-color: rgba(74,222,128,0.4) !important; background: rgba(74,222,128,0.04) !important; }
.verdict-hero[data-severity="safe"] .verdict-hero-label { color: var(--ok) !important; }

.verdict-hero-icon {
  font-size: 48px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}
.verdict-hero-text { display: flex; flex-direction: column; gap: 4px; }
.verdict-hero-label {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
  text-transform: uppercase;
}
.verdict-hero[data-verdict="SAFE"]               .verdict-hero-label { color: var(--ok); }
.verdict-hero[data-verdict="PARTIAL"]            .verdict-hero-label { color: var(--warn); }
.verdict-hero[data-verdict="UNVERIFIED"]         .verdict-hero-label { color: var(--warn); }
.verdict-hero[data-verdict="CONFLICT"]           .verdict-hero-label { color: var(--bad); }
.verdict-hero[data-verdict="BLOCK"]              .verdict-hero-label { color: var(--bad); }
.verdict-hero[data-verdict="INSUFFICIENT_CLAIMS"].verdict-hero-label { color: var(--muted); }

.verdict-hero-tagline {
  font-size: 17px;
  color: var(--text);
  line-height: 1.35;
  max-width: 56ch;
  font-weight: 500;
}

.verdict-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

@media (max-width: 600px) {
  .verdict-hero { grid-template-columns: auto 1fr; }
  .verdict-hero-meta { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; padding-left: 64px; }
  .verdict-hero-icon { font-size: 28px; width: 36px; height: 36px; }
  .verdict-hero-label { font-size: 18px; }
}

/* SCORE STRIP — compact bar replacing the old score-block. The hero is
   the lead; this is supporting evidence. */
.score-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.score-strip-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.score-strip .score-num { font-size: 28px; }

/* CLAIMS SECTION (prominent) — first content block under the verdict.
   Each claim row is now scannable: a status emoji on the left, the claim
   text in the middle, a status pill on the right. */
.claims-section-prominent { margin-bottom: 18px; }
.claim {
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.012);
  transition: border-color .12s ease;
}
.claim:last-child { margin-bottom: 0; }
/* False claims get a red wash + thicker red border so the eye lands on
   them first — the demo's visceral signal. Supported claims stay neutral
   so the false ones pop without competing greens. */
.claim:has(.claim-status.is-flagged) {
  border-color: rgba(248,113,113,0.5);
  background: rgba(248,113,113,0.07);
}
.claim:has(.claim-status.is-supported) {
  border-color: rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.025);
}
.claim-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.claim-emoji {
  font-size: 24px;
  line-height: 1.1;
  user-select: none;
}
.claim-text { color: var(--text); font-weight: 500; }
.claim-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}
.claim-status.is-supported { color: var(--ok);  background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.4); }
.claim-status.is-flagged   { color: var(--bad); background: rgba(248,113,113,0.18); border: 1px solid rgba(248,113,113,0.55); }

/* ANSWER COLLAPSED — used to be the lead block; now hidden under
   <details> until the user explicitly wants the full prose. */
.answer-block-collapsed { margin-top: 8px; }
.answer-block-collapsed .answer-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255,255,255,0.012);
  user-select: none;
}
.answer-block-collapsed .answer-summary::-webkit-details-marker { display: none; }
.answer-block-collapsed .answer-summary::before {
  content: "▶";
  font-size: 9px;
  color: var(--muted-2);
  transition: transform .15s ease;
}
.answer-block-collapsed[open] .answer-summary::before { transform: rotate(90deg); }
.answer-block-collapsed .answer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.answer-summary-preview {
  flex: 1;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.answer-summary-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.answer-block-collapsed[open] .answer-summary-hint::before { content: "hide"; }
.answer-block-collapsed[open] .answer-summary-hint { font-size: 0; }
.answer-block-collapsed[open] .answer-summary-hint::before { font-size: 10.5px; }
.answer-block-collapsed .answer-body { padding: 12px 14px 4px; }
.answer-block-collapsed .answer-text { margin: 0; line-height: 1.55; }
