[hidden] { display: none !important; }
/* Access Video — design system aligned with the Access Wealth website.
   Inter, pill buttons, #65cc01 on dark / deep greens on light, 16px radii.
   Dark-first: :root holds the dark tokens; html[data-theme="light"] overrides.
   Every colour is a token with a value in BOTH themes. */

:root {
  color-scheme: dark;

  /* Brand */
  --green-primary: #65cc01;
  --green-hover: #5cb501;
  --green-mid: #23a033;
  --green-deep: #176c21;
  --grad-green: linear-gradient(135deg, #23a033 0%, #65cc01 100%);

  /* Surfaces */
  --bg: #000000;
  --bg-sidebar: #0d0d0d;
  --card: #111111;
  --inset: #181818;
  --line: #1f1f1f;
  --input-bg: #161616;
  --input-border: #2a2a2a;

  /* Text */
  --heading: #ffffff;
  --text: #ffffff;
  --muted: #909090; /* brand grey #888 nudged for WCAG AA on inset surfaces */

  /* Accent (text-safe per theme: bright green on dark, deep green on light) */
  --accent: #65cc01;
  --accent-ink: #0a0a0a;      /* text on a green fill */
  --link: #65cc01;
  --dot: #65cc01;
  --dot-ring: rgba(101, 204, 1, 0.18);
  --highlight: rgba(101, 204, 1, 0.14);
  --btn-ring: rgba(101, 204, 1, 0.22);
  --focus-ring: rgba(101, 204, 1, 0.28);
  --ghost-border: rgba(255, 255, 255, 0.22);

  /* Status */
  --ok: #65cc01;
  --ok-bg: rgba(101, 204, 1, 0.10);
  --ok-border: rgba(101, 204, 1, 0.45);
  --warn: #ffc857;
  --warn-bg: rgba(255, 200, 87, 0.10);
  --warn-border: rgba(255, 200, 87, 0.45);
  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.10);
  --danger-border: rgba(255, 107, 107, 0.45);
  --info: #7cc4ff;
  --info-bg: rgba(124, 196, 255, 0.10);
  --info-border: rgba(124, 196, 255, 0.45);

  /* Effects */
  --progress: #65cc01;
  --card-shadow: none;
  --glow: radial-gradient(ellipse at top left, rgba(101, 204, 1, 0.08), transparent 60%);

  /* Shape & type */
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f2f2f2;
  --bg-sidebar: #ffffff;
  --card: #ffffff;
  --inset: #f6f6f6;
  --line: #e3e3e3;
  --input-bg: #ffffff;
  --input-border: #d6d6d6;

  --heading: #0a0a0a;
  --text: #3d3d3d;
  --muted: #6b6b6b;

  --accent: #176c21;
  --accent-ink: #0a0a0a;
  --link: #176c21;
  --dot: #23a033;
  --dot-ring: rgba(35, 160, 51, 0.16);
  --highlight: rgba(35, 160, 51, 0.12);
  --btn-ring: rgba(101, 204, 1, 0.22);
  --focus-ring: rgba(35, 160, 51, 0.22);
  --ghost-border: #cfcfcf;

  --ok: #176c21;
  --ok-bg: rgba(35, 160, 51, 0.10);
  --ok-border: rgba(23, 108, 33, 0.35);
  --warn: #8a5b00;
  --warn-bg: rgba(154, 107, 0, 0.10);
  --warn-border: rgba(138, 91, 0, 0.35);
  --danger: #c62828;
  --danger-bg: rgba(198, 40, 40, 0.08);
  --danger-border: rgba(198, 40, 40, 0.35);
  --info: #0d5aa8;
  --info-bg: rgba(13, 90, 168, 0.08);
  --info-border: rgba(13, 90, 168, 0.35);

  --progress: #23a033;
  --card-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  --glow: none;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5; /* brand: body 150% */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--glow);
  pointer-events: none;
}

