/* ============================================================
   MockMate — dark glass UI
   ============================================================ */
:root {
  --bg: #0b0d12;
  --bg2: #11141c;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --muted: #8b93a7;
  --primary: #7c5cff;
  --primary2: #00d4ff;
  --good: #2dd4a7;
  --warn: #ffc857;
  --bad: #ff6b81;
  --radius: 16px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(0, 212, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------------- top bar ---------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 26px; border-bottom: 1px solid var(--panel-border);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.75);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.2px; }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.aai-badge {
  font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--panel-border); border-radius: 999px; padding: 6px 12px;
  background: var(--panel);
}
.aai-badge strong { color: var(--text); }

/* ---------------- screens ---------------- */
.screen { display: none; max-width: 1280px; margin: 0 auto; padding: 28px 22px 60px; }
.screen.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- setup ---------------- */
.hero { text-align: center; margin: 34px 0 30px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.grad {
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 16px auto 0; font-size: 1.05rem; line-height: 1.6; }

.setup-card {
  max-width: 720px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(8px);
}
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
select {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem;
  background: var(--bg2); color: var(--text); border: 1px solid var(--panel-border); outline: none;
  font-family: var(--font);
}
input[type="text"], textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem;
  background: var(--bg2); color: var(--text); border: 1px solid var(--panel-border); outline: none;
  font-family: var(--font); resize: vertical;
}
select:focus, input[type="text"]:focus, textarea:focus { border-color: var(--primary); }
input[type="text"]::placeholder, textarea::placeholder { color: #5a627a; }

/* session history */
.history-wrap { max-width: 720px; margin: 26px auto 0; }
.history-title { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-align: center; }
.h-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px;
}
.h-score {
  font-size: 1.25rem; font-weight: 800; width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.4);
}
.h-mid { flex: 1; min-width: 0; }
.h-role { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.h-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.h-delta { font-size: 0.78rem; font-weight: 800; }
.h-delta.up { color: var(--good); } .h-delta.down { color: var(--bad); }
.h-chip { font-size: 0.68rem; color: var(--muted); border: 1px solid var(--panel-border); border-radius: 999px; padding: 3px 9px; }

/* report delta chip */
.delta-chip {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--bg2); border: 1px solid var(--panel-border);
}
.delta-chip.up { color: var(--good); border-color: rgba(45, 212, 167, 0.5); }
.delta-chip.down { color: var(--bad); border-color: rgba(255, 107, 129, 0.5); }

.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.persona-card input { display: none; }
.persona-body {
  border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px;
  cursor: pointer; transition: all 0.15s ease; background: var(--bg2); height: 100%;
}
.persona-card input:checked + .persona-body {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.08);
}
.persona-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.persona-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.persona-voice {
  margin-top: 8px; font-size: 0.7rem; color: #9d8bff;
  border-top: 1px dashed var(--panel-border); padding-top: 7px;
}
.label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.75; margin-left: 6px; }

