/* ═══════════════════════════════════════════════════
   Interview Coach — Styles
   Linear + Raycast + Vercel inspired dark UI
   ═══════════════════════════════════════════════════ */

:root {
  /* ── Stiitch Dark Glass Palette ── */
  --void:         #080B12;
  --base:         #0D1117;
  --glass:        rgba(16, 22, 34, 0.72);
  --glass-solid:  #101622;
  --card:         rgba(20, 28, 44, 0.55);
  --card-hover:   rgba(28, 38, 58, 0.65);

  /* Backgrounds — map to existing var names for compat */
  --bg-primary:   #080B12;
  --bg-secondary: #0D1117;
  --bg-panel:     #101622;
  --bg-card:      rgba(20, 28, 44, 0.55);
  --bg-hover:     rgba(28, 38, 58, 0.65);
  --bg-active:    rgba(28, 38, 58, 0.65);
  --bg-elevated:  #151E2E;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.05);
  --border-light:   rgba(255, 255, 255, 0.08);
  --border-ghost:   rgba(255, 255, 255, 0.04);
  --border-glass:   rgba(255, 255, 255, 0.07);
  --border-visible: rgba(255, 255, 255, 0.12);
  --border-accent:  rgba(0, 224, 204, 0.28);

  /* Accent — Teal primary */
  --accent:        #00E0CC;
  --accent-bright: #5EFFE5;
  --accent-soft:   rgba(0, 224, 204, 0.10);
  --accent-glow:   rgba(0, 224, 204, 0.06);
  --accent-dim:    rgba(0, 224, 204, 0.10);
  --color-accent-soft:   rgba(0, 224, 204, 0.10);
  --color-accent-border: rgba(0, 224, 204, 0.28);
  --color-accent-text:   #00E0CC;

  /* Secondary — purple for variety */
  --purple:       #8B7AFF;
  --purple-soft:  rgba(139, 122, 255, 0.10);
  --blue:         #00E0CC;
  --blue-dim:     rgba(0, 224, 204, 0.10);

  /* Status */
  --green:        #3DDC84;
  --green-dim:    rgba(61, 220, 132, 0.08);
  --red:          #FF5C5C;
  --red-dim:      rgba(255, 92, 92, 0.08);
  --yellow:       #FFB347;
  --yellow-dim:   rgba(255, 179, 71, 0.08);
  --orange:       #F97316;
  --cyan:         #00E0CC;

  /* Text — cool tones */
  --text-primary:   #EDF2F7;
  --text-secondary: #CBD5E1;
  --text-muted:     #5A6A82;
  --text-dim:       #384152;
  --t1: #EDF2F7;
  --t2: #CBD5E1;
  --t3: #8B9BB4;
  --t4: #5A6A82;
  --t5: #384152;

  /* Tier colors */
  --tier-1: #FFB347;
  --tier-2: #8B7AFF;
  --tier-3: #00E0CC;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   12px;
  --text-sm:   13.5px;
  --text-base: 14.5px;
  --text-md:   14px;
  --text-lg:   16px;
  --text-xl:   20px;
  --text-2xl:  24px;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight:   1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Samsara-matched tracking */
  --tracking-tight:   -0.022em; /* large headings */
  --tracking-snug:    -0.011em; /* panel headers, labels */
  --tracking-normal:  -0.005em; /* body default */
  --tracking-wide:     0.04em;  /* mono caps / badges */

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-7: 32px; --space-8: 40px; --space-9: 48px;
  --space-10: 64px;

  /* Radius */
  --radius-xs: 4px; --radius-sm: 6px; --radius: 8px;
  --radius-md: 10px; --radius-lg: 14px; --radius-xl: 18px;
  --radius-full: 9999px;

  /* Glass / elevation */
  --glass-bg:     rgba(16, 22, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur:   blur(20px);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.45);

  /* Animation */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   120ms;
  --duration-normal: 200ms;
  --duration-slow:   350ms;
}

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

/* Global smooth transitions for interactive elements */
a, button, input, select, textarea {
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--void);
  color: var(--text-primary);
  overflow: hidden;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Samsara-matched type rules ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-snug);
}

/* Labels, mono caps, section titles */
.psb-section-title,
.tp-label,
[class*="font-mono"],
[class*="--mono"] {
  letter-spacing: var(--tracking-wide);
}

/* Large display text gets tightest tracking */
.page-title,
.sb-logo-text,
.wr-header-name {
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

/* Inputs, selects match 500 weight */
input, select, textarea, button {
  font-weight: 500;
  font-family: var(--font);
}

#app {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* ─── SIDEBAR ─────────────────────────────────────── */

#sidebar {
  width: 182px;
  min-width: 182px;
  background: var(--void);
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
  border-right: 1px solid var(--border-ghost);
  z-index: 100;
  overflow: hidden;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 14px;
  flex-shrink: 0;
}

.sb-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00E0CC, #00B8A9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #080B12;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,224,204,0.3);
}

.sb-logo-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sb-new-btn {
  margin: 0 10px 14px;
  padding: 9px 0;
  background: linear-gradient(135deg, #00E0CC, #00B8A9);
  color: #080B12;
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
  box-shadow: 0 3px 12px rgba(0,224,204,0.25);
}
.sb-new-btn:hover {
  background: linear-gradient(135deg, #5EFFE5, #00E0CC);
  box-shadow: 0 4px 16px rgba(0,224,204,0.35);
  transform: translateY(-1px);
}

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 6px;
  flex: 1;
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--t4);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}
.sb-nav-item:hover {
  color: var(--t2);
  background: rgba(255,255,255,0.03);
}
.sb-nav-item.active {
  color: var(--t1);
  background: rgba(0,224,204,0.08);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sb-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.sb-nav-item:hover svg { opacity: 0.75; }
.sb-nav-item.active svg { opacity: 1; color: var(--accent); }

#main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--base);
  overflow: hidden;
  min-width: 0;
}

/* ─── TOP BAR ────────────────────────────────────── */

#topbar {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 20px;
  background: var(--base);
  border-bottom: 1px solid var(--border-ghost);
  flex-shrink: 0;
  z-index: 100;
  gap: 14px;
}
#topbar.topbar--live {
  border-bottom-color: rgba(255,92,92,0.12);
}

.topbar-left { display: flex; align-items: center; flex-shrink: 0; }
.topbar-center { display: flex; align-items: center; gap: 8px; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 6px;
}

/* Calendar status in header */
.ph-calendar-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--t4);
  white-space: nowrap;
}
.ph-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* Input fields in header */
.ph-select, .ph-input {
  background: rgba(8, 11, 18, 0.5) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 8px !important;
  color: var(--t2) !important;
  font-size: 12.5px !important;
  padding: 5px 10px !important;
  height: 34px;
}
.ph-select:focus, .ph-input:focus {
  border-color: rgba(0,224,204,0.35) !important;
  outline: none;
}


.logo { display: none; }
.logo-icon { display: none; }
.logo-text { display: none; }

.nav-tabs { display: none; }
.nav-tab {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
}
.nav-tab::after { display: none; }
.nav-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.nav-tab.active { color: var(--text-primary); background: var(--color-accent-soft); }

.status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transition: background var(--duration-fast) var(--ease-out);
}
.status-idle { background: var(--green-dim); color: var(--green); border-color: rgba(61,220,132,0.15); }
.status-idle .status-dot { background: var(--green); box-shadow: 0 0 6px rgba(61,220,132,0.5); }
.status-live { background: var(--red-dim); color: var(--red); border-color: rgba(255,92,92,0.12); }
.status-live .status-dot { background: var(--red); animation: pulse 1.5s infinite; }
.status-processing { background: var(--blue-dim); color: var(--blue); border-color: rgba(139,122,255,0.12); }
.status-processing .status-dot { background: var(--blue); animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.timer {
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  font-feature-settings: 'tnum';
  letter-spacing: 0.5px;
}

/* ─── VIEWS ──────────────────────────────────────── */

.view { display: none; flex: 1; overflow: hidden; }
.view.active { display: flex; flex-direction: column; }

/* ─── PRE-CALL BAR ───────────────────────────────── */

#precall-bar {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-bottom: none;
  flex-shrink: 0;
}
#precall-bar .precall-compact {
  display: none !important;
}

/* Compact row — always visible */
.precall-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  gap: var(--space-3);
}
.precall-compact-fields {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
}
.precall-select {
  padding: var(--space-1) var(--space-3) !important;
  font-size: var(--text-sm) !important;
}
.precall-input {
  padding: var(--space-1) var(--space-3) !important;
  font-size: var(--text-sm) !important;
}
.precall-compact-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Intel badge — shows interviewer title on hover */
.precall-intel-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  background: var(--blue-dim);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--duration-fast) var(--ease-out);
}
.precall-intel-badge:hover {
  background: rgba(91, 141, 239, 0.2);
}

/* Expanded row — toggled */
.precall-expanded {
  padding: var(--space-2) var(--space-4) var(--space-3);
  border-top: 1px solid var(--glass-border);
  animation: slideUp var(--duration-normal) var(--ease-out);
}
.precall-expanded-fields {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Calendar event card — replaces plain-text banner strip */
.precall-calendar-banner {
  margin: 10px 16px 4px;
  padding: 11px 14px;
  background: rgba(16, 22, 34, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 224, 204, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.precall-calendar-banner:hover {
  border-color: rgba(0, 224, 204, 0.38);
  background: rgba(20, 28, 44, 0.80);
}

/* Calendar icon box */
.cal-icon-box {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 224, 204, 0.08);
  border: 1px solid rgba(0, 224, 204, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* Main content block */
.cal-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: var(--tracking-snug);
}
.cal-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cal-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: 0.01em;
}
.cal-meta-chip--teal {
  color: var(--accent);
  background: rgba(0, 224, 204, 0.07);
  border-color: rgba(0, 224, 204, 0.18);
}
.cal-meta-chip--now {
  color: var(--green);
  background: rgba(61, 220, 132, 0.08);
  border-color: rgba(61, 220, 132, 0.2);
}
.cal-meta-chip--soon {
  color: var(--yellow);
  background: rgba(255, 179, 71, 0.08);
  border-color: rgba(255, 179, 71, 0.2);
}

/* CTA on right */
.cal-card-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid rgba(0, 224, 204, 0.28);
  background: rgba(0, 224, 204, 0.07);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.precall-calendar-banner:hover .cal-card-cta {
  background: rgba(0, 224, 204, 0.14);
  border-color: rgba(0, 224, 204, 0.45);
}

.input-group { display: flex; flex-direction: column; gap: 2px; }
.input-group label {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.input-group input, .input-group select {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-primary);
  width: 150px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.input-group input:focus, .input-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,122,255,0.12); }

.file-upload-mini {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.file-upload-mini input { display: none; }

/* ─── BUTTONS ────────────────────────────────────── */

.btn {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-start {
  background: linear-gradient(140deg, #8B7AFF, #6C5CE7);
  color: white;
  box-shadow: 0 3px 14px rgba(108,92,231,0.35);
}
.btn-start:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(108,92,231,0.45); }
.btn-start .btn-icon { font-size: 8px; }

.btn-end {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-end:hover { background: rgba(239, 68, 68, 0.08); color: var(--red); border-color: rgba(239, 68, 68, 0.5); }

.btn-sm {
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-sm:hover { background: var(--bg-active); color: var(--text-primary); }

.btn-ai {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-border);
  color: var(--color-accent-text);
}
.btn-ai:hover { background: rgba(99, 102, 241, 0.14); }

.btn-clear { color: var(--red); border-color: var(--red-dim); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  font-size: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.link-btn:hover { color: var(--text-primary); }

/* ─── TWO-PANEL LAYOUT ───────────────────────────── */

#call-panels {
  display: flex;
  gap: 0;
  padding: 12px 16px 12px;
  background: var(--base);
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

#call-panels > .panel:first-child {
  flex: 1.55;
  min-width: 300px;
}

#call-panels > .panel:last-child {
  flex: 1;
  min-width: 240px;
}

.panel {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
}

/* Top edge highlight — the Stiitch signature */
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Coaching panel — primary hero */
.panel-coaching {
  background: var(--glass);
}

/* Ambient teal+purple glow at bottom — the AI presence */
.panel-coaching::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, rgba(0,224,204,0.07) 0%, rgba(139,122,255,0.04) 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Transcript panel */
.panel-transcript {
  background: rgba(13, 17, 23, 0.75);
}

/* Vertical divider */
.panel-vert-divider {
  width: 2px;
  min-width: 2px;
  background: linear-gradient(to bottom, transparent 5%, rgba(0,224,204,0.35) 30%, rgba(139,122,255,0.25) 70%, transparent 95%);
  flex-shrink: 0;
  margin: 20px 0;
  border-radius: 1px;
  cursor: col-resize;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-ghost);
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
  position: relative;
  z-index: 2;
}
.panel-header h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 16px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.trigger-phrases-bar {
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--border-ghost);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  background: transparent;
  position: relative;
  z-index: 2;
}
.trigger-phrases-bar:hover { opacity: 1; }
.tp-label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  margin-right: 4px;
  white-space: nowrap;
}
.tp-phrase {
  font-size: 14px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(0, 224, 204, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tp-phrase:hover {
  border-color: rgba(0, 224, 204, 0.65);
  background: rgba(0, 224, 204, 0.06);
  color: var(--accent-bright);
}
.tp-phrase.triggered {
  background: rgba(0, 224, 204, 0.12);
  border-color: rgba(0, 224, 204, 0.6);
}

.panel-footer {
  padding: var(--space-2) var(--space-5);
  border-top: 1px solid var(--border-ghost);
  flex-shrink: 0;
  background: linear-gradient(0deg, rgba(255,255,255,0.01) 0%, transparent 100%);
  position: relative;
  z-index: 2;
}

/* ─── ASK AI BAR ─────────────────────────────────── */
.ask-ai-bar {
  padding: 10px 16px 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: transparent;
}

.ask-ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 11, 18, 0.65);
  border: 1px solid rgba(0, 224, 204, 0.28);
  border-radius: 24px;
  padding: 0 14px;
  height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ask-ai-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 224, 204, 0.08);
}

