@import "./styles/voice.css?v=20260524-refactor";

:root {
  color-scheme: light;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --page: #f8fafc;
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-soft: #eef2ff;
  --accent: #f59e0b;
  --accent-soft: #fffbeb;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warn: #f97316;
  --warn-soft: #fff7ed;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --blue: #3b82f6;
  --blue-soft: #eff6ff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
}

.with-nav {
  padding-bottom: 80px;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Page & Section ===== */
.page {
  padding: 20px;
}

.section {
  margin-bottom: 20px;
}

/* ===== Cards ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-flat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-elevated {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== Hero Panel ===== */
.hero-panel {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-panel::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.brand-orb {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  align-self: center;
  margin-bottom: auto;
  margin-top: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 36px;
  font-weight: 800;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  border: 3px solid rgba(255,255,255,0.3);
}

.hero-eyebrow {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 12px;
  color: white;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-copy {
  margin: 0 0 20px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Learning Path / Steps ===== */
.step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step-item.completed:not(:last-child)::after {
  background: linear-gradient(90deg, var(--success), var(--success));
}

.step-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-item.active .step-dot {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.step-item.completed .step-dot {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Progress Card ===== */
.progress-card {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--violet-soft) 100%);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.progress-badge {
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.progress-line {
  height: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.progress-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Metric Cards ===== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

/* ===== Coach Grid ===== */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.coach-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
}

.coach-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.coach-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.coach-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.coach-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  font-size: 18px;
}

.coach-icon.blue {
  background: var(--blue-soft);
}

.coach-icon.violet {
  background: var(--violet-soft);
}

.coach-icon.green {
  background: var(--success-soft);
}

.coach-icon.orange {
  background: var(--accent-soft);
}

/* ===== Task Cards ===== */
.task-brief {
  padding: 20px;
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--primary-soft) 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
}

.task-list {
  display: grid;
  gap: 16px;
}

.task-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.task-card:hover {
  box-shadow: var(--shadow-lg);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.task-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.task-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.task-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.task-module-tag {
  padding: 6px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.task-actions {
  display: flex;
  gap: 10px;
}

/* ===== Buttons ===== */
.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
}

.primary-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.primary-btn:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.primary-btn.full {
  width: 100%;
}

.primary-btn.small {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 16px;
  font-size: 14px;
}

.secondary-btn {
  background: var(--primary-soft);
  color: var(--primary);
}

.ghost-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.guide-btn {
  padding: 8px 16px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-btn:hover {
  background: var(--primary-soft);
}

/* ===== Chips & Pills ===== */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.chip.light {
  background: #f3f4f6;
  color: var(--muted);
}

.chip.success {
  background: var(--success-soft);
  color: var(--success);
}

.chip.warning {
  background: var(--warn-soft);
  color: var(--warn);
}

/* ===== Lists ===== */
.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.list li {
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Candidate Card ===== */
.candidate-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.candidate-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ===== Introduction Blocks ===== */
.intro-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(135deg, var(--violet-soft) 0%, var(--primary-soft) 100%);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius);
}

.coach-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.intro-bubble {
  flex: 1;
}

.intro-block {
  padding: 18px;
  margin-bottom: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.intro-block p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.intro-block.highlight {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--violet-soft) 100%);
}

/* ===== Learning Module List ===== */
.learning-module-list {
  display: grid;
  gap: 12px;
}

.learning-module-list article {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.learning-module-list article:hover {
  border-color: var(--primary);
}

.learning-module-list strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.learning-module-list span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.learning-module-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ===== Chat Page ===== */
.chat-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  overflow: auto;
}

/* ===== Messages ===== */
.message {
  width: fit-content;
  max-width: 85%;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.6;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 6px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.message.candidate {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 4px;
}

.message.interviewer {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  border-bottom-right-radius: 4px;
}

/* ===== Composer ===== */
.composer {
  padding: 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.composer-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.voice-composer-actions {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

.hold-talk-btn {
  min-height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  touch-action: none;
  user-select: none;
  transition: all 0.2s ease;
}

.hold-talk-btn.listening {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 4px 14px rgba(239, 68, 68, 0.3);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 4px 14px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1), 0 4px 14px rgba(239, 68, 68, 0.3);
  }
}

.hold-talk-btn:disabled {
  color: #9ca3af;
  background: #f3f4f6;
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== Coach Tip ===== */
.coach-tip {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  color: #92400e;
}

.coach-tip.live {
  position: sticky;
  top: 12px;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.coach-tip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.coach-tip p {
  margin: 0;
  color: #a16207;
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Status ===== */
.status-strip {
  width: 100%;
  padding: 10px 14px;
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
}

.catalog-source {
  align-self: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #f3f4f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* ===== Voice ===== */
.replay-btn {
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.voice-notice,
.voice-hint {
  font-size: 12px;
  line-height: 1.5;
}

.voice-notice {
  position: absolute;
  top: 68px;
  left: 16px;
  right: 16px;
  z-index: 100;
  box-sizing: border-box;
  padding: 12px 14px;
  background: var(--warn-soft);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  color: #c2410c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.2s ease-out;
}

.voice-notice-text {
  flex: 1;
}

.voice-notice-close {
  background: transparent;
  border: none;
  color: #c2410c;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.voice-notice-close:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.voice-hint {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
}

/* ===== Form Fields ===== */
.field {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.segmented button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.segmented button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

/* ===== Report ===== */
.report-block {
  padding: 18px;
  margin-bottom: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.report-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.report-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.star-row {
  margin-top: 12px;
  color: #fbbf24;
  font-size: 20px;
  font-weight: 900;
}

.star-row span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.radar-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0 16px;
}

.radar-card span {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.12) var(--score), transparent var(--score)), #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.score-row {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.score-row span {
  font-size: 13px;
  font-weight: 600;
}

.bar {
  height: 10px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: var(--radius-full);
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ===== Checkpoints ===== */
.checkpoint-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.checkpoint-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f9fafb;
  transition: all 0.2s ease;
}

.checkpoint-list li strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checkpoint-list li.done {
  border-color: #a7f3d0;
  background: var(--success-soft);
}

.checkpoint-list li.done strong {
  color: var(--success);
}

/* ===== Tags ===== */
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #f3f4f6;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mini-tags span.done {
  color: var(--success);
  border-color: #a7f3d0;
  background: var(--success-soft);
}

/* ===== Lesson List ===== */
.lesson-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lesson-list article {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.lesson-list article:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.lesson-list strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lesson-list span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

/* ===== History ===== */
.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.history-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.history-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.history-item b {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

/* ===== Quotes ===== */
.quote-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quote {
  padding: 12px;
  border-left: 4px solid var(--primary);
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ===== Warning ===== */
.warning {
  border-color: #fed7aa;
  background: var(--warn-soft);
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 480px);
  min-height: 68px;
  transform: translateX(-50%) translateZ(0);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  contain: layout paint;
  will-change: transform;
}

.bottom-nav button {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  transition: all 0.2s ease;
}

.bottom-nav button.active {
  color: var(--primary);
}

.bottom-nav button::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.1;
}

/* ===== Eyebrow & Headline ===== */
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.headline {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ===== Report Grade Badge ===== */
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

/* ===== Diagnostic List ===== */
.diagnostic-list strong,
.diagnostic-list span {
  display: block;
}

.diagnostic-list strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.diagnostic-list span {
  color: var(--muted);
  font-size: 13px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

/* ===== Responsive ===== */
@media (min-width: 481px) {
  body {
    background: #e5e7eb;
  }

  .app-shell {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}

.splash-shell {
  background: #eef5ff;
}

.splash-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 48px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 22%),
    linear-gradient(160deg, #d9f2ff 0%, #d9dcff 46%, #6a78ff 100%);
}

.splash-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.65), rgba(255,255,255,0) 55%);
  pointer-events: none;
}

.splash-logo {
  position: relative;
  margin-top: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo img {
  display: block;
  filter: drop-shadow(0 8px 32px rgba(255,255,255,0.4));
}

.splash-copy {
  position: relative;
  text-align: center;
  color: white;
  margin: auto 0 32px;
}

.splash-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.splash-sub {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  opacity: .88;
  line-height: 1.6;
}

.splash-btn {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  font-size: 17px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.v6-shell {
  background: linear-gradient(180deg, #f2f0ff 0%, #eef8ff 42%, #ffffff 100%);
}

.v6-home {
  min-height: calc(100vh - 92px);
  padding: 28px 24px 24px;
}

.back-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: #333746;
  font-size: 36px;
  line-height: 1;
}

.coach-orb {
  width: 148px;
  height: 148px;
  margin: 72px auto 64px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(145deg, #8fb7ff, #5fe0f2 50%, #c9a4ff);
  box-shadow: 0 28px 80px rgba(116, 91, 255, .24);
}

.home-intro h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
}

.home-intro p {
  margin: 0;
  color: #3f4352;
  font-size: 17px;
  line-height: 1.8;
}

.assigned-plan {
  margin-top: 34px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 50px rgba(68, 72, 96, .12);
}

.assigned-plan h2 {
  margin: 0 0 18px;
  font-size: 23px;
}

.plan-progress-row,
.plan-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-progress-row .progress-line {
  flex: 1;
}

.plan-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid #d9d2ff;
}

.plan-footer {
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
  color: #7c8191;
  font-size: 16px;
}

.plan-footer button {
  min-width: 104px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #9b8cff;
  background: white;
  color: #6f5cff;
  font-weight: 700;
}

.v6-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 480px);
  transform: translateX(-50%) translateZ(0);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 20px 22px;
  background: rgba(255,255,255,.94);
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  box-shadow: 0 -10px 34px rgba(38, 44, 72, .09);
  backdrop-filter: blur(18px);
  contain: layout paint;
  will-change: transform;
}

.v6-bottom-nav button {
  background: transparent;
  color: #383b45;
  font-weight: 700;
}

.v6-bottom-nav button.active {
  color: #6f5cff;
}

.knowledge-page {
  padding: 22px 22px 104px;
}

.v6-page-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 24px;
}

.v6-page-header h1 {
  margin: 0;
  text-align: center;
  font-size: 24px;
}

.search-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.knowledge-hero {
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f91ff, #9b78ff);
  color: white;
}

.knowledge-hero h2,
.knowledge-list h2 {
  margin: 0 0 8px;
}

.knowledge-hero p {
  margin: 0;
  opacity: .9;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 32px;
}

.knowledge-category {
  min-height: 84px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  text-align: left;
  box-shadow: 0 10px 28px rgba(44, 52, 84, .08);
}

.knowledge-category strong,
.knowledge-category span {
  display: block;
}

.knowledge-category span {
  margin-top: 8px;
  color: #8a8f9d;
  font-size: 12px;
}

.knowledge-list {
  margin-top: 30px;
}

.horizontal-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 0 6px;
}

.knowledge-mini-card {
  min-width: 220px;
  padding: 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(44, 52, 84, .08);
}

.knowledge-mini-card h3,
.case-row h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.knowledge-mini-card p,
.case-row p {
  margin: 0;
  color: #8a8f9d;
}

.case-row {
  margin-top: 14px;
  padding: 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(44, 52, 84, .08);
}

.assigned-tasks-page,
.scenario-brief-page {
  padding: 26px 22px 104px;
}

.tasks-hero {
  padding-bottom: 24px;
}

.tasks-hero h1 {
  margin: 32px 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.tasks-hero p,
.scenario-subtitle {
  margin: 0;
  color: #696f80;
  font-size: 17px;
  line-height: 1.65;
}

.task-progress {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  color: #6f5cff;
}

.task-progress strong {
  color: #242733;
}

.task-progress button {
  justify-self: end;
  background: transparent;
  color: #7564ff;
  font-weight: 800;
}

.task-list-v6 {
  display: grid;
  gap: 18px;
}

.assigned-empty-card {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 36px rgba(44, 52, 84, .08);
}

.assigned-empty-card strong {
  display: block;
  margin-bottom: 8px;
  color: #242733;
  font-size: 20px;
}

.assigned-empty-card p {
  margin: 0;
  color: #696f80;
  font-size: 15px;
  line-height: 1.7;
}

.task-card-v6 {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 36px rgba(44, 52, 84, .08);
}

.task-card-v6 h2 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.35;
}

.task-meta-v6,
.task-actions-v6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-meta-v6 span:first-child {
  padding: 5px 10px;
  border-radius: 8px;
  background: #f1ddff;
  color: #a83dee;
  font-weight: 800;
}

.task-meta-v6 span:last-child {
  color: #777d8d;
}

.task-actions-v6 {
  margin-top: 28px;
}

.guide-status {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #777d8d;
  font-size: 13px;
  font-weight: 800;
}

.task-start {
  min-width: 112px;
  height: 44px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #5578ff, #985df4);
  font-weight: 800;
}

.coach-brief {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 28px;
}

.coach-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #7465ff;
  font-weight: 900;
}

.coach-brief p,
.brief-section,
.candidate-brief-card {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 32px rgba(44, 52, 84, .08);
}

.scenario-brief-page h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.brief-section,
.candidate-brief-card {
  margin-top: 16px;
}

.brief-section h2,
.candidate-brief-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.brief-section p,
.candidate-brief-card p {
  margin: 0;
  color: #4d5364;
  line-height: 1.75;
}

.candidate-brief-card span {
  color: #7564ff;
  font-weight: 800;
}

.brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ===== V6 Interview (Chat) Page ===== */
.v6-interview-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 56px 1fr auto;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f2ff 0%, #eef8ff 50%, #f8f9ff 100%);
}

.interview-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,220,240,.5);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.interview-end-btn {
  background: transparent;
  color: #5a5f72;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
}

.interview-candidate-name {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
}

.interview-task-btn {
  background: transparent;
  color: #7465ff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
}

.interview-log {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px 20px;
  overflow-y: auto;
}

/* Opening tips card — dashed border like reference screenshot */
.opening-tips-card {
  position: relative;
  padding: 18px;
  border: 2px dashed #c8c2ff;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

.tips-hint {
  margin: 0 0 12px;
  color: #8a8f9d;
  font-size: 13px;
}

.opening-tips-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #3f4352;
  font-size: 14px;
  line-height: 1.75;
}

.opening-tips-card li {
  margin-bottom: 6px;
}

.tips-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #ff4d7e;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

/* Interview messages */
.interview-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.interview-msg.interviewer {
  flex-direction: row-reverse;
}

.interview-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fb7ff, #b29dff);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.interview-bubble {
  max-width: 75%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.65;
}

.candidate-bubble {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(200,194,255,.4);
  border-bottom-left-radius: 4px;
  box-shadow: 0 6px 20px rgba(44,52,84,.07);
  color: #1a1a2e;
}

.interviewer-bubble {
  background: linear-gradient(135deg, #5578ff, #985df4);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 18px rgba(85,120,255,.28);
}

.bubble-replay {
  margin-top: 8px;
}

/* Candidate voice button (opening greeting) */
.candidate-voice-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(15,23,42,.09);
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 700;
  border-bottom-left-radius: 4px;
}

.voice-wave {
  color: #7465ff;
  letter-spacing: 2px;
  font-size: 16px;
}

/* Typing indicator */
.interview-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  width: fit-content;
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 6px 20px rgba(44,52,84,.07);
}

