:root {
  color-scheme: light;
  --page-bg: #f4f6fb;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --sky-100: #e0f2fe;
  --emerald-500: #10b981;
  --rose-500: #f43f5e;
  --amber-400: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.96);
  --border-soft: rgba(148, 163, 184, 0.25);
  --border-strong: rgba(99, 102, 241, 0.35);
  --shadow-soft: 0 18px 50px -30px rgba(79, 70, 229, 0.45);
  --highlight-yellow: rgba(250, 204, 21, 0.45);
  --highlight-green: rgba(16, 185, 129, 0.35);
  --highlight-sky: rgba(56, 189, 248, 0.35);
  --highlight-rose: rgba(244, 63, 94, 0.25);
  --ai-gradient-start: #6366f1;
  --ai-gradient-mid: #0ea5e9;
  --ai-gradient-end: #10b981;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-900);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ai-interview-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.bg-white {
  background-color: #ffffff;
}

.interview-type-card,
.education-office-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.interview-type-card:hover,
.education-office-card:hover {
  border-color: rgba(17, 24, 39, 0.25);
  box-shadow: 0 16px 30px -18px rgba(15, 23, 42, 0.5);
  transform: translateY(-2px);
}

.interview-type-card[aria-checked='true'],
.education-office-card[aria-checked='true'] {
  border-color: #111827;
  box-shadow: inset 0 0 0 1px #111827, 0 18px 36px -22px rgba(15, 23, 42, 0.6);
}

.question-type-chip {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  padding: 0.4rem 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.question-type-chip[aria-checked='true'] {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.question-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.question-item:hover {
  border-color: rgba(17, 24, 39, 0.25);
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.5);
  transform: translateY(-2px);
}


.interview-progress-wrapper {
  width: 100%;
  padding: 0 clamp(20px, 6vw, 56px);
  padding-bottom: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0;
}

.interview-progress {
  width: 100%;
  height: 3px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0;
}

.interview-progress-fill {
  height: 100%;
  background: #111827;
  width: 25%;
  transition: width 0.25s ease;
}

body[data-progress-step='1'] .interview-progress-fill {
  width: 25%;
}

body[data-progress-step='2'] .interview-progress-fill {
  width: 50%;
}

body[data-progress-step='3'] .interview-progress-fill {
  width: 75%;
}

body[data-progress-step='4'] .interview-progress-fill {
  width: 100%;
}

body[data-progress-step='home'] .interview-progress-fill {
  width: 0%;
}


.interview-progress-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
}

.progress-step {
  flex: 1;
}

.progress-link {
  width: 100%;
  display: block;
  text-align: center;
  padding: 0.95rem 0.5rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(15, 23, 42, 0.35);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.progress-step.is-completed .progress-link {
  color: rgba(15, 23, 42, 0.65);
}

.progress-step.is-active .progress-link {
  color: #0f172a;
  border-color: #111827;
}

.progress-step.is-disabled .progress-link {
  color: rgba(15, 23, 42, 0.25);
  border-color: transparent;
  pointer-events: none;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

.cta-start-button {
  background-color: #4f46e5;
  color: #ffffff !important;
  box-shadow: 0 10px 30px -18px rgba(4, 7, 12, 0.9);
}

.cta-start-button:hover {
  background-color: #4338ca;
}

.preview-frame {
  position: relative;
  height: 380px;
}

.preview-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background-color: #fff;
}

.preview-track {
  display: flex;
  flex-direction: column;
}

.preview-slide {
  flex-shrink: 0;
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
}

.preview-indicators {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.preview-indicator {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.preview-indicator.is-active {
  color: #0f172a;
  font-weight: 700;
}

button {
  font-family: inherit;
}

.status-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: #22c55e;
  vertical-align: middle;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.65);
}

.page-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: min(100%, 1280px);
  margin: 0 auto;
}

.page-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.page-subtitle {
  margin-top: 0.35rem;
  color: var(--slate-500);
  font-size: 0.95rem;
  max-width: 40rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--indigo-700);
  font-size: 0.75rem;
  font-weight: 600;
}

.experience-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.15rem;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(238, 242, 255, 0.68);
  color: var(--indigo-600);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.flow-node__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  box-shadow: inset 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.flow-node__caption {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-500);
}