.ask-ai-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--t2);
}
.ask-ai-field::placeholder {
  color: var(--t4);
}

.ask-ai-send {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: #080B12;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ask-ai-send:hover {
  background: var(--accent-bright);
  transform: scale(1.05);
}

.badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--bg-active);
  color: var(--text-muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--space-9) var(--space-6);
  gap: var(--space-3);
  text-align: center;
  position: relative;
  z-index: 1;
}
.empty-state svg, .empty-state .empty-icon { opacity: 0.2; color: var(--t3); margin-bottom: var(--space-1); }
.empty-state .empty-title { font-size: 14px; font-weight: 600; color: var(--t3); }
.empty-state .empty-desc { font-size: 14px; color: var(--t4); max-width: 260px; line-height: var(--leading-relaxed); }
.empty-state p { color: var(--t4); font-size: 14px; text-align: center; line-height: var(--leading-relaxed); }

/* ─── TRANSCRIPT PANEL ───────────────────────────── */

.transcript-entry {
  padding: var(--space-2) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.transcript-entry:first-child { border-top: none; }

.transcript-line {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.transcript-line.final.interviewer-line { color: #F1F5F9; }
.transcript-line.final.candidate-line { color: var(--text-secondary); }
.transcript-line.interim { color: var(--text-muted); font-style: italic; opacity: 0.55; }

.transcript-timestamp {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-right: var(--space-2);
  opacity: 0.45;
  letter-spacing: 0.02em;
}

.transcript-speaker-label {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.transcript-speaker-label.interviewer { color: var(--accent); }
.transcript-speaker-label.candidate { color: var(--text-secondary); }

.transcript-speaker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--weight-bold);
  margin-right: var(--space-1);
  vertical-align: middle;
}
.transcript-speaker--interviewer { background: var(--blue-dim); color: var(--accent); }
.transcript-speaker--you { background: var(--green-dim); color: var(--green); }

/* ─── COACHING PANEL ─────────────────────────────── */

.coaching-card {
  background: var(--card);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
  animation: cardEnter var(--duration-slow) var(--ease-out);
  backdrop-filter: blur(4px);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.coaching-card:hover {
  border-color: var(--border-light);
}

/* Question bubble (interviewer) */
.coaching-card.coaching-question {
  background: rgba(139, 122, 255, 0.03);
  border: 1px solid rgba(139, 122, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}
.coaching-question-label {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.coaching-question-text {
  font-size: var(--text-sm) !important;
  font-style: italic;
  color: var(--text-secondary) !important;
  line-height: var(--leading-normal);
}

/* Answer script — THE STAR (what to say) */
.coaching-card.coaching-answer {
  background: rgba(0, 224, 204, 0.04);
  border: 1px solid rgba(0, 224, 204, 0.14);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 20px rgba(0,224,204,0.04);
}
.coaching-card.coaching-answer--quick {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-left: 3px solid var(--yellow);
}
.coaching-answer-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.coaching-answer-label .label-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.coaching-answer--quick .coaching-answer-label .label-dot {
  background: var(--yellow);
}
.coaching-answer-label span {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.coaching-answer-text {
  font-size: 15px !important;
  font-weight: var(--weight-regular);
  line-height: 1.75 !important;
  color: var(--text-primary) !important;
  padding-left: 0 !important;
}
.coaching-answer-copy {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: var(--space-1);
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.coaching-card:hover .coaching-answer-copy { opacity: 1; }
.coaching-answer-copy:hover { color: var(--text-primary); background: var(--bg-active); }

/* Knowledge/Insight cards — compact */
.coaching-card.coaching-knowledge {
  background: rgba(167, 139, 250, 0.03);
  border-left: 3px solid var(--purple);
  padding-left: var(--space-4);
  opacity: 0.75;
  margin-bottom: var(--space-2);
}
.coaching-card.coaching-knowledge .coaching-text {
  font-size: var(--text-sm);
}

.coaching-card .tier-indicator {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.coaching-card .coaching-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.coaching-card .tier-badge {
  font-size: 14px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px var(--space-2);
  border-radius: var(--radius-xs);
}

.coaching-card .coaching-time {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  font-feature-settings: 'tnum';
}

.coaching-card .coaching-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  padding-left: var(--space-3);
}

.coaching-card .coaching-source {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-1);
  padding-left: var(--space-3);
}

.coaching-card .dismiss-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.coaching-card:hover .dismiss-btn { opacity: 1; }

.btn-popout {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}
.btn-popout:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.05);
}

.tier-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 6px;
}
.tier-dot.tier-1 { background: var(--tier-1); }
.tier-dot.tier-2 { background: var(--tier-2); }
.tier-dot.tier-3 { background: var(--tier-3); }

/* ─── SCORECARD PANEL ────────────────────────────── */

.score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 49, 66, 0.3);
}

.score-label {
  width: 120px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.score-label span { font-weight: 400; font-size: 14px; color: var(--text-muted); }

.score-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-active);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s;
}

.score-status {
  width: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.score-item[data-status="empty"] .score-fill { width: 0%; }
.score-item[data-status="partial"] .score-fill { width: 50%; background: var(--yellow); }
.score-item[data-status="complete"] .score-fill { width: 100%; background: var(--green); }

.score-item[data-status="empty"] .score-status { color: var(--text-muted); }
.score-item[data-status="partial"] .score-status { color: var(--yellow); }
.score-item[data-status="complete"] .score-status { color: var(--green); }

.score-item.gap-glow {
  animation: gapPulse 2s infinite;
}
@keyframes gapPulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(233, 69, 96, 0.05); }
}

.gaps-note {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* ─── NOTE BAR ───────────────────────────────────── */

#note-bar {
  display: flex;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
#note-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
#note-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,122,255,0.12); }

/* ─── PLAYBOOK VIEW ──────────────────────────────── */

.playbook-container {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
  overflow-y: auto;
  height: 100%;
}

.playbook-header { margin-bottom: var(--space-6); }
.playbook-header h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); margin-bottom: var(--space-1); letter-spacing: -0.3px; }
.playbook-header p { font-size: var(--text-base); color: var(--text-muted); margin-bottom: var(--space-3); line-height: var(--leading-relaxed); }

.overall-meter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.overall-meter-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-active);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.overall-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out), background 0.3s var(--ease-out);
}

/* Resume Drag & Drop Zone */
.resume-card {
  margin-bottom: 20px;
}

/* ── Candidate Profile cards ─────────────────────── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.profile-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.profile-card-hint {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}
.profile-textarea {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.profile-textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
}
.profile-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.profile-save-status {
  font-size: 14px;
  color: var(--text-muted);
}
.story-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.story-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  font-size: 13px;
  color: var(--green);
}
.story-file-item .story-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-file-item .story-file-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 14px;
  color: var(--text-muted);
}
.story-file-item .story-file-remove:hover {
  opacity: 1;
  color: var(--red);
}
.profile-drop-zone {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.profile-drop-zone:hover, .profile-drop-active {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.05);
  color: var(--text-secondary);
}
.profile-divider {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 10px 0 0;
  position: relative;
}
.profile-divider::before, .profile-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.profile-divider::before { left: 0; }
.profile-divider::after { right: 0; }
.resume-drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-card);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}
.resume-drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.resume-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(139, 122, 255, 0.08);
  border-style: solid;
}
.resume-drop-zone.uploaded {
  border-color: var(--green);
  border-style: solid;
  background: var(--green-dim);
}
.resume-drop-icon {
  font-size: 28px;
  flex-shrink: 0;
  opacity: 0.6;
}
.resume-drop-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.resume-drop-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

/* Transcript file list */
.transcripts-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.transcripts-file-item:last-child { border-bottom: none; }
.transcripts-file-item .tfn { color: var(--text-primary); font-weight: 500; }
.transcripts-file-item .tfr { font-size: 14px; cursor: pointer; color: var(--text-muted); }
.transcripts-file-item .tfr:hover { color: var(--red); }

/* Style profile */
.style-profile {
  border-top: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.04);
}
.style-profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.style-profile-body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Quick Answers */
.qa-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.qa-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.qa-subtitle { font-size: 14px; color: var(--text-muted); }
.qa-header-actions { display: flex; align-items: center; gap: 10px; }
.qa-count { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.qa-list { max-height: 400px; overflow-y: auto; }
.qa-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.qa-item:last-child { border-bottom: none; }
.qa-item-q { font-size: 14px; font-weight: 600; color: var(--text-secondary); flex: 1; }
.qa-item-variants { margin: 4px 0 6px 12px; }
.qa-variant { font-size: 14px; color: var(--text-muted); line-height: 1.6; opacity: 0.8; }
.qa-item-a { font-size: 14px; color: var(--text-primary); flex: 2; line-height: 1.5; }
.qa-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.qa-item-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.qa-item:hover .qa-item-actions { opacity: 1; }
.qa-edit-btn, .qa-delete-btn { background: none; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 14px; padding: 2px 6px; color: var(--text-muted); }
.qa-edit-btn:hover { color: var(--blue, #4dabf7); border-color: var(--blue, #4dabf7); }
.qa-delete-btn:hover { color: var(--red, #ff6b6b); border-color: var(--red, #ff6b6b); }
.qa-edit-panel { margin-top: 6px; }
.qa-edit-textarea { width: 100%; min-height: 80px; background: var(--bg-secondary, #1a1d23); color: var(--text-primary); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 14px; font-family: inherit; resize: vertical; line-height: 1.5; }
.qa-edit-buttons { display: flex; gap: 6px; margin-top: 6px; }
.qa-save-btn { background: var(--blue, #4dabf7); color: #fff; border: none; border-radius: 4px; padding: 4px 12px; font-size: 14px; cursor: pointer; }
.qa-save-btn:hover { opacity: 0.9; }
.qa-cancel-btn { background: none; color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 4px 12px; font-size: 14px; cursor: pointer; }
.qa-cancel-btn:hover { color: var(--text-primary); }
.qa-item-remove { font-size: 14px; color: var(--text-muted); cursor: pointer; padding: 2px; }
.qa-item-remove:hover { color: var(--red); }
.qa-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.qa-modal.hidden { display: none; }
.qa-modal-content { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; width: 500px; max-width: 90vw; }
.qa-modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }

/* Playbook Section */
.pb-section {
  margin-bottom: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.pb-section:hover { border-color: var(--border-accent); }

.pb-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.pb-section-header:hover { background: var(--bg-hover); }

.pb-section-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.pb-section-info { flex: 1; }
.pb-section-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 1px;
}
.pb-section-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pb-section-meter {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.pb-meter-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-active);
  border-radius: 3px;
  overflow: hidden;
}
.pb-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s, background 0.3s;
}
.pb-meter-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pb-meter-label[data-level="empty"] { color: var(--text-muted); }
.pb-meter-label[data-level="ok"] { color: var(--yellow); }
.pb-meter-label[data-level="good"] { color: var(--blue); }
.pb-meter-label[data-level="great"] { color: var(--purple); }
.pb-meter-label[data-level="world-class"] { color: var(--green); }

.pb-section-chevron {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.pb-section.open .pb-section-chevron { transform: rotate(90deg); }

.pb-section-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}
.pb-section.open .pb-section-body { display: block; }

/* Info dropdown */
.pb-info-toggle {
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 8px 0 6px;
  font-weight: 500;
}
.pb-info-content {
  display: none;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.pb-info-content.open { display: block; }
.pb-info-content strong { color: var(--text-primary); }
.pb-info-levels {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 14px;
}
.pb-info-level { display: flex; align-items: center; gap: 6px; }
.pb-info-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Upload zone per section */
.pb-upload {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.pb-upload:hover, .pb-upload.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.pb-upload input { display: none; }
.pb-upload-text { font-size: 14px; color: var(--text-muted); }

.pb-file-list { display: flex; flex-direction: column; gap: 4px; }

/* ─── HISTORY VIEW ───────────────────────────────── */

/* ─── GONG-STYLE HISTORY LAYOUT ─────────────────── */

.gong-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.gong-sidebar {
  width: 260px;
  min-width: 260px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.gong-sidebar-header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.gong-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
}
.gong-search:focus { border-color: var(--accent); }

.gong-call-list {
  flex: 1;
  overflow-y: auto;
}

.gong-call-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
  position: relative;
}
.gong-call-item:hover { background: rgba(255,255,255,0.04); }
.gong-call-item.active {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid #818cf8;
}

.gong-call-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gong-call-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.gong-call-item-icon {
  position: absolute;
  right: 10px;
  top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

.gong-empty-list {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Detail panel */
.gong-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.gong-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}

#gong-detail-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.gong-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
}

/* Tabs */
.gong-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  flex-shrink: 0;
}

.gong-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font);
}
.gong-tab:hover { color: var(--text-primary); }
.gong-tab.active {
  color: var(--text-primary);
  border-bottom-color: #818cf8;
}

/* Player */
.gong-player {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}

.gong-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gong-player-time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  min-width: 100px;
}

.gong-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gong-player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.gong-player-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}
.gong-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.gong-play-btn:hover { background: rgba(255,255,255,0.12); }

.gong-player-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 60px;
  justify-content: flex-end;
}

.gong-player-speed {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.gong-player-speed:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.gong-progress-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.gong-progress-wrap:hover { height: 6px; }

.gong-progress {
  height: 100%;
  background: #818cf8;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* Meta bar */
.gong-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.gong-meta-date {
  font-size: 12px;
  color: var(--text-muted);
}

.gong-deal-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font);
}

/* Panels */
.gong-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.gong-panel.active { display: block; }

.gong-panel-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
  text-align: center;
}

