/* ═══════════════════════════════════════════════
   HR Success Centre — Design System & Styles
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* ── HRSC Brand Palette ── */
  /* Empowering Emerald */
  --c-emerald:        #07472E;
  --c-emerald-700:    #053920;
  --c-emerald-500:    #1A6B49;
  --c-emerald-200:    #A8D5BC;
  --c-emerald-100:    #D3EDE0;
  --c-emerald-50:     #EBF6F1;

  /* Lime Light */
  --c-lime:           #C8F481;
  --c-lime-600:       #88C240;
  --c-lime-100:       #EDF9C3;
  --c-lime-50:        #F5FDE8;

  /* Cream Connection */
  --c-cream:          #FBFFF3;
  --c-cream-dark:     #EFF9E0;

  /* Collaborative Coral */
  --c-coral:          #FF6F43;
  --c-coral-700:      #D94E25;
  --c-coral-100:      #FFE0D6;
  --c-coral-50:       #FFF0EC;

  /* Logical Lilac */
  --c-lilac:          #99A1FF;
  --c-lilac-700:      #6A73FF;
  --c-lilac-100:      #DDDEFF;
  --c-lilac-50:       #EDEEFF;

  /* ── Mapped tokens (keep var names for compatibility) ── */
  --c-blue-50:  var(--c-emerald-50);
  --c-blue-100: var(--c-emerald-100);
  --c-blue-500: var(--c-emerald-500);
  --c-blue-600: var(--c-emerald);
  --c-blue-700: var(--c-emerald-700);

  --c-indigo-50:  var(--c-lilac-50);
  --c-indigo-300: var(--c-lilac-100);
  --c-indigo-500: var(--c-lilac);
  --c-indigo-600: var(--c-lilac-700);

  --c-purple-50:  var(--c-coral-50);
  --c-purple-500: var(--c-coral);
  --c-purple-600: var(--c-coral-700);
  --c-purple-700: var(--c-coral-700);

  --c-teal-50:  var(--c-emerald-50);
  --c-teal-500: var(--c-emerald-500);
  --c-teal-600: var(--c-emerald);
  --c-teal-700: var(--c-emerald-700);

  --c-amber-50:  #fffbeb;
  --c-amber-500: #f59e0b;
  --c-amber-600: #d97706;
  --c-amber-700: #b45309;

  --c-green-50:  var(--c-lime-50);
  --c-green-500: var(--c-lime);
  --c-green-600: var(--c-lime-600);
  --c-green-700: var(--c-lime-600);

  --c-red-50:  #fef2f2;
  --c-red-400: #f87171;
  --c-red-500: #ef4444;
  --c-red-600: #dc2626;

  --c-orange-50:  var(--c-coral-50);
  --c-orange-500: var(--c-coral);

  --c-slate-50:  #f8faf6;
  --c-slate-100: #f0f4ef;
  --c-slate-200: #dde6da;
  --c-slate-300: #c5d3c1;
  --c-slate-400: #8fa68a;
  --c-slate-500: #5a7155;
  --c-slate-600: #3d5238;
  --c-slate-700: #2a3c27;
  --c-slate-800: #1a2618;
  --c-slate-900: #0d150c;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(7,71,46,.06);
  --shadow-md: 0 4px 6px -1px rgba(7,71,46,.08), 0 2px 4px -2px rgba(7,71,46,.06);
  --shadow-lg: 0 10px 15px -3px rgba(7,71,46,.10), 0 4px 6px -4px rgba(7,71,46,.06);

  --font-sans: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--c-cream);
  color: var(--c-slate-800);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: -0.01em;
}
a { color: var(--c-emerald); text-decoration: none; }

/* ── Screen System ── */
.screen { display: none; }
.screen.active { display: block; }

/* ════════════════════════════════════════════
   INPUT SCREEN
════════════════════════════════════════════ */
#screen-input { min-height: 100vh; background: linear-gradient(150deg, var(--c-cream) 0%, var(--c-cream-dark) 100%); }

.app-header {
  text-align: center;
  padding: 52px 24px 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--c-emerald);
  color: var(--c-lime);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius-lg);
  letter-spacing: .5px;
}

.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-emerald);
  letter-spacing: -.6px;
}

.tagline {
  color: var(--c-slate-500);
  font-size: 15px;
}

.input-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .input-grid { grid-template-columns: 1fr; }
}

/* Input Cards */
.input-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-slate-200);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s;
}
.input-card:focus-within { border-color: var(--c-emerald-200); }

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.card-icon--blue { background: var(--c-emerald-50); color: var(--c-emerald); }
.card-icon--indigo { background: var(--c-lilac-50); color: var(--c-lilac-700); }

.card-title { font-size: 16px; font-weight: 600; color: var(--c-slate-800); }
.card-subtitle { font-size: 13px; color: var(--c-slate-400); margin-top: 1px; }