.flow-node.is-active {
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.18), rgba(129, 140, 248, 0.22));
  color: var(--indigo-800);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-soft);
}

.layout {
  flex: 1;
  max-width: min(100%, 1320px);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.stage-switcher {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.8);
}

.stage-switcher button {
  border: 0;
  background: transparent;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-500);
  transition: all 0.2s ease;
}

.stage-switcher button.is-active {
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.16), rgba(129, 140, 248, 0.22));
  color: var(--indigo-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.panel {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 60px -40px rgba(15, 23, 42, 0.45);
  padding: clamp(1.25rem, 1.5vw + 1rem, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.panel__subtitle {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.5;
  max-width: 48rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.stack.two-column {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-chip[data-tone='warning'] {
  background: rgba(245, 158, 11, 0.16);
  color: #c2410c;
}

.status-chip[data-tone='danger'] {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-700);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.token {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-700);
  font-size: 0.78rem;
  font-weight: 600;
}

.token[data-tone='neutral'] {
  background: rgba(148, 163, 184, 0.16);
  color: var(--slate-600);
}

.token[data-tone='target'] {
  background: rgba(74, 222, 128, 0.16);
  color: #047857;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.8));
  color: var(--indigo-700);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.control-button:hover,
.control-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 30px -18px rgba(79, 70, 229, 0.6);
}

.control-button.is-primary {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  color: #fff;
  border: 0;
  box-shadow: 0 20px 45px -28px rgba(99, 102, 241, 0.9);
}

.control-button.is-danger {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  border: 0;
  box-shadow: 0 20px 45px -28px rgba(239, 68, 68, 0.85);
}

.timer-board {
  display: grid;
  gap: 1.15rem;
}

.timer-display {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.timer-primary {
  font-size: clamp(2.5rem, 4vw + 1rem, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--indigo-700);
}

.timer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--slate-600);
}

.timer-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.timer-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  width: min(100%, var(--progress, 0%));
  background: linear-gradient(90deg, var(--indigo-500), var(--indigo-700));
  transition: width 0.3s ease;
}

.timer-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  margin-left: calc(var(--target-ratio, 1) * 100%);
  width: max(0%, calc(var(--overtime-ratio, 0) * 100%));
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.3), rgba(225, 29, 72, 0.55));
}

.timeline-chart {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.timeline-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}

.timeline-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
}

.timeline-bar span[data-segment='target'] {
  left: 0;
  width: min(100%, calc(var(--target-ratio, 1) * 100%));
  background: rgba(129, 140, 248, 0.4);
}

.timeline-bar span[data-segment='spoken'] {
  left: 0;
  width: calc(var(--spoken-ratio, 0) * 100%);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.6), rgba(79, 70, 229, 0.8));
}

.timeline-bar span[data-segment='silence'] {
  left: calc(var(--spoken-ratio, 0) * 100%);
  width: calc(var(--silence-ratio, 0) * 100%);
  background: rgba(148, 163, 184, 0.38);
}

.timeline-bar span[data-segment='overtime'] {
  left: calc(var(--target-ratio, 0) * 100%);
  width: calc(var(--overtime-ratio, 0) * 100%);
  background: rgba(248, 113, 113, 0.38);
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-card__label {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

.metric-card__value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--slate-700);
}

.metric-card[data-tone='success'] .metric-card__value {
  color: var(--emerald-500);
}

.metric-card[data-tone='danger'] .metric-card__value {
  color: var(--rose-500);
}

.metric-card__assist {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.transcript-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .transcript-wrapper {
    grid-template-columns: 1fr;
  }
}

.transcript-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.transcript-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.tab-switcher {
  display: inline-flex;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 999px;
  padding: 0.25rem;
}

.tab-switcher button {
  border: 0;
  background: transparent;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-500);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-switcher button.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(129, 140, 248, 0.25));
  color: var(--indigo-700);
}

.highlight-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.highlight-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.highlight-swatch:hover,
.highlight-swatch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -18px rgba(79, 70, 229, 0.6);
}

.highlight-swatch[data-color='yellow'] {
  background: var(--highlight-yellow);
}

.highlight-swatch[data-color='green'] {
  background: var(--highlight-green);
}

.highlight-swatch[data-color='sky'] {
  background: var(--highlight-sky);
}

.highlight-swatch[data-color='rose'] {
  background: var(--highlight-rose);
}