.gong-summary-text {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  background: none;
  margin: 0;
  padding: 0;
}

/* Transcript */
.gong-transcript {
  display: flex;
  flex-direction: column;
}

.gong-transcript-line {
  padding: 4px 0;
}

.gong-transcript-new-speaker {
  margin-top: 16px;
  padding-top: 10px;
}

.gong-transcript-speaker {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gong-speaker-them { color: #64748b; }
.gong-speaker-you { color: #a5b4fc; }

.gong-transcript-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  flex: 1;
}

.gong-transcript-time {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  min-width: 55px;
  padding-top: 2px;
  opacity: 0.6;
}

.gong-transcript-seekable {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  margin: 0 -12px;
}
.gong-transcript-seekable:hover {
  background: rgba(255,255,255,0.05);
}
.gong-transcript-seekable:hover .gong-transcript-time {
  opacity: 1;
  color: #818cf8;
}

.gong-active-line {
  background: rgba(99, 102, 241, 0.12) !important;
}

.gong-playing-line {
  background: rgba(255,255,255,0.04);
  border-left: 2px solid #818cf8;
  padding-left: 10px;
}
.gong-playing-line .gong-transcript-time {
  opacity: 1;
  color: #818cf8;
}

/* Scorecard */
.gong-score-overall {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.gong-score-overall span { font-size: 20px; opacity: 0.5; }
.gong-score-summary {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.gong-scorecard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gong-scorecard-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
}

.gong-scorecard-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.gong-scorecard-val {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Coaching log */
.gong-coaching-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gong-coaching-entry {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gong-coaching-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  min-width: 70px;
  padding-top: 2px;
}

.gong-coaching-q {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gong-coaching-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Legacy (keep for backward compat) */
.history-container {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  overflow-y: auto;
  height: 100%;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.history-header h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); letter-spacing: -0.3px; }

.history-search input {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-primary);
  width: 260px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.history-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,122,255,0.12); }

.history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.history-stats .stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.history-stats .stat-value {
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-size: var(--text-2xl);
  display: block;
  font-feature-settings: 'tnum';
  letter-spacing: -0.5px;
}
.history-stats .stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.call-list { display: flex; flex-direction: column; gap: var(--space-2); }

.call-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.call-item:hover { border-color: var(--border-accent); background: var(--bg-hover); }

.call-item-left { display: flex; flex-direction: column; gap: 2px; }
.call-item-prospect { font-size: var(--text-md); font-weight: var(--weight-semibold); }
.call-item-date { font-size: var(--text-xs); color: var(--text-muted); }

.call-item-right { display: flex; align-items: center; gap: var(--space-3); }
.call-item-duration {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ─── MODALS ─────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleIn var(--duration-slow) var(--ease-out);
}
.modal-large { max-width: 860px; }
.modal-xlarge { max-width: 1100px; width: 92vw; max-height: 88vh; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }

/* ─── SUMMARY ────────────────────────────────────── */

#summary-body h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent);
}
#summary-body pre {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* ─── CALL DETAIL ────────────────────────────────── */

#call-detail-body h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
#call-detail-body .detail-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
#call-detail-body .detail-section {
  margin-bottom: 16px;
}
#call-detail-body .detail-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
#call-detail-body .detail-section pre {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  background: var(--bg-panel);
  padding: 12px;
  border-radius: var(--radius);
}

/* ─── DEALS VIEW ──────────────────────────────────── */

.deals-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  overflow-y: auto;
  height: 100%;
}

.deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.deals-header h2 { font-size: 22px; margin-bottom: 4px; }

.deals-stats-bar {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}
.deals-stats-bar .stat-val {
  font-weight: 700;
  color: var(--text-primary);
}

.deals-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.deals-filters input, .deals-filters select {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.deals-filters input { flex: 1; }
.deals-filters input:focus, .deals-filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,122,255,0.12); }

.deals-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.deal-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.deal-card:hover { border-color: var(--border-accent); background: var(--bg-hover); }

.deal-card-health {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  border: 2px solid;
  font-feature-settings: 'tnum';
}
.deal-health-red { border-color: var(--red); color: var(--red); }
.deal-health-yellow { border-color: var(--yellow); color: var(--yellow); }
.deal-health-green { border-color: var(--green); color: var(--green); }

.deal-card-info { flex: 1; min-width: 0; }
.deal-card-name { font-size: var(--text-md); font-weight: var(--weight-semibold); margin-bottom: 2px; }
.deal-card-meta { font-size: 14px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

.deal-stage-badge {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.stage-prospecting { background: rgba(100,116,139,0.15); color: #94A3B8; }
.stage-discovery { background: rgba(59,130,246,0.15); color: var(--blue); }
.stage-demo { background: rgba(139,92,246,0.15); color: var(--purple); }
.stage-trial { background: rgba(6,182,212,0.15); color: var(--cyan); }
.stage-negotiation { background: rgba(249,115,22,0.15); color: var(--orange); }
.stage-closed_won { background: rgba(16,185,129,0.15); color: var(--green); }
.stage-closed_lost { background: var(--red-dim); color: var(--red); }

.deal-card-meddpicc {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.deal-meddpicc-dot {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.meddpicc-empty-dot { background: var(--bg-active); color: var(--text-muted); }
.meddpicc-partial-dot { background: rgba(245,158,11,0.2); color: var(--yellow); }
.meddpicc-complete-dot { background: rgba(16,185,129,0.2); color: var(--green); }

.deal-card-pains {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  gap: 8px;
}
.deal-pain-tag {
  background: var(--red-dim);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 14px;
}

.deal-form .input-group label {
  display: block;
  margin-bottom: 4px;
}

/* Position detail */
.deal-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.deal-detail-header h2 { margin: 0; font-size: 20px; }
.deal-detail-section {
  margin-bottom: 16px;
}
.deal-detail-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.deal-detail-section pre {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  background: var(--bg-panel);
  padding: 12px;
  border-radius: var(--radius);
}

/* ─── TABBED PANEL ────────────────────────────────── */

.panel-tabs {
  display: flex;
  gap: 2px;
}
.panel-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.panel-tab:hover { color: var(--text-secondary); background: var(--bg-hover); }
.panel-tab.active { color: var(--accent); background: var(--accent-dim); }

.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.tab-content.active {
  display: flex;
}

.panel-tabbed {
  display: flex;
  flex-direction: column;
}
.panel-tabbed .panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── SCORECARD PANEL (RIGHT) ─────────────────────── */

.panel-meddpicc {
  overflow: hidden;
}
.panel-meddpicc .panel-body {
  padding: 8px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.meddpicc-section {
  margin-bottom: var(--space-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.meddpicc-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-card);
  cursor: default;
}

.meddpicc-letter {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: var(--weight-bold);
  background: var(--bg-active);
  color: var(--text-muted);
  flex-shrink: 0;
}
.meddpicc-section[data-status="partial"] .meddpicc-letter {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
}
.meddpicc-section[data-status="complete"] .meddpicc-letter {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.meddpicc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.meddpicc-status {
  font-size: 14px;
  color: var(--text-muted);
}
.meddpicc-section[data-status="partial"] .meddpicc-status { color: var(--yellow); }
.meddpicc-section[data-status="complete"] .meddpicc-status { color: var(--green); }

.meddpicc-bullets {
  padding: 4px 10px 6px 40px;
  min-height: 24px;
}

.meddpicc-empty {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.meddpicc-bullet {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 1px 0;
  position: relative;
}
.meddpicc-bullet::before {
  content: "•";
  position: absolute;
  left: -14px;
  color: var(--green);
}

.meddpicc-subfield {
  display: flex;
  flex-direction: column;
  padding: 3px 0;
  border-bottom: 1px solid rgba(42, 49, 66, 0.2);
}
.meddpicc-subfield:last-child { border-bottom: none; }
.meddpicc-sublabel {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}
.meddpicc-subvalue {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 8px;
}
.meddpicc-subvalue.filled {
  color: var(--green);
  font-weight: 500;
}

/* Right panel tabs */
.right-panel-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.rp-tab {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.rp-tab:hover { color: var(--text-secondary); }
.rp-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.rp-content { display: none; overflow-y: auto; flex: 1; }
.rp-content.active { display: flex; flex-direction: column; }

/* Interview Brief */
.brief-section {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.brief-section:last-child { border-bottom: none; }
.brief-section-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.brief-mission {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
.brief-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.brief-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.brief-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.brief-pain-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.pain-confirmed { background: var(--green); }
.pain-mentioned { background: var(--yellow); }
.pain-inferred { background: var(--orange); }
.brief-risk {
  font-size: 14px;
  color: var(--accent);
  padding: 3px 0;
}
.brief-probe {
  font-size: 14px;
  color: var(--blue);
  padding: 2px 0;
  font-style: italic;
}

/* Health Widget (Feature 5) */
.health-widget {
  position: fixed;
  bottom: 80px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s;
}
.health-widget:hover { transform: scale(1.08); }
.health-widget-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  border: 3px solid;
  background: var(--bg-panel);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.health-widget-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
@keyframes health-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 4px 20px rgba(233,69,96,0.5); }
}
.health-widget-pulse .health-widget-circle {
  animation: health-pulse 2s infinite;
}

/* Modal large */
.modal-large {
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
}

/* ─── WAR ROOM ───────────────────────────────────── */

.warroom-container {
  padding: 24px 20px;
  overflow-y: auto;
  height: 100%;
}
#warroom-picker {
  display: flex;
  justify-content: center;
}
#warroom-picker > div {
  width: 100%;
  max-width: 680px;
}

.wr-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.wr-inline-timeline {
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  gap: 0;
}
.wr-tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  position: relative;
}
.wr-tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: calc(50% + 8px);
  right: calc(-50% + 8px);
  height: 2px;
  background: var(--border);
}
.wr-tl-step.done:not(:last-child)::after {
  background: var(--accent);
}
.wr-tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-panel);
  z-index: 1;
  flex-shrink: 0;
}
.wr-tl-step.done .wr-tl-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.wr-tl-step.current .wr-tl-dot {
  background: var(--bg-panel);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.2);
}
.wr-tl-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
}
.wr-tl-step.done .wr-tl-label,
.wr-tl-step.current .wr-tl-label { color: var(--text-secondary); }
.wr-tl-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
}
.wr-header-health {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  border: 3px solid; flex-shrink: 0;
}
.wr-header-info { flex: 1; }
.wr-header-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.wr-header-meta { font-size: 14px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.wr-header-actions { display: flex; gap: 8px; }

.wr-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}
.wr-tab {
  background: none; border: none;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text-muted); padding: 10px 16px;
  cursor: pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all 0.15s;
}
.wr-tab:hover { color: var(--text-secondary); }
.wr-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.wr-panel { display: none; overflow: hidden; }
.wr-panel.active { display: block; overflow: hidden; }

.wr-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.wr-card-title {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin-bottom: 10px;
}

.wr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wr-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.wr-stat {
  text-align: center; padding: 12px;
  background: var(--bg-secondary); border-radius: var(--radius);
}
.wr-stat-value { font-size: 24px; font-weight: 800; }
.wr-stat-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.wr-progress-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.wr-progress-row:last-child { border-bottom: none; }
.wr-progress-label { font-size: 14px; font-weight: 600; width: 140px; flex-shrink: 0; }
.wr-progress-bar { flex: 1; height: 8px; background: var(--bg-active); border-radius: 4px; overflow: hidden; }
.wr-progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.wr-progress-pct { font-size: 14px; font-weight: 700; width: 40px; text-align: right; }

