/* OfferLab interview workspace */
:root {
  --interview-blue: #2563eb;
  --interview-blue-dark: #1d4ed8;
  --interview-blue-soft: #eff6ff;
  --interview-ink: #0f172a;
  --interview-muted: #64748b;
  --interview-border: #e2e8f0;
  --interview-bg: #f5f7fb;
  --interview-surface: #fff;
}

.hidden { display: none !important; }

.interview-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, .08), transparent 34rem),
    var(--interview-bg);
}

.interview-page button,
.interview-page input,
.interview-page textarea { font-family: inherit; }


.interview-main { flex: 1; }
.interview-container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 80px; }

.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 22px; }
.setup-main { display: flex; flex-direction: column; gap: 18px; }
.setup-card,
.session-brief-card,
.report-section,
.report-overview-card {
  background: var(--interview-surface); border: 1px solid var(--interview-border); border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .035);
}
.setup-card { padding: 26px; }
.setup-card-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.setup-step {
  flex: none; margin-top: 1px; padding: 3px 9px; border-radius: 14px; background: var(--interview-blue-soft);
  color: var(--interview-blue); font-size: 11px; font-weight: 850; letter-spacing: .7px;
}
.setup-card-heading h2 { margin: 0; color: var(--interview-ink); font-size: 18px; line-height: 1.35; }
.setup-card-heading p { margin: 4px 0 0; color: var(--interview-muted); font-size: 13px; line-height: 1.55; }
.form-grid.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-group { display: block; min-width: 0; border: 0; }
.field-label { display: block; margin-bottom: 7px; color: #334155; font-size: 13px; font-weight: 700; }
.field-label em { margin-left: 2px; color: #ef4444; font-style: normal; }
.field-label small { margin-left: 4px; color: #94a3b8; font-size: 11px; font-weight: 500; }
.interview-input,
.interview-textarea,
.answer-input-wrap textarea {
  width: 100%; border: 1.5px solid var(--interview-border); border-radius: 10px; outline: 0;
  background: #fff; color: var(--interview-ink); transition: border-color .16s, box-shadow .16s;
}
.interview-input { height: 44px; padding: 0 13px; font-size: 14px; }
.interview-textarea { padding: 12px 14px; resize: vertical; min-height: 128px; font-size: 14px; line-height: 1.65; }
.interview-input:focus,
.interview-textarea:focus,
.answer-input-wrap textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
.interview-input.invalid { border-color: #f87171; }
.jd-field { position: relative; margin-top: 17px; }
.jd-field .field-label { margin-bottom: 10px; }
.jd-field .jd-tabs { gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.jd-field .jd-tab { min-height: 36px; padding: 6px 18px; }
.jd-field .jd-panel { position: relative; }
.jd-field .jd-tab:disabled,
.jd-field .resume-dropzone:disabled { cursor: wait; opacity: .65; }
.character-count { position: absolute; right: 11px; bottom: 8px; color: #94a3b8; font-size: 10px; }
.field-error { display: none; margin-top: 6px; color: #dc2626; font-size: 12px; }
.field-error.show { display: block; }

.choice-grid { display: grid; gap: 10px; }
.resume-choice-grid { grid-template-columns: repeat(3, 1fr); }
.choice-card {
  position: relative; display: flex; min-height: 91px; padding: 14px 12px; align-items: flex-start; gap: 9px;
  border: 1.5px solid var(--interview-border); border-radius: 11px; cursor: pointer; transition: .16s ease; background: #fff;
}
.choice-card:hover { border-color: #93c5fd; background: #fafdff; }
.choice-card:has(input:checked) { border-color: var(--interview-blue); background: var(--interview-blue-soft); box-shadow: 0 0 0 2px rgba(37, 99, 235, .08); }
.choice-card.disabled { opacity: .55; cursor: not-allowed; background: #f8fafc; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-radio {
  flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid #cbd5e1; border-radius: 50%; background: #fff;
}
.choice-card:has(input:checked) .choice-radio { border: 5px solid var(--interview-blue); }
.choice-icon { flex: none; font-size: 16px; line-height: 20px; }
.choice-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.choice-copy strong { color: #1e293b; font-size: 12.5px; line-height: 1.35; }
.choice-copy small { overflow: hidden; color: #94a3b8; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; }

.resume-upload-panel { margin-top: 13px; }
.resume-dropzone {
  width: 100%; min-height: 100px; display: flex; padding: 17px; align-items: center; justify-content: center;
  flex-direction: column; border: 1.5px dashed #cbd5e1; border-radius: 11px; background: #f8fafc;
  color: var(--interview-muted); cursor: pointer; transition: .16s ease;
}
.resume-dropzone:hover,
.resume-dropzone.dragover { border-color: var(--interview-blue); background: var(--interview-blue-soft); }
.dropzone-icon { margin-bottom: 2px; font-size: 22px; }
.dropzone-main { color: #334155; font-size: 13px; font-weight: 650; }
.dropzone-sub { margin-top: 2px; color: #94a3b8; font-size: 11px; }
.selected-file {
  min-height: 55px; display: flex; padding: 10px 13px; align-items: center; gap: 10px;
  border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4;
}
.selected-file-icon { font-size: 18px; }
.selected-file-name { min-width: 0; flex: 1; overflow: hidden; color: #166534; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.selected-file button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #64748b; font-size: 20px; cursor: pointer; }
.selected-file button:hover { background: #dcfce7; color: #dc2626; }

.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-options label { cursor: pointer; }
.pill-options input { position: absolute; opacity: 0; }
.pill-options span {
  display: inline-flex; min-height: 36px; padding: 7px 14px; align-items: center; border: 1.5px solid var(--interview-border);
  border-radius: 9px; background: #fff; color: #475569; font-size: 12.5px; font-weight: 600; transition: .15s;
}
.pill-options label:hover span { border-color: #93c5fd; }
.pill-options input:checked + span { border-color: var(--interview-blue); background: var(--interview-blue-soft); color: #1d4ed8; }
.mode-fieldset { margin-top: 21px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.mode-card {
  position: relative; min-height: 134px; display: flex; padding: 15px; flex-direction: column;
  border: 1.5px solid var(--interview-border); border-radius: 12px; cursor: pointer; background: #fff; transition: .16s;
}
.mode-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.mode-card:has(input:checked) { border-color: var(--interview-blue); background: linear-gradient(145deg, #fff, #eff6ff); box-shadow: 0 0 0 2px rgba(37, 99, 235, .07); }
.mode-card input { position: absolute; opacity: 0; }
.mode-card-top { display: flex; align-items: center; justify-content: space-between; }
.mode-icon { font-size: 22px; }
.mode-check {
  width: 18px; height: 18px; display: none; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--interview-blue); color: #fff; font-size: 11px; font-weight: 900;
}
.mode-card:has(input:checked) .mode-check { display: inline-flex; }
.mode-card strong { margin-top: 10px; color: #1e293b; font-size: 14px; }
.mode-card small { margin-top: 4px; color: var(--interview-muted); font-size: 11px; line-height: 1.45; }

.media-check-panel {
  position: relative; margin-top: 14px; min-height: 62px; display: flex; padding: 11px 12px; align-items: center; gap: 12px;
  border: 1px solid #dbeafe; border-radius: 11px; background: #f8fbff;
}
.media-check-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.media-check-copy strong { color: #334155; font-size: 12.5px; }
.media-check-copy span { color: var(--interview-muted); font-size: 11px; }
.device-status { color: #15803d; font-size: 11px; font-weight: 700; white-space: nowrap; }
.device-status.error { color: #dc2626; }
.setup-video-preview { width: 96px; height: 62px; border-radius: 8px; background: #0f172a; object-fit: cover; transform: scaleX(-1); }
.media-consent { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; color: #64748b; font-size: 11px; line-height: 1.55; cursor: pointer; }
.media-consent input { flex: none; margin-top: 3px; accent-color: var(--interview-blue); }

.setup-aside { position: sticky; top: 86px; }
.session-brief-card { padding: 24px; overflow: hidden; position: relative; }
.session-brief-card::after {
  content: ''; position: absolute; width: 180px; height: 180px; top: -95px; right: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 67%); pointer-events: none;
}
.brief-eyebrow { color: var(--interview-blue); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.session-brief-card h2 { margin: 8px 0 19px; color: var(--interview-ink); font-size: 20px; line-height: 1.35; }
.session-facts { display: flex; flex-direction: column; gap: 12px; }
.session-facts > div { display: flex; align-items: center; gap: 11px; }
.fact-icon {
  flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #f1f5f9; color: var(--interview-blue); font-weight: 800;
}
.session-facts div > span:last-child { display: flex; flex-direction: column; }
.session-facts strong { color: #1e293b; font-size: 13px; line-height: 1.3; }
.session-facts small { margin-top: 2px; color: #94a3b8; font-size: 10.5px; }
.before-start-note { margin: 20px 0; padding: 14px; border-radius: 11px; background: #f8fafc; }
.before-start-note strong { color: #475569; font-size: 11px; }
.before-start-note ul { margin: 8px 0 0; padding-left: 16px; color: #64748b; font-size: 11px; line-height: 1.7; }
.primary-button,
.secondary-button,
.text-button { border: 0; cursor: pointer; transition: .16s ease; }
.primary-button {
  display: inline-flex; min-height: 44px; padding: 0 20px; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; background: linear-gradient(135deg, var(--interview-blue), var(--interview-blue-dark));
  color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 5px 15px rgba(37, 99, 235, .24);
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.primary-button:disabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.primary-button.compact { min-height: 39px; padding: 0 17px; font-size: 13px; }
.secondary-button {
  display: inline-flex; min-height: 39px; padding: 0 15px; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--interview-border); border-radius: 9px; background: #fff; color: #475569; font-size: 13px; font-weight: 650;
}
.secondary-button:hover { border-color: #bfdbfe; background: #f8fbff; color: var(--interview-blue); }
.secondary-button.compact { min-height: 34px; padding: 0 12px; font-size: 11.5px; }
.start-button { width: 100%; }
.start-login-hint { margin: 10px 4px 0; color: #94a3b8; font-size: 10.5px; line-height: 1.5; text-align: center; }

/* Interview room */
.room-view { min-height: calc(100vh - 64px); background: #f5f7fb; }
.room-topbar { position: sticky; top: 64px; z-index: 80; border-bottom: 1px solid var(--interview-border); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.room-topbar-inner { width: min(1220px, calc(100% - 48px)); height: 70px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(260px, 430px) 1fr; align-items: center; gap: 24px; }
.room-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, .11); }
.room-identity > div { min-width: 0; display: flex; flex-direction: column; }
.room-identity strong { overflow: hidden; color: #1e293b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.room-identity small { color: #94a3b8; font-size: 10px; }
.room-progress-meta { display: flex; margin-bottom: 5px; justify-content: space-between; color: #64748b; font-size: 10.5px; font-weight: 650; }
.room-progress { height: 5px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.room-progress > div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width .35s ease; }
.end-interview-button {
  justify-self: end; padding: 7px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fff;
  color: #dc2626; font-size: 11px; font-weight: 650; cursor: pointer;
}
.end-interview-button:hover { background: #fef2f2; }
.room-layout { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 56px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 22px; align-items: start; }
.interviewer-stage,
.answer-panel { border: 1px solid var(--interview-border); border-radius: 17px; background: #fff; box-shadow: 0 5px 22px rgba(15, 23, 42, .045); }
.interviewer-stage { min-height: 584px; padding: 28px; display: flex; flex-direction: column; }
.video-frame { position: relative; height: 280px; flex-shrink: 0; margin: -16px -16px 20px; overflow: hidden; border-radius: 12px; background: #0f172a; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.video-label { position: absolute; left: 10px; bottom: 10px; display: flex; padding: 4px 8px; align-items: center; gap: 6px; border-radius: 6px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 10px; }
.record-dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.video-off-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #cbd5e1; }
.video-off-message > span { font-size: 30px; }
.video-off-message strong { margin-top: 7px; color: #fff; font-size: 13px; }
.video-off-message small { margin-top: 3px; color: #94a3b8; font-size: 10px; }
.interviewer-presence { display: flex; align-items: center; gap: 12px; }
.interviewer-avatar {
  position: relative; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, #dbeafe, #eff6ff); color: #2563eb;
}
.interviewer-avatar svg { width: 39px; height: 39px; margin-top: 9px; }
.avatar-spark { position: absolute; z-index: 1; width: 3px; height: 11px; background: #60a5fa; transform: rotate(45deg); }
.avatar-spark-one { right: 10px; top: 8px; }
.avatar-spark-two { right: 5px; top: 15px; height: 6px; opacity: .55; }
.presence-copy { display: flex; flex-direction: column; }
.presence-copy strong { color: #1e293b; font-size: 13px; }
.presence-copy span { color: #94a3b8; font-size: 10.5px; }
.voice-bars { height: 22px; margin-left: auto; display: flex; align-items: center; gap: 3px; }
.voice-bars i { width: 3px; height: 7px; border-radius: 3px; background: #60a5fa; animation: voice-bar .72s ease-in-out infinite alternate; }
.voice-bars i:nth-child(2) { height: 15px; animation-delay: .12s; }
.voice-bars i:nth-child(3) { height: 21px; animation-delay: .24s; }
.voice-bars i:nth-child(4) { height: 13px; animation-delay: .36s; }
.voice-bars i:nth-child(5) { animation-delay: .48s; }
@keyframes voice-bar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.question-card { margin-top: 28px; padding: 25px; border: 1px solid #dbeafe; border-radius: 14px; background: linear-gradient(145deg, #f8fbff, #fff); }
.question-meta { display: flex; align-items: center; gap: 8px; }
.question-kind { padding: 3px 8px; border-radius: 6px; background: #dbeafe; color: #1d4ed8; font-size: 10px; font-weight: 800; }
.question-kind.followup { background: #f3e8ff; color: #7e22ce; }
.question-topic { color: #94a3b8; font-size: 10.5px; }
.question-card p { margin: 17px 0 20px; color: #172033; font-size: clamp(19px, 2.2vw, 25px); font-weight: 720; line-height: 1.55; letter-spacing: -.3px; }
.replay-question-button { display: inline-flex; padding: 6px 9px; align-items: center; gap: 5px; border: 0; border-radius: 7px; background: #eff6ff; color: #2563eb; font-size: 10.5px; font-weight: 650; cursor: pointer; }
.replay-question-button:hover { background: #dbeafe; }
.interview-tip { display: flex; margin-top: auto; padding: 15px 3px 0; align-items: flex-start; gap: 8px; color: #64748b; font-size: 11px; line-height: 1.6; }
.interview-tip > span:first-child { flex: none; }

.answer-panel { position: sticky; top: 104px; padding: 25px; }
.answer-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.answer-eyebrow { color: var(--interview-blue); font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.answer-panel-heading h2 { margin: 3px 0 0; color: #1e293b; font-size: 17px; }
.answer-timer { padding: 5px 8px; border-radius: 7px; background: #f1f5f9; color: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; }
.recording-control { margin-top: 18px; padding: 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--interview-border); border-radius: 11px; background: #f8fafc; }
.record-button { display: flex; min-height: 35px; padding: 0 13px; align-items: center; gap: 7px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .1); color: #334155; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.record-button:hover { color: var(--interview-blue); }
.record-button.recording { background: #fef2f2; color: #dc2626; box-shadow: 0 0 0 2px rgba(239, 68, 68, .1); }
.record-button-icon { color: #ef4444; font-size: 14px; }
.record-button.recording .record-button-icon { animation: record-pulse .8s ease infinite alternate; }
@keyframes record-pulse { from { opacity: .4; } to { opacity: 1; } }
.recording-state { display: flex; align-items: center; gap: 5px; color: #94a3b8; font-size: 10px; }
.recording-state-dot { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.recording-state.active { color: #dc2626; }
.recording-state.active .recording-state-dot { background: #ef4444; }
.recording-save-note { margin: 9px 1px 0; padding: 9px 11px; display: flex; align-items: flex-start; gap: 7px; border: 1px solid #bbf7d0; border-radius: 9px; background: #f0fdf4; color: #047857; font-size: 10.5px; line-height: 1.55; }
.recording-save-note > span:first-child { flex: none; font-weight: 900; }
.transcript-label { display: block; margin: 17px 0 7px; color: #475569; font-size: 11.5px; font-weight: 700; }
.answer-input-wrap { position: relative; }
.answer-input-wrap textarea { display: block; min-height: 244px; padding: 14px; resize: vertical; font-size: 14px; line-height: 1.65; }
.transcribing-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: rgba(255, 255, 255, .88); color: #475569; font-size: 12px; }
.mini-spinner { width: 17px; height: 17px; border: 2px solid #bfdbfe; border-top-color: #2563eb; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer-helper-row { display: flex; margin-top: 6px; justify-content: space-between; color: #94a3b8; font-size: 9.5px; }
.media-fallback { margin-top: 11px; padding: 9px 10px; display: flex; align-items: flex-start; gap: 7px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 10px; line-height: 1.5; }
.submit-answer-button { width: 100%; margin-top: 17px; }
.adaptive-note { display: flex; margin: 9px 0 0; align-items: center; justify-content: center; gap: 5px; color: #94a3b8; font-size: 9.5px; }

/* Report */
.report-view { background: #f5f7fb; min-height: calc(100vh - 64px); }
.report-container { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 82px; }
.report-header { margin-bottom: 22px; }
.back-link-button { display: inline-flex; padding: 5px 0; align-items: center; gap: 6px; border: 0; background: transparent; color: #64748b; font-size: 12px; cursor: pointer; }
.back-link-button:hover { color: var(--interview-blue); }
.report-title-row { display: flex; margin-top: 20px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.report-kicker { color: #16a34a; font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.report-title-row h1 { margin: 5px 0 3px; color: var(--interview-ink); font-size: 28px; line-height: 1.3; }
.report-title-row p { margin: 0; color: #64748b; font-size: 12px; }
.report-overview-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); padding: 31px; align-items: center; gap: 29px; }
.score-ring {
  --score-angle: 0deg; width: 142px; height: 142px; display: grid; margin: 0 auto; place-items: center; border-radius: 50%;
  background: conic-gradient(#2563eb var(--score-angle), #e2e8f0 0); position: relative;
}
.score-ring::before { content: ''; position: absolute; inset: 11px; border-radius: inherit; background: #fff; }
.score-ring > div { position: relative; z-index: 1; display: flex; align-items: baseline; }
.score-ring strong { color: #0f172a; font-size: 38px; line-height: 1; letter-spacing: -1px; }
.score-ring span { margin-left: 3px; color: #94a3b8; font-size: 10px; }
.summary-label { color: var(--interview-blue); font-size: 10px; font-weight: 800; letter-spacing: .75px; text-transform: uppercase; }
.report-summary h2 { margin: 6px 0 9px; color: #1e293b; font-size: 22px; line-height: 1.35; }
.report-summary p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.75; }
.report-summary .report-score-status { margin-top: 10px; color: #64748b; }
.report-retry-button { margin-top: 14px; }
.report-retry-button[hidden] { display: none !important; }
.report-summary .report-retry-error { margin-top: 10px; color: #b91c1c; }
.report-score-method { margin: -4px 0 18px; color: #64748b; font-size: 12px; line-height: 1.8; }
.report-section { margin-top: 17px; padding: 24px; }
.report-section-heading { display: flex; margin-bottom: 19px; align-items: center; justify-content: space-between; }
.report-section-heading > div { display: flex; align-items: center; gap: 11px; }
.section-icon { width: 33px; height: 33px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 15px; font-weight: 850; }
.section-icon.blue { background: #eff6ff; color: #2563eb; }
.section-icon.green { background: #ecfdf5; color: #059669; }
.section-icon.amber { background: #fff7ed; color: #ea580c; }
.section-icon.violet { background: #f5f3ff; color: #7c3aed; }
.report-section-heading h2 { margin: 0; color: #1e293b; font-size: 16px; }
.report-section-heading p { margin: 2px 0 0; color: #94a3b8; font-size: 10.5px; }
.dimension-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dimension-item { min-width: 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.dimension-item-top { display: flex; margin-bottom: 10px; gap: 12px; align-items: baseline; justify-content: space-between; color: #475569; }
.dimension-item-top h3 { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dimension-item-top strong { flex: none; color: #1e293b; font-size: 13px; }
.dimension-feedback { margin: 11px 0 0; color: #475569; font-size: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.dimension-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #eef2f7; }
.dimension-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.insight-card { min-height: 214px; }
.insight-list { display: flex; margin: 0; padding: 0; flex-direction: column; gap: 10px; list-style: none; }
.insight-list li { position: relative; padding-left: 18px; color: #475569; font-size: 12px; line-height: 1.65; }
.insight-list li::before { content: ''; position: absolute; top: 8px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.improvement-card .insight-list li::before { background: #f59e0b; }
.text-button { background: transparent; color: #2563eb; font-size: 11px; font-weight: 650; }
.question-review-list { display: flex; flex-direction: column; gap: 9px; }
.review-item { overflow: hidden; border: 1px solid var(--interview-border); border-radius: 11px; }
.review-toggle { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto 18px; padding: 13px 14px; align-items: center; gap: 9px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.review-toggle:hover { background: #f8fafc; }
.review-number { grid-column: 1; width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #eff6ff; color: #2563eb; font-size: 10px; font-weight: 800; }
.review-question { grid-column: 2; overflow: hidden; color: #334155; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.review-media-badge { grid-column: 3; padding: 3px 7px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 9.5px; font-weight: 750; white-space: nowrap; }
.review-score { grid-column: 4; color: #16a34a; font-size: 11px; font-weight: 800; }
.review-score.unscored { color: #64748b; }
.review-chevron { grid-column: 5; color: #94a3b8; transition: transform .18s; }
.review-item.open .review-chevron { transform: rotate(180deg); }
.review-content { display: none; padding: 0 16px 17px 53px; background: #fff; }
.review-item.open .review-content { display: block; }
.review-block { margin-top: 12px; }
.review-block strong { display: block; margin-bottom: 4px; color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: .45px; }
.review-block p { margin: 0; padding: 11px 12px; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; }
.review-block.feedback p { background: #eff6ff; color: #1e40af; }
.review-media-shell { display: flex; min-height: 48px; padding: 9px 11px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dbeafe; border-radius: 10px; background: #f8fbff; }
.review-media-detail { flex: none; color: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; }
.review-media-load { min-height: 40px; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #fff; color: #1d4ed8; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.review-media-load:hover { background: #eff6ff; }
.review-media-load:disabled { cursor: wait; opacity: .7; }
.review-media-player { width: 100%; display: block; }
audio.review-media-player { min-height: 44px; }
video.review-media-player { aspect-ratio: 16 / 9; border-radius: 9px; background: #0f172a; object-fit: contain; }

/* Modals and loading */
.interview-page .modal-overlay.hidden { display: none !important; }
.interview-page .modal-overlay { z-index: 300; }
.interview-modal-box { max-width: 430px; }
.confirm-modal-box { max-width: 390px; text-align: center; }
.confirm-icon { width: 46px; height: 46px; display: grid; margin: 0 auto 15px; place-items: center; border-radius: 14px; background: #eff6ff; color: #2563eb; font-size: 20px; font-weight: 900; }
.confirm-actions { display: flex; margin-top: 22px; justify-content: center; gap: 9px; }
.confirm-actions > button { min-width: 105px; }
.confirm-actions .danger { background: #dc2626; box-shadow: 0 4px 14px rgba(220, 38, 38, .2); }
.processing-overlay { position: fixed; inset: 0; z-index: 350; display: flex; align-items: center; justify-content: center; background: rgba(248, 250, 252, .92); backdrop-filter: blur(6px); }
.processing-card { width: min(390px, calc(100% - 40px)); padding: 38px 28px; border: 1px solid #dbeafe; border-radius: 18px; background: #fff; box-shadow: 0 22px 65px rgba(37, 99, 235, .13); text-align: center; }
.processing-orbit { position: relative; width: 58px; height: 58px; margin: 0 auto 20px; animation: orbit 1.8s linear infinite; }
.processing-orbit span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #2563eb; }
.processing-orbit span:nth-child(1) { left: 23px; top: 0; }
.processing-orbit span:nth-child(2) { right: 3px; bottom: 8px; opacity: .66; }
.processing-orbit span:nth-child(3) { left: 3px; bottom: 8px; opacity: .32; }
@keyframes orbit { to { transform: rotate(360deg); } }
.processing-card h2 { margin: 0; color: #1e293b; font-size: 19px; }
.processing-card p { margin: 8px 0 0; color: #64748b; font-size: 12px; }

@media (max-width: 980px) {
  .setup-layout { grid-template-columns: 1fr; }
  .setup-aside { position: static; }
  .session-brief-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .session-brief-card .brief-eyebrow,
  .session-brief-card h2 { grid-column: 1 / -1; }
  .before-start-note { margin: 0; }
  .start-button,
  .start-login-hint { grid-column: 1 / -1; }
  .start-button { margin-top: 20px; }
  .room-layout { grid-template-columns: 1fr; }
  .answer-panel { position: static; }
  .interviewer-stage { min-height: auto; }
  .interview-tip { margin-top: 24px; }
}

@media (max-width: 720px) {
  .interview-container,
  .room-topbar-inner,
  .room-layout,
  .report-container { width: min(100% - 28px, 100%); }
  .setup-card { padding: 21px 17px; }
  .form-grid.two-columns,
  .resume-choice-grid,
  .mode-grid,
  .dimension-grid,
  .insight-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 73px; }
  .mode-card { min-height: 112px; }
  .session-brief-card { display: block; }
  .before-start-note { margin: 19px 0; }
  .start-button { margin-top: 0; }
  .room-topbar-inner { height: 76px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .room-progress-wrap { grid-column: 1 / -1; grid-row: 2; margin-top: -11px; }
  .end-interview-button { grid-column: 2; grid-row: 1; }
  .room-layout { padding-top: 16px; }
  .interviewer-stage,
  .answer-panel { padding: 19px; border-radius: 14px; }
  .video-frame { height: 240px; margin: -8px -8px 17px; }
  .question-card { margin-top: 20px; padding: 19px; }
  .question-card p { font-size: 19px; }
  .answer-input-wrap textarea { min-height: 210px; }
  .report-title-row { align-items: flex-start; flex-direction: column; }
  .report-overview-card { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .report-summary p { text-align: left; }
  .review-toggle { grid-template-columns: 30px minmax(0, 1fr) 18px; }
  .review-score { display: none; }
  .review-content { padding-left: 16px; }
  .review-media-shell:not(.video) { align-items: stretch; flex-direction: column; }
  .review-media-load { min-height: 44px; }
  .media-check-panel { align-items: flex-start; flex-wrap: wrap; }
  .setup-video-preview { width: 100%; height: 180px; }
}

@media (max-width: 700px) {
  .room-topbar { top: 105px; }
}

@media (max-width: 390px) {
  .setup-card-heading { gap: 8px; }
  .setup-card { padding-inline: 14px; }
  .pill-options span { padding-inline: 10px; }
  .recording-control { align-items: flex-start; flex-direction: column; }
}

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