.highlighted {
  background: var(--highlight-yellow);
  border-radius: 6px;
  padding: 0 0.1rem;
}

.highlighted[data-color='green'] {
  background: var(--highlight-green);
}

.highlighted[data-color='sky'] {
  background: var(--highlight-sky);
}

.highlighted[data-color='rose'] {
  background: var(--highlight-rose);
}

.transcript-content {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.5rem;
  line-height: 1.65;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.transcript-content p {
  margin: 0 0 1rem;
}

.transcript-segment {
  display: grid;
  gap: 0.35rem;
}

.transcript-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.memo-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.55);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.memo-panel[data-visibility='hover'] {
  opacity: 0.25;
  transform: translateX(calc(100% - 64px));
}

.memo-panel[data-visibility='hover']:hover,
.memo-panel[data-visibility='hover']:focus-within {
  opacity: 1;
  transform: translateX(0);
}

.memo-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.memo-panel__header label {
  font-size: 0.85rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.memo-panel textarea {
  min-height: 220px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.memo-panel textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
  outline: none;
}

.memo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-700);
  font-size: 0.75rem;
  font-weight: 600;
}

.feedback-section {
  display: grid;
  gap: 1rem;
}

.feedback-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.feedback-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-700);
}

.feedback-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate-600);
  display: grid;
  gap: 0.45rem;
}

.feedback-card li {
  line-height: 1.55;
}

.history-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.history-item {
  background: rgba(238, 242, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.25rem;
  min-width: 200px;
}

.history-item__label {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 500;
}

.history-item__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--indigo-700);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.55);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-interview-shell .hidden {
  display: none !important;
}

.pending-shimmer {
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}

.pending-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: shimmer-move 1.5s infinite;
}

@keyframes shimmer-move {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.timeline-range {
  z-index: 5;
  background: transparent;
}

.timeline-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.timeline-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.timeline-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #eef2ff;
  margin-top: -6px;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 10;
}

.timeline-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #eef2ff;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 10;
}

.timeline-range:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

@media (max-width: 960px) {
  .layout {
    padding-inline: clamp(1rem, 3vw, 1.5rem);
  }

  .panel {
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .page-header__inner {
    align-items: flex-start;
  }

  .panel {
    padding: 1.1rem;
  }

  .timer-display {
    padding: 1.1rem;
  }

  .control-button {
    flex: 1 1 140px;
  }

.memo-panel[data-visibility='hover'] {
  transform: translateY(0);
  opacity: 1;
}
}

.persona-avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
  font-weight: 600;
  color: #fff;
  border-radius: inherit;
  background: linear-gradient(135deg, #6366f1, #4338ca);
}

#personaImage {
  display: block;
}

.persona-avatar--female {
  background: linear-gradient(135deg, #f0abfc, #6366f1);
}

.persona-avatar--male {
  background: linear-gradient(135deg, #818cf8, #1d4ed8);
}

.question-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  padding: 1.25rem;
  box-shadow: 0 16px 40px -28px rgba(79, 70, 229, 0.25);
}

.question-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: #6366f1;
}

.question-card__meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

.question-card__title {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.question-card__body {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1f2937;
  word-break: keep-all;
}

.question-card__body ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 540px) {
  .page-title {
    font-size: 1.65rem;
  }

  .experience-flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .timer-primary {
    font-size: 2.6rem;
  }

  .transcript-content {
    max-height: none;
  }
}
.animate-gradient-text {
  background-image: linear-gradient(120deg, var(--ai-gradient-start), var(--ai-gradient-mid), var(--ai-gradient-end));
  background-size: 200% auto;
  animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.headline-underline {
  display: inline-flex;
  align-items: flex-end;
  border-bottom: 2px solid #0f172a;
  padding: 0 0.5rem 0.2rem;
  width: auto;
  max-width: 100%;
  position: relative;
  justify-content: center;
}

.headline-rotating-text {
  display: inline-flex;
  min-width: 0;
  justify-content: center;
  opacity: 0;
  white-space: nowrap;
}

.headline-rotating-text.show {
  animation: rotatingReveal 0.5s ease forwards;
}

.animate-body-reveal {
  opacity: 0;
  animation: bodyReveal 0.9s ease forwards;
  animation-delay: 4s;
}

@keyframes headlineReveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bodyReveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotatingReveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.headline-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