.interview-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b0a8ff;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.interview-typing span:nth-child(2) { animation-delay: .15s; }
.interview-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Interview composer */
.interview-composer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px 32px;
  background: rgba(255,255,255,.94);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 32px rgba(38,44,72,.09);
  backdrop-filter: blur(18px);
}

.interview-composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.recording-inline-panel {
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .14), 0 8px 22px rgba(15, 23, 42, .08);
  pointer-events: auto;
  position: relative;
  z-index: 60;
  overflow: hidden;
}

.recording-inline-core {
  height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 72px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.recording-inline-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.recording-inline-wave i {
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  animation: inlineRecordPulse .9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 45ms);
}

.recording-inline-wave i:nth-child(3n) { height: 18px; }
.recording-inline-wave i:nth-child(4n) { height: 14px; }

.recording-inline-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 13px;
  color: #991b1b;
}

.recording-inline-cancel,
.recording-inline-send {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  height: 48px;
  border-radius: 18px;
  border: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 900;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  position: relative;
  z-index: 120;
  cursor: pointer;
}

.recording-inline-cancel {
  justify-self: start;
  background: rgba(255,255,255,.9);
  color: #64748b;
}

.recording-inline-send {
  justify-self: end;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .26);
}

.recording-submitting-panel {
  flex: 1;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16), 0 8px 22px rgba(15, 23, 42, .08);
  pointer-events: none;
}

