/* ═══════════════════════════════════════════════════════════════════════════
   interview-mode.css — PRISM Evaluate Mode: Immersive Interview UX
   Active when: body.eval-interview-active
   IMPORTANT: Only modifies Evaluate Mode — no other modes affected.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens (scoped to interview layer) ────────────────────────── */
:root {
  --im-bg:              #080e1a;
  --im-bg-surface:      #0c1627;
  --im-bg-panel:        #091220;
  --im-bg-elevated:     #0f1e33;
  --im-border:          rgba(255,255,255,0.06);
  --im-border-mid:      rgba(255,255,255,0.09);
  --im-border-focus:    rgba(99,102,241,0.38);
  --im-accent:          #6366f1;
  --im-accent-soft:     rgba(99,102,241,0.14);
  --im-accent-glow:     rgba(99,102,241,0.28);
  --im-danger:          #ef4444;
  --im-danger-soft:     rgba(239,68,68,0.12);
  --im-warn:            #f59e0b;
  --im-green:           #22c55e;
  --im-text-1:          #f1f5f9;
  --im-text-2:          #94a3b8;
  --im-text-3:          #475569;
  --im-toolbar-h:       76px;
  --im-ease:            cubic-bezier(0.16, 1, 0.3, 1);
  --im-ease-std:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. TOOLBAR SWAP
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide the regular app toolbar in interview mode */
body.eval-interview-active .an-toolbar {
  display: none !important;
}

/* ─── Interview Toolbar Shell ─────────────────────────────────────────── */
#im-toolbar {
  display: none; /* hidden by default — shown via interview mode */
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  height: var(--im-toolbar-h);
  min-height: var(--im-toolbar-h);
  background: rgba(8, 14, 26, 0.97);
  border-bottom: 1px solid var(--im-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  padding: 0 16px;
  gap: 0;
}

/* Top accent gradient — crimson + indigo tones for interview feel */
#im-toolbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(99,102,241,0.55) 25%,
    rgba(239,68,68,0.2) 65%,
    transparent 100%
  );
  pointer-events: none;
}

body.eval-interview-active #im-toolbar {
  display: flex;
}

/* Adjust layout since toolbar height changes */
body.eval-interview-active:has(.an-toolbar) #layout,
body.eval-interview-active #layout {
  height: calc(100dvh - var(--im-toolbar-h));
}

/* ─── Toolbar Region: LEFT ─────────────────────────────────────────────── */
.im-tl-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 190px;
}

.im-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-brand-logo {
  height: 80px;
  width: auto;
  display: block;
  opacity: 0.88;
}

.im-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.im-brand-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--im-text-1);
  letter-spacing: -0.5px;
}

.im-brand-sub {
  font-size: var(--fs-xss);
  font-weight: 300;
  color: var(--im-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Toolbar Region: CENTER ───────────────────────────────────────────── */
.im-tl-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
}

.im-session-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  max-width: 480px;
  min-width: 0;
}

.im-problem-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--im-text-1);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
  line-height: 1.2;
}

.im-session-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  color: var(--im-text-2);
  white-space: nowrap;
}

.im-meta-sep {
  color: var(--im-text-3);
  font-size: var(--fs-xs);
}

.im-round-label {
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--im-text-2);
}

.im-center-timer {
  font-weight: 700;
  color: var(--im-text-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  transition: color 400ms;
}

.im-center-timer.timer-warning { color: var(--im-warn); }
.im-center-timer.timer-danger  { color: var(--im-danger); }

/* ─── Toolbar Region: RIGHT ────────────────────────────────────────────── */
.im-tl-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 190px;
  justify-content: flex-end;
}

/* Exit Interview button */
.im-exit-interview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #ffffff;
  background: #dc2626;
  border: 1px solid #b91c1c;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 140ms, border-color 140ms, transform 100ms;
}

.im-exit-interview-btn:hover {
  background: #b91c1c;
  border-color: #991b1b;
}

.im-exit-interview-btn:active { transform: scale(0.97); }

/* Avatar slot in interview toolbar */
.im-avatar-slot {
  display: flex;
  align-items: center;
}

