/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0f;
  --bg2:      #111118;
  --bg3:      #16161f;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.1);
  --accent:   #6c5fff;
  --accent2:  #9d94ff;
  --danger:   #ff4f4f;
  --success:  #3ecf7e;
  --warn:     #f59e0b;
  --txt:      #e8e8f0;
  --txt2:     #7777a0;
  --txt3:     #3a3a55;
  --fh:       'Syne', sans-serif;
  --fb:       'DM Sans', sans-serif;
  --fm:       'DM Mono', monospace;
  --r:        10px;
  --r2:       16px;
}

html, body { height: 100%; overflow: hidden; background: var(--bg); }
body { font-family: var(--fb); color: var(--txt); display: flex; flex-direction: column; }

/* ── Overlay ── */
.overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
  transition: opacity 0.5s;
  overflow-y: auto; padding: 56px 48px;
}
.overlay.hidden { opacity: 0; pointer-events: none; }
/* Auto margins center the active step vertically when it fits; when content
   is taller than the window they collapse to 0 instead of pushing the top
   past the visible/scrollable area (the classic justify-content:center +
   overflow clipping bug — content becomes inaccessible even with
   overflow-y:auto, since the browser can't scroll to a negative offset). */
.overlay > .ov-step { margin: auto 0; }
.ov-step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ov-step-hidden { display: none; }
.ov-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.ov-txt { font-family: var(--fm); font-size: 13px; color: var(--txt2); }
.ov-scenario {
  max-width: 760px; margin-bottom: 4px; padding: 26px 30px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r2); text-align: left;
}
.ov-scenario-label {
  display: inline-block; font-family: var(--fm); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; margin-bottom: 14px;
  border: 1px solid rgba(108,95,255,.35); background: rgba(108,95,255,.10);
  color: var(--accent2);
}
.ov-scenario-body { font-family: var(--fb); font-size: 19px; color: var(--txt2); line-height: 1.6; }
.ov-scenario-body p { margin-bottom: 10px; }
.ov-scenario-body p:last-child { margin-bottom: 0; }
.ov-scenario-body strong { color: var(--txt); font-weight: 600; }
.ov-rules {
  max-width: 700px; margin-bottom: 22px; padding: 22px 26px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.35);
  border-left: 4px solid var(--warn); border-radius: var(--r2);
  text-align: left;
}
.ov-rules-body {
  font-family: var(--fb); font-size: 18px; color: var(--txt); line-height: 1.6;
}
.ov-rules-body strong { color: var(--warn); }
.ov-rules-title {
  font-family: var(--fh); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--warn); margin-bottom: 8px;
}
.ov-rules-list { margin: 10px 0 0 18px; }
.ov-rules-list li { margin-bottom: 5px; }
.ov-rules-list li:last-child { margin-bottom: 0; }
.ov-req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ov-req-item { display: flex; align-items: flex-start; gap: 12px; }
.ov-req-icon { flex-shrink: 0; width: 22px; text-align: center; font-size: 17px; line-height: 1.5; }
.ov-req-text { font-family: var(--fb); font-size: 16px; color: var(--txt2); line-height: 1.5; }
.ov-req-text strong { color: var(--txt); font-weight: 600; }

/* ── Instructions slider (two pages, Next -> Begin Interview) ── */
.ov-instr-viewport { width: 100%; max-width: 760px; overflow: hidden; }
.ov-instr-track {
  display: flex; width: 200%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ov-instr-track.on-page-2 { transform: translateX(-50%); }
.ov-instr-page {
  width: 50%; flex-shrink: 0; box-sizing: border-box; padding: 0 3px;
  display: flex; flex-direction: column; gap: 14px;
}
.ov-instr-dots { display: flex; gap: 8px; margin: 2px 0 4px; }
.ov-instr-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border2); transition: background 0.2s, transform 0.2s;
}
.ov-instr-dot.active { background: var(--accent); transform: scale(1.35); }
/* Next is shown on page 1, Begin Interview only appears once page 2 is reached. */
#ovStepInstructions #instrNextBtn { display: block; }
#ovStepInstructions #startBtn     { display: none; }
#ovStepInstructions.instr-page-2 #instrNextBtn { display: none; }
#ovStepInstructions.instr-page-2 #startBtn     { display: block; }
.ov-input {
  display: none; margin-top: 12px; width: 320px; max-width: 90vw;
  padding: 12px 16px; text-align: left;
  background: var(--bg3); color: var(--txt); border: 1px solid var(--border2);
  border-radius: var(--r2); font-size: 15px; font-family: var(--fb);
  outline: none; transition: border-color 0.2s;
}
.ov-input:focus { border-color: var(--accent); }
/* Browsers force a light autofill background (esp. type=email) that clobbers
   our dark theme's text color, making input unreadable — force it back. */