.recording-submitting-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, .12);
  animation: submitPulse .9s ease-in-out infinite;
}

.recording-submitting-text {
  font-size: 15px;
  font-weight: 800;
  color: #dc2626;
}

@keyframes submitPulse {
  0%, 100% { transform: scale(.75); opacity: .65; }
  50% { transform: scale(1); opacity: 1; }
}


.composer-mode-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f3f0ff;
  color: #7465ff;
  font-size: 22px;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.composer-mode-toggle-btn:active {
  transform: scale(0.95);
  background: #e6e0ff;
}

.composer-text-input {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 0 16px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-sizing: border-box;
}

.composer-text-input:focus {
  border-color: #7465ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(116, 101, 255, 0.12);
}

.composer-text-input:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.composer-send-btn {
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5578ff, #985df4);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 4px 12px rgba(85, 120, 255, 0.2);
  white-space: nowrap;
}

.composer-send-btn:active {
  transform: scale(0.95);
}

.composer-send-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.inspiration-btn, .task-btn {
  flex: 0 0 auto;
  padding: 0 14px;
  height: 52px;
  border-radius: 26px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.inspiration-btn:hover, .task-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.inspiration-btn.active, .task-btn.active {
  background: #eef2ff;
  color: #4f46e5;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.hold-talk-btn-v6 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5578ff, #985df4);
  color: white;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(85,120,255,.3);
  touch-action: none;
  user-select: none;
}

.hold-talk-btn-v6.listening {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 0 4px rgba(239,68,68,.2), 0 6px 20px rgba(239,68,68,.3);
  animation: pulse 1.5s infinite;
}

.hold-talk-btn-v6.is-recording-locked {
  opacity: .72;
  box-shadow: 0 6px 20px rgba(85,120,255,.18);
  animation: none;
}

.hold-talk-btn-v6:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
}

.mic-icon {
  font-size: 18px;
}

.inspiration-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff9e6, #fffbf0);
  border: 1px solid #fcd34d;
  color: #92400e;
}

.inspiration-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.inspiration-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #a16207;
}

.interview-notice {
  border-radius: 10px;
}

/* ===== V6 Decision Page ===== */
.decision-page {
  padding: 24px 20px 60px;
}

.decision-subtitle {
  margin: 0 0 22px;
  color: #696f80;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.decision-card {
  padding: 22px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 48px rgba(44,52,84,.1);
}

.decision-card .field {
  margin-bottom: 20px;
}

.decision-card label {
  font-size: 14px;
  font-weight: 700;
  color: #242733;
}

.full-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5578ff, #985df4);
  color: white;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(85,120,255,.28);
  margin-top: 8px;
}

/* ===== V6 Report Page ===== */
.report-page {
  padding: 22px 20px 110px;
}

.report-header {
  margin-bottom: 26px;
}

.report-grade-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5578ff 0%, #985df4 100%);
  color: white;
  box-shadow: 0 16px 48px rgba(85,120,255,.24);
  margin-bottom: 18px;
}

.grade-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}