/* Upload Zone */
.upload-zone {
  border: 1.5px dashed var(--c-slate-300);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  color: var(--c-slate-500);
  font-size: 13px;
  transition: all .2s;
  cursor: default;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.upload-zone.drag-over {
  border-color: var(--c-emerald);
  background: var(--c-emerald-50);
  color: var(--c-emerald);
}
.upload-zone.has-file {
  border-color: var(--c-green-500);
  background: var(--c-green-50);
  color: var(--c-green-600);
}
.upload-icon { color: var(--c-slate-300); margin-bottom: 4px; }
.upload-zone.drag-over .upload-icon,
.upload-zone.has-file .upload-icon { color: inherit; }

/* Divider */
.divider-text {
  text-align: center;
  color: var(--c-slate-400);
  font-size: 12px;
  position: relative;
  margin: 12px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--c-slate-200);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* Text Input */
.text-input {
  width: 100%;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--c-slate-700);
  resize: vertical;
  transition: border-color .2s;
  background: var(--c-slate-50);
  line-height: 1.5;
}
.text-input:focus { outline: none; border-color: var(--c-emerald-200); background: white; }
.text-input::placeholder { color: var(--c-slate-400); }

.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--c-slate-400);
  margin-top: 6px;
}
.char-count.has-content { color: var(--c-green-500); }

/* ── Context Card ── */
.card-icon--green { background: var(--c-emerald-50); color: var(--c-emerald); }

#context-card { margin-bottom: 20px; }

.ctx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
@media (max-width: 768px) {
  .ctx-grid { grid-template-columns: 1fr; }
  .ctx-field--full { grid-column: 1; }
}

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

.ctx-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ctx-label-row label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-500);
}

.field-required {
  font-size: 10px;
  font-weight: 600;
  background: var(--c-emerald-50);
  color: var(--c-emerald);
  border: 1px solid var(--c-emerald-200);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.field-optional {
  font-size: 11px;
  color: var(--c-slate-400);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ctx-input,
.ctx-select,
.ctx-textarea {
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--c-slate-700);
  background: var(--c-slate-50);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.ctx-input, .ctx-select { padding: 9px 12px; height: 40px; }
.ctx-textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
.ctx-select { cursor: pointer; }

.ctx-input:focus, .ctx-select:focus, .ctx-textarea:focus {
  outline: none;
  border-color: var(--c-emerald-200);
  background: white;
}
.ctx-input::placeholder, .ctx-textarea::placeholder { color: var(--c-slate-400); }
.ctx-input.has-error { border-color: var(--c-red-400); background: #fff8f8; }

.field-error {
  font-size: 12px;
  color: var(--c-red-500);
  display: none;
  margin-top: 1px;
}
.field-error.visible { display: block; }

/* Options Row */
.options-row {
  display: flex;
  gap: 16px;
  background: white;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.option-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-500);
}
.option-group select {
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--c-slate-700);
  background: white;
  cursor: pointer;
  transition: border-color .2s;
}
.option-group select:focus { outline: none; border-color: var(--c-emerald-200); }

/* Generate Row */
.generate-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.generate-hint {
  font-size: 13px;
  color: var(--c-slate-400);
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary {
  background: var(--c-emerald);
  color: var(--c-lime);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-color: var(--c-emerald);
  box-shadow: 0 2px 8px rgba(7,71,46,.25);
  letter-spacing: -0.01em;
}
.btn--primary:hover:not(:disabled) { background: var(--c-emerald-700); border-color: var(--c-emerald-700); }

.btn--outline {
  background: white;
  color: var(--c-slate-700);
  padding: 8px 14px;
  font-size: 13.5px;
  border-color: var(--c-slate-200);
}
.btn--outline:hover { border-color: var(--c-slate-400); background: var(--c-slate-50); }

.btn--ghost {
  background: transparent;
  color: var(--c-slate-600);
  padding: 8px 12px;
  font-size: 13.5px;
}
.btn--ghost:hover { background: var(--c-slate-100); }

.btn--lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--sm { padding: 6px 12px; font-size: 12.5px; }

/* ════════════════════════════════════════════
   LOADING SCREEN
════════════════════════════════════════════ */
/* display is controlled by .screen / .screen.active — do NOT set display here */
#screen-loading {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--c-cream) 0%, var(--c-cream-dark) 100%);
}

.loading-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 420px;
  padding: 40px 24px;
  margin: 0 auto;
}

.loading-orb {
  width: 96px;
  height: 96px;
  position: relative;
  margin: 0 auto 28px;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin 1.4s linear infinite;
}
.ring-1 { border-top-color: var(--c-lime); animation-duration: 1.2s; }
.ring-2 { border-right-color: var(--c-coral); animation-duration: 1.8s; inset: 8px; }
.ring-3 { border-bottom-color: var(--c-lilac); animation-duration: 2.4s; inset: 18px; }

.orb-core {
  position: absolute;
  inset: 28px;
  background: var(--c-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-lime);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .5px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-slate-900);
  margin-bottom: 8px;
}

.loading-status {
  font-size: 14px;
  color: var(--c-slate-500);
  margin-bottom: 20px;
  min-height: 20px;
  transition: opacity .3s;
}

.loading-bar-track {
  width: 280px;
  height: 4px;
  background: var(--c-slate-200);
  border-radius: var(--radius-full);
  margin: 0 auto 28px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-emerald), var(--c-lime-600));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width .5s ease-out;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.loading-step {
  font-size: 13px;
  color: var(--c-slate-400);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.loading-step::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-slate-300);
  flex-shrink: 0;
}
.loading-step.active { color: var(--c-emerald); font-weight: 600; }
.loading-step.active::before { background: var(--c-emerald); box-shadow: 0 0 0 3px var(--c-emerald-100); }
.loading-step.done { color: var(--c-lime-600); }
.loading-step.done::before { background: var(--c-lime); }