.ov-input:-webkit-autofill,
.ov-input:-webkit-autofill:hover,
.ov-input:-webkit-autofill:focus,
.ov-input:autofill {
  -webkit-text-fill-color: var(--txt);
  caret-color: var(--txt);
  -webkit-box-shadow: 0 0 0 1000px var(--bg3) inset;
  box-shadow: 0 0 0 1000px var(--bg3) inset;
  transition: background-color 9999s ease-in-out 0s;
}
.ov-error {
  display: none; margin-top: 8px; min-height: 16px;
  font-family: var(--fm); font-size: 12px; color: #ff8080; max-width: 320px; text-align: center;
}
.ov-btn {
  display: none; margin-top: 12px; padding: 12px 36px;
  background: var(--accent); color: white; border: none;
  border-radius: var(--r2); font-size: 15px; font-family: var(--fb);
  cursor: pointer; font-weight: 500; transition: background 0.2s;
}
.ov-btn:hover:not(:disabled) { background: var(--accent2); }
.ov-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#doneOverlay .ov-btn { display: block; }        /* Continue is always shown */
#doneOverlay .ov-txt { font-size: 16px; margin-bottom: 4px; }
#scenarioContinueBtn { display: block; }        /* not gated on backend readiness */
.ov-type-choices {
  display: flex; flex-direction: column; gap: 10px;
  width: 280px; max-width: 80vw; margin-top: 6px;
}
.ov-type-btn { display: block; margin-top: 0; width: 100%; }
.ov-btn-secondary {
  display: block; background: transparent; color: var(--txt2);
  border: 1px solid var(--border2); margin-top: 4px;
}
.ov-btn-secondary:hover:not(:disabled) { background: var(--bg3); color: var(--txt); }
@keyframes spin { to { transform: rotate(360deg); } }

.ov-sub {
  font-family: var(--fb); font-size: 13px; color: var(--txt2);
  max-width: 340px; text-align: center; line-height: 1.5;
}
#capacityOverlay .ov-txt { font-size: 16px; margin-bottom: 4px; }
#capacityOverlay #capacityCountdown { font-family: var(--fm); font-size: 12px; color: var(--txt3); }
#capacityOverlay .ov-btn {
  display: block; margin-top: 20px; padding: 10px 28px;
  background: transparent; color: var(--txt2); border: 1px solid var(--border2);
  font-size: 13px; font-weight: 400;
}
#capacityOverlay .ov-btn:hover:not(:disabled) { background: var(--bg3); color: var(--txt); }

/* ── App shell ── */
.app {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}

/* ── Top bar ── */
.topbar {
  height: 50px; flex-shrink: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 36px; gap: 12px;
}
.topbar-left  { display: flex; align-items: center; gap: 10px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.logo-txt { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--accent2); }
.sep { width: 1px; height: 16px; background: var(--border2); }
.role-txt { font-size: 12px; color: var(--txt2); font-family: var(--fm); }
.elapsed { font-family: var(--fm); font-size: 13px; color: var(--txt2); }
.status-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--border2); background: var(--bg3);
  color: var(--txt2); font-family: var(--fm);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--txt3); flex-shrink: 0; }
