/* =========================================================
   Recruta.ai — Design System & Custom Styles
   Clean, Minimalista, Responsivo e Premium
   ========================================================= */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.2);
  --primary-dark: #312e81;
  
  --secondary: #0ea5e9;
  --accent-purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --bg-main: #f6f7fb;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --surface-soft: #f8fafc;
  --surface-indigo: #f5f3ff;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);

  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-hover-color: #4338ca;
  --bs-border-color: #e2e8f0;
  --bs-body-color: #0f172a;
  --bs-body-bg: #f6f7fb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Navbar */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards Premium */
.card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-premium:hover {
  box-shadow: var(--shadow-md);
}

.card-header-clean {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

/* Botões */
.btn-primary-custom {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.btn-secondary-custom {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Badges */
.badge-status-pending { background-color: #f1f5f9; color: #475569; }
.badge-status-invited { background-color: #e0f2fe; color: #0284c7; }
.badge-status-in_progress { background-color: #fef3c7; color: #d97706; }
.badge-status-completed { background-color: #ecfdf5; color: #059669; }
.badge-status-approved { background-color: #dcfce7; color: #15803d; }
.badge-status-rejected { background-color: #fee2e2; color: #b91c1c; }

/* =========================================================
   SALA DE ENTREVISTA (EXPERIÊNCIA DO CANDIDATO)
   ========================================================= */

.interview-viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.interview-header {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.interview-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Orbe de IA e Visualizador */
.ai-orb-container {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ai-orb-core {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #818cf8 0%, #4f46e5 50%, #312e81 100%);
  box-shadow: 0 0 45px rgba(99, 102, 241, 0.6);
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-orb-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.3) 0%, transparent 70%);
  animation: pulse-glow 3s infinite ease-in-out;
  z-index: 1;
}

/* Estados da IA */
.ai-state-speaking .ai-orb-core {
  transform: scale(1.15);
  box-shadow: 0 0 65px rgba(129, 140, 248, 0.9), 0 0 100px rgba(99, 102, 241, 0.5);
  animation: speech-bounce 1.2s infinite alternate ease-in-out;
}

.ai-state-listening .ai-orb-core {
  transform: scale(0.95);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
  background: radial-gradient(circle at 35% 35%, #34d399 0%, #059669 60%, #064e3b 100%);
}

.ai-state-listening .ai-orb-glow {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.3) 0%, transparent 70%);
}

.ai-state-user-speaking .ai-orb-core {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.7);
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0284c7 60%, #0c4a6e 100%);
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.9; }
}

@keyframes speech-bounce {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.22); }
}

/* Canvas de onda sonora */
.visualizer-canvas {
  width: 100%;
  max-width: 480px;
  height: 60px;
  margin-bottom: 1.5rem;
}

/* Legendas em Tempo Real */
.caption-box {
  width: 100%;
  max-width: 640px;
  min-height: 80px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.caption-speaker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 0.25rem;
}

.caption-text {
  font-size: 1.05rem;
  color: #f1f5f9;
  font-weight: 400;
  line-height: 1.5;
}

/* Controles da Entrevista */
.interview-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 10;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.control-btn-mic {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn-mic:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.control-btn-mic.muted {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

.control-btn-end {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.control-btn-end:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.barge-in-tip {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Lobby de Boas-Vindas */
.lobby-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
}

.mic-meter-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 0.5rem;
}

.mic-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 70%, #ef4444 100%);
  transition: width 0.05s ease;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .ai-orb-container {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
  }
  .ai-orb-core {
    width: 110px;
    height: 110px;
  }
  .caption-box {
    padding: 0.8rem 1rem;
    min-height: 70px;
    font-size: 0.95rem;
  }
  .interview-header {
    padding: 1rem;
  }
}

/* =========================================================
   Grid e Botões Uniformes da Coluna Ações
   ========================================================= */

.col-actions {
  width: 290px;
  min-width: 290px;
  text-align: right;
}

.actions-grid {
  display: inline-grid;
  grid-template-columns: 116px 36px 104px;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.btn-action-copy {
  width: 116px;
  height: 36px;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.btn-action-copy:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-action-open {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.btn-action-open:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--primary-hover);
}

.btn-action-scorecard {
  width: 104px;
  height: 36px;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
  transition: all 0.15s ease;
}

.btn-action-scorecard:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(79, 70, 229, 0.35);
}

.btn-action-placeholder {
  width: 104px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
}

.management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.btn-management {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  color: var(--editorial-ink);
  background: #fffdfa;
  font-size: 0.67rem;
  font-weight: 700;
}

.btn-management:hover {
  color: var(--editorial-ink);
  border-color: var(--editorial-line-dark);
  background: var(--editorial-sand);
}

.btn-management-danger {
  color: #8b3e33;
}

/* Links interativos para nomes de candidatos */
.candidate-name-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.candidate-name-btn:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

.candidate-name-btn:hover .candidate-name-icon {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.candidate-name-icon {
  transition: transform 0.15s ease, color 0.15s ease;
}

.candidate-name-icon-sm {
  font-size: 0.75rem;
}

.candidate-name-icon-md {
  font-size: 0.8rem;
}

.pre-line {
  white-space: pre-line;
}

/* =========================================================
   Premium enterprise layer
   ========================================================= */

::selection {
  color: #fff;
  background: var(--primary);
}

a,
button,
input,
select,
textarea {
  transition: color 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.24);
  outline-offset: 2px;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-primary-subtle {
  background-color: var(--primary-light) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: #c7d2fe;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-hover);
  --bs-btn-active-border-color: var(--primary-hover);
}

.leading-relaxed {
  line-height: 1.8;
}

.navbar-custom {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.navbar-custom .container {
  min-height: 58px;
}

.brand-mark,
.interview-brand-mark,
.lobby-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #4338ca 62%, #312e81);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.navbar-custom .nav-link {
  position: relative;
  color: #475569;
  border-radius: 10px;
}

.navbar-custom .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-custom .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.app-main {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.page-heading {
  margin-bottom: 1.5rem;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-subtitle {
  max-width: 740px;
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(199, 210, 254, 0.7);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(99, 102, 241, 0.16), transparent 26%),
    linear-gradient(135deg, #fff 15%, #f8faff 100%);
  box-shadow: var(--shadow-sm);
}

.hero-panel::after {
  position: absolute;
  right: -45px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  content: "";
}

.card-premium {
  overflow: hidden;
  border-color: rgba(226, 232, 240, 0.92);
}

.card-premium:hover {
  border-color: #d7dcf0;
}

.kpi-card {
  position: relative;
  min-height: 148px;
}

.kpi-icon,
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-title {
  font-size: 1rem;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.card-header-clean {
  min-height: 68px;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: #fafbff;
}

.table > :not(caption) > * > * {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: #edf0f6;
}

.table thead th {
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  font-weight: 650;
  letter-spacing: 0.005em;
}

.badge-status-pending,
.badge-status-invited,
.badge-status-in_progress,
.badge-status-completed,
.badge-status-approved,
.badge-status-rejected {
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
}

.form-control,
.form-select,
.input-group-text {
  min-height: 44px;
  border-color: var(--border-color);
}

.form-control,
.form-select {
  color: var(--text-main);
  background-color: #fff;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--border-strong);
}

.form-control:focus,
.form-select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.23rem rgba(79, 70, 229, 0.12);
}

.form-label {
  color: #334155 !important;
}

.modal-content {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22) !important;
}

.modal-header,
.modal-footer {
  background: #fbfcff;
}

.modal-header .modal-title {
  letter-spacing: -0.02em;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-light);
}

.job-card {
  isolation: isolate;
}

.job-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), #a5b4fc);
  opacity: 0;
  content: "";
  transition: opacity 0.2s ease;
}

.job-card:hover::before {
  opacity: 1;
}

.job-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.filter-panel {
  background: linear-gradient(135deg, #fff, #fafbff);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-light);
  font-size: 0.76rem;
  font-weight: 650;
}

.score-ring {
  --score: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--score) * 1%), #e8eaf3 0);
}

.score-ring::before {
  position: absolute;
  inset: 11px;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.score-ring-value {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 780;
  letter-spacing: -0.06em;
}

.competency-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eaf3;
}

.competency-progress .progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #818cf8) !important;
}

.transcript-turn {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
}

.transcript-turn-ai {
  border-left: 3px solid var(--primary);
  background: #fafaff;
}

.transcript-turn-candidate {
  border-left: 3px solid var(--secondary);
}

.settings-hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(129, 140, 248, 0.35), transparent 28%),
    linear-gradient(135deg, #1e1b4b, #312e81 62%, #3730a3);
  box-shadow: 0 18px 42px rgba(49, 46, 129, 0.18);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.voice-option {
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.voice-option.is-selected {
  border-color: #a5b4fc;
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.app-footer {
  color: #64748b;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--border-color);
}

.app-footer-brand {
  color: #334155;
  font-weight: 700;
}

#bioModalBody,
.resume-text {
  white-space: pre-line;
}

/* Candidate journey */
.candidate-page {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 102, 241, 0.13), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08), transparent 30%),
    #f7f8fc;
}

.candidate-shell {
  width: 100%;
  max-width: 720px;
  padding: 1.5rem 0.75rem;
}

.lobby-card {
  max-width: 680px;
  padding: clamp(1.4rem, 5vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.lobby-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 740;
}

.lobby-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.lobby-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #4338ca);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.28);
}

.lobby-icon-success {
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.2);
}