.report-grade-info strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.report-grade-info .star-row {
  color: #ffd966;
  font-size: 18px;
  margin: 4px 0;
}

.report-grade-info span {
  font-size: 14px;
  opacity: .85;
}

.report-summary {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  color: #3f4352;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: 0 8px 24px rgba(44,52,84,.07);
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.report-metric-item {
  padding: 16px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  text-align: center;
  box-shadow: 0 8px 24px rgba(44,52,84,.07);
}

.report-metric-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #5578ff;
  margin-bottom: 4px;
}

.report-metric-item span {
  font-size: 12px;
  color: #8a8f9d;
}

.report-section {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 24px rgba(44,52,84,.07);
}

.report-section h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
}

.report-section p {
  margin: 0;
  color: #4d5364;
  font-size: 14px;
  line-height: 1.75;
}

.report-warn {
  border-left: 3px solid #f97316;
}

.question-assets-section {
  border-left: 3px solid #2563eb;
}

.talent-profile-review-section {
  border-left: 3px solid #0f766e;
}

.talent-profile-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.talent-profile-review-head strong {
  display: block;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.talent-profile-review-head span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.talent-profile-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.talent-profile-review-grid article,
.talent-profile-next {
  padding: 14px 16px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: #f0fdfa;
}

.talent-profile-review-grid span,
.talent-profile-signal-list span,
.talent-profile-next span {
  display: block;
  margin-bottom: 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.talent-profile-review-grid p,
.talent-profile-next p {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.55;
}

.talent-profile-signal-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.talent-profile-signal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.talent-profile-signal-list span {
  margin-bottom: 0;
  color: #6b7280;
}

.talent-profile-signal-list strong {
  color: #111827;
  font-size: 13px;
  text-align: right;
}

.question-asset-grid {
  display: grid;
  gap: 10px;
}

.question-asset-card {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.question-asset-card.best {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.question-asset-card.rewrite {
  border-color: #fed7aa;
  background: #fff7ed;
}

.question-asset-card.next {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.question-asset-label {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.question-asset-question {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.question-asset-original {
  margin-bottom: 8px !important;
  color: #6b7280 !important;
  font-size: 13px !important;
}

.question-asset-meta {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.question-asset-note {
  margin-top: 8px !important;
  color: #4b5563 !important;
  font-size: 13px !important;
}

.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.report-actions .secondary-btn {
  flex: 1;
}

.report-actions .task-start {
  flex: 1;
  height: 48px;
}

/* ===== Voice bubble inside messages ===== */
.inline-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(116, 101, 255, 0.12);
  color: #7465ff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.inline-voice-btn.interviewer-voice {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.voice-duration {
  font-size: 13px;
  opacity: .8;
}

.voice-label {
  font-size: 14px;
}

.bubble-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

/* ===== Redesigned Decision Page ===== */
.decision-summary-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.practice-complete-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 28px 20px 24px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 243, 255, 0.86));
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.13);
}

.practice-complete-card::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 68%);
  pointer-events: none;
}

.practice-medal {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #6d5dfc, #9b5cf6);
  color: #ffe88a;
  font-size: 40px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(109, 93, 252, 0.28);
}

.practice-complete-card h2 {
  position: relative;
  margin: 4px 0 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.practice-complete-card strong {
  position: relative;
  color: #111827;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
}

.practice-complete-card span {
  position: relative;
  color: #7c8190;
  font-size: 13px;
  font-weight: 700;
}

.decision-stat {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(44,52,84,.08);
  text-align: center;
}

.decision-stat strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #5578ff;
  margin-bottom: 4px;
}

.decision-stat span {
  font-size: 13px;
  color: #8a8f9d;
}

.decision-back-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid #c8c2ff;
  color: #7465ff;
  font-size: 16px;
  font-weight: 700;
}

.end-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
  animation: fadeInOverlay 0.2s ease-out;
}

.end-modal {
  position: relative;
  width: min(100%, 390px);
  padding: 24px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  animation: modalRise 0.24s cubic-bezier(.2, .9, .2, 1);
}

.end-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.end-modal.ready::before {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0) 58%);
}

.end-modal.insufficient::before {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0) 58%);
}

.end-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 22px;
  line-height: 1;
}

.end-modal-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 900;
}