.loading-stage-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--c-emerald-200);
  margin-bottom: 12px;
  margin-top: 4px;
}

/* ════════════════════════════════════════════
   GUIDE SCREEN
════════════════════════════════════════════ */
#screen-guide { min-height: 100vh; background: var(--c-cream); }

.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--c-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  box-shadow: var(--shadow-sm);
}

.guide-topbar-left { display: flex; align-items: center; gap: 16px; }
.guide-topbar-right { display: flex; align-items: center; gap: 12px; }

.guide-meta {
  font-size: 13.5px;
  color: var(--c-slate-600);
  font-weight: 500;
}
.guide-meta span { color: var(--c-slate-400); margin: 0 6px; }

.quick-nav {
  display: flex;
  gap: 2px;
}
.quick-nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-slate-500);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all .15s;
}
.quick-nav-link:hover { background: var(--c-slate-100); color: var(--c-slate-700); }

.guide-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Guide Header Block ── */
.guide-header-block {
  background: linear-gradient(135deg, var(--c-emerald) 0%, var(--c-emerald-500) 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: white;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(7,71,46,.3);
}

.guide-header-block h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.guide-header-block .subtitle { font-size: 14px; opacity: .8; }

.guide-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.guide-badge {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.guide-header-right { text-align: right; flex-shrink: 0; }
.guide-header-right .label { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }
.guide-header-right .value { font-size: 15px; font-weight: 600; margin-top: 2px; }
.guide-header-right .date { font-size: 12px; opacity: .6; margin-top: 6px; }

/* ── Guide Sections ── */
.guide-section {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-slate-200);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-slate-100);
  cursor: pointer;
  user-select: none;
}
.section-header:hover { background: var(--c-slate-50); }

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.section-title-group { flex: 1; }
.section-title { font-size: 15px; font-weight: 600; color: var(--c-slate-800); }
.section-subtitle { font-size: 12px; color: var(--c-slate-400); margin-top: 1px; }

.section-chevron {
  color: var(--c-slate-400);
  transition: transform .2s;
}
.section-chevron.open { transform: rotate(180deg); }

.section-body { padding: 24px; }
.section-body.collapsed { display: none; }

/* ── Objectives ── */
.objectives-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-slate-700);
  padding: 12px 14px;
  background: var(--c-emerald-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--c-emerald);
}
.obj-number {
  width: 22px;
  height: 22px;
  background: var(--c-emerald);
  color: var(--c-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Competencies ── */
.competency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .competency-grid { grid-template-columns: 1fr; } }

.competency-card {
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color .2s;
}
.competency-card:hover { border-color: var(--c-indigo-300); }

.comp-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comp-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.comp-name { font-size: 13.5px; font-weight: 600; color: var(--c-slate-800); }
.comp-desc { font-size: 12.5px; color: var(--c-slate-500); line-height: 1.5; }
.comp-weight {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--c-slate-100);
  color: var(--c-slate-500);
}

/* ── Questions ── */
.questions-list { display: flex; flex-direction: column; gap: 16px; }