.status-pill.rec  { color: #ff8080; border-color: rgba(255,79,79,.3); background: rgba(255,79,79,.08); }
.status-pill.rec  .status-dot { background: var(--danger); box-shadow: 0 0 6px var(--danger); animation: blink .8s infinite; }
.status-pill.proc { color: #fcd34d; border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }
.status-pill.proc .status-dot { background: var(--warn); animation: blink 1s infinite; }
.status-pill.live { color: #86efac; border-color: rgba(62,207,126,.3); background: rgba(62,207,126,.08); }
.status-pill.live .status-dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
/* Speaking (Alex) and "your turn" states */
.status-pill.speak { color: #c4bcff; border-color: rgba(108,95,255,.35); background: rgba(108,95,255,.10); }
.status-pill.speak .status-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: blink .7s infinite; }
.status-pill.turn { color: #86efac; border-color: rgba(62,207,126,.45); background: rgba(62,207,126,.12); }
.status-pill.turn .status-dot { background: var(--success); box-shadow: 0 0 8px var(--success); animation: blink 1s infinite; }

/* Progress pill */
.progress-pill {
  font-family: var(--fm); font-size: 11px; color: var(--txt2);
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--border2); background: var(--bg3);
}

/* "Your turn" cue — gentle glow on the idle mic button */
.mic-btn.yourturn { animation: yourturn 1.6s ease-in-out infinite; }
@keyframes yourturn {
  0%,100% { box-shadow: 0 6px 24px rgba(108,95,255,0.45); }
  50%     { box-shadow: 0 6px 30px rgba(108,95,255,0.85); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── Content ── */
.content {
  display: flex; flex: 1; overflow: hidden; min-height: 0;
}

/* ── Avatar panel (70%) ── */
.avatar-panel {
  flex: 7; position: relative; background: #060609; overflow: hidden;
  border-right: 1px solid var(--border);
}
/* #avatarCanvas { width: 100%; height: 100%; display: block; } */
#avatarCanvas { width: 100%; height: 105%; display: block; }

/* Swapped view: avatar becomes the small thumbnail, user video fills the panel */
#avatarCanvas.canvas-mini {
  position: absolute; width: 280px; height: 158px;
  bottom: 14px; right: 14px;
  border-radius: var(--r2); border: 2px solid var(--border2);
  overflow: hidden; z-index: 25;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.pip.pip-expanded {
  width: 100%; height: 100%; bottom: 0; right: 0;
  border-radius: 0; border: none; z-index: 5; cursor: default;
}

/* Loading */
.av-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: #060609; z-index: 5;
}
.av-spinner {
  width: 30px; height: 30px;
  border: 2px solid var(--border2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.av-loading-txt { font-size: 11px; color: var(--txt3); font-family: var(--fm); }

/* Name tag */
.name-tag {
  position: absolute; bottom: 14px; left: 14px; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border2); border-radius: var(--r);
  padding: 6px 12px; font-size: 12px; color: #fff; font-family: var(--fb);
}

/* Speaking bars (Alex) */
.speaking-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sbar {
  width: 3px; background: var(--accent2); border-radius: 2px;
  transform: scaleY(0.3); transition: transform 0.1s;
}
.speaking-bars.active .sbar { animation: sbaranim 0.5s ease-in-out infinite alternate; }
.sbar:nth-child(1) { height: 6px;  animation-delay: 0s; }
.sbar:nth-child(2) { height: 12px; animation-delay: .1s; }
.sbar:nth-child(3) { height: 8px;  animation-delay: .2s; }
.sbar:nth-child(4) { height: 14px; animation-delay: .3s; }
@keyframes sbaranim { from{transform:scaleY(.2)} to{transform:scaleY(1)} }

/* ── Pip (interviewee) ── */
.pip {
  position: absolute;
  width: 280px; height: 158px;   /* larger, 16:9 landscape */
  bottom: 14px; right: 14px;
  border-radius: var(--r2);
  border: 2px solid var(--border2);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  z-index: 20;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  transition: box-shadow 0.2s;
}
#userVideo {
  display: none;               /* shown when the camera is on */
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);       /* mirror — natural selfie view */
  background: #000;
}
.pip.cam-on #userVideo { display: block; }
.pip.cam-on .pip-placeholder { display: none; }
/* Camera button: highlighted when on */
.cam-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pip:active { cursor: grabbing; box-shadow: 0 8px 32px rgba(0,0,0,0.8); }
.pip-content {
  width: 100%; height: 100%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pip-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.pip-initial {
  font-family: var(--fh); font-size: 36px; font-weight: 700;
  color: var(--accent2); opacity: 0.8;
}
.pip-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  font-size: 11px; color: #fff; padding: 4px 8px;
  font-family: var(--fb); text-align: left; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}

/* Mic bars inside pip */
.mic-bars {
  position: absolute; bottom: 22px; right: 8px;
  display: flex; align-items: flex-end; gap: 2px; height: 12px;
  opacity: 0; transition: opacity 0.3s; z-index: 3;
}
.mic-bars.active { opacity: 1; }
.mbar {
  width: 3px; background: var(--success); border-radius: 2px;
  animation: mbaranim 0.4s ease-in-out infinite alternate;
}
.mbar:nth-child(1) { height: 5px;  animation-delay: 0s; }
.mbar:nth-child(2) { height: 10px; animation-delay: .15s; }
.mbar:nth-child(3) { height: 7px;  animation-delay: .3s; }
@keyframes mbaranim { from{transform:scaleY(.3)} to{transform:scaleY(1)} }

/* ── Thread panel (30%) ── */
.thread-panel {
  flex: 3; display: flex; flex-direction: column;
  background: var(--bg2); overflow: hidden; min-height: 0;
  position: relative;   /* anchor for the how-to popup (#recHelp) */
}

/* ── "How to answer" popup (#4) — one-time, dismissed via "Got it" ── */
.rec-help {
  position: absolute; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6,6,12,0.72); backdrop-filter: blur(3px);
  transition: opacity 0.25s;
}
.rec-help.hidden { opacity: 0; pointer-events: none; }
.rec-help-card {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 22px 20px; max-width: 280px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.rec-help-icon  { font-size: 30px; margin-bottom: 8px; }
.rec-help-title {
  font-family: var(--fh); font-size: 16px; font-weight: 600;
  color: var(--txt); margin-bottom: 10px;
}
.rec-help-body {
  font-size: 12.5px; line-height: 1.6; color: var(--txt2); margin-bottom: 16px;
}
.rec-help-body strong { color: var(--accent2); font-weight: 600; }
.rec-help-btn {
  padding: 10px 28px; background: var(--accent); color: #fff; border: none;
  border-radius: var(--r2); font-size: 14px; font-family: var(--fb);
  font-weight: 500; cursor: pointer; transition: background 0.2s;
}
.rec-help-btn:hover { background: var(--accent2); }
.thread-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--txt2);
  text-transform: uppercase; letter-spacing: 0.8px;
  font-family: var(--fm); flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.thread-count { font-size: 10px; color: var(--txt3); font-weight: 400; }
.thread {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth; min-height: 0;
}
.thread::-webkit-scrollbar { width: 3px; }
.thread::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Empty state */
.thread-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--txt3); text-align: center; padding: 40px 16px;
}
.te-icon { font-size: 24px; }
.te-txt  { font-size: 12px; line-height: 1.5; }