.im-avatar-slot .an-avatar {
  pointer-events: none; /* clicks forwarded via JS */
  cursor: pointer;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. BODY + LAYOUT ATMOSPHERE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Left Panel — light theme, no overrides ───────────────────────────── */

/* ─── Right Panel — light theme ────────────────────────────────────────── */
body.eval-interview-active #right-panel {
  background: #ffffff !important;
  border-left: 1px solid #e8edf3 !important;
  color: #1e293b !important;
}

/* evaluate-view section itself */
body.eval-interview-active #evaluate-view {
  background: #ffffff !important;
  color: #1e293b !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* Scrollable middle zone — everything except the sticky action bar */
body.eval-interview-active #evaluate-view > *:not(.panel-actions) {
  flex-shrink: 0;
}

body.eval-interview-active #evaluate-view #evaluation-reqs,
body.eval-interview-active #evaluate-view #evaluation-question-section {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

/* ─── Canvas Wrapper — keep light theme, no overrides ─────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   3. RIGHT PANEL INTERVIEW REDESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide old timer/reset header in interview mode */
body.eval-interview-active .evaluation-header {
  display: none !important;
}

/* Hide Reset / Cancel Test button */
body.eval-interview-active #evaluation-reset {
  display: none !important;
}

/* Hide evaluation controls dropdowns — never needed in interview mode */
body.eval-interview-active #evaluation-controls {
  display: none !important;
}

/* Hide the Start Evaluation button in the panel actions
   (starting happens via the selection screen) */
body.eval-interview-active #evaluation-start {
  display: none !important;
}

/* Hide the pre-start problem preview block — replaced by im-panel-header */
body.eval-interview-active #evaluation-preview {
  display: none !important;
}

/* Hide old active-problem block — replaced by im-panel-header */
body.eval-interview-active #evaluation-active-problem {
  display: none !important;
}

/* ─── Interview Panel Header ───────────────────────────────────────────── */
.im-panel-header {
  display: none; /* shown in interview mode */
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #e8edf3;
}

body.eval-interview-active #evaluate-view .im-panel-header {
  display: flex;
}

/* ─── Large Timer Block ────────────────────────────────────────────────── */
.im-timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 12px;
  gap: 4px;
  border-bottom: 1px solid #e8edf3;
}

.im-timer-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.im-timer-label {
  font-size: var(--fs-xss);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d737c;
}

.im-timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--im-green);
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: im-dot-pulse 2s ease-in-out infinite;
}

body.eval-interview-active.evaluation-locked .im-timer-dot.timer-warning {
  background: var(--im-warn);
  box-shadow: 0 0 6px rgba(245,158,11,0.5);
}
body.eval-interview-active.evaluation-locked .im-timer-dot.timer-danger {
  background: var(--im-danger);
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
  animation: im-dot-fast-pulse 0.8s ease-in-out infinite;
}

@keyframes im-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

@keyframes im-dot-fast-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.im-panel-timer-value {
  font-size: var(--fs-xxl);
  font-weight: 800;
  letter-spacing: 1px;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 400ms;
  text-align: center;
}

.im-panel-timer-value.timer-warning { color: var(--im-warn); }
.im-panel-timer-value.timer-danger  {
  color: var(--im-danger);
  animation: im-timer-danger-pulse 1.4s ease-in-out infinite;
}

@keyframes im-timer-danger-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* Timer progress bar */
.im-timer-progress {
  width: 100%;
  height: 2px;
  background: #e8edf3;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.im-timer-progress-fill {
  height: 100%;
  background: var(--im-accent);
  border-radius: 2px;
  transition: width 1s linear, background 400ms;
}

.im-timer-progress-fill.timer-warning { background: var(--im-warn); }
.im-timer-progress-fill.timer-danger  { background: var(--im-danger); }

/* ─── Problem Name Block ───────────────────────────────────────────────── */
.im-problem-block {
  padding: 14px 16px 0;
  text-align: center;
}

.im-panel-problem-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

/* ─── Round Progress Block ─────────────────────────────────────────────── */
.im-round-block {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.im-round-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.im-round-badge {
  font-size: var(--fs-xss);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(99,102,241,0.9);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 5px;
  padding: 3px 9px;
}

.im-round-name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #203047;
}

/* Round pip track */
.im-round-pips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.im-round-pip {
  height: 3px;
  flex: 1 1 30px;
  max-width: 44px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: background 400ms var(--im-ease);
}