.wr-evidence {
  font-size: 14px; color: var(--text-secondary);
  padding: 4px 0 4px 12px; margin: 0;
}
.wr-evidence::before { content: "• "; color: var(--green); }

.wr-gap {
  font-size: 14px; color: var(--accent);
  padding: 4px 0 4px 12px;
}
.wr-gap::before { content: "⚠ "; }

.wr-timeline-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.wr-timeline-item:last-child { border-bottom: none; }
.wr-timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%; margin-top: 4px; flex-shrink: 0;
}
.wr-timeline-body { flex: 1; }
.wr-timeline-date { font-size: 14px; color: var(--text-muted); }
.wr-timeline-title { font-size: 14px; font-weight: 600; margin: 2px 0; }
.wr-timeline-detail { font-size: 14px; color: var(--text-secondary); }
.wr-timeline-expand {
  background: none; border: none; color: var(--accent);
  font-size: 14px; cursor: pointer; padding: 2px 0; font-family: var(--font);
}

.wr-stakeholder-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.wr-stakeholder-row:last-child { border-bottom: none; }
.wr-stakeholder-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-active); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.wr-stakeholder-info { flex: 1; }
.wr-stakeholder-name { font-size: 14px; font-weight: 600; }
.wr-stakeholder-role { font-size: 14px; color: var(--text-muted); }
.wr-sentiment-badge {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; letter-spacing: 0.5px;
}
.sentiment-champion { background: rgba(16,185,129,0.15); color: var(--green); }
.sentiment-supporter { background: rgba(59,130,246,0.15); color: var(--blue); }
.sentiment-neutral { background: rgba(100,116,139,0.15); color: #94A3B8; }
.sentiment-skeptical { background: rgba(249,115,22,0.15); color: var(--orange); }
.sentiment-unknown { background: rgba(100,116,139,0.1); color: var(--text-muted); }

.wr-forecast-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.wr-forecast-item:last-child { border-bottom: none; }
.wr-forecast-icon { font-size: 18px; flex-shrink: 0; }
.wr-forecast-text { flex: 1; }
.wr-forecast-label { font-size: 14px; font-weight: 600; }
.wr-forecast-detail { font-size: 14px; color: var(--text-muted); }

.wr-back-btn {
  background: none; border: none; color: var(--accent);
  font-family: var(--font); font-size: 14px; cursor: pointer;
  padding: 0; margin-bottom: 12px;
}

/* War Room AI Chat — right side panel, iMessage style */
.wr-chat {
  width: 340px;
  flex-shrink: 0;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  position: sticky;
  top: 0;
}
.wr-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-panel);
  flex-shrink: 0;
}
.wr-chat-icon {
  color: var(--blue);
  font-size: 16px;
}
.wr-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wr-chat-suggestion {
  font-size: 14px;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.wr-chat-suggestion:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}
.wr-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wr-chat-msg-user {
  align-self: flex-end;
  max-width: 85%;
}
.wr-chat-msg-ai {
  align-self: flex-start;
  max-width: 90%;
}
.wr-chat-bubble-user {
  background: var(--blue);
  color: white;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.wr-chat-bubble-ai {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.wr-chat-bubble-ai p {
  margin: 0 0 10px 0;
}
.wr-chat-bubble-ai p:last-child {
  margin-bottom: 0;
}
.wr-chat-bubble-ai strong {
  color: var(--text-primary);
}
.wr-chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  flex-shrink: 0;
}
.wr-chat-input input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.wr-chat-input input:focus { border-color: var(--blue); }
.wr-chat-input button {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wr-chat-input button:hover { opacity: 0.9; }
.wr-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Thinking animation */
.wr-thinking {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.wr-thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: wr-pulse 1.4s infinite ease-in-out both;
}
.wr-thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.wr-thinking-dot:nth-child(2) { animation-delay: -0.16s; }
.wr-thinking-dot:nth-child(3) { animation-delay: 0s; }
@keyframes wr-pulse {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.meddpicc-section[data-status="empty"] {
  opacity: 0.6;
}
.meddpicc-section[data-status="empty"]:hover {
  opacity: 0.8;
}

/* ─── WAR ROOM: NEW SECTIONS ─────────────────────── */

.wr-header-stage-select {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm, 4px); padding: 4px 8px;
  font-family: var(--font); font-size: 14px; color: var(--text-primary);
  cursor: pointer;
}

/* Stage Pipeline */
.wr-stage-pipeline { display: flex; gap: 0; margin-bottom: 20px; overflow-x: auto; }
.wr-stage-step {
  flex: 1; min-width: 90px; padding: 10px 8px; text-align: center;
  font-size: 14px; font-weight: 600; position: relative;
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.15s;
}
.wr-stage-step.completed { background: rgba(16,185,129,0.1); border-color: var(--green); color: var(--green); }
.wr-stage-step.current { background: rgba(91,141,239,0.1); border-color: var(--accent); color: var(--accent); }
.wr-stage-step:first-child { border-radius: var(--radius, 6px) 0 0 var(--radius, 6px); }
.wr-stage-step:last-child { border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0; }

/* Call Cards */
.wr-call-card { cursor: pointer; transition: border-color 0.15s; }
.wr-call-card:hover { border-color: var(--accent); }
.wr-call-meta { font-size: 14px; color: var(--text-muted); display: flex; gap: 12px; margin-top: 4px; }

/* Contacts */
.wr-contact-card {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); margin-bottom: 8px;
}
.wr-contact-type-badge {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; letter-spacing: 0.5px;
}
.contact-recruiter { background: rgba(59,130,246,0.15); color: var(--blue, #5B8DEF); }
.contact-hm { background: rgba(16,185,129,0.15); color: var(--green); }
.contact-interviewer { background: rgba(249,115,22,0.15); color: var(--orange, #F97316); }
.wr-add-contact-btn {
  background: var(--bg-panel); border: 1px dashed var(--border);
  border-radius: var(--radius, 6px); padding: 14px; text-align: center;
  color: var(--text-muted); font-size: 14px; cursor: pointer; width: 100%;
  font-family: var(--font);
}
.wr-add-contact-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Prep Sections */
.wr-prep-section {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); margin-bottom: 10px; overflow: hidden;
}
.wr-prep-section-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; cursor: pointer;
}
.wr-prep-section-header:hover { background: var(--bg-active, #21252F); }
.wr-prep-section-body { padding: 0 16px 12px; font-size: 14px; color: var(--text-secondary); display: none; }
.wr-prep-section.open .wr-prep-section-body { display: block; }

/* Compensation */
.wr-comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wr-comp-field {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); padding: 12px;
}
.wr-comp-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.wr-comp-value { font-size: 18px; font-weight: 700; }
.wr-comp-input {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 4px; padding: 8px 10px;
  font-family: var(--font); font-size: 14px; color: var(--text-primary);
}

/* Notes */
.wr-note-round {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); padding: 16px; margin-bottom: 12px;
}
.wr-note-round-header { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.wr-note-field { margin-bottom: 10px; }
.wr-note-field label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.wr-note-textarea {
  width: 100%; min-height: 60px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 8px 10px; font-family: var(--font); font-size: 14px;
  color: var(--text-primary); resize: vertical;
}

/* Activity Log */
.wr-activity-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); margin-bottom: 12px;
}
.wr-days-counter { font-size: 28px; font-weight: 800; }
.wr-days-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; }
.wr-activity-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
}
.wr-activity-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.wr-activity-text { flex: 1; }
.wr-activity-time { font-size: 14px; color: var(--text-muted); white-space: nowrap; }

/* Empty States */
.wr-empty {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.wr-empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }
.wr-empty-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.wr-empty-text { font-size: 14px; line-height: 1.6; }

/* ─── STATUS FOOTER ─────────────────────────────── */

#status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 20px;
  background: var(--void);
  border-top: 1px solid var(--border-ghost);
  flex-shrink: 0;
  z-index: 50;
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.foot-item--mono {
  font-family: var(--mono);
  font-size: 14px;
}

.foot-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.foot-dot--green { background: var(--green); }
.foot-dot--red   { background: var(--red); }
.foot-dot--dim   { background: var(--text-muted); }

.foot-sep {
  width: 1px;
  height: 8px;
  background: var(--border);
}

.foot-right {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── SCROLLBARS ─────────────────────────────────── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

/* ─── LOADING SPINNER ────────────────────────────── */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── AI THINKING INDICATOR ──────────────────────── */
#ai-thinking-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  background: linear-gradient(90deg, rgba(91,141,239,0.06), rgba(167,139,250,0.06), rgba(91,141,239,0.06));
  background-size: 200% 100%;
  border: 1px solid rgba(91,141,239,0.15);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
#ai-thinking-indicator.active {
  opacity: 1;
  animation: shimmer 2s linear infinite;
}
.ai-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.ai-pulse-text {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--blue);
  letter-spacing: 0.4px;
  animation: pulse-text 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px 4px rgba(139, 92, 246, 0.3); }
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes thinking-glow {
  0%, 100% { border-color: rgba(139, 92, 246, 0.2); }
  50% { border-color: rgba(139, 92, 246, 0.5); }
}

/* AI Thinking Indicator */
.ai-thinking-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
}
.ai-thinking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: thinking-dot-pulse 1.5s ease-in-out infinite;
}
.ai-thinking-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent-text);
  animation: thinking-text-fade 1.5s ease-in-out infinite;
}
@keyframes thinking-border-pulse {
  0%, 100% { border-color: var(--color-accent-border); }
  50% { border-color: rgba(99, 102, 241, 0.45); }
}
@keyframes thinking-dot-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes thinking-text-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Prep Hub Generator */
.prep-gen-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.prep-gen-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}
.prep-gen-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prep-gen-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prep-gen-field input,
.prep-gen-field select,
.prep-gen-field textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
}
.prep-gen-field textarea {
  resize: vertical;
  min-height: 80px;
}
.prep-gen-results {
  margin-top: 16px;
}
.prep-gen-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.prep-gen-results-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.prep-gen-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.prep-gen-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.prep-gen-section-header:hover { background: var(--bg-hover); }
.prep-gen-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.prep-gen-section-actions { display: flex; gap: 6px; }
.prep-gen-section-body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.prep-gen-section-body.open { display: block; }
.prep-gen-section.approved { border-color: var(--green); }
.prep-gen-section.approved .prep-gen-section-header { background: rgba(16,185,129,0.06); }

/* Generator spinner */
.gen-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: genSpin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes genSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   DESIGN SYSTEM — Reusable Component Classes
   ═══════════════════════════════════════════════════ */

/* ── Glass Card ── */
.ic-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.ic-card--elevated {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ── */
.ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.ic-btn:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border-accent);
}

.ic-btn--primary {
  background: linear-gradient(135deg, #00E0CC, #00B8A9);
  color: #080B12;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 16px rgba(0,224,204,0.28);
}
.ic-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(0,224,204,0.38);
  border-color: transparent;
}

.ic-btn--danger {
  background: linear-gradient(140deg, #FF5C5C, #E04848);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255,92,92,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.ic-btn--danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,92,92,0.35);
  border-color: transparent;
}

.ic-btn--ghost {
  border-color: transparent;
  background: transparent;
}
.ic-btn--ghost:hover {
  background: var(--bg-hover);
}

/* Overlay button alert state — jumps + glows when call is live or starting soon */
@keyframes overlay-jump {
  0%, 100% { transform: translateY(0); }
  20%       { transform: translateY(-5px); }
  40%       { transform: translateY(0); }
  60%       { transform: translateY(-3px); }
  80%       { transform: translateY(0); }
}
@keyframes overlay-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,224,204,0); border-color: rgba(0,224,204,0.3); }
  50%       { box-shadow: 0 0 14px 3px rgba(0,224,204,0.45); border-color: rgba(0,224,204,0.9); }
}
#btn-overlay.overlay-alert {
  animation: overlay-jump 1.6s ease-in-out infinite, overlay-glow 1.6s ease-in-out infinite;
  color: var(--accent) !important;
  background: rgba(0,224,204,0.12) !important;
}
#btn-overlay.overlay-active {
  background: rgba(0,224,204,0.15) !important;
  border-color: rgba(0,224,204,0.6) !important;
  color: var(--accent) !important;
}

.ic-btn--sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
}

/* ── Badges ── */
.ic-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.ic-badge--blue   { background: var(--blue-dim);   color: var(--blue); }
.ic-badge--green  { background: var(--green-dim);  color: var(--green); }
.ic-badge--amber  { background: var(--yellow-dim); color: var(--yellow); }
.ic-badge--red    { background: var(--red-dim);     color: var(--red); }
.ic-badge--purple { background: var(--purple-dim); color: var(--purple); }
.ic-badge--muted  { background: var(--bg-hover);   color: var(--text-muted); }

/* ── Form Inputs ── */
.ic-input, .ic-select, .ic-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.ic-input:focus, .ic-select:focus, .ic-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,122,255,0.12);
  outline: none;
}
.ic-input::placeholder, .ic-textarea::placeholder {
  color: var(--text-muted);
}
.ic-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: var(--leading-relaxed);
}
.ic-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23565E6C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* ── Tags ── */
.ic-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