.question-item {
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.question-main {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: white;
}

.q-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.q-body { flex: 1; }
.q-text { font-size: 14.5px; color: var(--c-slate-800); line-height: 1.6; font-weight: 500; }
.q-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.q-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* Question type badges */
.q-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  letter-spacing: .2px;
  text-transform: uppercase;
}
.q-type-badge--behavioral   { background: #ccfbf1; color: #0f766e; }
.q-type-badge--technical    { background: #dbeafe; color: #1d4ed8; }
.q-type-badge--resume-probe { background: #fef3c7; color: #b45309; }
.q-type-badge--situational  { background: #f3e8ff; color: #7e22ce; }
.q-type-badge--values       { background: #dcfce7; color: #15803d; }

.q-followups {
  background: var(--c-slate-50);
  border-top: 1px solid var(--c-slate-100);
  padding: 12px 16px 12px 56px;
}
.q-followups-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-400);
  margin-bottom: 8px;
}
.q-followups ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.q-followups ul li {
  font-size: 13px;
  color: var(--c-slate-600);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.q-followups ul li::before {
  content: '↳';
  position: absolute;
  left: 0;
  color: var(--c-slate-400);
}

/* ── Question Signal Flags (Red/Green) ── */
.q-signals {
  border-top: 1px solid var(--c-slate-100);
  padding: 10px 16px 10px 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.q-signal {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: 6px;
}
.q-signal--red  { background: #fef2f2; border: 1px solid #fecaca; }
.q-signal--green { background: #f0fdf4; border: 1px solid #bbf7d0; }
.q-signal-label {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11.5px;
}
.q-signal--red  .q-signal-label { color: #b91c1c; }
.q-signal--green .q-signal-label { color: #15803d; }
.q-signal-text { color: var(--c-slate-700); }

/* ── Resume Probe Context Block ── */
.probe-context {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.probe-context-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.probe-context-label {
  font-weight: 700;
  color: #92400e;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 120px;
}
.probe-context-text { color: var(--c-slate-700); }

.q-notes-area {
  border-top: 1px solid var(--c-slate-100);
  padding: 10px 16px;
  background: #fffef5;
}
.q-notes-area textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--c-slate-600);
  resize: none;
  min-height: 36px;
  line-height: 1.5;
}
.q-notes-area textarea:focus { outline: none; }
.q-notes-area textarea::placeholder { color: var(--c-slate-400); font-style: italic; }

/* ── Best Practices ── */
.practices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .practices-grid { grid-template-columns: 1fr; } }

.practice-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-green-50);
  border-radius: var(--radius-md);
  border: 1px solid #bbf7d0;
}
.practice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.practice-text { font-size: 13px; color: var(--c-slate-700); line-height: 1.5; }
.practice-text strong { display: block; font-weight: 600; color: var(--c-slate-800); margin-bottom: 2px; }

/* ── Follow-Up Bank ── */
.followup-bank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 640px) { .followup-bank { grid-template-columns: 1fr; } }

.followup-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--c-slate-50);
  border: 1px solid var(--c-slate-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--c-slate-700);
  line-height: 1.5;
}
.followup-chip::before {
  content: '?';
  width: 18px;
  height: 18px;
  background: var(--c-slate-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--c-slate-600);
}

/* ── Scorecard ── */
.scorecard-intro {
  background: var(--c-emerald-50);
  border: 1px solid var(--c-emerald-100);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  color: var(--c-emerald);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.scorecard-table { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--c-slate-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }

.scorecard-row {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 0;
  border-bottom: 1px solid var(--c-slate-100);
}
.scorecard-row:last-child { border-bottom: none; }

.scorecard-row.header-row { background: var(--c-slate-50); }
.scorecard-row.header-row .sc-cell { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--c-slate-500); }

.sc-cell {
  padding: 14px 16px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid var(--c-slate-100);
}
.sc-cell:last-child { border-right: none; }

.sc-comp-name { font-weight: 600; color: var(--c-slate-800); }
.sc-comp-desc { font-size: 12px; color: var(--c-slate-400); margin-top: 2px; }

.rating-pills { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-start; }
.rating-pill {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-slate-200);
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-slate-500);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rating-pill:hover { border-color: var(--c-emerald-200); color: var(--c-emerald); }
.rating-pill.selected-1, .rating-pill.selected-2 { background: var(--c-red-500); border-color: var(--c-red-500); color: white; }
.rating-pill.selected-3 { background: var(--c-amber-500); border-color: var(--c-amber-500); color: white; }
.rating-pill.selected-4, .rating-pill.selected-5 { background: var(--c-green-500); border-color: var(--c-green-500); color: white; }

.sc-notes-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--c-slate-600);
  resize: none;
  min-height: 36px;
}
.sc-notes-input:focus { outline: none; }
.sc-notes-input::placeholder { color: var(--c-slate-400); font-style: italic; }

/* Parse summary panel */
.parse-banner {
  background: white;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.parse-banner-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.parse-check {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-green-50);
  color: var(--c-green-700);
  font-weight: 700;
  flex-shrink: 0;
}
.parse-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-slate-900);
}
.parse-banner-subtitle {
  font-size: 13px;
  color: var(--c-slate-500);
  margin-top: 4px;
}
.parse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 18px;
  margin-bottom: 18px;
}
.parse-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.parse-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-400);
}
.parse-value {
  font-size: 14px;
  color: var(--c-slate-700);
  font-weight: 600;
}
.parse-skills-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.parse-skills-label {
  font-size: 12px;
  color: var(--c-slate-500);
}
.parse-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.parse-skill {
  background: var(--c-slate-100);
  color: var(--c-slate-700);
  border-radius: var(--radius-full);
  padding: 6px 10px;
  font-size: 12px;
}
.upload-zone.has-error {
  border-color: var(--c-red-500);
  background: var(--c-red-50);
  color: var(--c-red-600);
}
.upload-zone.has-file {
  border-color: var(--c-green-500);
  background: var(--c-green-50);
  color: var(--c-green-700);
}
.scorecard-summary {
  background: var(--c-slate-800);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.score-overall { color: white; }
.score-overall .label { font-size: 12px; opacity: .6; text-transform: uppercase; letter-spacing: .5px; }
.score-overall .value { font-size: 36px; font-weight: 800; line-height: 1; margin-top: 4px; }
.score-overall .value.score-good { color: #4ade80; }
.score-overall .value.score-mid  { color: #fbbf24; }
.score-overall .value.score-low  { color: #f87171; }
.score-overall .value.score-none { color: rgba(255,255,255,.4); }
.score-overall .out-of { font-size: 16px; opacity: .5; margin-left: 2px; }

.score-breakdown { display: flex; gap: 20px; }
.score-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.6); }
.score-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Recommendation ── */
.decision-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .decision-options { grid-template-columns: 1fr 1fr; } }

.decision-option {
  padding: 14px 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-slate-200);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: white;
}
.decision-option:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.decision-option.selected { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.decision-option .emoji { font-size: 24px; display: block; margin-bottom: 6px; }
.decision-option .title { font-size: 13px; font-weight: 700; display: block; margin-bottom: 3px; }
.decision-option .hint { font-size: 11px; color: var(--c-slate-400); }

.decision-option[data-value="strong-hire"].selected { border-color: var(--c-green-500); background: var(--c-green-50); }
.decision-option[data-value="hire"].selected { border-color: #86efac; background: #f0fdf4; }
.decision-option[data-value="no-hire"].selected { border-color: var(--c-amber-500); background: var(--c-amber-50); }
.decision-option[data-value="strong-no-hire"].selected { border-color: var(--c-red-500); background: var(--c-red-50); }

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

.rec-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-500);
  margin-bottom: 8px;
}
.rec-field textarea, .rec-field input {
  width: 100%;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--c-slate-700);
  resize: vertical;
}
.rec-field textarea:focus, .rec-field input:focus { outline: none; border-color: var(--c-emerald-200); }