.im-round-pip.done   { background: rgba(99,102,241,0.35); }
.im-round-pip.active { background: var(--im-accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   4. GUIDED PROMPTS (FR / NFR)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hidden outside interview mode */
.im-guided-block {
  display: none;
}

body.eval-interview-active .im-guided-block {
  display: block;
  margin-bottom: 6px;
}

.im-guided-question {
  font-size: var(--fs-ui);
  font-weight: 600;
  color: #18202b;
  margin-bottom: 5px;
  line-height: 1.4;
  padding-top: 10px;
}

.im-guided-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.im-guided-chip {
  font-size: var(--fs-xss);
  font-weight: 500;
  padding: 2px 8px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.18);
  color: #6366f1;
  border-radius: 4px;
  cursor: default;
  user-select: none;
}

/* Override panel h3 typography in interview mode for a cleaner look */
body.eval-interview-active #evaluation-reqs h3 {
  font-size: var(--fs-xss);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 16px 0 8px;
  padding: 0 16px;
}

body.eval-interview-active #evaluation-reqs textarea {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  font-size: var(--fs-sm);
  padding: 10px 12px;
  transition: border-color 200ms, background 200ms;
  resize: vertical;
  min-height: 76px;
}

body.eval-interview-active #evaluation-reqs textarea:focus {
  border-color: rgba(99,102,241,0.45);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

body.eval-interview-active #evaluation-reqs textarea::placeholder {
  color: #94a3b8;
  font-size: var(--fs-sm);
}

/* Padding for the reqs section */
body.eval-interview-active #evaluation-reqs {
  padding: 0 16px 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. PANEL ACTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Panel title row ("EVALUATION") */
body.eval-interview-active #right-panel .panel-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8edf3 !important;
  color: #1e293b !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 14px 10px;
  height: auto;
}

/* Round badge+name row — hidden outside interview mode */
.im-panel-round-header {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.eval-interview-active #right-panel .panel-header .im-panel-round-header {
  display: flex;
}

/* Hide right-panel-title text in interview mode — the round badge replaces it */
body.eval-interview-active #right-panel .panel-header #right-panel-title {
  display: none;
}

/* Hide the in-content problem name block — name is now in .panel-header */
body.eval-interview-active .im-problem-block {
  display: none !important;
}

body.eval-interview-active .panel-actions.evaluation-actions {
  border-top: 1px solid #e8edf3;
  background: #ffffff;
  padding: 12px 16px;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. ROUND TRANSITION OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

#im-round-transition {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--im-ease);
}

#im-round-transition.visible {
  opacity: 1;
  pointer-events: none; /* don't block clicks, auto-dismiss */
}

.im-rt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.im-rt-eyebrow {
  font-size: var(--fs-xss);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--im-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms 80ms var(--im-ease), transform 350ms 80ms var(--im-ease);
}

.im-rt-title {
  font-size: var(--fs-xxl);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--im-text-1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 350ms 160ms var(--im-ease), transform 350ms 160ms var(--im-ease);
}

.im-rt-sub {
  font-size: var(--fs-sm);
  color: var(--im-text-2);
  max-width: 300px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms 240ms var(--im-ease), transform 350ms 240ms var(--im-ease);
}

#im-round-transition.visible .im-rt-eyebrow,
#im-round-transition.visible .im-rt-title,
#im-round-transition.visible .im-rt-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. CANVAS ONBOARDING OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

#eval-canvas-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--im-ease);
  text-align: center;
}

#eval-canvas-overlay.visible {
  opacity: 1;
}

.eco-inner {
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px;
  padding: 22px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.06);
}

.eco-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--im-text-1);
  margin-bottom: 12px;
  letter-spacing: -0.1px;
}

.eco-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eco-list li {
  font-size: var(--fs-xs);
  color: var(--im-text-2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.eco-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--im-accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. EXIT CONFIRMATION MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

#im-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#im-exit-modal.hidden {
  display: none;
}

.im-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.im-exit-dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 380px;
  width: calc(100vw - 40px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.15),
    0 4px 16px rgba(0,0,0,0.08);
  animation: im-exit-in 240ms var(--im-ease);
}