/* ── Toast Notifications ── */
.ic-toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.ic-toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139,122,255,0.06);
  font-size: var(--text-sm);
  color: var(--text-primary);
  pointer-events: auto;
  animation: toastEnter var(--duration-slow) var(--ease-out);
  max-width: 380px;
}
.ic-toast--info    { border-left: 3px solid var(--blue); }
.ic-toast--success { border-left: 3px solid var(--green); }
.ic-toast--warning { border-left: 3px solid var(--yellow); }
.ic-toast--error   { border-left: 3px solid var(--red); }
.ic-toast.exiting  { animation: toastExit var(--duration-normal) var(--ease-out) forwards; }

/* ── Empty State ── */
.ic-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  text-align: center;
  gap: var(--space-3);
}
.ic-empty-icon {
  font-size: 36px;
  opacity: 0.3;
}
.ic-empty-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}
.ic-empty-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 280px;
  line-height: var(--leading-relaxed);
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes toastEnter {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastExit {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Utility ── */
.hidden { display: none !important; }
.font-mono { font-family: var(--mono); }
.font-tabular { font-feature-settings: 'tnum'; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── Custom Scrollbars ── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ── Focus Rings ── */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Status dot live pulse — accent-colored ── */
.status-live .status-dot {
  background: var(--green);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* ── Shimmer animation for intel research state ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.intel-researching {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.intel-researching-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ── Precall badge: interviewer intel ── */
.precall-intel-badge {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent-text);
}
.precall-intel-badge:hover {
  background: rgba(99, 102, 241, 0.14);
}

/* ── ic-badge: accent variant ── */
.ic-badge--accent {
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  border: 1px solid var(--color-accent-border);
}

/* ── Panel vertical divider (was resize handle) ── */
.panel-resize-handle, .panel-vert-divider {
  width: 2px;
  min-width: 2px;
  background: linear-gradient(to bottom, transparent 5%, rgba(0,224,204,0.35) 30%, rgba(139,122,255,0.25) 70%, transparent 95%);
  flex-shrink: 0;
  margin: 20px 0;
  border-radius: 1px;
  cursor: col-resize;
  position: relative;
  z-index: 10;
}
.panel-resize-handle::after { display: none; }

/* ── Deals grid: remove hover transform/shadow ── */
.deal-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-accent);
  background: var(--bg-hover);
}

/* ── Meeting Detect Card ── */
.meeting-detect {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--color-accent-border);
  border-radius: 14px;
  padding: 16px;
  z-index: 9000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139,122,255,0.06);
  animation: meetingDetectEnter 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.meeting-detect.hidden { display: none; }

@keyframes meetingDetectEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.meeting-detect-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.meeting-detect-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}
.meeting-detect-dot.warning {
  background: var(--yellow);
  animation: none;
}
.meeting-detect-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent-text);
  flex: 1;
}
.meeting-detect-label.warning { color: var(--yellow); }
.meeting-detect-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color var(--duration-fast) var(--ease-out);
}
.meeting-detect-close:hover { color: var(--text-primary); }

.meeting-detect-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meeting-detect-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.meeting-detect-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meeting-detect-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(140deg, #8B7AFF, #6C5CE7);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(108,92,231,0.3);
  transition: all var(--duration-fast) var(--ease-out);
  flex: 1;
  justify-content: center;
}
.meeting-detect-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.meeting-detect-load {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.meeting-detect-load:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ── Jump to latest pill for transcript ── */
.transcript-jump-btn {
  position: sticky;
  bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: var(--space-2) auto 0;
  padding: 4px var(--space-3);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent-text);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--weight-medium);
  cursor: pointer;
  width: fit-content;
  transition: all var(--duration-fast) var(--ease-out);
}
.transcript-jump-btn:hover {
  background: rgba(99, 102, 241, 0.14);
}

/* ── Resume Grader drop zone ── */
.resume-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.resume-drop-zone:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.04);
}
.resume-drop-active {
  border-color: var(--accent) !important;
  background: rgba(99,102,241,0.08) !important;
}
.resume-file-selected {
  border-style: solid;
  border-color: var(--accent);
  background: rgba(99,102,241,0.06);
}

/* ── Resume consensus score cards ── */
.model-score-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.model-score-card.score-card-done {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}
.model-score-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.model-score-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
  transition: color 0.3s;
}
.model-score-critique {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
}
@media (max-width: 600px) {
  #model-scores-grid { grid-template-columns: 1fr !important; }
}

/* ── Prep Brief in War Room Overview ─────────────────────────── */
.brief-layout {
  display: flex;
  gap: 0;
  height: 100%;
  min-height: 500px;
  width: 100%;
  overflow: hidden;
}

.brief-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.brief-nav-pill {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font);
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.brief-nav-pill:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.brief-nav-pill.active { background: rgba(233,69,96,0.12); color: var(--accent); font-weight: 600; }
.brief-nav-pill--empty { opacity: 0.35; cursor: default; }

.brief-content {
  flex: 1;
  width: 0;
  min-width: 0;
  padding-left: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 580px;
  box-sizing: border-box;
}

.brief-qa-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

/* ── Salesforce-style chevron pipeline bar ─────────────────────── */
.wr-pipeline-wrap {
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.35);
}
.wr-pipeline {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: stretch;
}
.wr-pipeline-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%);
  padding: 0 14px 0 20px;
  margin-left: -11px;
  user-select: none;
}
.wr-pipeline-step:first-child {
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
  padding-left: 12px;
  margin-left: 0;
}
.wr-pipeline-step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 11px 50%);
  padding-right: 12px;
}
.wr-pipeline-step.done {
  background: rgba(99,102,241,0.5);
  color: rgba(255,255,255,0.9);
}
.wr-pipeline-step.current {
  background: #6366F1;
  color: #fff;
  font-weight: 700;
}
.wr-pipeline-step:hover:not(.current):not(.done) {
  background: rgba(99,102,241,0.14);
  color: rgba(255,255,255,0.5);
}
.wr-pipeline-step.done:hover {
  background: rgba(99,102,241,0.68);
}
.wr-pipeline-date {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 1px;
}

/* ─── PREP CARDS ─────────────────────────────── */

.prep-cards-container { padding: 0; }

.prep-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.prep-alias-banner {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #ffc107;
  margin-bottom: 16px;
}

.prep-cards-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.prep-card-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.prep-card-item:hover { border-color: rgba(255,255,255,0.15); }

.prep-card-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  gap: 12px;
}

.prep-card-item-q {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.prep-card-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.prep-card-mode-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.prep-card-alias-status {
  font-size: 11px;
  color: var(--text-muted);
}

.prep-card-item-body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.prep-card-answer {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  padding: 12px 0;
  max-height: 300px;
  overflow-y: auto;
}

.prep-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 8px;
}

.prep-templates-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

.prep-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.prep-template-card {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.prep-template-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(99, 102, 241, 0.4);
}

.prep-template-q {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.prep-template-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.prep-mode-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.prep-mode-btn:hover { background: rgba(255,255,255,0.06); }
.prep-mode-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

/* ─── CALL RECORDING PLAYER ──────────────────────── */

.call-recording-player {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px;
}

.call-recording-player audio {
  width: 100%;
  height: 40px;
  border-radius: 6px;
}

.call-recording-player audio::-webkit-media-controls-panel {
  background: var(--bg-active);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.flashcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.flashcard-q-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flashcard-q-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(233,69,96,0.3);
}

.brief-qa-detail { animation: slideIn 0.15s ease; }

.brief-qa-detail-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.4;
}
.brief-qa-detail-a {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 16px;
}
.brief-qa-back {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s, border-color 0.15s;
}
.brief-qa-back:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.brief-qa-edit-btn {
  background: rgba(233,69,96,0.1);
  border: 1px solid rgba(233,69,96,0.25);
  color: var(--accent);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.brief-qa-edit-btn:hover { background: rgba(233,69,96,0.2); }
.brief-qa-nav-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.brief-qa-nav-btn:hover { background: rgba(255,255,255,0.09); color: var(--text-primary); }

.flashcard {
  height: 140px;
  perspective: 800px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flashcard-front {
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.flashcard-back {
  background: rgba(233,69,96,0.08);
  border: 1px solid rgba(233,69,96,0.2);
  transform: rotateY(180deg);
}

.flashcard-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.flashcard-tap {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.flashcard-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-y: auto;
}

/* Brief text sections */
.brief-text-content { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.brief-section-h2 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 16px 0 6px; }
.brief-section-h3 { font-size: 14px; font-weight: 600; color: var(--accent); margin: 12px 0 4px; }
.brief-bullet { padding: 3px 0 3px 12px; color: var(--text-secondary); }
.brief-bold { font-weight: 600; color: var(--text-primary); padding: 4px 0; }
.brief-para { margin: 0 0 6px; }

/* ── Mid-call no-deal warning banner ── */
@keyframes warning-flash {
  0%, 100% { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.45); }
  50%       { background: rgba(245, 158, 11, 0.20); border-color: rgba(245, 158, 11, 0.75); }
}
.midcall-warning-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.10);
  animation: warning-flash 1.8s ease-in-out infinite;
}
.midcall-warning-icon {
  font-size: 22px;
  flex-shrink: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
.midcall-warning-content { flex: 1; min-width: 0; }
.midcall-warning-title {
  font-size: 14px;
  font-weight: 700;
  color: rgb(251, 191, 36);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.midcall-warning-desc {
  font-size: 14px;
  color: rgba(251, 191, 36, 0.75);
  line-height: 1.4;
}
.midcall-warning-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.midcall-warning-select {
  height: 30px;
  font-size: 14px;
  padding: 0 10px;
  min-width: 170px;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
.midcall-link-status {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}
.ic-btn--warning {
  background: rgba(245, 158, 11, 0.15);
  color: rgb(251, 191, 36);
  border-color: rgba(245, 158, 11, 0.5);
  font-weight: 700;
}
.ic-btn--warning:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.8);
}

/* Pre-call deal select: pulse ring when nothing selected */
.precall-select--warn {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.6);
  animation: warning-flash 1.8s ease-in-out infinite;
  border-color: rgba(245, 158, 11, 0.6) !important;
}


/* ═══════════════════════════════════════════════════
   PRE-SESSION BRIEFING CARDS
   ═══════════════════════════════════════════════════ */

.psb-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Cancel out panel-body padding so sections sit flush */
  margin: -14px -18px -16px;
  padding-bottom: 8px;
}

.psb-section {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.08);
}
.psb-section:last-child {
  border-bottom: none;
}

.psb-section-title {
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t4);
  margin: 0 0 10px 0;
}

/* YOUR POSITIONING card */
.psb-positioning-card {
  background: rgba(139, 122, 255, 0.08);
  border: 1px solid rgba(139, 122, 255, 0.2);
  border-radius: 10px;
  padding: 14px;
}
.psb-position-headline {
  color: var(--t1);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}
.psb-position-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.psb-dot {
  color: var(--t4);
}
.psb-position-edge {
  color: var(--t4);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* LIKELY QUESTIONS */
.psb-questions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.psb-question-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(139, 155, 180, 0.1);
  cursor: pointer;
  transition: border-color 0.15s;
}
.psb-question-item:hover {
  border-color: rgba(139, 155, 180, 0.22);
}
.psb-q-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  min-width: 36px;
  flex-shrink: 0;
}
.psb-q-text {
  flex: 1;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.4;
}

/* Tags */
.psb-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.psb-tag--teal {
  background: rgba(0, 224, 204, 0.15);
  color: var(--accent);
}
.psb-tag--purple {
  background: rgba(139, 122, 255, 0.15);
  color: #8B7AFF;
}

/* ANCHOR STORIES */
.psb-stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.psb-story-card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(139, 155, 180, 0.1);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.psb-story-card:hover {
  border-color: rgba(139, 155, 180, 0.22);
}
.psb-story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 6px;
}
.psb-story-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psb-story-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}
.psb-story-metric-label {
  color: var(--t4);
  font-size: 14px;
}
.psb-story-desc {
  font-size: 14px;
  color: var(--t4);
  margin: 0;
  line-height: 1.4;
}