.end-modal.ready .end-modal-kicker {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.end-modal.insufficient .end-modal-kicker {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.end-modal h2 {
  position: relative;
  margin: 14px 42px 10px 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.end-modal-message {
  position: relative;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.end-modal-suggestion {
  position: relative;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  background: rgba(245, 243, 255, 0.72);
}

.end-modal-suggestion span {
  display: block;
  margin-bottom: 6px;
  color: #6d5dfc;
  font-size: 12px;
  font-weight: 900;
}

.end-modal-suggestion p {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.58;
}

.end-modal-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  margin-top: 18px;
}

.end-secondary-btn,
.end-primary-btn {
  height: 48px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.end-secondary-btn {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
}

.end-primary-btn {
  border: 0;
  background: linear-gradient(135deg, #5578ff, #985df4);
  color: white;
  box-shadow: 0 14px 28px rgba(85, 120, 255, 0.24);
}

.end-modal.ready .end-primary-btn {
  background: linear-gradient(135deg, #10b981, #5b8cff);
}

.end-secondary-btn:active,
.end-primary-btn:active {
  transform: scale(0.97);
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== 微信风格语音条 ===== */
.wechat-voice-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(116,101,255,0.10);
  cursor: pointer;
  margin-bottom: 6px;
  min-width: 80px;
  max-width: 180px;
}

.wv-unread-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(255,255,255,.82), 0 4px 10px rgba(239,68,68,.35);
}

.wv-interviewer .wv-unread-dot {
  display: none;
}

/* 面试官侧（白色气泡内）反转方向 */
.wv-interviewer {
  flex-direction: row-reverse;
  background: rgba(255,255,255,0.18);
}

/* 喇叭图标：4根竖线模拟声波 */
.wv-icon {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.wv-icon span {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: #7465ff;
}
.wv-icon span:nth-child(1) { height: 6px; }
.wv-icon span:nth-child(2) { height: 10px; }
.wv-icon span:nth-child(3) { height: 14px; }
.wv-icon span:nth-child(4) { height: 10px; }

.wv-interviewer .wv-icon span {
  background: rgba(255,255,255,0.9);
}

/* 播放动画 */
.wv-playing span:nth-child(1) { animation: wvBounce 0.6s 0.0s infinite alternate; }
.wv-playing span:nth-child(2) { animation: wvBounce 0.6s 0.1s infinite alternate; }
.wv-playing span:nth-child(3) { animation: wvBounce 0.6s 0.2s infinite alternate; }
.wv-playing span:nth-child(4) { animation: wvBounce 0.6s 0.1s infinite alternate; }

@keyframes wvBounce {
  from { transform: scaleY(0.5); }
  to   { transform: scaleY(1.4); }
}

/* 波浪线（横向小竖条模拟微信波形） */
.wv-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.wv-waves i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: #b0a8ff;
}
.wv-waves i:nth-child(1) { height: 4px; }
.wv-waves i:nth-child(2) { height: 8px; }
.wv-waves i:nth-child(3) { height: 12px; }
.wv-waves i:nth-child(4) { height: 16px; }
.wv-waves i:nth-child(5) { height: 12px; }
.wv-waves i:nth-child(6) { height: 8px; }
.wv-waves i:nth-child(7) { height: 4px; }

.wv-interviewer .wv-waves i {
  background: rgba(255,255,255,0.55);
}

/* 秒数 */
.wv-duration {
  font-size: 12px;
  font-weight: 700;
  color: #7465ff;
  white-space: nowrap;
  flex-shrink: 0;
}

.wv-interviewer .wv-duration {
  color: rgba(255,255,255,0.85);
}

/* 隐藏旧样式 */
.candidate-voice-btn,
.inline-voice-btn { display: none; }

/* ===== 教练提示紧急标签 ===== */
.tip-urgent {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

/* ============ V8 报告页样式 ============ */
.v8-dim-card {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 10px;
}

.v8-dim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.v8-dim-header strong {
  font-size: 14px;
  color: #1a1a2e;
}

.v8-dim-score strong {
  font-size: 20px;
  font-weight: 800;
  color: #5578ff;
}

.v8-dim-score span {
  font-size: 12px;
  color: #6b7280;
  margin-left: 2px;
}

.v8-dim-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.v8-dim-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5578ff, #985df4);
  border-radius: 3px;
  transition: width .4s;
}

.v8-dim-details summary {
  cursor: pointer;
  font-size: 12px;
  color: #5578ff;
  font-weight: 600;
  padding: 6px 0;
  list-style: none;
}

.v8-dim-details summary::-webkit-details-marker {
  display: none;
}

.v8-dim-details summary::before {
  content: "▸ ";
}

.v8-dim-details[open] summary::before {
  content: "▾ ";
}

.v8-cp-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.v8-cp-list li {
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.v8-cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.v8-cp-head span {
  color: #4d5364;
}

.v8-cp-head strong {
  font-size: 14px;
  font-weight: 800;
}

.v8-cp-evidence {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid #e5e7eb;
}

.v8-cp-improve {
  font-size: 12px;
  color: #5578ff;
  line-height: 1.5;
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid #5578ff;
}

/* ============ 金牌示范 ============ */
.gold-demo-section {
  background: linear-gradient(135deg, #fff9e6 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}

.gold-demo-desc {
  color: #92400e !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
}

.gold-demo-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  list-style: none;
}

.gold-demo-details summary::-webkit-details-marker { display: none; }
.gold-demo-details summary::before { content: "▸ "; margin-right: 4px; }
.gold-demo-details[open] summary::before { content: "▾ "; }

.gold-demo-dialogue {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gold-turn {
  padding: 14px;
  background: white;
  border-radius: 10px;
  border-left: 3px solid #f59e0b;
}

.gold-turn-num {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gold-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
}

.gold-msg-interviewer {
  background: linear-gradient(135deg, rgba(85, 120, 255, 0.08), rgba(152, 93, 244, 0.08));
  border-left: 2px solid #5578ff;
}

.gold-msg-candidate {
  background: #f9fafb;
  border-left: 2px solid #9ca3af;
}

.gold-msg-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.gold-msg-text {
  font-size: 14px;
  line-height: 1.65;
  color: #1a1a2e;
}

.gold-msg-why {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 12px;
  color: #5578ff;
  line-height: 1.5;
}

.gold-msg-signal {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

.gold-framework-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(85, 120, 255, 0.12);
  color: #5578ff;
  font-size: 11px;
  font-weight: 600;
}

.gold-takeaways {
  margin-top: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.gold-takeaways h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.gold-takeaways ul {
  margin: 0;
  padding-left: 20px;
  color: #4d5364;
  font-size: 13px;
  line-height: 1.7;
}

/* 兜底卡片样式 */
.gold-ref-card {
  padding: 12px 14px;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid #f59e0b;
}

.gold-ref-q {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.gold-ref-why {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}


/* ===== Voice Bubble (微信风格语音气泡) ===== */
.voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 65%;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: messageSlide 0.3s ease;
}

.voice-bubble:active {
  transform: scale(0.97);
}

.voice-bubble--candidate {
  align-self: flex-start;
  background: #95ec69;
  border-bottom-left-radius: 4px;
}

.voice-bubble--interviewer {
  align-self: flex-end;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-bottom-right-radius: 4px;
}

/* 声波动画图标 */
.voice-bubble__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.voice-bubble__wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #333;
  transition: height 0.15s ease;
}

.voice-bubble--candidate .voice-bubble__wave span {
  background: #333;
}

.voice-bubble--interviewer .voice-bubble__wave span {
  background: var(--primary);
}

.voice-bubble__wave span:nth-child(1) { height: 8px; }
.voice-bubble__wave span:nth-child(2) { height: 14px; }
.voice-bubble__wave span:nth-child(3) { height: 10px; }

/* 播放中声波动画 */
.voice-bubble--playing .voice-bubble__wave span {
  animation: waveAnim 1.2s ease-in-out infinite;
}

.voice-bubble--playing .voice-bubble__wave span:nth-child(1) {
  animation-delay: 0s;
}
.voice-bubble--playing .voice-bubble__wave span:nth-child(2) {
  animation-delay: 0.2s;
}
.voice-bubble--playing .voice-bubble__wave span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waveAnim {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 18px; opacity: 1; }
}

/* 时长显示 */
.voice-bubble__duration {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.voice-bubble--interviewer .voice-bubble__duration {
  color: var(--ink);
}

/* 被打断标记 */
.voice-bubble--interrupted {
  opacity: 0.7;
}

.voice-bubble--interrupted::after {
  content: '⏸';
  margin-left: 4px;
  font-size: 12px;
}

/* 语音气泡下方文字 */
.voice-bubble__text {
  margin-top: 6px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-bubble__text--collapsed {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
}

/* 语音消息容器（包含气泡+文字） */
.voice-message {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  animation: messageSlide 0.3s ease;
}

.voice-message--candidate {
  align-self: flex-start;
  align-items: flex-start;
}

.voice-message--interviewer {
  align-self: flex-end;
  align-items: flex-end;
}

/* ===== Push-to-Talk 录音状态 ===== */
.ptt-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.ptt-timer {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.ptt-partial-text {
  max-width: 80%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  min-height: 48px;
}

.ptt-cancel-hint {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.ptt-cancel-hint--active {
  color: #ef4444;
  font-weight: 700;
}

/* ===== 降级提示 ===== */
.fallback-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  animation: fadeIn 0.3s ease;
  pointer-events: none;
}

/* ===== 逐轮评估标签 ===== */
.turn-eval-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.turn-eval-tag--good {
  background: var(--success-soft);
  color: var(--success);
}

.turn-eval-tag--ok {
  background: var(--accent-soft);
  color: #b45309;
}

.turn-eval-tag--weak {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ===== Apple Fluid polish pass ===== */
:root {
  --fluid-ease: cubic-bezier(.2, .8, .2, 1);
  --fluid-shadow: 0 18px 52px rgba(31, 41, 71, .12);
  --fluid-shadow-soft: 0 10px 28px rgba(31, 41, 71, .08);
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .58);
}

button {
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition:
    transform .18s var(--fluid-ease),
    box-shadow .22s var(--fluid-ease),
    background-color .22s var(--fluid-ease),
    opacity .2s ease,
    filter .2s ease;
}

button:active:not(:disabled) {
  transform: scale(.965) translateZ(0);
  filter: saturate(1.04);
}

.app-shell.screen-entering > *:not(.bottom-nav):not(.v6-bottom-nav) {
  animation: fluidPageIn .38s var(--fluid-ease) both;
}

.app-shell.screen-entering > *:not(.bottom-nav):not(.v6-bottom-nav):nth-child(2) {
  animation-delay: .035s;
}

@keyframes fluidPageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.992);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.v6-shell,
.v6-home,
.assigned-tasks-page,
.scenario-brief-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,248,255,.84) 42%, rgba(248,250,252,.96)),
    var(--page);
}

.back-icon,
.search-icon {
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 8px 22px rgba(31,41,71,.07);
  backdrop-filter: blur(16px);
}

.assigned-plan,
.task-card-v6,
.coach-brief p,
.brief-section,
.candidate-brief-card {
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.72);
  box-shadow: var(--fluid-shadow-soft);
  backdrop-filter: blur(18px);
}

.task-card-v6,
.assigned-plan,
.brief-section,
.candidate-brief-card {
  border-radius: 20px;
}

.task-start,
.primary-btn,
.splash-btn,
.plan-footer button {
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(80, 118, 255, .22);
}

.v6-bottom-nav {
  padding: 10px 18px max(18px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,.72);
  border-bottom: 0;
  background: rgba(255,255,255,.70);
  box-shadow: 0 -18px 48px rgba(31,41,71,.12);
  backdrop-filter: blur(26px) saturate(1.18);
}

.v6-bottom-nav button {
  min-height: 48px;
  border-radius: 16px;
}

.v6-bottom-nav button.active {
  background: rgba(111, 92, 255, .10);
}

.v6-interview-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(180deg, #f7f8ff 0%, #eef6ff 48%, #f8fbff 100%);
}

.interview-topbar {
  height: 62px;
  padding: 0 18px;
  background: rgba(255,255,255,.68);
  border-bottom: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 10px 34px rgba(31,41,71,.06);
  backdrop-filter: blur(24px) saturate(1.16);
}

.interview-end-btn,
.interview-task-btn {
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
}

.interview-candidate-name {
  font-size: 18px;
}

.interview-log {
  gap: 20px;
  padding: 22px 18px 20px;
}

.opening-tips-card {
  border: 1px solid rgba(139,124,246,.20);
  border-radius: 24px;
  background: rgba(255,255,255,.60);
  box-shadow: 0 14px 38px rgba(94, 99, 135, .09);
  backdrop-filter: blur(18px);
}

.tips-label,
.tip-urgent {
  box-shadow: 0 8px 20px rgba(255,77,126,.22);
}

.app-shell.screen-entering .interview-msg {
  animation: messageIn .26s var(--fluid-ease) both;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.interview-avatar {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 8px 20px rgba(83,103,180,.18);
}

.interview-bubble {
  border-radius: 24px;
}

.candidate-bubble {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 14px 38px rgba(44,52,84,.09);
  backdrop-filter: blur(18px);
}

.interviewer-bubble {
  background: linear-gradient(135deg, #4f7dff, #8b5cf6);
  box-shadow: 0 16px 38px rgba(79,125,255,.26);
}

.bubble-text {
  margin: 8px 0 0;
}

.bubble-text.is-streaming-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -2px;
  animation: streamCaret .72s steps(2, start) infinite;
}

@keyframes streamCaret {
  50% { opacity: .18; }
}

.interview-typing {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--fluid-shadow-soft);
  backdrop-filter: blur(18px);
}

.interview-composer.recording-composer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px 18px max(26px, calc(env(safe-area-inset-bottom) + 18px));
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.74);
  border-bottom: 0;
  box-shadow: 0 -18px 50px rgba(31,41,71,.13);
  backdrop-filter: blur(28px) saturate(1.18);
  position: relative;
  z-index: 50;
  pointer-events: auto;
  overflow: visible;
}

.interview-composer.recording-composer .interview-composer-row {
  display: block;
  overflow: visible;
}

.inspiration-btn {
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 24px rgba(31,41,71,.08);
}

.inspiration-btn.active {
  background: rgba(236,232,255,.86);
  box-shadow: 0 0 0 4px rgba(139,124,246,.10), 0 10px 24px rgba(31,41,71,.08);
}

.hold-talk-btn-v6 {
  height: 56px;
  box-shadow: 0 14px 34px rgba(79,125,255,.28);
}

.hold-talk-btn-v6.listening {
  box-shadow: 0 0 0 8px rgba(239,68,68,.10), 0 14px 34px rgba(239,68,68,.22);
}

.inspiration-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.70);
  box-shadow: var(--fluid-shadow-soft);
  backdrop-filter: blur(20px);
  animation: panelLift .24s var(--fluid-ease) both;
}

.inspiration-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #242733;
  font-size: 14px;
}