@keyframes im-exit-in {
  from { opacity: 0; transform: scale(0.93) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.im-exit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  color: #0f172a;
}

.im-exit-dialog h2 {
  font-size: var(--fs-subhead);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.im-exit-dialog p {
  font-size: var(--fs-xs);
  color: #475569;
  margin: 0 0 20px;
  line-height: 1.65;
}

.im-exit-save-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: #16a34a;
  margin-bottom: 22px;
  font-weight: 500;
}

.im-exit-save-note svg {
  flex-shrink: 0;
  stroke: #16a34a;
}

.im-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.im-exit-continue-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  background: #6366f1;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms, box-shadow 140ms, transform 100ms;
}

.im-exit-continue-btn:hover {
  background: #5254e0;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.im-exit-continue-btn:active { transform: scale(0.98); }

.im-exit-leave-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #ef4444;
  background: #ffffff;
  border: 1.5px solid #ef4444;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: color 140ms, border-color 140ms, background 140ms, transform 100ms;
}

.im-exit-leave-btn:hover {
  color: #ffffff;
  border-color: #ef4444;
  background: #ef4444;
}

.im-exit-leave-btn:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════════════════════════════
   9. SELECTION SCREEN ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Action bar — taller, clearly separated from card list */
.ess-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;          /* above ess-cards-wrap (z-index:1) and ess-right-header (z-index:1) */
  overflow: visible;    /* let the duration dropdown escape upward */
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 20px 32px;
  min-height: 76px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}

/* Duration wrapper must be positioned so the absolute menu is anchored to it */
.ess-dur-dropdown-wrap {
  position: relative;
}

/* "No problem selected" / selected problem label */
.ess-selected-label {
  flex: 1 1 auto;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ess-selected-label:not(.ess-selected-label--empty) {
  color: #1e293b;
  font-weight: 600;
}

/* Duration trigger — clean light pill */
.ess-dur-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #374151;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 140ms, border-color 140ms, color 140ms;
}

.ess-dur-trigger:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.ess-dur-dropdown-wrap.open .ess-dur-trigger {
  border-color: #6366f1;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Duration dropdown menu */
.ess-dur-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  min-width: 130px;
  display: none;
}

.ess-dur-dropdown-wrap.open .ess-dur-menu {
  display: block;
}

.ess-dur-opt {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #374151;
  border-radius: 7px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}

.ess-dur-opt:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.ess-dur-opt--active {
  color: #6366f1;
  font-weight: 700;
}

/* Start evaluation CTA */
.ess-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #ffffff;
  background: #6366f1;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.1px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transition: background 180ms, box-shadow 180ms, transform 100ms, color 180ms;
}

.ess-start-btn:not(:disabled):hover {
  background: #5254e0;
  box-shadow: 0 6px 24px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}

.ess-start-btn:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}

/* Disabled — muted on light bg */
.ess-start-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .im-tl-left   { min-width: 0; }
  .im-tl-right  { min-width: 0; }
  .im-brand-text { display: none; }
  .im-session-meta { display: none; }
  .im-panel-timer-value { font-size: var(--fs-xxl); }
  .im-rt-title { font-size: var(--fs-xl); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. EVALUATION LOCKED / INTERVIEW ACTIVE — COMPONENT PANEL & INSPECTOR
   ═══════════════════════════════════════════════════════════════════════════ */

/* Suppress palette-item hover expand/scale during evaluation (all phases) */
body.eval-interview-active .palette-item:hover,
body.evaluation-locked .palette-item:hover {
  transform: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: grab !important;
}

/* Suppress palette-item hover icon colour shift during evaluation */
body.eval-interview-active .palette-item:hover .icon,
body.evaluation-locked .palette-item:hover .icon {
  filter: brightness(0) saturate(0) opacity(0.7) !important;
}

/* Lock inspector inputs once Round 1 is complete (phase = questions | tradeoff | result) */
body.evaluation-locked.eval-phase-questions .inspector input,
body.evaluation-locked.eval-phase-questions .inspector select,
body.evaluation-locked.eval-phase-questions .inspector textarea,
body.evaluation-locked.eval-phase-questions .inspector button:not(.inspector-toggle),
body.evaluation-locked.eval-phase-tradeoff .inspector input,
body.evaluation-locked.eval-phase-tradeoff .inspector select,
body.evaluation-locked.eval-phase-tradeoff .inspector textarea,
body.evaluation-locked.eval-phase-tradeoff .inspector button:not(.inspector-toggle) {
  pointer-events: none !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MCQ + TRADE-OFF CARD CAROUSEL  (interview mode only)
   ───────────────────────────────────────────────────────────────────────────
   The card sits flush in the right panel (no border / no bg). Nav row at
   the bottom holds:  ←  • • ● • •  →
   ═══════════════════════════════════════════════════════════════════════════ */

/* The question section + list stretch to fill height — no internal scroll */
body.eval-interview-active #evaluation-question-section,
body.eval-interview-active #evaluation-question-section #evaluation-question-list {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ─── Stage: full-height column, card body + nav row ────────────────────── */
body.eval-interview-active .ev-card-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 18px 10px;
  box-sizing: border-box;
}

/* ─── 3. Fallback banner (tradeoff only) ────────────────────────────────── */
body.eval-interview-active .ev-card-fallback-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: #1e40af;
  flex-shrink: 0;
}