/* ── Bias Reminder ── */
.bias-reminder {
  background: var(--c-amber-50);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--c-amber-600);
}
.bias-reminder strong { display: block; font-size: 13.5px; margin-bottom: 4px; color: var(--c-amber-700); }

/* ── Section color variants ── */
.s-blue   .section-icon { background: var(--c-emerald-50);  color: var(--c-emerald);     }
.s-indigo .section-icon { background: var(--c-lilac-50);    color: var(--c-lilac-700);   }
.s-purple .section-icon { background: var(--c-coral-50);    color: var(--c-coral-700);   }
.s-teal   .section-icon { background: var(--c-emerald-50);  color: var(--c-emerald);     }
.s-orange .section-icon { background: var(--c-coral-50);    color: var(--c-coral);       }
.s-slate  .section-icon { background: var(--c-slate-100);   color: var(--c-slate-500);   }
.s-green  .section-icon { background: var(--c-lime-50);     color: var(--c-lime-600);    }
.s-red    .section-icon { background: #fef2f2;               color: #dc2626;              }

.s-blue   .q-number { background: var(--c-emerald-100); color: var(--c-emerald);     }
.s-purple .q-number { background: var(--c-coral-100);   color: var(--c-coral-700);   }
.s-teal   .q-number { background: var(--c-emerald-50);  color: var(--c-emerald);     }
.s-orange .q-number { background: var(--c-coral-50);    color: var(--c-coral-700);   }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--c-slate-800);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform .3s ease;
  z-index: 999;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Upload Error State ── */
.upload-zone.has-error {
  border-color: var(--c-red-400);
  background: var(--c-red-50);
  color: var(--c-red-600);
}
.upload-zone.has-error .upload-icon { color: var(--c-red-300); }

/* ── Parse / Success Banner ── */
.parse-banner {
  background: white;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.parse-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-slate-100);
}

.parse-check {
  width: 32px;
  height: 32px;
  background: var(--c-green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 16px;
}

.parse-banner-title { font-size: 15px; font-weight: 700; color: var(--c-slate-800); }
.parse-banner-subtitle { font-size: 12.5px; color: var(--c-slate-400); margin-top: 1px; }

.parse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .parse-grid { grid-template-columns: 1fr 1fr; } }

.parse-item {
  background: var(--c-slate-50);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--c-slate-100);
}
.parse-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-400);
  margin-bottom: 3px;
}
.parse-value { font-size: 13.5px; font-weight: 600; color: var(--c-slate-800); }
.parse-value.fallback { color: var(--c-slate-400); font-style: italic; font-weight: 400; font-size: 13px; }

.parse-skills-row { margin-bottom: 12px; }
.parse-skills-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-slate-400);
  margin-bottom: 6px;
}
.parse-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.parse-skill {
  font-size: 12px;
  padding: 3px 9px;
  background: var(--c-emerald-50);
  color: var(--c-emerald);
  border-radius: var(--radius-full);
  border: 1px solid var(--c-emerald-100);
  font-weight: 500;
}