.inspiration-panel p {
  margin: 0;
  color: #4d5364;
  font-size: 14px;
  line-height: 1.65;
}

@keyframes panelLift {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ==========================================================================
   Manually Triggered Coach Tip & Inspiration & Task Panel Styles
   ========================================================================== */

/* 实时点评按钮 */
.bubble-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  padding-top: 6px;
}

.interviewer-bubble .bubble-actions {
  border-top: 1px dashed rgba(255,255,255,0.25);
}

.btn-coach-tip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-coach-tip:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.btn-coach-tip.loading {
  background: rgba(255,255,255,0.1);
  cursor: default;
  color: rgba(255, 255, 255, 0.7);
}

/* Loading Dots */
.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.loading-dots span {
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: loadingDots 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* 教练点评卡片 */
.coach-tip-card {
  align-self: flex-end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0 16px auto;
  max-width: 85%;
  box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}

.coach-tip-card.coach-tip-error {
  background: #fff7ed;
  border-color: #fed7aa;
}

.coach-tip-card.coach-tip-error .coach-tip-header strong,
.coach-tip-card.coach-tip-error .coach-tip-icon {
  color: #c2410c;
}

.coach-tip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.coach-tip-header strong {
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}

.coach-tip-icon {
  font-size: 16px;
}

.coach-advice {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px 0;
  text-align: left;
}

.coach-rewrite {
  background: #f1f5f9;
  border-left: 3px solid #6366f1;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: left;
}

.rewrite-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 2px;
}