.steps-panel {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.step-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.7rem;
  color: #475569;
  font-size: 0.88rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 750;
}

.mic-test-panel {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
}

.mic-feedback {
  min-height: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

.security-note {
  color: #64748b;
  font-size: 0.76rem;
}

.interview-header {
  gap: 1rem;
}

.interview-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.interview-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.interview-timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.28);
  font-size: 0.78rem;
}

.interview-status {
  color: #e0e7ff;
  background: rgba(79, 70, 229, 0.22);
  border-color: rgba(165, 180, 252, 0.24);
}

.interview-status.badge-status-completed {
  color: #a7f3d0;
  background: rgba(5, 150, 105, 0.2);
  border-color: rgba(52, 211, 153, 0.24);
}

.interview-status.badge-status-rejected {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(248, 113, 113, 0.24);
}

.interview-status.badge-status-in_progress {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(251, 191, 36, 0.24);
}

.interview-state-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(165, 180, 252, 0.25);
  border-radius: 999px;
  color: #c7d2fe;
  background: rgba(79, 70, 229, 0.13);
  font-size: 0.75rem;
  font-weight: 650;
}

.interview-state-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.14);
  content: "";
}

.caption-box {
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.25);
}

.control-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.control-label {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 650;
}

.end-confirmation {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.end-confirmation.is-visible {
  display: grid;
}

.end-confirmation-card {
  width: min(100%, 430px);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  color: #f8fafc;
  background: #111827;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.connection-error-actions {
  display: none;
  margin-top: 1rem;
}

.connection-error-actions.is-visible {
  display: flex;
}

.toast-premium {
  overflow: hidden;
  min-width: min(360px, calc(100vw - 2rem));
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.toast-premium.toast-danger {
  border-left-color: var(--danger);
}

/* Compact actions and mobile card tables */
.col-actions {
  width: 250px;
  min-width: 250px;
}

.actions-grid {
  grid-template-columns: 106px 38px 96px;
  gap: 6px;
}

.btn-action-copy {
  width: 106px;
}

.btn-action-open {
  width: 38px;
  height: 38px;
}

.btn-action-scorecard,
.btn-action-placeholder {
  width: 96px;
}

@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    margin-top: 0.8rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .navbar-custom .nav-link {
    padding: 0.65rem 0.8rem !important;
  }

  .premium-table thead {
    display: none;
  }

  .premium-table,
  .premium-table tbody,
  .premium-table tr,
  .premium-table td {
    display: block;
    width: 100%;
  }

  .premium-table tbody {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .premium-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .premium-table tbody td {
    display: grid;
    grid-template-columns: minmax(104px, 32%) 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.9rem !important;
    text-align: left !important;
  }

  .premium-table tbody td::before {
    color: #64748b;
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .premium-table tbody td:first-child {
    padding-top: 0.9rem !important;
    background: #fafbff;
  }

  .premium-table tbody td:last-child {
    padding-bottom: 0.9rem !important;
  }

  .premium-table .col-actions {
    width: 100%;
    min-width: 0;
  }

  .premium-table .actions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .premium-table .empty-state-cell {
    display: block;
  }

  .premium-table .empty-state-cell::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .app-main {
    padding-top: 1.25rem;
  }

  .page-heading .btn,
  .page-heading > button {
    width: 100%;
    justify-content: center;
  }

  .hero-panel .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .card-header-clean {
    align-items: flex-start !important;
    min-height: auto;
    padding: 1rem;
  }

  .lobby-card {
    border-radius: 20px;
  }

  .interview-header {
    align-items: flex-start;
    padding: 0.85rem;
  }

  .interview-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }

  .interview-timer {
    padding: 0.28rem 0.55rem;
  }

  .interview-stage {
    justify-content: flex-start;
    padding-top: clamp(1.25rem, 6vh, 3rem);
  }

  .ai-orb-container {
    margin-bottom: 0.75rem;
  }

  .caption-box {
    margin-bottom: 1.25rem;
  }

  .barge-in-tip {
    max-width: 330px;
    text-align: center;
  }
}

/* Funil editorial compacto */
.pipeline-segments {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: 9px;
}

.pipeline-segment {
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem 1.75rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.pipeline-segment:not(:last-child)::after {
  position: absolute;
  top: 0;
  right: -15px;
  z-index: 2;
  display: block;
  width: 30px;
  height: 100%;
  border: 0;
  border-right: 1px solid rgba(20, 36, 59, 0.12);
  border-radius: 0;
  color: inherit;
  background: inherit;
  content: "";
  font-family: inherit;
  transform: skewX(-10deg);
}

.pipeline-segment > span,
.pipeline-segment > strong {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.pipeline-segment > span {
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pipeline-segment > strong {
  margin-top: 0.3rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.pipeline-segment-ink {
  color: #fff;
  background: var(--editorial-ink);
}

.pipeline-segment-sand {
  color: var(--editorial-ink);
  background: var(--editorial-sand);
}

.pipeline-segment-sage {
  color: var(--editorial-ink);
  background: #ccd7c7;
}

.pipeline-segment-terra {
  color: #fff;
  background: var(--editorial-terracotta);
}

@media (max-width: 991.98px) {
  .pipeline-segments {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-segment::after {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .pipeline-segments {
    grid-template-columns: 1fr;
  }

  .pipeline-segment {
    min-height: 88px;
  }
}

@media (max-width: 420px) {
  .premium-table tbody td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .interview-header .job-name {
    display: block;
    overflow: hidden;
    max-width: 130px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .interview-meta .interview-status {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .navbar-custom,
  .app-footer,
  .print-hidden,
  .btn {
    display: none !important;
  }

  body,
  .app-main {
    background: #fff !important;
  }

  .container {
    max-width: 100% !important;
  }

  .card-premium {
    break-inside: avoid;
    border: 1px solid #d5d8df !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   Concept 01 - Editorial enterprise
   ========================================================= */

:root {
  --editorial-ink: #14243b;
  --editorial-ink-soft: #263850;
  --editorial-paper: #f5f1e9;
  --editorial-canvas: #fbf9f4;
  --editorial-line: #ddd7cb;
  --editorial-line-dark: #c8c0b2;
  --editorial-terracotta: #c76547;
  --editorial-terracotta-dark: #a84f36;
  --editorial-sage: #8fa38b;
  --editorial-sage-soft: #e7ece3;
  --editorial-sand: #e9dfcf;
  --editorial-muted: #6e746f;

  --primary: var(--editorial-ink);
  --primary-hover: #0b1729;
  --primary-light: #ece8df;
  --primary-dark: #081424;
  --bg-main: var(--editorial-paper);
  --bg-card: var(--editorial-canvas);
  --text-main: var(--editorial-ink);
  --text-muted: var(--editorial-muted);
  --border-color: var(--editorial-line);
  --border-strong: var(--editorial-line-dark);
  --surface-soft: #f0ece4;
  --surface-indigo: #ece8df;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 1px rgba(20, 36, 59, 0.03);
  --shadow-md: 0 12px 28px rgba(20, 36, 59, 0.08);
  --shadow-lg: 0 24px 56px rgba(20, 36, 59, 0.12);

  --bs-primary: #14243b;
  --bs-primary-rgb: 20, 36, 59;
  --bs-link-color: #14243b;
  --bs-link-hover-color: #c76547;
  --bs-body-font-family: "Plus Jakarta Sans", sans-serif;
}

body,
.editorial-body {
  min-height: 100vh;
  color: var(--editorial-ink);
  background: var(--editorial-paper);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.editorial-body {
  padding-left: 248px;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: 248px;
  min-height: 100vh;
  flex-direction: column;
  padding: 1.6rem 1.25rem 1.15rem;
  color: #fff;
  background: var(--editorial-ink);
}

.editorial-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.editorial-brand:hover {
  color: inherit;
}

.brand-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--editorial-terracotta);
  box-shadow: 0 0 0 4px rgba(199, 101, 71, 0.12);
}

.sidebar-caption {
  margin: 0.8rem 0 2rem 1.55rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 0.3rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 42px;
  padding: 0.6rem 0.72rem;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-link i {
  width: 20px;
  font-size: 1rem;
  text-align: center;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-link.active {
  color: var(--editorial-ink);
  background: var(--editorial-canvas);
  box-shadow: inset 3px 0 0 var(--editorial-terracotta);
}

.sidebar-divider {
  height: 1px;
  margin: 1.25rem 0;
  background: rgba(255, 255, 255, 0.1);
}

.sofia-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.sofia-card:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.sofia-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--editorial-ink);
  background: var(--editorial-paper);
}

.sofia-card strong,
.sofia-card small,
.sidebar-user strong,
.sidebar-user small {
  display: block;
}

.sofia-card strong,
.sidebar-user strong {
  font-size: 0.75rem;
}

.sofia-card small,
.sidebar-user small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
  padding: 0.85rem 0.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
}

.sidebar-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-logout-mobile {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--editorial-ink);
  background: var(--editorial-sand);
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 1025;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
  color: #fff;
  background: var(--editorial-ink);
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 1.4rem;
}

.editorial-offcanvas {
  width: 280px !important;
  color: #fff;
  background: var(--editorial-ink);
}

.editorial-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-workspace {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.workspace-topbar {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--editorial-line);
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(12px);
}

.workspace-topbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.workspace-kicker {
  color: var(--editorial-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.workspace-date {
  color: var(--editorial-muted);
  font-size: 0.66rem;
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.workspace-partner-logo {
  width: auto;
  height: 34px;
  margin-left: 0.35rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--editorial-line);
  object-fit: contain;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--editorial-line);
  border-radius: 50%;
  color: var(--editorial-ink);
  background: var(--editorial-canvas);
}

.icon-button:hover {
  border-color: var(--editorial-line-dark);
  background: #fff;
}

.has-notification::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--editorial-canvas);
  border-radius: 50%;
  background: var(--editorial-terracotta);
  content: "";
}

.app-main {
  flex: 1;
  padding: clamp(1.25rem, 3vw, 2.2rem) 0 3rem;
}

.workspace-container {
  width: min(100% - clamp(2rem, 5vw, 5rem), 1500px);
  margin: 0 auto;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
  color: var(--editorial-muted);
  border-top: 1px solid var(--editorial-line);
  background: transparent;
  font-size: 0.68rem;
}

.page-eyebrow {
  color: var(--editorial-terracotta);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.page-title {
  color: var(--editorial-ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.page-subtitle {
  color: var(--editorial-muted);
}

.hero-panel {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-panel::after {
  display: none;
}

.card-premium {
  border: 1px solid var(--editorial-line);
  border-radius: var(--radius-lg);
  background: var(--editorial-canvas);
  box-shadow: var(--shadow-sm);
}

.card-premium:hover {
  border-color: var(--editorial-line-dark);
  box-shadow: 0 8px 22px rgba(20, 36, 59, 0.06);
}

.card-header-clean {
  border-color: var(--editorial-line);
  background: transparent;
}

.kpi-card {
  min-height: 132px;
  background: var(--editorial-canvas);
}

.kpi-card::after {
  position: absolute;
  inset: auto 1rem 0 1rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--editorial-terracotta);
  opacity: 0.75;
  content: "";
}

.row > div:nth-child(2n) .kpi-card::after {
  background: var(--editorial-sage);
}

.kpi-icon,
.section-icon {
  border-radius: 50%;
}

.kpi-value {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.pipeline-segments {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: 9px;
}

.pipeline-segment {
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem 1.75rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.pipeline-segment:not(:last-child)::after {
  position: absolute;
  top: 0;
  right: -15px;
  z-index: 2;
  display: block;
  width: 30px;
  height: 100%;
  border-right: 1px solid rgba(20, 36, 59, 0.12);
  background: inherit;
  content: "";
  transform: skewX(-10deg);
}

.pipeline-segment > span,
.pipeline-segment > strong {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.pipeline-segment > span {
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pipeline-segment > strong {
  margin-top: 0.3rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.pipeline-segment-ink {
  color: #fff;
  background: var(--editorial-ink);
}

.pipeline-segment-sand {
  color: var(--editorial-ink);
  background: var(--editorial-sand);
}

.pipeline-segment-sage {
  color: var(--editorial-ink);
  background: #ccd7c7;
}

.pipeline-segment-terra {
  color: #fff;
  background: var(--editorial-terracotta);
}

.btn-primary-custom {
  border: 1px solid var(--editorial-ink);
  border-radius: 7px;
  color: #fff;
  background: var(--editorial-ink);
  box-shadow: none;
}

.btn-primary-custom:hover {
  border-color: #081424;
  color: #fff;
  background: #081424;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-secondary-custom {
  border-color: var(--editorial-line-dark);
  border-radius: 7px;
  color: var(--editorial-ink);
  background: transparent;
}

.btn-secondary-custom:hover {
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
  background: var(--editorial-sand);
}

.table {
  --bs-table-hover-bg: rgba(233, 223, 207, 0.25);
}

.table thead th {
  color: var(--editorial-muted);
  background: #f1ede5;
}

.table > :not(caption) > * > * {
  border-bottom-color: #e8e2d8;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--editorial-line);
  border-radius: 7px;
  background-color: #fffdfa;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--editorial-ink);
  box-shadow: 0 0 0 3px rgba(20, 36, 59, 0.08);
}

.modal-content {
  border-color: var(--editorial-line) !important;
  border-radius: 12px !important;
  background: var(--editorial-canvas);
}

.modal-header,
.modal-footer {
  background: #f3efe7;
}

.badge-status-pending,
.badge-status-invited {
  color: #675c4c;
  background: #efe7d9;
}

.badge-status-in_progress {
  color: #8f4a32;
  background: #f4dfd5;
}

.badge-status-completed,
.badge-status-approved {
  color: #456044;
  background: var(--editorial-sage-soft);
}

.badge-status-rejected {
  color: #8b3e33;
  background: #f4dcd7;
}

.filter-panel {
  background: var(--editorial-canvas);
}

.active-filter {
  color: var(--editorial-ink);
  border-color: var(--editorial-line-dark);
  background: var(--editorial-sand);
}

.job-card::before {
  background: var(--editorial-terracotta);
}

.candidate-name-btn:hover {
  color: var(--editorial-terracotta) !important;
}

.btn-action-scorecard {
  color: #fff;
  background: var(--editorial-ink);
  box-shadow: none;
}

.btn-action-scorecard:hover {
  color: #fff;
  background: var(--editorial-terracotta-dark);
  box-shadow: none;
}

.btn-action-open {
  color: var(--editorial-ink);
}

.btn-action-open:hover {
  color: #fff;
  border-color: var(--editorial-ink);
  background: var(--editorial-ink);
}

.settings-hero {
  color: #fff;
  background: var(--editorial-ink);
  box-shadow: none;
}

.voice-option.is-selected {
  border-color: var(--editorial-sage);
  background: var(--editorial-sage-soft);
  box-shadow: none;
}

.score-ring {
  background: conic-gradient(var(--editorial-sage) calc(var(--score) * 1%), #e5dfd4 0);
}

.score-ring::before {
  background: var(--editorial-canvas);
}

.competency-progress .progress-bar {
  background: var(--editorial-sage) !important;
}

.transcript-turn-ai {
  border-left-color: var(--editorial-terracotta);
  background: #f8f1ea;
}

.transcript-turn-candidate {
  border-left-color: var(--editorial-sage);
}

@media (max-width: 991.98px) {
  .editorial-body {
    padding-left: 0;
  }

  .mobile-topbar {
    display: flex !important;
  }

  .workspace-topbar {
    min-height: 62px;
  }

  .workspace-kicker,
  .workspace-date {
    display: none;
  }

  .pipeline-segments {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-segment::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .workspace-topbar {
    justify-content: flex-end;
    padding: 0.7rem 1rem;
  }

  .workspace-actions .icon-button {
    display: none;
  }

  .workspace-container {
    width: min(100% - 1.5rem, 1500px);
  }

  .app-footer {
    flex-direction: column;
    gap: 0.3rem;
  }

  .pipeline-segments {
    grid-template-columns: 1fr;
  }

  .pipeline-segment {
    min-height: 88px;
  }
}

/* Editorial candidate experience */
.candidate-page {
  position: relative;
  overflow-x: hidden;
  color: var(--editorial-ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 36, 59, 0.045) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at 10% 12%, rgba(199, 101, 71, 0.09), transparent 25%),
    var(--editorial-paper);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.candidate-page::before,
.candidate-page::after {
  position: fixed;
  z-index: 0;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(20, 36, 59, 0.08);
  border-radius: 50%;
  content: "";
}

.candidate-page::before {
  top: -90px;
  left: -60px;
}

.candidate-page::after {
  right: -70px;
  bottom: -100px;
}

.candidate-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 2.5rem;
}

.lobby-card {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  border: 1px solid var(--editorial-line-dark);
  border-radius: 14px;
  background: var(--editorial-canvas);
  box-shadow: 0 26px 70px rgba(20, 36, 59, 0.12);
}

.lobby-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--editorial-terracotta) 0 24%, var(--editorial-sand) 24% 70%, var(--editorial-sage) 70%);
  content: "";
}

.lobby-brand {
  color: var(--editorial-ink);
}

.lobby-brand-mark {
  color: #fff;
  border-radius: 50%;
  background: var(--editorial-ink);
  box-shadow: none;
}

.lobby-card h1,
.lobby-card h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
}

.editorial-voice-orb {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.editorial-voice-orb span {
  position: absolute;
  border-radius: 50%;
}

.editorial-voice-orb span:nth-child(1) {
  inset: 0;
  border: 1px solid rgba(76, 101, 74, 0.16);
  background: rgba(143, 163, 139, 0.09);
  animation: editorial-breathe 4s ease-in-out infinite;
}

.editorial-voice-orb span:nth-child(2) {
  inset: 15px;
  border: 1px solid rgba(76, 101, 74, 0.2);
  background: rgba(143, 163, 139, 0.16);
}

.editorial-voice-orb span:nth-child(3) {
  inset: 30px;
  background: radial-gradient(circle at 35% 30%, #cdd8ca, #82987d);
  box-shadow: 0 10px 30px rgba(76, 101, 74, 0.22);
}

@keyframes editorial-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

.steps-panel {
  border: 1px solid var(--editorial-line);
  border-radius: 9px;
  background: #f2eee6;
}

.step-number {
  color: var(--editorial-ink);
  border-radius: 50%;
  background: var(--editorial-sand);
}

.mic-test-panel {
  border-color: var(--editorial-line);
  border-radius: 9px;
  background: #fffdfa;
}

.mic-meter-fill {
  background: linear-gradient(90deg, var(--editorial-sage), var(--editorial-terracotta));
}

.security-note {
  color: var(--editorial-muted);
}

.interview-viewport {
  color: var(--editorial-ink);
  background:
    radial-gradient(circle at 50% 36%, rgba(143, 163, 139, 0.15), transparent 28%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 36, 59, 0.04) 50%, transparent calc(50% + 1px)),
    var(--editorial-paper);
}

.interview-header {
  color: var(--editorial-ink);
  border-bottom: 1px solid var(--editorial-line);
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(12px);
}

.interview-header .job-name {
  color: var(--editorial-muted);
}

.interview-brand-mark {
  color: #fff;
  border-radius: 50%;
  background: var(--editorial-ink);
  box-shadow: none;
}

.interview-timer {
  color: var(--editorial-muted);
  border-color: var(--editorial-line);
  background: #f1ede5;
}

.interview-timer .text-white-50 {
  color: var(--editorial-muted) !important;
}

.interview-status,
.interview-status.badge-status-invited {
  color: var(--editorial-ink);
  border-color: var(--editorial-line-dark);
  background: var(--editorial-sand);
}

.interview-status.badge-status-in_progress {
  color: #8f4a32;
  border-color: #deb29f;
  background: #f4dfd5;
}

.interview-status.badge-status-completed {
  color: #456044;
  border-color: #b8c6b3;
  background: var(--editorial-sage-soft);
}

.interview-status.badge-status-rejected {
  color: #8b3e33;
  border-color: #dfb0a8;
  background: #f4dcd7;
}

.ai-orb-container {
  margin-bottom: 1.25rem;
}

.ai-orb-core {
  background: radial-gradient(circle at 35% 35%, #d9e1d5, #8fa38b 55%, #5d755a);
  box-shadow: 0 18px 55px rgba(76, 101, 74, 0.28);
}

.ai-orb-glow {
  border: 1px solid rgba(76, 101, 74, 0.15);
  background: radial-gradient(circle, rgba(143, 163, 139, 0.2), transparent 70%);
}

.ai-state-speaking .ai-orb-core {
  background: radial-gradient(circle at 35% 35%, #e5b6a6, #c76547 60%, #8f3f2c);
  box-shadow: 0 18px 60px rgba(199, 101, 71, 0.32);
}

.ai-state-listening .ai-orb-core,
.ai-state-user-speaking .ai-orb-core {
  background: radial-gradient(circle at 35% 35%, #d9e1d5, #8fa38b 60%, #5d755a);
  box-shadow: 0 18px 55px rgba(76, 101, 74, 0.28);
}

.interview-state-label {
  color: #456044;
  border-color: #bdc9b9;
  background: var(--editorial-sage-soft);
}

.interview-state-label::before {
  background: var(--editorial-sage);
  box-shadow: 0 0 0 4px rgba(143, 163, 139, 0.14);
}

.caption-box {
  border-color: var(--editorial-line-dark);
  color: var(--editorial-ink);
  background: rgba(251, 249, 244, 0.92);
  box-shadow: 0 18px 40px rgba(20, 36, 59, 0.09);
}

.caption-speaker {
  color: var(--editorial-terracotta);
}

.caption-text {
  color: var(--editorial-ink);
}

.control-btn-mic {
  color: var(--editorial-ink);
  border-color: var(--editorial-line-dark);
  background: var(--editorial-canvas);
}

.control-btn-mic:hover {
  color: #fff;
  background: var(--editorial-ink);
}

.control-btn-end {
  background: var(--editorial-terracotta);
  box-shadow: 0 8px 20px rgba(199, 101, 71, 0.25);
}

.control-btn-end:hover {
  background: var(--editorial-terracotta-dark);
}

.control-label,
.barge-in-tip {
  color: var(--editorial-muted);
}

.barge-in-tip .text-primary {
  color: var(--editorial-terracotta) !important;
}

.visualizer-canvas {
  opacity: 0.72;
}

@media (max-width: 767.98px) {
  .candidate-shell {
    padding-block: 0.75rem;
  }

  .lobby-card {
    border-radius: 10px;
  }

  .interview-header {
    background: rgba(251, 249, 244, 0.96);
  }
}

/* Authentication */
.login-page {
  min-height: 100vh;
  margin: 0;
  color: var(--editorial-ink);
  background: var(--editorial-paper);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
}

.login-brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 15% 85%, rgba(199, 101, 71, 0.28), transparent 27%),
    var(--editorial-ink);
}

.login-brand-panel::after {
  position: absolute;
  right: -160px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.015);
  content: "";
}

.login-brand {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: #fff;
  font-size: 1.8rem;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin-block: auto;
}

.login-brand-copy .page-eyebrow {
  color: #e99a7e;
}

.login-brand-copy h1 {
  max-width: 560px;
  margin: 0.8rem 0 1.25rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.login-brand-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.8;
}

.login-brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.65rem;
}

.login-brand-footer i {
  margin-right: 0.3rem;
  color: #b8c9b3;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 36, 59, 0.035) 50%, transparent calc(50% + 1px)),
    var(--editorial-canvas);
}

.login-form-wrap {
  width: min(100%, 430px);
}

.login-partner-logo {
  display: block;
  width: auto;
  height: 42px;
  margin: 0 0 4rem auto;
  object-fit: contain;
}

.login-heading {
  margin-bottom: 2rem;
}

.login-step {
  color: var(--editorial-terracotta);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-heading h2 {
  margin: 0.45rem 0 0.45rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.login-heading p {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 0.86rem;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e7b8ad;
  border-radius: 8px;
  color: #8b3e33;
  background: #f8e6e1;
  font-size: 0.78rem;
  font-weight: 600;
}

.login-form {
  display: grid;
  gap: 1.15rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--editorial-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap > i {
  position: absolute;
  left: 0.95rem;
  z-index: 1;
  color: var(--editorial-muted);
}

.login-input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 3rem 0.8rem 2.75rem;
  border: 1px solid var(--editorial-line-dark);
  border-radius: 8px;
  color: var(--editorial-ink);
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
}

.login-input-wrap input:focus {
  border-color: var(--editorial-ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 36, 59, 0.08);
}

.login-input-wrap button {
  position: absolute;
  right: 0.65rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  color: var(--editorial-muted);
  background: transparent;
}

.login-submit {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--editorial-ink);
  border-radius: 8px;
  color: #fff;
  background: var(--editorial-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.login-submit:hover {
  background: #081424;
  transform: translateY(-1px);
}

.login-help {
  margin: 1.4rem 0 0;
  color: var(--editorial-muted);
  font-size: 0.67rem;
  text-align: center;
}

@media (max-width: 899.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 260px;
    padding: 1.5rem;
  }

  .login-brand-copy {
    margin-block: 3rem;
  }

  .login-brand-copy h1 {
    max-width: 600px;
    font-size: clamp(2.25rem, 9vw, 3.8rem);
  }

  .login-brand-copy p,
  .login-brand-footer span:last-child {
    display: none;
  }

  .login-form-panel {
    min-height: calc(100vh - 260px);
    padding-block: 2.5rem;
  }

  .login-partner-logo {
    height: 34px;
    margin-bottom: 2.5rem;
  }
}