a { color: var(--link); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

/* Brand type scale: Bold 700 headings, titles -2% tracking, 120% line-height */
h1, h2, h3 { color: var(--heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
h4 {
  display: flex; align-items: center; gap: 9px;
  margin: 14px 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em; /* brand: captions/eyebrows +10% */
  font-size: 13px;
  font-weight: 700;
}
h4::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px var(--dot-ring);
}
p { margin: 6px 0; }
strong { color: var(--heading); }
code {
  background: var(--inset);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.86em;
  color: var(--heading);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
  transition: background-color 0.25s ease;
}
.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 2px;
}
.brand .aw { color: var(--accent); }
.brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav a:hover { background: var(--inset); text-decoration: none; }
.nav a.active { background: var(--highlight); color: var(--accent); font-weight: 600; }
.sidebar .spacer { flex: 1; }
.userbox {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--heading);
  font-weight: 600;
}
.userbox .role { color: var(--muted); font-size: 0.76rem; font-weight: 500; }

.main { flex: 1; padding: 34px 42px 70px; max-width: 1180px; min-width: 0; }
.page-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head .sub { color: var(--muted); font-size: 0.9rem; }

/* ---------- Cards & grid ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background-color 0.25s ease;
}
.card h2 { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid > .card { margin-bottom: 0; }
.grid > .card:hover { transform: translateY(-4px); border-color: var(--ghost-border); }
@media (max-width: 1000px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  vertical-align: middle;
}
.badge.accent { color: var(--accent-ink); background: var(--green-primary); border-color: transparent; }
.badge.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-border); }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }
.badge.danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-border); }
.badge.info { color: var(--info); background: var(--info-bg); border-color: var(--info-border); }
.badge.muted { color: var(--muted); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green-primary);
  color: var(--accent-ink);
  font-weight: 600; /* brand: Semibold buttons, sentence case */
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              box-shadow 0.18s ease, transform 0.3s var(--ease);
}
.btn:hover {
  background: var(--green-hover);
  box-shadow: 0 0 0 3px var(--btn-ring);
  text-decoration: none;
}
.btn.secondary {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--ghost-border);
}
.btn.secondary:hover {
  background: transparent;
  border-color: var(--accent);
  box-shadow: none;
}
.btn.small { padding: 6px 14px; font-size: 0.78rem; }
.btn.danger {
  background: transparent;
  border: 2px solid var(--danger-border);
  color: var(--danger);
}
.btn.danger:hover { background: var(--danger-bg); border-color: var(--danger); box-shadow: none; }

/* ---------- Forms ---------- */
input, select, textarea {
  background: var(--input-bg);
  color: var(--heading);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.9rem;
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; }
label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500; /* brand: Medium for UI labels */
  letter-spacing: 0.03em;
  margin: 12px 0 4px;
}
textarea { min-height: 70px; resize: vertical; }
form.inline { display: inline; }

/* ---------- Flash messages ---------- */
.flash {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}
.flash.ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok); }
.flash.err { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }

/* ---------- Progress ---------- */
.progressbar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progressbar > div { height: 100%; background: var(--progress); border-radius: 999px; }

/* ---------- Pipeline ---------- */
.pipeline { display: flex; gap: 8px; flex-wrap: wrap; }
.pipeline .step {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--inset);
}
.pipeline .step.done { border-color: var(--ok-border); color: var(--ok); background: var(--ok-bg); }
.pipeline .step.running { border-color: var(--warn-border); color: var(--warn); background: var(--warn-bg); }
.pipeline .step.failed { border-color: var(--danger-border); color: var(--danger); background: var(--danger-bg); }

/* ---------- Metrics ---------- */
.metric {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.metric .v { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.metric .k { font-size: 0.68rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* ---------- Transcript ---------- */
.transcript {
  max-height: 520px; overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  background: var(--inset);
}
.seg { display: flex; gap: 10px; padding: 6px 14px; }
.seg:target { background: var(--highlight); outline: 1px solid var(--accent); }
.seg .t { color: var(--muted); font-size: 0.76rem; min-width: 46px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.seg .who { min-width: 78px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; padding-top: 2px; }
.seg.rep .who { color: var(--accent); }
.seg.prospect .who { color: var(--info); }
.seg .txt { flex: 1; }

/* ---------- Findings ---------- */
.finding {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--inset);
}
.finding.strength { border-left-color: var(--ok); }
.finding.improvement { border-left-color: var(--warn); }
.finding.critical { border-left-color: var(--danger); }
.finding.uncertain { border-left-color: var(--muted); }
.finding .quote {
  border-left: 2px solid var(--line);
  margin: 8px 0; padding: 4px 12px;
  color: var(--muted); font-style: italic;
}
.finding .meta { font-size: 0.78rem; color: var(--muted); }

/* ---------- Notes & chips ---------- */
.engine-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.score-pill { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--heading); }

.section-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}
.wl-exact { color: var(--danger); border-color: var(--danger-border); background: var(--danger-bg); }
.wl-paraphrase { color: var(--warn); border-color: var(--warn-border); background: var(--warn-bg); }
.wl-principle { color: var(--ok); border-color: var(--ok-border); background: var(--ok-bg); }

/* ---------- Details & media ---------- */
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin: 8px 0;
  background: var(--inset);
}
details summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
details summary:hover { color: var(--accent); }
details[open] summary { margin-bottom: 6px; }