.parse-warnings { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-slate-100); }
.parse-warning {
  font-size: 12px;
  color: var(--c-amber-600);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

/* ════════════════════════════════════════════
   BIAS AWARENESS SECTION
════════════════════════════════════════════ */
.bias-top-reminder {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 22px; font-size: 14px; color: #7f1d1d; line-height: 1.6;
}
.bias-top-icon { font-size: 22px; flex-shrink: 0; }

/* What Not to Ask */
.wta-section-title {
  font-size: 15px; font-weight: 700; color: var(--c-slate-800);
  margin-bottom: 6px;
}
.wta-intro {
  font-size: 13px; color: var(--c-slate-500); line-height: 1.6; margin-bottom: 16px;
}
.wta-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.wta-card {
  border: 1px solid #fecaca; border-radius: var(--radius-md);
  background: #fff; overflow: hidden;
}
.wta-card-header {
  display: flex; align-items: center; gap: 8px;
  background: #fef2f2; padding: 8px 12px;
  border-bottom: 1px solid #fecaca;
}
.wta-icon  { font-size: 16px; }
.wta-label { font-size: 13px; font-weight: 700; color: #991b1b; }
.wta-examples { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 5px; }
.wta-example {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12.5px; color: var(--c-slate-600); line-height: 1.45;
}
.wta-x     { color: #dc2626; font-weight: 700; flex-shrink: 0; font-size: 13px; }
.wta-instead {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12px; color: #166534; background: #f0fdf4;
  border-top: 1px solid #bbf7d0; padding: 8px 12px; line-height: 1.5;
}
.wta-check { color: #16a34a; font-weight: 700; flex-shrink: 0; font-size: 13px; }

/* Compliance Table */
.compliance-table-title {
  font-size: 15px; font-weight: 700; color: var(--c-slate-800); margin-bottom: 10px;
}
.compliance-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--c-slate-200); }
.compliance-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.compliance-table thead tr {
  background: var(--c-emerald); color: #f1f5f9;
}
.compliance-table th {
  padding: 10px 14px; text-align: left; font-weight: 600; font-size: 13px;
}
.compliance-table tbody tr:nth-child(even) { background: var(--c-slate-50); }
.compliance-table td {
  padding: 10px 14px; vertical-align: top; line-height: 1.5;
  border-bottom: 1px solid var(--c-slate-100);
}
.compliance-table tbody tr:last-child td { border-bottom: none; }
.compliance-risky   { color: #7f1d1d; }
.compliance-compliant { color: #14532d; }
.compliance-x     { color: #dc2626; font-weight: 700; margin-right: 6px; }
.compliance-check { color: #16a34a; font-weight: 700; margin-right: 6px; }

/* ════════════════════════════════════════════
   QUALIFYING CHECKLIST
════════════════════════════════════════════ */
.qualifying-intro {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-md);
  padding: 12px 16px; margin-bottom: 20px; font-size: 14px; color: var(--c-slate-700);
}
.qualifying-grid { display: flex; flex-direction: column; gap: 16px; }
.qualifying-category {
  border: 1px solid var(--c-slate-200); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff;
}
.qualifying-cat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--c-slate-50);
  border-bottom: 1px solid var(--c-slate-200);
  font-size: 13px; font-weight: 600; color: var(--c-slate-700);
}
.qualifying-cat-icon { font-size: 16px; }
.qualifying-cat-title { font-weight: 700; color: var(--c-slate-800); }
.qualifying-compliance-note {
  font-size: 12px; color: var(--c-amber-600); background: #fffbeb;
  padding: 8px 16px; border-bottom: 1px solid #fde68a;
}
.qualifying-item {
  padding: 12px 16px; border-bottom: 1px solid var(--c-slate-100);
}
.qualifying-item:last-child { border-bottom: none; }
.qualifying-q-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.qualifying-q-text { font-size: 14px; color: var(--c-slate-800); flex: 1; line-height: 1.5; }
.qualifying-flag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full);
  white-space: nowrap; flex-shrink: 0;
}
.qualifying-flag.flag-no  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.qualifying-flag.flag-yes { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.qualifying-yesno {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.yesno-option {
  display: flex; align-items: center; gap: 5px; font-size: 13px;
  color: var(--c-slate-700); cursor: pointer; font-weight: 500;
}
.yesno-option input[type="radio"] { accent-color: var(--c-emerald); width: 14px; height: 14px; }
.qualifying-note-input {
  flex: 1; min-width: 180px; font-size: 13px; padding: 5px 10px;
  border: 1px solid var(--c-slate-200); border-radius: var(--radius-sm);
  resize: vertical; font-family: var(--font-sans); color: var(--c-slate-700);
  background: var(--c-slate-50);
}
.qualifying-note-input:focus { outline: none; border-color: var(--c-emerald-200); background: #fff; }
.qualifying-text-row {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
}
.qualifying-label { font-size: 12px; font-weight: 600; color: var(--c-slate-500); white-space: nowrap; padding-top: 6px; }

/* ════════════════════════════════════════════
   PREPARATION NOTES
════════════════════════════════════════════ */
.prep-focus-callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.prep-focus-callout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #b45309;
}
.prep-focus-callout-text {
  font-size: 13.5px;
  color: var(--c-slate-700);
  line-height: 1.6;
  font-style: italic;
}

.prep-summary-box {
  background: var(--c-emerald-50); border: 1px solid var(--c-emerald-100); border-radius: var(--radius-md);
  padding: 12px 16px; font-size: 14px; color: var(--c-slate-700); margin-bottom: 18px; line-height: 1.6;
}
.prep-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.prep-col { background: #fff; border: 1px solid var(--c-slate-200); border-radius: var(--radius-md); padding: 14px; }
.prep-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-slate-500); margin-bottom: 10px; }
.prep-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--c-slate-700); margin-bottom: 7px; line-height: 1.5; }
.prep-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-green { background: #22c55e; }
.dot-amber { background: #f59e0b; }
.dot-red   { background: #ef4444; }
.prep-empty { font-size: 13px; color: var(--c-slate-400); font-style: italic; }
.prep-focus { background: var(--c-slate-50); border: 1px solid var(--c-slate-200); border-radius: var(--radius-md); padding: 14px; }
.prep-focus-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-slate-700); margin-bottom: 8px; line-height: 1.5; }
.prep-focus-num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-emerald); color: var(--c-lime);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ════════════════════════════════════════════
   PANEL NOTE
════════════════════════════════════════════ */
.panel-note {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md);
  padding: 10px 14px; font-size: 13px; color: #15803d; margin-bottom: 14px;
}
.panel-role-tag { letter-spacing: .01em; }