body.eval-interview-active .ev-card-fallback-icon {
  flex-shrink: 0;
  font-size: var(--fs-md);
}

/* ─── 4. Card — borderless, fills remaining height, NO scroll ───────────── */
body.eval-interview-active .ev-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  overflow: hidden;
}

body.eval-interview-active .ev-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.eval-interview-active .ev-card-q-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

body.eval-interview-active .ev-card-q-text {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: #334155;
  font-weight: 500;
  flex-shrink: 0;
}

/* ─── 5. MCQ options ────────────────────────────────────────────────────── */
body.eval-interview-active .ev-card-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  flex: 1 1 auto;
  min-height: 0;
}

body.eval-interview-active .ev-card-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  font-size: var(--fs-sm);
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

body.eval-interview-active .ev-card-option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.eval-interview-active .ev-card-option.is-selected {
  border-color: #172340;
  background: #eef2f8;
}

body.eval-interview-active .ev-card-option input[type="radio"] {
  margin: 0;
  accent-color: #172340;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

body.eval-interview-active .ev-card-option span {
  flex: 1;
  line-height: 1.4;
}

/* ─── 6. Tradeoff textarea ──────────────────────────────────────────────── */
body.eval-interview-active .ev-card-answer {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 120px;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: #0f172a;
  background: #ffffff;
  resize: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.eval-interview-active .ev-card-answer:focus {
  border-color: #172340;
  box-shadow: 0 0 0 3px rgba(23, 35, 64, 0.15);
}

body.eval-interview-active .ev-card-answer::placeholder {
  color: #94a3b8;
}

/* ─── 7. Message card (skipped / unavailable fallback) ──────────────────── */
body.eval-interview-active .ev-card--message {
  flex: 0 0 auto;
  align-self: stretch;
}

body.eval-interview-active .ev-card--message .ev-card-body {
  padding: 15px 4px;
  gap: 8px;
}

/* ─── 8. Nav row: ← arrow  •  pip dots  •  arrow → ──────────────────────── */
body.eval-interview-active .ev-card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Circular arrow buttons */
body.eval-interview-active .ev-card-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
              box-shadow 0.15s ease, transform 0.08s ease;
  background: #ffffff;
  color: #173240;
  flex-shrink: 0;
}

body.eval-interview-active .ev-card-nav-btn svg {
  display: block;
}

body.eval-interview-active .ev-card-nav-prev {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.eval-interview-active .ev-card-nav-prev:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

body.eval-interview-active .ev-card-nav-next {
  background: linear-gradient(135deg, #0f172a 0%, #172340 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 35, 64, 0.28);
}

body.eval-interview-active .ev-card-nav-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #0b1224 0%, #0f172a 100%);
  box-shadow: 0 6px 16px rgba(23, 35, 64, 0.4);
  transform: translateY(-1px);
}

body.eval-interview-active .ev-card-nav-btn:active:not(:disabled) {
  transform: scale(0.94);
}

body.eval-interview-active .ev-card-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Pip dots between arrows */
body.eval-interview-active .ev-card-pips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

body.eval-interview-active .ev-card-pip {
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #d6dce6;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

body.eval-interview-active .ev-card-pip:hover {
  background: #94a3b8;
}

body.eval-interview-active .ev-card-pip.is-answered {
  background: #172340;
}

body.eval-interview-active .ev-card-pip.is-active {
  width: 14px;
  height: 14px;
  background: #172340;
  box-shadow: 0 0 0 4px rgba(23, 35, 64, 0.15);
  cursor: default;
}

body.eval-interview-active .ev-card-pip.is-active.is-answered {
  background: #172340;
}