audio { width: 100%; border-radius: 999px; }

/* ---------- Footer ---------- */
.footer-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300; /* brand: Light for footnotes */
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--ghost-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--btn-ring); }
.theme-toggle .theme-icon { font-size: 0.9rem; line-height: 1; }
.sidebar .theme-toggle { width: 100%; margin-bottom: 12px; }
.login-theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 10; }

/* ---------- Login ---------- */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { width: 400px; max-width: 100%; padding: 30px 32px; }

/* ---------- Responsive: sidebar becomes a top bar ---------- */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: static;
    width: auto; height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 8px 14px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
  .brand { margin: 0; }
  .brand-sub { margin: 0; }
  .sidebar .spacer { display: none; }
  .nav {
    display: flex;
    flex: 1 1 100%;
    order: 5;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { white-space: nowrap; flex-shrink: 0; }
  .sidebar .theme-toggle { width: auto; margin-bottom: 0; margin-left: auto; }
  .userbox {
    border-top: none; padding-top: 0;
    display: flex; align-items: center; gap: 10px;
  }
  .userbox form { margin-top: 0 !important; }
  .main { padding: 22px 16px 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grid > .card:hover { transform: none; }
}

/* ================= Access Video additions ================= */

/* Respondent pages: mobile-first, single column, calm */
.respond-wrap {
  max-width: 640px; margin: 0 auto; padding: 24px 16px 60px;
}
.respond-brand { text-align: center; margin: 8px 0 20px; font-weight: 800;
  font-size: 1.15rem; color: var(--heading); }
.respond-brand .aw { color: var(--accent); }
.respond-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--card-shadow);
}
.respond-progress { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.question-text { font-size: 1.35rem; line-height: 1.35; font-weight: 700;
  color: var(--heading); letter-spacing: -0.02em; margin: 4px 0 10px; }
.help-hint { color: var(--muted); margin-bottom: 14px; }
.notice-box { max-height: 260px; overflow-y: auto; background: var(--inset);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  margin: 10px 0; font-size: 0.92rem; }

/* Recorder */
.video-stage { position: relative; background: #000; border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 16 / 10; margin: 12px 0; }
.video-stage video { width: 100%; height: 100%; object-fit: contain; display: block;
  background: #000; }
.framing-guide { position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center; }
.framing-guide .head { width: 42%; height: 72%; border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 50% 50% 42% 42%; margin-top: 4%; }
.rec-indicator { position: absolute; top: 12px; left: 12px; display: none;
  align-items: center; gap: 7px; background: rgba(0,0,0,0.65); color: #fff;
  padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.rec-indicator.on { display: inline-flex; }
.rec-indicator .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5252;
  animation: recblink 1.1s infinite; }
@keyframes recblink { 50% { opacity: 0.25; } }
.countdown-overlay { position: absolute; inset: 0; display: none; align-items: center;
  justify-content: center; font-size: 5rem; font-weight: 800; color: #fff;
  background: rgba(0,0,0,0.55); }
.countdown-overlay.on { display: flex; }
.mic-meter { height: 8px; border-radius: 999px; background: var(--inset);
  border: 1px solid var(--line); overflow: hidden; margin: 10px 0; }
.mic-meter .fill { height: 100%; width: 0%; background: var(--grad-green);
  transition: width 0.08s linear; }
.recorder-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
  align-items: center; }
.upload-bar { height: 10px; border-radius: 999px; background: var(--inset);
  border: 1px solid var(--line); overflow: hidden; margin-top: 10px; display: none; }
.upload-bar .fill { height: 100%; width: 0%; background: var(--grad-green); }
.status-line { color: var(--muted); font-size: 0.9rem; margin-top: 8px; min-height: 1.2em; }
select.device { max-width: 100%; }

/* Buttons (base .btn comes from the shared system) */
.btn.record { background: #d33; color: #fff; border: none; }
.btn.record:hover { background: #b52a2a; }
.btn.stop { background: var(--heading); color: var(--bg); border: none; }

/* Timeline / editor */
.scene-list { list-style: none; margin: 0; padding: 0; }
.scene-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; }
.scene-item.excluded { opacity: 0.45; }
.scene-item .drag { cursor: grab; color: var(--muted); user-select: none; }
.scene-item .kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700; min-width: 60px; }
.trim-inputs input { width: 90px; }

/* Sequence player */
.seq-player { position: relative; background: #000; border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 16 / 9; }
.seq-player video { width: 100%; height: 100%; object-fit: contain; }
.seq-title-card { position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 8%;
  background: linear-gradient(135deg, #0d0d0d 0%, #1c1c1c 100%); color: #fff; }
.seq-title-card.on { display: flex; }
.seq-title-card h3 { color: #65cc01; font-size: 1.5rem; margin: 0 0 8px; }
.seq-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.seq-scene-dots { display: flex; gap: 6px; }
.seq-scene-dots span { width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); }
.seq-scene-dots span.active { background: var(--accent); }

/* Tables & chips reuse the shared system; small extras */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.chip { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--ghost-border);
  color: var(--text); font-size: 0.85rem; font-weight: 500; }
.chip.active { background: var(--highlight); border-color: var(--accent);
  color: var(--accent); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 0.93rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stat-card { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; }
.stat-card .num { font-size: 1.9rem; font-weight: 800; color: var(--heading);
  letter-spacing: -0.02em; }
.stat-card .lbl { color: var(--muted); font-size: 0.82rem; }
.review-layout { display: grid; grid-template-columns: 240px 1fr 320px; gap: 16px; }
@media (max-width: 1100px) { .review-layout { grid-template-columns: 1fr; } }
.ai-banner { background: var(--info-bg); border: 1px solid var(--info-border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem; margin: 10px 0; }
.flag-item { background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px;
  font-size: 0.9rem; }
.flag-item.resolved { opacity: 0.55; }
details.tech { margin-top: 10px; }
details.tech summary { color: var(--muted); cursor: pointer; font-size: 0.85rem; }

.rich-guidance {font-size:16px;line-height:1.6;overflow-wrap:anywhere;font-weight:400}
.rich-guidance p,.rich-guidance div {margin:.55em 0}.rich-guidance p:first-child {margin-top:0}
.rich-guidance ul,.rich-guidance ol {padding-left:1.5em;margin:.5em 0}.rich-guidance li {margin:.3em 0}
.rich-guidance h2 {font-size:1.5em;margin:.6em 0}.rich-guidance h3 {font-size:1.25em;margin:.6em 0}
.rich-guidance .rich-small {font-size:14px}.rich-guidance .rich-normal {font-size:16px}.rich-guidance .rich-large {font-size:20px}.rich-guidance .rich-heading {font-size:24px}
.rich-guidance a {text-decoration:underline;color:inherit}
.guidance-editor {border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:8px 0 16px}
.guidance-toolbar {display:flex;gap:5px;flex-wrap:wrap;padding:8px;background:var(--bg)}
.guidance-toolbar select {width:auto;max-width:120px;margin:0;padding:5px}
.guidance-tool {font:inherit;cursor:pointer;border:1px solid var(--line);border-radius:5px;background:var(--card,#fff);color:var(--text);padding:5px 9px}
.guidance-input {min-height:150px;padding:12px;cursor:text;background:var(--card);color:var(--text)}
.guidance-input:focus {outline:2px solid var(--green-primary);outline-offset:-2px}
.collector-question-list .scene-item {flex-wrap:wrap}.collector-question-list .scene-item>details {width:100%}
.collector-question-list .scene-item>div {min-width:0}.collector-question-list .scene-item details textarea {width:100%}
.collector-phone .rich-guidance {font-size:14px}.capture-prompt .rich-guidance {margin-top:12px}