.rewrite-text {
  color: #1e293b;
  font-size: 13px;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

/* 灵感提示面板 */
.inspiration-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspiration-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  text-align: left;
}

.inspiration-header strong {
  color: #4f46e5;
  font-size: 14px;
  font-weight: 700;
}

.inspiration-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.inspiration-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspiration-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inspiration-item:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.inspiration-item:hover .inspiration-num {
  background: #4f46e5;
  color: white;
}

.inspiration-num {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.inspiration-text {
  flex: 1;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* 任务面板 Drawer */
.task-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: fadeInOverlay 0.2s ease-out;
}

.task-panel {
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 25px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.task-panel-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.task-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.task-panel-close:hover {
  color: #475569;
}

.task-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 10px 0;
  border-left: 3px solid #4f46e5;
  padding-left: 8px;
  text-align: left;
}

.candidate-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

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

.candidate-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.candidate-header h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.candidate-style {
  font-size: 11px;
  color: #64748b;
  display: block;
}

.candidate-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.mission-card {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  color: #4c1d95;
  line-height: 1.5;
  text-align: left;
}

.mission-card p {
  margin: 0 0 8px 0;
}
.mission-card p:last-child {
  margin: 0;
}

.checkpoint-weight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkpoint-weight-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
}

.cp-label {
  color: #334155;
  font-weight: 500;
}

.cp-weight {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

.realtime-coach {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.16);
  backdrop-filter: blur(18px);
  animation: fadeIn 0.28s ease-out;
}

.realtime-coach.urgent {
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.16);
}

.realtime-coach-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.12);
}

.realtime-coach strong {
  display: block;
  color: #312e81;
  font-size: 13px;
  margin-bottom: 4px;
}

.realtime-coach p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.turn-feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.turn-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.turn-chip.good {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.turn-chip.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.turn-chip.risk {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.conversation-replay-list {
  display: grid;
  gap: 12px;
}

.replay-turn {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.replay-turn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.replay-line {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  margin: 8px 0;
}

.replay-line span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.replay-line p {
  margin: 0;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.55;
}

.replay-coach,
.replay-signal {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.08);
  color: #4c1d95;
  font-size: 12px;
  line-height: 1.45;
}

.replay-signal {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.growth-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 46px 18px;
  color: #64748b;
  text-align: center;
}

.growth-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  font-size: 28px;
  font-weight: 900;
}

.growth-empty h2,
.growth-hero-card h2 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.growth-empty p {
  max-width: 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.growth-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.86));
  box-shadow: 0 22px 54px rgba(79, 70, 229, 0.12);
}

.growth-hero-card span,
.growth-advice-card span,
.growth-pill-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.growth-hero-card h2 {
  margin-top: 6px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.growth-hero-card small {
  margin-left: 3px;
  color: #64748b;
  font-size: 16px;
}

.growth-hero-card p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.growth-trend {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(100, 116, 139, 0.08);
  color: #64748b;
}

.growth-trend.up {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.growth-trend.down {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.growth-trend strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.growth-trend em {
  margin-top: -12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.growth-metrics,
.growth-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

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

.growth-metrics div,
.growth-section,
.growth-advice-card,
.growth-next-card,
.growth-pill-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.growth-metrics div {
  padding: 14px 10px;
  text-align: center;
}

.growth-metrics strong {
  display: block;
  color: #4f46e5;
  font-size: 24px;
  font-weight: 900;
}

.growth-metrics span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.growth-advice-card {
  margin-bottom: 14px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(245, 243, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.growth-advice-card span {
  color: #6d5dfc;
}

.growth-advice-card p {
  margin: 8px 0 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.65;
}

.growth-advice-card.warn {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(255, 251, 235, 0.9);
}

.growth-coach-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.9));
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
}

.growth-coach-card > span {
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.growth-coach-card h3 {
  margin: 0;
  color: #064e3b;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.growth-coach-card p {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}

.growth-coach-reasons {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.growth-sample-questions {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.growth-sample-questions b {
  color: #047857;
  font-size: 12px;
}

.growth-sample-questions ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
}

.growth-next-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 255, 0.86)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.12);
}

.growth-next-card > span,
.growth-next-target b,
.growth-next-question b,
.growth-next-scope b {
  color: #6d5dfc;
  font-size: 12px;
  font-weight: 900;
}

.growth-next-card h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
}

.growth-next-card p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}

.growth-next-target,
.growth-next-question,
.growth-next-scope {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
}

.growth-next-target span,
.growth-next-question span,
.growth-next-scope span {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.55;
}

.growth-alt-list {
  display: grid;
  gap: 8px;
}

.growth-alt-script,
.growth-script-effect {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  color: inherit;
  text-align: left;
}

.growth-alt-script {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.growth-alt-script strong {
  color: #1f2937;
  font-size: 13px;
}

.growth-alt-script span {
  color: #64748b;
  font-size: 12px;
}

.growth-section {
  margin-bottom: 14px;
  padding: 16px;
}

.growth-section h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.growth-dimension-row {
  display: grid;
  grid-template-columns: 82px 1fr 34px;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
}

.growth-dimension-row span,
.growth-history-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.growth-dimension-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.growth-dimension-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5578ff, #985df4);
}

.growth-dimension-row b {
  color: #334155;
  font-size: 13px;
  text-align: right;
}

.growth-pill-card {
  padding: 14px;
}

.growth-pill-card.weak {
  background: rgba(254, 242, 242, 0.86);
  border-color: rgba(239, 68, 68, 0.12);
}

.growth-pill-card.strong {
  background: rgba(236, 253, 245, 0.86);
  border-color: rgba(16, 185, 129, 0.12);
}

.growth-pill-card strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.growth-issue-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.growth-issue-list li {
  padding: 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}

.growth-issue-list strong,
.growth-history-item strong {
  display: block;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}

.growth-issue-list span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.growth-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.growth-history-item:last-child {
  border-bottom: 0;
}

.growth-history-item b {
  color: #4f46e5;
  font-size: 15px;
}

.growth-muted {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.growth-script-effect-list {
  display: grid;
  gap: 9px;
}

.growth-script-effect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.growth-script-effect strong,
.growth-script-effect b {
  display: block;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}

.growth-script-effect span,
.growth-script-effect em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.growth-script-effect > div:last-child {
  min-width: 42px;
  text-align: right;
}

.growth-script-effect b {
  color: #4f46e5;
  font-size: 16px;
}

.growth-record-notice {
  margin: -10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.88);
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== P3: V8 real-job value visibility ===== */
.v8-brief-lab {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  color: #101827;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 178, 89, .28), transparent 32%),
    linear-gradient(135deg, rgba(13, 18, 32, .96), rgba(32, 38, 62, .94));
  box-shadow: 0 24px 60px rgba(18, 24, 42, .22);
}

.v8-brief-lab-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  color: white;
}

.v8-brief-lab-head span {
  color: #f4bf75;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.v8-brief-lab-head strong {
  font-size: 18px;
}

.v8-competency-grid {
  display: grid;
  gap: 12px;
}

.v8-competency-card {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.v8-competency-title span {
  display: block;
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.v8-competency-title small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

.v8-level-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.v8-level-stack div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
}

.v8-level-stack b {
  color: #ffd18b;
  font-size: 12px;
}

.v8-level-stack p,
.v8-probe-list p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
}

.v8-probe-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.18);
}