/* ════════════════════════════════════════════
   WRAP-UP
════════════════════════════════════════════ */
.wrapup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 700px) { .wrapup-grid { grid-template-columns: 1fr; } }
.wrapup-col { background: #fff; border: 1px solid var(--c-slate-200); border-radius: var(--radius-md); padding: 14px; }
.wrapup-q-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-slate-700); margin-bottom: 9px; line-height: 1.5; }
.wrapup-q-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-lilac-700); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wrapup-q-text { flex: 1; }
.wrapup-script-box {
  background: var(--c-slate-800); color: #e2e8f0; border-radius: var(--radius-md); padding: 16px 20px;
}
.wrapup-script-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-slate-400); margin-bottom: 8px; }
.wrapup-script-text { font-size: 14px; line-height: 1.7; color: #f1f5f9; font-style: italic; }

/* ════════════════════════════════════════════
   GRANOLA AI PLACEHOLDER
════════════════════════════════════════════ */
.granola-placeholder { padding: 4px 0; }
.granola-badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: #7e22ce; background: #f3e8ff; border: 1px solid #d8b4fe; border-radius: var(--radius-full);
  padding: 3px 10px; margin-bottom: 12px;
}
.granola-description { font-size: 14px; color: var(--c-slate-600); margin-bottom: 16px; }
.granola-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.granola-feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--c-slate-50); border: 1px solid var(--c-slate-200); border-radius: var(--radius-md); padding: 12px 14px;
}
.granola-feature-icon { font-size: 22px; flex-shrink: 0; }
.granola-feature strong { display: block; font-size: 13px; color: var(--c-slate-800); margin-bottom: 3px; }
.granola-feature p { font-size: 13px; color: var(--c-slate-500); line-height: 1.5; margin: 0; }
.granola-toggle-row {
  background: var(--c-slate-50); border: 1px solid var(--c-slate-200); border-radius: var(--radius-md);
  padding: 12px 16px; margin-bottom: 12px;
}
.granola-toggle-label {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-slate-500); cursor: not-allowed;
}
.granola-toggle-label input { accent-color: var(--c-emerald); }
.granola-tag {
  font-size: 11px; color: var(--c-slate-400); background: var(--c-slate-100);
  padding: 2px 8px; border-radius: var(--radius-full);
}
.granola-api-row { display: flex; gap: 10px; align-items: center; }
.granola-api-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--c-slate-200); border-radius: var(--radius-md);
  font-size: 13px; color: var(--c-slate-400); background: var(--c-slate-50); font-family: var(--font-mono);
  cursor: not-allowed;
}

/* ════════════════════════════════════════════
   PRINT STYLES  (Ctrl+P / browser Print)
════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   JURISDICTION NOTE
   ═══════════════════════════════════════════════════════════════ */
.jurisdiction-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #475569;
  margin: 12px 0 18px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   PHONE SCREEN GUIDE SECTIONS
   ═══════════════════════════════════════════════════════════════ */

/* Purpose block */
.ps-purpose-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 16px;
}
.ps-purpose-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
}
.ps-rule--no { color: #64748b; }
.ps-rule-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ps-rule-icon--no {
  background: #fee2e2;
  color: #dc2626;
}

/* Pre-call checklist */
.ps-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.ps-check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.ps-checklist-item:hover .ps-check-box {
  border-color: #94a3b8;
}

/* Opening / Closing scripts */
.ps-script-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  padding: 16px 20px;
}
.ps-script-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6366f1;
  margin-bottom: 10px;
}
.ps-script-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  font-style: italic;
}