/* Chat bubbles */
.bubble { display: flex; flex-direction: column; gap: 3px; animation: bubin .2s ease; }
.bubble.me { align-items: flex-end; }
@keyframes bubin { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.bubble-who { font-size: 10px; color: var(--txt3); font-family: var(--fm); padding: 0 4px; }
.bubble-txt {
  max-width: 90%; padding: 9px 12px; border-radius: 14px;
  font-size: 12.5px; line-height: 1.6; color: var(--txt);
  background: var(--bg3); border: 1px solid var(--border);
  border-top-left-radius: 4px;
}
.bubble.me .bubble-txt {
  background: rgba(108,95,255,0.12); border-color: rgba(108,95,255,0.25);
  color: #ccc8ff; border-top-right-radius: 4px; border-top-left-radius: 14px;
}
.bubble-time { font-size: 10px; color: var(--txt3); padding: 0 4px; font-family: var(--fm); }

/* Typing indicator */
.typing-bubble {
  display: flex; align-items: flex-start; gap: 8px; animation: bubin .2s ease;
}
.typing-inner {
  padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 14px; border-top-left-radius: 4px;
  display: flex; gap: 4px; align-items: center;
}
.tdot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--txt3);
  animation: td 1.2s infinite;
}
.tdot:nth-child(2){animation-delay:.2s} .tdot:nth-child(3){animation-delay:.4s}
@keyframes td{0%,60%,100%{transform:translateY(0);opacity:.3}30%{transform:translateY(-4px);opacity:1}}