/* WATCH FOR */
.psb-watchfor-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.psb-watchfor-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.4);
  border-left: 2px solid transparent;
}
.psb-watchfor--red  { border-left-color: #ef4444; }
.psb-watchfor--orange { border-left-color: #f97316; }
.psb-watchfor--yellow { border-left-color: #eab308; }

.psb-watchfor-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
}
.psb-wbadge--red    { background: rgba(239, 68, 68, 0.15);  color: #ef4444; }
.psb-wbadge--orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.psb-wbadge--yellow { background: rgba(234, 179, 8, 0.15);  color: #eab308; }

.psb-watchfor-text {
  font-size: 14px;
  color: var(--t3);
  line-height: 1.5;
}

/* Coaching panel status badge */
.psb-status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(139, 155, 180, 0.15);
  color: var(--t3);
  transition: background 0.2s, color 0.2s;
}
.psb-status-badge--live {
  background: rgba(0, 224, 204, 0.15);
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════
   TRANSCRIPT PANEL — PRE-SESSION SKELETON + TALK RATIO
   ═══════════════════════════════════════════════════ */

.transcript-presession {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 16px 24px;
  text-align: center;
}

.tp-pre-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  margin: 0 0 8px;
  letter-spacing: var(--tracking-snug);
}

.tp-pre-desc {
  font-size: 13px;
  color: var(--t4);
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 220px;
}

/* Skeleton rows */
.tp-skeleton-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-skel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-skel-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t4);
  width: 32px;
  flex-shrink: 0;
}

.tp-skel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.tp-skel-avatar--gray { background: rgba(139,155,180,0.15); color: var(--t3); }
.tp-skel-avatar--teal { background: rgba(0,224,204,0.2);    color: var(--accent); }

.tp-skel-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(139,155,180,0.1);
  overflow: hidden;
}

.tp-skel-fill {
  height: 100%;
  border-radius: 999px;
}
.tp-skel-fill--gray { background: rgba(139,155,180,0.22); }
.tp-skel-fill--teal { background: rgba(0,224,204,0.35); }

/* Talk Ratio Footer */
.talk-ratio-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(139,155,180,0.1);
  flex-shrink: 0;
}

.talk-ratio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.talk-ratio-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t4);
}

.talk-ratio-target {
  font-size: 11px;
  color: var(--t4);
}

.talk-ratio-bar-wrap {
  margin-bottom: 8px;
}

.talk-ratio-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(139,155,180,0.1);
  overflow: hidden;
}

.talk-ratio-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.talk-ratio-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.talk-ratio-you,
.talk-ratio-them {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
}

.talk-ratio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.talk-ratio-dot--teal { background: var(--accent); }
.talk-ratio-dot--gray { background: rgba(139,155,180,0.4); }

/* Hide presession skeleton once transcript is live */
.transcript-live #transcript-presession {
  display: none;
}

/* PSB loading + empty states */
.psb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--t4);
  font-size: 13px;
}
.psb-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,224,204,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.psb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 24px;
}
.psb-empty-text {
  font-size: 13px;
  color: var(--t4);
  text-align: center;
  line-height: 1.5;
}

/* Refresh button */
.psb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.psb-section-header .psb-section-title {
  margin-bottom: 0;
}
.psb-refresh-btn {
  background: none;
  border: none;
  color: var(--t4);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.psb-refresh-btn:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   CANDIDATE METRICS CARD
   ═══════════════════════════════════════════════════ */

.metrics-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.metrics-completion {
  font-size: 12px;
  color: var(--t4);
  white-space: nowrap;
  padding-top: 2px;
}

.metrics-completion #metrics-pct {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
}

.metrics-parse-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,224,204,0.05);
  border: 1px solid rgba(0,224,204,0.15);
  border-radius: 8px;
  margin-bottom: 18px;
}

.metrics-parse-label {
  font-size: 12px;
  color: var(--t3);
  flex: 1;
}

.metrics-parse-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(0,224,204,0.12);
  border: 1px solid rgba(0,224,204,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.metrics-parse-btn:hover { background: rgba(0,224,204,0.2); }
.metrics-parse-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.metrics-parse-status {
  font-size: 12px;
  color: var(--t3);
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.metrics-section-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t4);
  padding-top: 6px;
  border-top: 1px solid rgba(139,155,180,0.08);
  margin-top: 4px;
}

.metrics-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.metrics-field--full {
  grid-column: 1 / -1;
}

.metrics-label {
  font-size: 11px;
  color: var(--t4);
  font-weight: 500;
}

.metrics-input {
  background: rgba(13,17,23,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 13px;
  color: var(--t4);           /* dim when empty */
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.metrics-input:focus {
  outline: none;
  border-color: rgba(0,224,204,0.45);
  color: var(--t1);
}
.metrics-input::placeholder { color: var(--t5); }

/* Filled state — bright text, teal-tinted background + border */
.metrics-input:not(:placeholder-shown),
.metrics-input.has-value {
  color: var(--t1);
  background: rgba(0, 224, 204, 0.04);
  border-color: rgba(0, 224, 204, 0.25);
}
.metrics-input:not(:placeholder-shown):focus,
.metrics-input.has-value:focus {
  border-color: rgba(0, 224, 204, 0.55);
  background: rgba(0, 224, 204, 0.06);
}

/* Past position cards */
.pp-card {
  background: rgba(8, 11, 18, 0.45);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  padding: 14px 14px 10px;
  margin-bottom: 10px;
}

.pp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pp-card-index {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pp-remove-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  color: var(--t5);
  font-family: var(--font);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pp-remove-btn:hover { border-color: rgba(255,92,92,0.35); color: var(--red); }

.pp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.pp-grid .metrics-field--full {
  grid-column: 1 / -1;
}

.pp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 12px;
  background: none;
  border: 1px dashed rgba(255,255,255,0.09);
  border-radius: 8px;
  color: var(--t4);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  width: 100%;
  justify-content: center;
}
.pp-add-btn:hover { border-color: rgba(0,224,204,0.35); color: var(--accent); }

.metrics-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(139,155,180,0.08);
}

/* ═══════════════════════════════════════════════════
   CLERK AUTH SCREEN
   ═══════════════════════════════════════════════════ */

.clerk-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
}
.clerk-auth-screen.hidden { display: none; }

.clerk-auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.clerk-auth-brand {
  text-align: center;
}
.clerk-auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), rgba(0,224,204,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #0D1117;
  margin: 0 auto 16px;
  letter-spacing: -0.5px;
}
.clerk-auth-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.clerk-auth-tagline {
  font-size: 14px;
  color: var(--t3);
  margin: 0;
}

/* Sidebar sign-out */
.sb-footer {
  margin-top: auto;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--border);
}
.sb-user-info {
  font-size: 11.5px;
  color: var(--t3);
  padding: 0 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-signout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--t4);
  font-family: var(--font);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.sb-signout-btn:hover {
  background: rgba(233,69,96,0.06);
  border-color: rgba(233,69,96,0.15);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   SETUP REMINDER BANNER
   ═══════════════════════════════════════════════════ */

.setup-reminder {
  background: rgba(245, 158, 11, 0.06);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  padding: 0 20px;
  font-family: var(--font);
  z-index: 50;
}
.setup-reminder.hidden { display: none; }

.setup-reminder-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.setup-reminder-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.setup-reminder-text {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(245, 158, 11, 0.9);
  white-space: nowrap;
}

.setup-reminder-items {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.setup-reminder-items::-webkit-scrollbar { display: none; }

.setup-reminder-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  font-size: 11px;
  color: rgba(245, 158, 11, 0.8);
  white-space: nowrap;
  font-weight: 500;
}
.setup-reminder-chip svg { flex-shrink: 0; }

.setup-reminder-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.setup-reminder-action {
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  color: rgba(245, 158, 11, 0.95);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.setup-reminder-action:hover { background: rgba(245, 158, 11, 0.2); }

.setup-reminder-dismiss {
  background: none;
  border: none;
  color: rgba(245, 158, 11, 0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.setup-reminder-dismiss:hover { color: rgba(245, 158, 11, 0.7); }

/* ═══════════════════════════════════════════════════
   ONBOARDING WIZARD
   ═══════════════════════════════════════════════════ */

.onboarding-modal-content {
  max-width: 580px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.onboarding-progress {
  height: 3px;
  background: rgba(139,155,180,0.08);
  width: 100%;
}
.onboarding-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 0 3px 3px 0;
  transition: width 0.4s ease;
}

.onboarding-step {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 36px 32px;
  text-align: center;
  animation: obFadeIn 0.3s ease;
}
.onboarding-step.active { display: flex; }

@keyframes obFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-icon { margin-bottom: 20px; opacity: 0.9; }
.onboarding-icon--done { margin-bottom: 16px; }

.onboarding-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.onboarding-subtitle {
  font-size: 13.5px;
  color: var(--t3);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 440px;
}

.onboarding-form {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.onboarding-field { display: flex; flex-direction: column; gap: 5px; }
.onboarding-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.onboarding-input {
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.15s;
}
.onboarding-input:focus {
  outline: none;
  border-color: var(--accent);
}
.onboarding-hint {
  font-size: 11.5px;
  color: var(--t4);
  margin-top: 2px;
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}
.onboarding-next {
  min-width: 160px;
  padding: 11px 28px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}
.onboarding-back {
  padding: 11px 24px !important;
  font-size: 13px !important;
  background: rgba(139,155,180,0.08) !important;
  border: 1px solid var(--border) !important;
  color: var(--t3) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}
.onboarding-back:hover { background: rgba(139,155,180,0.14) !important; color: var(--t2) !important; }

.onboarding-skip {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--t4);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 8px;
}
.onboarding-skip:hover { color: var(--t2); text-decoration: underline; }

/* Upload zone */
.onboarding-upload-zone {
  width: 100%;
  border: 2px dashed rgba(139,155,180,0.15);
  border-radius: 12px;
  padding: 36px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.onboarding-upload-zone:hover { border-color: rgba(0,224,204,0.35); background: rgba(0,224,204,0.03); }
.onboarding-upload-zone.drag-over { border-color: var(--accent); background: rgba(0,224,204,0.06); }
.onboarding-upload-zone.uploaded { border-color: var(--green); border-style: solid; }

.onboarding-upload-icon { color: var(--t4); }
.onboarding-upload-zone.uploaded .onboarding-upload-icon { color: var(--green); }
.onboarding-upload-title { font-size: 13.5px; color: var(--t2); font-weight: 500; }
.onboarding-upload-hint { font-size: 11.5px; color: var(--t4); margin-top: 2px; }
.onboarding-upload-text { text-align: center; }

/* Intel cards */
.onboarding-intel-sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.onboarding-intel-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.onboarding-intel-card.uploaded { border-color: rgba(74,222,128,0.25); }

.onboarding-intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.onboarding-intel-name { font-size: 13px; font-weight: 600; color: var(--t1); }
.onboarding-intel-status { font-size: 11px; color: var(--green); font-weight: 500; }
.onboarding-intel-desc { font-size: 11.5px; color: var(--t4); margin-bottom: 10px; line-height: 1.4; }

.onboarding-intel-upload {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.onboarding-intel-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  background: rgba(0,224,204,0.08);
  border: 1px solid rgba(0,224,204,0.2);
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.onboarding-intel-btn:hover { background: rgba(0,224,204,0.15); }
.onboarding-intel-or { color: var(--t4); font-size: 11px; padding-top: 8px; flex-shrink: 0; }
.onboarding-intel-textarea {
  flex: 1;
  min-height: 56px;
  padding: 8px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12px;
  resize: vertical;
}
.onboarding-intel-textarea:focus { outline: none; border-color: var(--accent); }

/* Done tips */
.onboarding-done-tips {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 8px;
}
.onboarding-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(139,155,180,0.04);
  border-radius: 8px;
  font-size: 13px;
  color: var(--t2);
}
.onboarding-tip-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,224,204,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Practice Interview — Styles
   ═══════════════════════════════════════════════════ */

/* ── Practice Top Bar (mirrors #topbar layout) ── */
.practice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 52px;
  border-bottom: 1px solid var(--border-ghost);
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
  flex-shrink: 0;
}
.practice-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.practice-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.practice-topbar-interviewer {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.practice-topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Panels wrapper (uses same flex layout as #call-panels) ── */
.practice-panels-wrap {
  display: flex;
  gap: 0;
  padding: 12px 16px 12px;
  background: var(--base);
  flex: 1;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.practice-panels-wrap > .panel:first-of-type {
  flex: 1.55;
  min-width: 300px;
}
.practice-panels-wrap > .panel:last-of-type {
  flex: 1;
  min-width: 240px;
}

/* ── Start Modal Overlay (centered over panels) ── */
.practice-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
}
.practice-start-overlay.hidden { display: none; }
.practice-start-inner {
  max-width: 380px;
  width: 100%;
  text-align: center;
  padding: 32px;
}
.practice-start-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(0,224,204,0.06);
  border: 1px solid rgba(0,224,204,0.18);
  color: var(--accent);
  font-size: 13px;
}

/* ── Avatar PiP (top of transcript panel — horizontal bar) ── */
.practice-avatar-pip {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(0,224,204,0.03) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-ghost);
}
.practice-avatar-pip-frame {
  position: relative;
  display: flex;
  align-items: center;
}
.practice-avatar-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}
.practice-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.practice-avatar-circle.speaking {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,224,204,0.2);
}
.practice-pip-status {
  font-size: 12px;
  color: var(--accent);
}
.practice-pip-status.hidden { display: none; }

/* Speaking indicator dots */
.practice-speaking-indicator {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 8px;
  background: rgba(0,224,204,0.1);
  border-radius: 12px;
  border: 1px solid rgba(0,224,204,0.15);
}
.speaking-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: speakingPulse 1.2s ease-in-out infinite;
}
.speaking-dot:nth-child(2) { animation-delay: 0.2s; }
.speaking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes speakingPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ── Top bar control buttons (smaller for inline use) ── */
.practice-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.practice-ctrl-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.practice-ctrl-btn.muted {
  background: rgba(233,69,96,0.12);
  border-color: rgba(233,69,96,0.3);
  color: var(--accent);
}
.practice-question-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 56px;
  text-align: right;
}