.setup-error {
  background: rgba(255, 107, 129, 0.12); border: 1px solid rgba(255, 107, 129, 0.45);
  color: #ffb3c0; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 16px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { margin-top: 12px; font-size: 0.78rem; color: var(--muted); }

/* ---------------- buttons ---------------- */
.btn {
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  padding: 13px 22px; border-radius: 12px; border: 1px solid var(--panel-border);
  background: var(--bg2); color: var(--text); cursor: pointer; transition: all 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn.primary {
  background: linear-gradient(90deg, var(--primary), #9d7bff); border: none;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn.ghost { background: transparent; }
.btn.small { padding: 9px 14px; font-size: 0.85rem; }
.btn.danger { border-color: rgba(255, 107, 129, 0.5); color: #ffb3c0; }
.btn.muted { border-color: var(--warn); color: var(--warn); }

/* ---------------- how it works ---------------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 960px; margin: 34px auto 0; }
.how-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 20px;
}
.how-emoji { font-size: 1.6rem; margin-bottom: 10px; }
.how-card h3 { font-size: 1rem; margin-bottom: 6px; }
.how-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* ---------------- interview ---------------- */
.iv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.iv-title { font-size: 1.3rem; font-weight: 800; }
.iv-sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.iv-top-right { display: flex; gap: 12px; align-items: center; }
.conn-chip {
  font-size: 0.8rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--panel-border); background: var(--panel);
}
.dot.good { color: var(--good); } .dot.warn { color: var(--warn); }
.dot.bad { color: var(--bad); } .dot.muted { color: var(--muted); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1rem; color: var(--muted); }

.banner {
  position: fixed; top: 70px; left: 50%; transform: translate(-50%, -20px);
  padding: 10px 18px; border-radius: 12px; font-size: 0.9rem; z-index: 50;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; max-width: 90vw;
  border: 1px solid var(--panel-border); background: var(--bg2);
}
.banner.show { opacity: 1; transform: translate(-50%, 0); }
.banner.info { border-color: rgba(0, 212, 255, 0.5); }
.banner.bad { border-color: rgba(255, 107, 129, 0.6); }

.iv-grid { display: grid; grid-template-columns: 300px 1fr 300px; gap: 18px; align-items: start; }
.panel-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; font-weight: 700; }

.iv-left, .iv-right {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 18px; backdrop-filter: blur(8px);
}
.iv-center { min-width: 0; }

/* orb — living voice blob */
.orb {
  --c1: #7c5cff; --c2: #b26bff; --c3: #00d4ff;
  position: relative; width: 150px; height: 150px; margin: 8px auto 14px;
  will-change: transform;
}
.orb::before {                                            /* outer halo */
  content: ""; position: absolute; inset: -28%; border-radius: 50%;
  background: radial-gradient(circle, var(--c1) 0%, transparent 65%);
  opacity: calc(var(--glow, 0.35) * 0.85); filter: blur(12px);
  transition: background 0.4s ease;
}
.blob {
  position: absolute; inset: 0; border-radius: 50%;
  mix-blend-mode: screen; filter: blur(22px);
  transition: background 0.4s ease;
}
.blob.b1 { background: var(--c1); animation: morph1 8s ease-in-out infinite; }
.blob.b2 { background: var(--c2); inset: 12% 6% 10% 8%; animation: morph2 6.5s ease-in-out infinite; }
.blob.b3 { background: var(--c3); inset: 8% 12% 12% 6%; opacity: 0.75; animation: morph1 7s ease-in-out infinite reverse; }
.blob.core {                                              /* defined center */
  filter: none; mix-blend-mode: normal; inset: 7%; opacity: 0.95;
  background: radial-gradient(circle at 34% 28%, var(--c3) 0%, var(--c1) 58%, var(--c1) 100%);
  box-shadow: inset -8px -12px 34px rgba(0, 0, 0, 0.35),
              0 0 calc(28px + var(--glow, 0.35) * 44px) color-mix(in srgb, var(--c1) 55%, transparent);
  animation: morph-core 9s ease-in-out infinite;
}
.orb.listening { --c1: #2dd4a7; --c2: #7ef0d4; --c3: #11b857; }
.orb.speaking  { --c1: #00d4ff; --c2: #7fd8ff; --c3: #7c5cff; }
.orb.thinking  { --c1: #6b7aa0; --c2: #8b93a7; --c3: #4a5570; }
.orb.thinking .blob { animation-duration: 14s; }

@keyframes morph1 {
  0%, 100% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { border-radius: 45% 55% 62% 38% / 58% 42% 55% 45%; transform: translate(3%, -2%) rotate(8deg) scale(1.04); }
  66%      { border-radius: 62% 38% 45% 55% / 42% 55% 48% 52%; transform: translate(-2%, 3%) rotate(-6deg) scale(0.97); }
}
@keyframes morph2 {
  0%, 100% { border-radius: 45% 55% 48% 52% / 55% 45% 58% 42%; transform: translate(0, 0) scale(1); }
  50%      { border-radius: 58% 42% 58% 42% / 42% 58% 42% 58%; transform: translate(-3%, -3%) scale(1.06); }
}
@keyframes morph-core {
  0%, 100% { border-radius: 55% 45% 52% 48% / 48% 55% 45% 52%; }
  50%      { border-radius: 45% 55% 45% 55% / 55% 45% 55% 45%; }
}

/* AssemblyAI notch */
.aai-notch {
  position: absolute; right: 26px; top: 100%; z-index: 21;
  display: flex; gap: 9px; align-items: center;
  padding: 9px 16px 10px; text-decoration: none;
  background: linear-gradient(180deg, #151826, #10131d);
  border: 1px solid rgba(124, 92, 255, 0.45); border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 0.74rem; color: var(--muted); line-height: 1.25;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.aai-notch:hover { border-color: rgba(124, 92, 255, 0.9); transform: translateY(1px); }
.notch-text strong { color: var(--text); font-weight: 700; }
.notch-text em { display: block; font-style: normal; color: #a08cff; font-size: 0.68rem; letter-spacing: 0.4px; }
.wform { flex: none; }
.wform rect { fill: var(--primary2); animation: wbar 1.3s ease-in-out infinite; transform-origin: center; }
.wform rect:nth-child(2) { animation-delay: 0.15s; fill: var(--primary); }
.wform rect:nth-child(3) { animation-delay: 0.3s; }
.wform rect:nth-child(4) { animation-delay: 0.45s; fill: var(--primary); }
.wform rect:nth-child(5) { animation-delay: 0.6s; }
@keyframes wbar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }
.agent-state { text-align: center; color: var(--muted); font-size: 0.9rem; min-height: 22px; }

.controls { display: flex; gap: 10px; justify-content: center; margin: 16px 0 10px; }
#show-report-btn { display: block; margin: 10px auto 0; }

.plan-box {
  margin-top: 16px; background: rgba(124, 92, 255, 0.09);
  border: 1px solid rgba(124, 92, 255, 0.35); border-radius: 12px; padding: 12px 14px;
}
.plan-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #b8a6ff; font-weight: 700; margin-bottom: 6px; }
.plan-box ol { padding-left: 18px; font-size: 0.85rem; color: var(--text); display: grid; gap: 4px; }

.q-panel { margin-top: 16px; }
.q-panel-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
#question-list { max-height: 300px; overflow-y: auto; display: grid; gap: 8px; }
.q-item {
  display: flex; gap: 10px; align-items: flex-start; background: var(--bg2);
  border: 1px solid var(--panel-border); border-radius: 10px; padding: 9px 10px;
}
.q-item.active { border-color: rgba(45, 212, 167, 0.5); }
.q-score {
  font-size: 0.75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--panel); color: var(--muted);
}
.q-score.good { background: rgba(45, 212, 167, 0.15); color: var(--good); }
.q-score.ok { background: rgba(255, 200, 87, 0.15); color: var(--warn); }
.q-score.bad { background: rgba(255, 107, 129, 0.15); color: var(--bad); }
.q-score.pending { color: var(--primary2); background: rgba(0, 212, 255, 0.12); }
.q-text { font-size: 0.82rem; line-height: 1.4; }
.q-cat { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 3px; text-transform: capitalize; }
.q-empty { font-size: 0.85rem; color: var(--muted); text-align: center; padding: 12px 0; }

/* transcript */
.transcript {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 18px; height: calc(100vh - 260px); min-height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(8px);
}
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 14px; font-size: 0.93rem; line-height: 1.55; }
.bubble.you {
  align-self: flex-end; background: rgba(45, 212, 167, 0.1);
  border: 1px solid rgba(45, 212, 167, 0.3);
}
.bubble.interviewer {
  align-self: flex-start; background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.bubble.live { opacity: 0.75; border-style: dashed; }
.bubble-who { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.bubble-meta { margin-top: 6px; font-size: 0.72rem; color: var(--warn); }

/* HUD */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--bg2); border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 14px; text-align: center;
}
.stat-card.wide { grid-column: 1 / -1; }
.stat-num { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.stat-sub { font-size: 0.75rem; margin-top: 4px; }
.stat-sub.good { color: var(--good); } .stat-sub.warn { color: var(--warn); }
.stat-sub.bad { color: var(--bad); } .stat-sub.neutral { color: var(--muted); }

.event-log-wrap { margin-top: 16px; }
.event-log-wrap summary { cursor: pointer; font-size: 0.82rem; color: var(--muted); }
.event-log {
  margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.68rem;
  color: #9aa4bb; background: var(--bg2); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 10px; height: 180px; overflow-y: auto; line-height: 1.7;
  word-break: break-all;
}

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--bg2); border: 1px solid var(--panel-border); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 0.88rem; z-index: 60;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- report ---------------- */
.report { max-width: 880px; margin: 0 auto; }
.report-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px; flex-wrap: wrap;
}
.report h2 { font-size: 1.6rem; font-weight: 800; }
.report-meta { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.score-wrap { position: relative; width: 120px; height: 120px; }
.score-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.ring-val {
  fill: none; stroke: url(#none); stroke: var(--primary); stroke-width: 10; stroke-linecap: round;
}
.score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800; }
.score-num small { font-size: 0.8rem; color: var(--muted); margin-left: 2px; align-self: flex-end; padding-bottom: 34px; }

.hire-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.hire-chip { font-weight: 800; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.hire-chip.strong_hire { background: rgba(45, 212, 167, 0.2); color: var(--good); }
.hire-chip.hire { background: rgba(0, 212, 255, 0.15); color: var(--primary2); }
.hire-chip.lean_hire { background: rgba(255, 200, 87, 0.15); color: var(--warn); }
.hire-chip.no_hire { background: rgba(255, 107, 129, 0.15); color: var(--bad); }
.report-summary { color: var(--text); line-height: 1.65; flex: 1; min-width: 260px; font-size: 0.97rem; }

.report-h { font-size: 1.1rem; font-weight: 800; margin: 26px 0 12px; }

.rq-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
}
.rq-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.rq-num { font-weight: 800; color: var(--primary2); font-size: 0.9rem; }
.rq-cat { font-size: 0.75rem; color: var(--muted); text-transform: capitalize; flex: 1; }
.rq-score { font-size: 0.8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.rq-score.good { background: rgba(45, 212, 167, 0.15); color: var(--good); }
.rq-score.ok { background: rgba(255, 200, 87, 0.15); color: var(--warn); }
.rq-score.bad { background: rgba(255, 107, 129, 0.15); color: var(--bad); }
.rq-score.pending { color: var(--muted); background: var(--panel); }
.rq-text { font-weight: 700; font-size: 0.95rem; line-height: 1.5; }
.rq-bar { height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; margin: 12px 0; overflow: hidden; }
.rq-bar div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary2)); border-radius: 3px; }
.rq-answer { font-size: 0.88rem; color: var(--muted); font-style: italic; line-height: 1.5; margin-bottom: 10px; }
.rq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rq-cols h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.rq-cols ul { list-style: none; font-size: 0.85rem; display: grid; gap: 5px; line-height: 1.45; }
.rq-meta { display: flex; gap: 14px; margin-top: 12px; font-size: 0.78rem; color: var(--muted); }

.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.filler-chip {
  display: inline-block; background: var(--bg2); border: 1px solid var(--panel-border);
  border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; margin: 3px;
}
.filler-chip.clean { border-color: rgba(45, 212, 167, 0.5); color: var(--good); }

.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.sf-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 18px; }
.sf-card h4 { margin-bottom: 10px; font-size: 0.95rem; }
.sf-card ul { list-style: none; display: grid; gap: 8px; font-size: 0.9rem; line-height: 1.5; }

.advice {
  margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--primary);
  background: rgba(124, 92, 255, 0.07); border-radius: 0 12px 12px 0;
  font-style: italic; line-height: 1.6;
}

.rt-wrap { margin: 18px 0; }
.rt-wrap summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
#r-transcript { margin-top: 10px; display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.rt-line strong { color: var(--text); }

.report-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.footer { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 24px 0 30px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .iv-grid { grid-template-columns: 1fr; }
  .transcript { height: 50vh; }
  .persona-grid, .how { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .form-row.two, .rq-cols, .sf-grid, .delivery-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .aai-notch { right: 12px; padding: 7px 11px 8px; }
  .aai-notch .notch-text { display: none; }      /* icon-only notch on mobile */
  .orb { width: 110px; height: 110px; margin: 4px auto 10px; }
  .iv-left, .iv-right { padding: 14px; }
  .transcript { min-height: 320px; }
  .hero h1 { font-size: 1.8rem; }
  .iv-title { font-size: 1.1rem; }
  .timer { font-size: 0.9rem; }
}

/* ---------------- print (Save as PDF) ---------------- */
@media print {
  body { background: #fff; color: #111; }
  .no-print, .topbar, .footer, .toast { display: none !important; }
  .screen { padding: 0; }
  .rq-card, .report-head, .sf-card, .stat-card, .advice {
    background: #fff; border-color: #ddd; color: #111; break-inside: avoid;
  }
  .report-summary, .rq-answer, #r-transcript, .report-meta, .stat-label, .stat-sub, .rq-cat, .rq-meta { color: #333 !important; }
  .rt-line strong, .report h2, .report-h, .rq-text, .sf-card h4 { color: #000 !important; }
  .ring-bg { stroke: #eee; }
  .ring-val { stroke: #7c5cff !important; }
}