.v8-probe-list strong {
  color: white;
  font-size: 13px;
}

.v8-goal-preview {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246, 248, 255, .94));
  border: 1px solid rgba(102, 119, 255, .14);
}

.v8-goal-list {
  display: grid;
  gap: 10px;
}

.v8-goal-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 22px rgba(44, 52, 84, .06);
}

.v8-goal-list article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: #242a3d;
  font-size: 12px;
  font-weight: 900;
}

.v8-goal-list strong {
  display: block;
  color: #242733;
  font-size: 14px;
}

.v8-goal-list p {
  margin: 5px 0 0;
  color: #697083;
  font-size: 12px;
  line-height: 1.5;
}

.level-evidence-matrix {
  margin: 12px 0;
  padding: 13px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
}

.level-evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.level-evidence-head span {
  color: #7b8497;
  font-size: 12px;
  font-weight: 800;
}

.level-evidence-head strong {
  color: #283044;
  font-size: 13px;
}

.level-evidence-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.level-evidence-cols div {
  padding: 10px;
  border-radius: 12px;
  background: white;
  border: 1px solid transparent;
}

.level-evidence-cols div.active {
  border-color: #7564ff;
  background: linear-gradient(180deg, #ffffff, #f2f0ff);
  box-shadow: 0 10px 24px rgba(117, 100, 255, .16);
}

.level-evidence-cols b {
  color: #7564ff;
  font-size: 12px;
}

.level-evidence-cols p {
  margin: 5px 0 0;
  color: #5f6678;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .v8-level-stack,
  .level-evidence-cols {
    grid-template-columns: 1fr;
  }

  .v8-brief-lab-head,
  .level-evidence-head {
    display: block;
  }

  .v8-brief-lab-head strong,
  .level-evidence-head strong {
    display: block;
    margin-top: 4px;
  }
}

/* ===== P5: Teaching Guide / 金牌面试官复盘 ===== */
.teaching-guide-section {
  border: 1px solid rgba(245, 158, 11, .18);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, .12), transparent 34%),
    linear-gradient(180deg, #fffdf7, #ffffff);
}

.teaching-subsection {
  margin-top: 18px;
}

.teaching-subsection h3 {
  margin: 0 0 10px;
  color: #292524;
  font-size: 15px;
}

.teach-path-list {
  display: grid;
  gap: 12px;
}

.teach-path-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f4e8d0;
  box-shadow: 0 10px 24px rgba(120, 80, 20, .06);
}

.teach-path-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #92400e;
  font-weight: 900;
  font-size: 12px;
}

.teach-path-body strong {
  display: block;
  color: #292524;
  font-size: 15px;
}

.teach-path-body p {
  margin: 5px 0 8px;
  color: #78716c;
  font-size: 13px;
}

.teach-path-q,
.teach-path-good,
.teach-path-weak,
.teach-path-follow {
  margin-top: 7px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.teach-path-q { background: #eef2ff; color: #3730a3; }
.teach-path-good { background: #ecfdf5; color: #047857; }
.teach-path-weak { background: #fff7ed; color: #c2410c; }
.teach-path-follow { background: #fefce8; color: #854d0e; }

.teach-evidence-grid {
  display: grid;
  gap: 10px;
}

.teach-evidence-box {
  padding: 13px;
  border-radius: 15px;
  border: 1px solid #eee;
}

.teach-evidence-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.teach-evidence-box p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.teach-evidence-box.strong { background: #f0fdf4; border-color: #bbf7d0; }
.teach-evidence-box.medium { background: #fffbeb; border-color: #fde68a; }
.teach-evidence-box.weak { background: #fff1f2; border-color: #fecdd3; }

.teach-score-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.teach-score-list li {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.teach-score-list strong {
  color: #4f46e5;
}

.teach-score-list p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
}

.teach-score-list span {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
}

/* AIMSG voice polish: candidate audio placeholder + top-right task entry */
.candidate-audio-placeholder {
  width: min(190px, 100%);
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1f5ff, #eef7ff);
  color: #667085;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(111, 124, 255, .12);
}
.placeholder-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.placeholder-wave i {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: #8b9bff;
  animation: voicePlaceholderPulse .9s ease-in-out infinite;
}
.placeholder-wave i:nth-child(2) { height: 18px; animation-delay: .12s; }
.placeholder-wave i:nth-child(3) { height: 10px; animation-delay: .24s; }
.placeholder-text {
  font-size: 13px;
  font-weight: 700;
}
@keyframes voicePlaceholderPulse {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}
.interview-topbar .interview-task-btn {
  justify-self: end;
  border: 0;
  background: rgba(116, 101, 255, .10);
  color: #5b4dff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
}
.interview-topbar .interview-task-btn.active {
  background: #5b4dff;
  color: #fff;
}