/* ── Status banner (removed — now inline as .practice-pip-status) ── */

/* ── Current question (bottom of eval panel) ── */
.practice-current-question {
  padding: 14px 18px;
  border-top: 1px solid var(--border-ghost);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.practice-q-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.practice-q-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}
.practice-q-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* ── State badge ── */
.practice-state-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  text-transform: capitalize;
}
.practice-state-badge.listening {
  background: rgba(16,185,129,0.12);
  color: #10b981;
}
.practice-state-badge.asking,
.practice-state-badge.greeting,
.practice-state-badge.follow_up {
  background: rgba(99,102,241,0.12);
  color: #818cf8;
}
.practice-state-badge.evaluating {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
}
.practice-state-badge.ended,
.practice-state-badge.scorecard {
  background: rgba(0,224,204,0.12);
  color: var(--accent);
}

/* ── Transcript lines (reuse panel-body, add practice-specific line styles) ── */
.practice-transcript-line {
  margin-bottom: 12px;
  animation: fadeInUp 0.2s ease;
}
.practice-transcript-speaker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.practice-transcript-speaker.interviewer { color: #818cf8; }
.practice-transcript-speaker.candidate { color: var(--accent); }
.practice-transcript-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Eval list (inside panel-body) ── */
.practice-eval-list {
  padding: 12px;
}
.practice-eval-empty {
  padding: 20px 8px;
  text-align: center;
}

/* Evaluation card */
.practice-eval-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  animation: fadeInUp 0.3s ease;
}
.practice-eval-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.practice-eval-q-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.practice-eval-score {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}
.practice-eval-score.score-5 { background: rgba(16,185,129,0.15); color: #10b981; }
.practice-eval-score.score-4 { background: rgba(16,185,129,0.1); color: #34d399; }
.practice-eval-score.score-3 { background: rgba(245,158,11,0.12); color: #f59e0b; }
.practice-eval-score.score-2 { background: rgba(233,69,96,0.1); color: #f87171; }
.practice-eval-score.score-1 { background: rgba(233,69,96,0.15); color: #e94560; }

.practice-eval-feedback {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.practice-eval-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.practice-eval-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}
.practice-eval-tag.strength {
  background: rgba(16,185,129,0.08);
  color: #34d399;
}
.practice-eval-tag.missing {
  background: rgba(245,158,11,0.08);
  color: #fbbf24;
}

/* ── Scorecard ── */
.practice-scorecard {
  border-top: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px;
}
.practice-scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.practice-scorecard-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.practice-grade {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.practice-grade.grade-A { color: #10b981; }
.practice-grade.grade-B { color: #34d399; }
.practice-grade.grade-C { color: #f59e0b; }
.practice-grade.grade-D { color: #f87171; }
.practice-grade.grade-F { color: #e94560; }

.practice-sc-section {
  margin-bottom: 14px;
}
.practice-sc-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.practice-sc-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}
.practice-sc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.practice-sc-list li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}
.practice-sc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.practice-sc-list.strengths li::before { background: #10b981; }
.practice-sc-list.improvements li::before { background: #f59e0b; }
.practice-sc-list.patterns li::before { background: #818cf8; }

/* STAR Analysis */
.practice-star-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.practice-star-item {
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.practice-star-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.practice-star-value {
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.practice-star-value.strong { color: #10b981; }
.practice-star-value.adequate { color: #f59e0b; }
.practice-star-value.weak { color: #f87171; }

/* Responsive */
@media (max-width: 900px) {
  .practice-panels-wrap {
    flex-direction: column;
    padding: 8px;
  }
  .practice-panels-wrap > .panel { flex: 1 !important; min-width: 0 !important; }
  .practice-panels-wrap > .panel-vert-divider { width: 100%; height: 2px; min-width: 100%; margin: 0; }
  .practice-topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   TRIAL GATE / UPGRADE PAGE
   Vanilla-JS port of components/ConversionPage.tsx — same DOM shape, same
   class names (.ic-conversion namespace), so the original TSX can mount
   into a `.ic-conversion` root if/when this app moves to React.
   ═══════════════════════════════════════════════════════════════════════ */

/* Sidebar lock badge */
.tg-locked { opacity: 0.85; }
.tg-lock-badge { display: inline-block; }
/* Hide global Live Call controls in the top-right header for trial users */
[data-tg-hidden="1"] { display: none !important; }

/* View shell */
#view-upgrade { padding: 0; background: #0a0a0f; min-height: 100vh; overflow-y: auto; }

.ic-conversion {
  --bg: #0a0a0f;
  --surface: #15151c;
  --surface-2: #1d1d26;
  --surface-3: #25252f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.48);
  --text-quaternary: rgba(255, 255, 255, 0.32);
  /* Match the site-wide teal accent (same vars used in view-call / sidebar /
     coaching cards). Previously this scope overrode --accent to orange
     (#f5a524) which made the upgrade page feel like a different product. */
  --accent: #00E0CC;
  --accent-hover: #1BF0DC;
  --accent-soft: rgba(0, 224, 204, 0.12);
  --positive: #10b981;
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 720px;

  font-family: 'Satoshi', 'General Sans', 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.ic-conversion *,
.ic-conversion *::before,
.ic-conversion *::after { box-sizing: border-box; }
.ic-conversion section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}
@media (min-width: 768px) { .ic-conversion section { padding: 80px 32px; } }

/* ─── 1. HERO ─────────────────────────────────────────────── */
.ic-hero {
  background: linear-gradient(180deg, #0d0d14 0%, #0a0a0f 100%);
  border-bottom: 1px solid var(--border);
  max-width: none !important;
  padding-top: 80px !important;
  padding-bottom: 64px !important;
}
.ic-hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}
@media (min-width: 768px) { .ic-hero-inner { padding: 0 32px; text-align: center; } }
.ic-trial-meta {
  font-size: 11.5px;
  color: var(--text-quaternary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Post-demo bridge banner — shown when user arrives from a just-finished
   trial demo. Sits above the default eyebrow/hero copy and carries the
   personalized hook ("That's what Live Call looks like / script for your
   [role] interview"). One-shot: cleared after first paint.                */
.ic-postdemo-banner {
  display: inline-block;
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 184, 0.12) 0%, rgba(0, 229, 184, 0.04) 100%);
  border: 1px solid rgba(0, 229, 184, 0.28);
  text-align: left;
  animation: icPostDemoIn 0.45s ease-out both;
}
@media (min-width: 768px) { .ic-postdemo-banner { text-align: center; } }
.ic-postdemo-eyebrow {
  font-size: 11px;
  color: var(--accent, #00e5b8);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.ic-postdemo-line {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
}
.ic-postdemo-line strong {
  color: var(--accent, #00e5b8);
  font-weight: 600;
}
@keyframes icPostDemoIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ic-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
}
.ic-hero-h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 20px 0;
}
@media (min-width: 768px) { .ic-hero-h1 { font-size: 56px; } }
.ic-hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 auto 40px auto;
  max-width: 580px;
}
@media (min-width: 768px) { .ic-hero-sub { font-size: 19px; } }
.ic-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 200ms ease;
}
.ic-video-wrap:hover { border-color: var(--border-strong); }
.ic-video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 224, 204, 0.25);
  transition: transform 200ms ease;
}
.ic-video-wrap:hover .ic-video-play { transform: scale(1.06); }
.ic-video-play svg { width: 24px; height: 24px; margin-left: 3px; color: #0a0a0f; }
.ic-video-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-align: left;
}

/* ─── 2. HOW IT WORKS ─────────────────────────────────────── */
.ic-howitworks { padding-top: 56px !important; }
.ic-section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.ic-section-h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px 0;
  line-height: 1.15;
}
@media (min-width: 768px) { .ic-section-h2 { font-size: 32px; } }
.ic-section-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 600px;
}
.ic-frames { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ic-frames { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
.ic-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.ic-frame-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-quaternary);
  font-feature-settings: 'tnum';
}
.ic-frame-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.ic-frame-content { font-size: 14px; color: var(--text); line-height: 1.5; font-weight: 500; }
.ic-frame-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 10px; font-feature-settings: 'tnum'; }

/* ─── 3. FEATURE LIST ─────────────────────────────────────── */
.ic-features { padding-top: 48px !important; }
.ic-features-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ic-feature {
  background: var(--surface);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.ic-feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-feature-settings: 'tnum';
  padding-top: 2px;
  letter-spacing: 0.04em;
}
.ic-feature-title { font-size: 16px; font-weight: 600; margin: 0 0 4px 0; letter-spacing: -0.01em; }
.ic-feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* ─── 4. PRICING + PRIMARY CTA ────────────────────────────── */
.ic-pricing { padding-top: 56px !important; }
.ic-pricing-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
@media (min-width: 768px) { .ic-pricing-card { padding: 40px 32px; } }
.ic-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ic-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
@media (min-width: 768px) { .ic-price { font-size: 64px; } }
.ic-price-freq { font-size: 18px; color: var(--text-tertiary); font-weight: 500; }
.ic-price-sub { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }
.ic-price-stake {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 auto 28px auto;
  max-width: 480px;
}
.ic-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  padding: 16px 28px;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms ease, transform 100ms ease;
  box-shadow: 0 4px 24px rgba(0, 224, 204, 0.2);
  text-decoration: none;
}
.ic-cta-primary:hover { background: var(--accent-hover); }
.ic-cta-primary:active { transform: translateY(1px); }

/* ─── 5. FAQ ACCORDION ────────────────────────────────────── */
.ic-faq { padding-top: 48px !important; }
.ic-faq-list { border-top: 1px solid var(--border); }
.ic-faq-item { border-bottom: 1px solid var(--border); }
.ic-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}
.ic-faq-q:hover { color: var(--accent); }
.ic-faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  color: var(--text-tertiary);
}
.ic-faq-icon::before, .ic-faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 200ms ease;
}
.ic-faq-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.ic-faq-icon::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.ic-faq-item--open .ic-faq-icon::after { transform: translateX(-50%) rotate(90deg); }
.ic-faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.ic-faq-item--open .ic-faq-a { max-height: 240px; }
.ic-faq-a-inner {
  padding: 0 0 24px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

/* ─── 6. FINAL CTA + EMAIL CAPTURE ────────────────────────── */
.ic-final {
  padding-top: 48px !important;
  padding-bottom: 96px !important;
  text-align: center;
}
.ic-final-line {
  font-size: 17px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 auto 28px auto;
  max-width: 520px;
  font-weight: 500;
}
.ic-risk {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 16px auto 24px auto;
  max-width: 480px;
  line-height: 1.5;
}
.ic-secondary {
  display: inline-block;
  background: none;
  border: none;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 160ms ease;
  text-decoration: underline;
  text-decoration-color: var(--text-quaternary);
  text-underline-offset: 4px;
}
.ic-secondary:hover { color: var(--text); text-decoration-color: var(--text-secondary); }
.ic-email-form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 16px auto 0;
  align-items: stretch;
}
.ic-email-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease;
}
.ic-email-input:focus { border-color: var(--accent); }
.ic-email-input::placeholder { color: var(--text-quaternary); }
.ic-email-submit {
  padding: 12px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease;
  white-space: nowrap;
}
.ic-email-submit:hover { background: var(--surface-2); border-color: var(--accent); }
.ic-email-sent { font-size: 14px; color: var(--positive); margin: 16px 0 0; }

/* ════════════════════════════════════════════════════════
   TRIAL PRACTICE INTERVIEW VIEW (browser-only, no Electron)
   Namespace: .pt-*  →  Practice Trial
   ════════════════════════════════════════════════════════ */

.pt-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  color: var(--text-primary);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Fill the flex-column view and scroll when content overflows.
     .view has overflow:hidden, so if pt-shell doesn't scroll, the
     submit button gets stranded below the viewport. */
  flex: 1;
  width: 100%;
  overflow-y: auto;
  min-height: 0;
}

/* Visual "— or —" divider between typed fields and PDF dropzone */
.pt-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pt-or::before,
.pt-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-ghost);
}

/* Alt-path dropzone (below the "or") — lower visual weight so it reads
   as an alternative, not a second required thing. */
.pt-drop--alt {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-ghost);
  color: var(--text-muted);
  padding: 14px 16px;
  font-size: 13px;
}
.pt-drop--alt:hover {
  border-color: var(--border-visible);
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   TRIAL INTAKE — "set up your interview" one-screen onboarding
   Required section (resume + target role) leads, then optional
   grounding slots (win / lost / why) that enrich the coaching cards.
   ═══════════════════════════════════════════════════════════════ */

/* Section divider — "Required" / "Optional" headings */
.pt-section-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-ghost);
}
.pt-section-h:first-child { margin-top: 0; }

/* A "slot" = one piece of intake (resume, a story, target role, etc.) */
.pt-slot {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-md);
  transition: border-color 160ms ease, background 160ms ease;
}
.pt-slot.is-filled {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.04);
}
.pt-slot--required.is-filled {
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

.pt-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pt-slot-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.pt-slot-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border-ghost);
}
.pt-slot-status--required {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--border-accent);
}
.pt-slot-status--optional {
  color: var(--text-muted);
}
.pt-slot.is-filled .pt-slot-status {
  color: #34d399;
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.28);
}