/* Knockout questions */
.ps-knockout-intro {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #9a3412;
  margin-bottom: 16px;
  font-weight: 500;
}
.ps-knockout-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ps-knockout-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ps-knockout-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.ps-knockout-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #f97316;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-knockout-q {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}
.ps-knockout-meta {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-knockout-row {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
}
.ps-knockout-label { font-weight: 600; flex-shrink: 0; }
.ps-knockout-val   { color: #334155; }
.ps-knockout-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ps-knockout-signal {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.4;
}
.ps-knockout-signal--pass {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.ps-knockout-signal--fail {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}
.ps-signal-icon {
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ps-signal-label {
  font-weight: 600;
  flex-shrink: 0;
}
.ps-knockout-note-row {
  margin-top: 2px;
}

/* Phone screen question items */
.ps-questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ps-q-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-q-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ps-q-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-q-text {
  font-size: 14.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
}
.ps-q-note {
  font-size: 12.5px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 5px;
  padding: 8px 10px;
  line-height: 1.5;
}
.ps-q-note-label {
  font-weight: 600;
  color: #475569;
  margin-right: 4px;
}
.ps-q-notes-area {
  position: relative;
}
.ps-q-notes-area textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 36px 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #334155;
  resize: vertical;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ps-q-notes-area textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
}

/* Candidate Q&A */
.ps-candidate-qs { display: flex; flex-direction: column; gap: 10px; }
.ps-candidate-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}
.ps-candidate-q-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-candidate-q-text { line-height: 1.5; }

/* Phone screen scorecard */
.ps-scorecard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ps-sc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-sc-field--recommendation {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  margin-top: 4px;
}
.ps-sc-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.ps-sc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-sc-btn {
  padding: 7px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.ps-sc-btn:hover { border-color: #94a3b8; background: #fff; }
.ps-sc-btn.active {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}
.ps-sc-btn--advance.active { background: #16a34a; border-color: #16a34a; }
.ps-sc-btn--hold.active    { background: #d97706; border-color: #d97706; }
.ps-sc-btn--no.active      { background: #dc2626; border-color: #dc2626; }
.ps-sc-notes-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.ps-sc-notes-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #334155;
  resize: vertical;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ps-sc-notes-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   VOICE NOTES — Mic buttons & recording states
   ═══════════════════════════════════════════════════════════════ */

/* Inline mic button on each textarea wrapper */
.mic-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 2;
  padding: 0;
}
.mic-btn:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #eef2ff;
}
.mic-btn--recording {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
  animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* Global voice record button in the topbar */
.voice-record-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.voice-btn-recording-label { display: none; }
.voice-recording-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: dot-blink 1s step-start infinite;
}
.voice-record-btn.voice-btn--recording .voice-btn-label       { display: none; }
.voice-record-btn.voice-btn--recording .voice-btn-recording-label { display: inline; color: #ef4444; }
.voice-record-btn.voice-btn--recording .voice-recording-dot   { display: inline-block; }
.voice-record-btn.voice-btn--recording {
  border-color: #ef4444;
  color: #ef4444;
  background: #fff1f2;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.app-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  margin-top: 32px;
}
.app-footer a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.app-footer a:hover { color: #334155; text-decoration: underline; }
.app-footer--guide {
  margin-top: 0;
  border-top: 1px solid #e2e8f0;
}

@page { size: letter portrait; margin: 1.4cm 1.8cm; }

@media print {
  /* Force color & background rendering */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body { background: white !important; font-size: 12px; }

  /* Hide everything except the guide */
  #screen-input, #screen-loading { display: none !important; }
  #screen-guide { display: block !important; }
  .guide-topbar  { display: none !important; }
  .parse-banner  { display: none !important; }

  /* Guide layout */
  .guide-content { max-width: 100%; padding: 0; margin: 0; }

  /* Sections */
  .guide-section {
    box-shadow: none !important;
    border: 1px solid #dde6da !important;
    margin-bottom: 14pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .section-header {
    break-after: avoid;
    page-break-after: avoid;
    cursor: default !important;
  }
  .section-body.collapsed { display: block !important; }
  .section-chevron { display: none !important; }

  /* Keep individual items on the same page where possible */
  .question-item,
  .competency-card,
  .wta-card,
  .scorecard-row:not(.header-row),
  .qualifying-item,
  .decision-options { break-inside: avoid; page-break-inside: avoid; }

  /* Form fields */
  .q-notes-area textarea,
  .ps-q-notes-area textarea,
  .sc-notes-input,
  .ps-sc-notes-field textarea,
  .qualifying-note-input { min-height: 50px; }

  /* Hide mic buttons, footer, and overlays in print */
  .mic-btn, .app-footer, .toast,
  .paywall-overlay, .payment-success-banner { display: none !important; }

  /* Phone screen cards */
  .ps-knockout-card,
  .ps-q-item { break-inside: avoid; page-break-inside: avoid; }
}

/* ── Auth bar ────────────────────────────────────────────────── */
.auth-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.usage-counter {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
}

.usage-counter.usage-counter--warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.usage-counter.usage-counter--full {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.auth-sign-in-btn { font-size: .82rem; }

.manage-sub-link {
  color: inherit;
  opacity: 0.7;
  text-decoration: underline;
  font-size: inherit;
}
.manage-sub-link:hover { opacity: 1; }

/* ── Paywall overlay ─────────────────────────────────────────── */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.paywall-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  position: relative;
}

.paywall-close-x {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.paywall-close-x:hover { background: #f1f5f9; color: #475569; }

.paywall-icon { font-size: 2.5rem; margin-bottom: 12px; }

.paywall-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #07472E;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.paywall-sub {
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}

.paywall-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.paywall-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  background: #fff;
  transition: all .18s;
  position: relative;
  font-family: inherit;
}
.paywall-btn:hover { border-color: #07472E; box-shadow: 0 4px 16px rgba(7,71,46,.1); }

.paywall-btn--pro {
  background: #07472E;
  border-color: #07472E;
}
.paywall-btn--pro:hover { background: #053520; border-color: #053520; }

.paywall-recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF6F43;
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.paywall-plan-name {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C8F481;
}
.paywall-btn--single .paywall-plan-name { color: #475569; }

.paywall-plan-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #C8F481;
  line-height: 1.1;
}
.paywall-btn--single .paywall-plan-price { color: #07472E; }

.paywall-plan-period {
  font-size: .85rem;
  font-weight: 400;
  opacity: .8;
}

.paywall-plan-desc {
  font-size: .78rem;
  color: rgba(200,244,129,.8);
}
.paywall-btn--single .paywall-plan-desc { color: #94a3b8; }

.paywall-note {
  font-size: .73rem;
  color: #94a3b8;
  margin: 0;
}

/* ── Payment success banner ──────────────────────────────────── */
.payment-success-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  background: #07472E;
  color: #C8F481;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: .9rem;
  font-weight: 600;
}
.payment-success-banner button {
  background: none;
  border: none;
  color: #C8F481;
  cursor: pointer;
  font-size: 1rem;
  opacity: .7;
}
.payment-success-banner button:hover { opacity: 1; }