/* ── Control bar ── */
.controlbar {
  height: 80px; flex-shrink: 0;
  background: var(--bg2); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 0 48px; gap: 20px; position: relative;
}
/* All control groups flow in the centered flex row so the buttons sit
   together in the middle of the bar (not pinned to the far corners). */
.cb-left  { display: flex; align-items: center; gap: 12px; }
.cb-center { display: flex; align-items: center; gap: 16px; }
.cb-right { display: flex; align-items: center; gap: 12px; }

/* Control buttons */
.cbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 24px; border-radius: var(--r2);
  border: 1px solid var(--border2); background: var(--bg3);
  color: var(--txt2); cursor: pointer; font-size: 12px;
  font-family: var(--fb); transition: all 0.18s; min-width: 84px;
  font-weight: 600;
}
.cbtn:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: var(--txt); }
.cbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.cbtn span { font-size: 12px; letter-spacing: 0.3px; }
.cbtn svg { width: 22px; height: 22px; }

/* Primary action — large, high-contrast, unmistakable */
.mic-btn {
  background: var(--accent); border-color: var(--accent); color: white;
  min-width: 132px; padding: 18px 36px; font-size: 14px;
  box-shadow: 0 6px 24px rgba(108,95,255,0.45);
}
.mic-btn span { font-size: 14px; font-weight: 700; }
.mic-btn svg { width: 26px; height: 26px; }
.mic-btn:hover:not(:disabled) { background: var(--accent2); border-color: var(--accent2); color: white; transform: scale(1.04); }
.mic-btn.recording {
  background: var(--danger); border-color: var(--danger);
  animation: pulse 1.2s infinite;
  box-shadow: 0 6px 24px rgba(255,79,79,0.45);
}
/* Listening for a continuation after a check-in */
.mic-btn.listening {
  background: var(--warn, #f59e0b); border-color: var(--warn, #f59e0b); color: #1a1a1a;
  box-shadow: 0 6px 24px rgba(245,158,11,0.45);
  animation: none;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,79,79,.4)}50%{box-shadow:0 0 0 14px rgba(255,79,79,0)}}

.end-btn { background: rgba(255,79,79,.12); border-color: rgba(255,79,79,.35); color: #ff8080; }
.end-btn:hover:not(:disabled) { background: rgba(255,79,79,.22); color: var(--danger); }

/* Waveform canvas */
#waveCanvas { height: 36px; width: 180px; }

/* ── Response Timer ──────────────────────────────────────────────────────────── */
.response-timer {
  display: none; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: 13px; color: var(--txt2);
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 6px 14px;
}
.response-timer.active { display: flex; }
.response-timer.warning { color: var(--warn); border-color: rgba(245,158,11,.4); }
.response-timer.urgent  { color: var(--danger); border-color: rgba(255,79,79,.4); animation: blink .8s infinite; }
.timer-icon { font-size: 14px; }

/* Recording state: red border + pulsing REC dot, hide the clock glyph */
.response-timer.recording {
  color: var(--danger);
  border-color: rgba(255,79,79,.45);
  background: rgba(255,79,79,.08);
}
.rec-dot { display: none; }
.response-timer.recording .rec-dot {
  display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255,79,79,.6);
  animation: pulse 1.2s infinite;
}
.response-timer.recording .timer-icon { display: none; }
.timer-val  { font-weight: 500; min-width: 38px; text-align: center; }