.pt-slot-blurb {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* Resume slot — filled state: filename pill + "Replace" */
.pt-slot-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-sm);
}
.pt-slot-icon {
  font-size: 20px;
  flex: 0 0 auto;
}
.pt-slot-meta { flex: 1; min-width: 0; }
.pt-slot-filename {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-slot-parsed {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.pt-slot-replace {
  background: transparent;
  border: 1px solid var(--border-visible);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.pt-slot-replace:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Primary (required) dropzone — bold, accent-hinted, main action */
.pt-drop--primary {
  background: var(--accent-glow);
  border: 1.5px dashed var(--border-accent);
  color: var(--text-secondary);
  padding: 22px 18px;
  font-size: 14px;
}
.pt-drop--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}
.pt-drop--primary strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
}
.pt-drop-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Compact chip for optional slots that have a file uploaded */
.pt-slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  margin-bottom: 8px;
  background: var(--bg-panel);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-full);
  font-size: 12px;
}
.pt-slot-chip-name {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}
.pt-slot-chip-x {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.pt-slot-chip-x:hover { color: var(--accent); }

/* Textarea inside an optional slot — tighter than default .pt-textarea */
.pt-textarea--slot {
  margin-bottom: 8px;
}

/* Small upload row under each optional slot's textarea */
.pt-slot-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--border-ghost);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.pt-slot-upload:hover {
  border-color: var(--border-visible);
  color: var(--text-secondary);
}
.pt-slot-upload.is-dragover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.pt-slot-upload-icon { font-size: 14px; }

/* Disabled submit + gate message */
.pt-cta:disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.pt-gate-msg {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.pt-header {
  margin-bottom: 32px;
}
.pt-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.pt-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.pt-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── Counter chip (top right) ────────────────────────── */
.pt-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.pt-counter-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Intake form ─────────────────────────────────────── */
.pt-intake {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
}
.pt-intake-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.5;
}
.pt-field {
  margin-bottom: 20px;
}
.pt-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pt-help {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Two-field row for "Role you're interviewing for" — job title + company. */
.pt-role-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .pt-role-row { grid-template-columns: 1fr; gap: 12px; }
}
.pt-role-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pt-field-lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.pt-field-lbl-opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 11.5px;
}
.pt-input,
.pt-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-visible);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, background 160ms ease;
  box-sizing: border-box;
}
.pt-input:focus,
.pt-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.pt-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.pt-cta {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #051912;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 160ms ease, transform 80ms ease;
}
.pt-cta:hover { background: var(--accent-bright); }
.pt-cta:active { transform: translateY(1px); }
.pt-cta:disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
}
.pt-cta-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-visible);
}
.pt-cta-secondary:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--text-primary); }

/* ── Already-known pill (we have this info on file) ────── */
.pt-known {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
}
.pt-known-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}
.pt-known-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-known-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.pt-known-value {
  font-size: 14px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── PDF drop zone (alternate to typing) ─────────────────── */
.pt-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-visible);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.pt-drop:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.pt-drop.is-dragover {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-primary);
}
.pt-drop.is-loading {
  cursor: wait;
  opacity: 0.85;
}
.pt-drop-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

/* Spinner variant for light-text-on-dark-bg contexts (pt-drop, etc) */
.pt-spinner--dark {
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
}

.pt-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
}

/* ── Question ask zone ───────────────────────────────── */
.pt-ask {
  margin-top: 8px;
}
.pt-ask-input-wrap {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.pt-ask-input {
  flex: 1;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-visible);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, background 160ms ease;
}
.pt-ask-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.pt-ask-submit {
  padding: 0 22px;
  background: var(--accent);
  color: #051912;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
  white-space: nowrap;
}
.pt-ask-submit:hover { background: var(--accent-bright); }
.pt-ask-submit:disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ── Need ideas link + suggestions ─────────────────── */
.pt-ideas {
  margin-top: 14px;
  font-size: 13px;
}
.pt-ideas-link {
  background: none;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.pt-ideas-link:hover { color: var(--accent); }
.pt-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.pt-suggestion {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.pt-suggestion:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ── Answer panel (streaming) ──────────────────────── */
.pt-answer-block {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
}
.pt-answer-q {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.pt-answer-q-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-style: italic;
  line-height: 1.5;
}
.pt-answer-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
  min-height: 24px;
}
.pt-answer-text.is-streaming::after {
  content: '▌';
  display: inline-block;
  margin-left: 2px;
  animation: pt-blink 1s steps(1) infinite;
  color: var(--accent);
  font-weight: 400;
}
@keyframes pt-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── Paywall block (after 5/5) ─────────────────────── */
.pt-paywall {
  margin-top: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 224, 204, 0.08), rgba(0, 224, 204, 0.02));
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  text-align: center;
}
.pt-paywall-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.pt-paywall-body {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.55;
}
.pt-paywall-cta {
  padding: 14px 32px;
  background: var(--accent);
  color: #051912;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}
.pt-paywall-cta:hover { background: var(--accent-bright); }

/* ── Edit intake link (small, under counter) ───────── */
.pt-edit-intake {
  background: none;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  padding: 0;
  margin-left: 12px;
  text-decoration: underline;
}
.pt-edit-intake:hover { color: var(--accent); }

/* ── Form action row (Cancel + Save when editing intake) ── */
.pt-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 8px;
}
.pt-actions .pt-cta { margin-top: 0; flex: 1; }
.pt-actions .pt-cta-secondary { margin-top: 0; flex: 0 0 auto; padding: 14px 18px; }

/* ── Counter chip variants ───────────────────────────── */
.pt-counter--active {
  color: var(--accent);
  border-color: var(--border-accent);
  background: rgba(0, 224, 204, 0.08);
}

/* ── Inline spinner inside submit button ─────────────── */
.pt-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(5, 25, 18, 0.25);
  border-top-color: #051912;
  border-radius: 50%;
  animation: pt-spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes pt-spin {
  to { transform: rotate(360deg); }
}

/* ── Suggestions: loading + empty + hide button ──────── */
.pt-suggestions-loading,
.pt-suggestions-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 4px;
}
.pt-suggestions .pt-ideas-link { align-self: flex-start; margin-top: 4px; }

/* ── Answer block — "You asked:" label vs question text ── */
.pt-answer-q {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.pt-answer-q-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pt-answer-q-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}
.pt-answer-text p { margin: 0 0 14px; }
.pt-answer-text p:last-child { margin-bottom: 0; }

/* ── Paywall (richer DOM than original) ──────────────── */
.pt-paywall { text-align: left; }
.pt-paywall-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.pt-paywall-h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text-primary);
  line-height: 1.2;
}
.pt-paywall-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 24px;
}
.pt-paywall-pitch {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 24px;
}
.pt-paywall-pitch-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.pt-paywall-pitch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pt-paywall-pitch-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.pt-paywall-pitch-list li:last-child { margin-bottom: 0; }
.pt-paywall-pitch-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.pt-cta--paywall {
  width: auto;
  padding: 14px 28px;
  border-radius: 999px;
  margin-top: 0;
}
.pt-paywall-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.pt-paywall-secondary {
  display: block;
  margin-top: 18px;
  background: none;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}
.pt-paywall-secondary:hover { color: var(--accent); }

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  .pt-shell { padding: 32px 18px 64px; }
  .pt-title { font-size: 26px; }
  .pt-intake { padding: 24px 20px; }
  .pt-answer-block { padding: 22px 18px; }
  .pt-ask-input-wrap { flex-direction: column; }
  .pt-ask-submit { padding: 14px; }
  .pt-paywall { padding: 24px 20px; }
  .pt-paywall-h1 { font-size: 22px; }
  .pt-actions { flex-direction: column-reverse; }
  .pt-actions .pt-cta-secondary { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   TRIAL DEMO — voice-first simulated interview (watch-only)
   .td-preroll         → pre-roll "Start Interview" screen
   .td-stage           → outer stage wrapper (progress dots + end-demo button)
   .td-stage--wide     → full-width modifier used during playback
   .td-call-panels     → clone of live #call-panels two-panel layout
   .td-coaching-feed   → scoped wrapper on live .panel-body (coaching side)
   .td-transcript-feed → scoped wrapper on live .panel-body (transcript side)
   Cards/transcript lines reuse live .coaching-card / .transcript-line styles.
   ═══════════════════════════════════════════════════════════════ */

/* ── PRE-ROLL ─────────────────────────────────────── */
.td-preroll {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 40px 36px;
  background: var(--bg-panel);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.td-preroll-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.td-preroll-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.td-preroll-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 28px;
  max-width: 460px;
}
.td-preroll-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}
.td-preroll-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-md);
}
.td-preroll-meta-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.td-preroll-meta-lbl {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.td-preroll .pt-cta {
  max-width: 320px;
  margin: 0 auto;
}
.td-preroll .pt-edit-intake {
  display: block;
  margin: 16px auto 0;
}

/* ── STAGE (shell) ────────────────────────────────── */
.td-stage {
  max-width: 1040px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header: progress dots + label */
.td-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}
.td-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-progress-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.td-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border-visible);
  transition: background 200ms ease, border-color 200ms ease,
              box-shadow 200ms ease, transform 200ms ease;
}
.td-dot.is-done {
  background: var(--accent);
  border-color: var(--accent);
}
.td-dot.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: td-dot-pulse 1.6s ease-in-out infinite;
  transform: scale(1.15);
}
@keyframes td-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 224, 204, 0.04); }
}

/* Footer: end-demo link */
.td-stage-footer {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.td-stage-footer .pt-edit-intake { margin-left: 0; }

/* Demo-complete CTA banner */
.td-complete-banner {
  margin-bottom: 10px;
}
.td-complete-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(0, 224, 204, 0.12) 0%, rgba(0, 224, 204, 0.04) 100%);
  border: 1px solid rgba(0, 224, 204, 0.25);
  border-radius: 12px;
}
.td-complete-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-complete-text strong {
  font-size: 15px;
  color: var(--text-primary, #fff);
}
.td-complete-text span {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
}
.td-complete-cta {
  flex-shrink: 0;
  padding: 12px 28px;
  background: var(--accent, #00E0CC);
  color: #0a0f1a;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.td-complete-cta:hover {
  background: var(--accent-hover, #1BF0DC);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .td-complete-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── STAGE WIDE (two-panel demo) ─────────────────────
   When the demo is playing we mount a full-width clone of the live
   view-call two-panel layout inside #practice-trial-root. .pt-shell has
   max-width: 760px for the intake/pre-roll screens — this modifier
   removes that constraint so the coaching+transcript panels get room
   to breathe. */
.pt-shell.pt-shell--stage {
  max-width: none;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
}

.td-stage.td-stage--wide {
  max-width: 1280px;
  margin: 8px auto 0;
  padding: 0;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

/* Two-panel container — mirrors #call-panels from view-call. Using a
   distinct class so we don't ID-collide with the live #call-panels. */
.td-call-panels.two-panel-layout {
  display: flex;
  gap: 0;
  padding: 0;
  background: transparent;
  flex: 1;
  min-height: 560px;
  max-height: calc(100vh - 220px);
  overflow: hidden;
}
.td-call-panels > .panel:first-child {
  flex: 1.55;
  min-width: 300px;
}
.td-call-panels > .panel:last-child {
  flex: 1;
  min-width: 240px;
}
.td-call-panels .panel-vert-divider {
  cursor: default;    /* no drag-to-resize in demo */
}

/* Coaching feed entrance animation — same polish as live's cardEnter,
   scoped to the demo container so it doesn't affect real sessions. */
.td-coaching-feed > .coaching-card:first-child {
  animation: td-card-enter 380ms cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}
@keyframes td-card-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ask AI bar + panel-footer look clickable in live; in the demo they're
   decorative reminders that these affordances exist in the paid view. */
.td-stage--wide .panel-footer button[disabled],
.td-stage--wide .ask-ai-field[disabled] {
  cursor: default;
  opacity: 0.75;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  /* Below ~900px the two-panel layout gets cramped; stack vertically. */
  .td-call-panels.two-panel-layout {
    flex-direction: column;
    max-height: none;
  }
  .td-call-panels > .panel:first-child,
  .td-call-panels > .panel:last-child {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 300px;
  }
  .td-call-panels .panel-vert-divider {
    display: none;
  }
}
@media (max-width: 820px) {
  .td-preroll-title { font-size: 24px; }
  .td-preroll { padding: 32px 22px; margin-top: 24px; }
  .td-preroll-meta-num { font-size: 19px; }
}
