/* ════════════════════════════════════════════════════
   tp-batch.css — 训练路径 Batch 页面样式
   设计系统 v2：语义化 token + 统一组件角色
   移动端优先 max-width: 640px
   ════════════════════════════════════════════════════ */

:root {
  /* ── 品牌色 ─────────────────────────── */
  --tp-brand:          #2563eb;
  --tp-brand-light:    #3b82f6;
  --tp-brand-dark:     #1d4ed8;

  /* ── 全局基础 ────────────────────────── */
  --tp-bg:             #f0f4f8;
  --tp-card:           #ffffff;
  --tp-card-shadow:    0 2px 12px rgba(0,0,0,.06);
  --tp-border:         #e2e8f0;
  --tp-text:           #1e293b;
  --tp-text-muted:     #64748b;
  --tp-success:        #10b981;
  --tp-warning:        #f59e0b;
  --tp-danger:         #ef4444;
  --tp-radius:         12px;
  --tp-radius-sm:      8px;
  --tp-mobile-tab-offset: env(safe-area-inset-bottom, 0px);

  /* ── 语义化角色 token ─────────────────── */

  /* 上下文区：背景说明、方法提示、下一步预告 */
  --tp-ctx-bg:         #f8fafc;
  --tp-ctx-border:     rgba(148,163,184,.22);
  --tp-ctx-label:      #94a3b8;
  --tp-ctx-text:       #475569;

  /* 提示区：锦囊、可折叠帮助内容 */
  --tp-hint-bg:        #fffbeb;
  --tp-hint-border:    #fde68a;
  --tp-hint-label:     #92400e;
  --tp-hint-text:      #78350f;
  --tp-hint-accent:    #d97706;

  /* 资产区：已确认答案、已确立成果 */
  --tp-asset-bg:       #f0fdf4;
  --tp-asset-border:   #86efac;
  --tp-asset-label:    #15803d;
  --tp-asset-text:     #166534;

  /* 结果区：评价结果、完成反馈 */
  --tp-result-bg:      #eff6ff;
  --tp-result-border:  #bfdbfe;
  --tp-result-label:   #1e40af;
  --tp-result-text:    #1d4ed8;
}

/* ════════════════════════════════════════════════════
   base
   ════════════════════════════════════════════════════ */

.tp-page {
  min-height: 100vh;
  background: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#mobileTabBar,
.mobile-tab-bar {
  display: none !important;
}

.mobile-main-content {
  padding-bottom: 18px !important;
}

.tp-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px calc(124px + var(--tp-mobile-tab-offset));
}

/* ════════════════════════════════════════════════════
   Header（深色渐变）
   ════════════════════════════════════════════════════ */

.tp-header {
  display: none !important;
}

/* ── breadcrumb ─────────────────────────────────────── */
.tp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
  opacity: .6;
}
.tp-breadcrumb a { color: #fff; text-decoration: none; transition: opacity .2s; }
.tp-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.tp-breadcrumb__sep { color: rgba(255,255,255,.4); }
.tp-breadcrumb__current { color: #fff; font-weight: 600; }

/* ════════════════════════════════════════════════════
   步骤进度（BatchShell 用的点状进度）
   ════════════════════════════════════════════════════ */

.tp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px 12px;
  background: var(--tp-card);
  border-bottom: 1px solid var(--tp-border);
}
.tp-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.tp-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--tp-border);
  background: var(--tp-card);
  color: var(--tp-text-muted);
  transition: all .3s ease;
  flex-shrink: 0;
}
.tp-step__dot--active {
  border-color: var(--tp-brand);
  background: var(--tp-brand);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.tp-step__dot--done {
  border-color: var(--tp-asset-border);
  background: var(--tp-asset-bg);
  color: var(--tp-asset-label);
}
.tp-step__line {
  width: 32px;
  height: 2px;
  background: var(--tp-border);
  transition: background .3s ease;
}
.tp-step__line--done { background: var(--tp-asset-border); }
.tp-step__label {
  font-size: 10px;
  color: var(--tp-text-muted);
  text-align: center;
  margin-top: 4px;
  max-width: 70px;
  word-break: keep-all;
}

/* ════════════════════════════════════════════════════
   卡片
   ════════════════════════════════════════════════════ */

.tp-card {
  background: var(--tp-card);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
  border: 1px solid rgba(226, 232, 240, .85);
  margin: 10px 0 18px;
  overflow: hidden;
  position: relative;
}
.tp-card__header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--tp-border);
}
.tp-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tp-text);
  margin: 0;
}
.tp-card__body {
  padding: 20px;
}

.tp-card__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(96,165,250,.45), rgba(99,102,241,.55));
}

.tp-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: 2px 0 18px;
}

.tp-card-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tp-card-head__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.tp-page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: .01em;
}

/* ════════════════════════════════════════════════════
   题目展示区（Primary）
   ════════════════════════════════════════════════════ */

.tp-question {
  background: linear-gradient(135deg, #f1f5f9 0%, #e8eef5 100%);
  border-radius: var(--tp-radius-sm);
  border: 1px solid var(--tp-border);
  padding: 18px 20px;
  margin-bottom: 10px;
}
.tp-question__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tp-text);
  font-weight: 500;
  margin: 0;
}
.tp-question__text ruby rt {
  font-size: 10px;
  color: var(--tp-text-muted);
}

.tp-audio-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, .95);
  background: linear-gradient(135deg, #eff6ff 0%, rgba(238, 242, 255, .9) 100%);
  box-shadow: 0 10px 22px rgba(59, 130, 246, .08);
  position: relative;
  overflow: hidden;
}

.tp-audio-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #3b82f6 0%, #4f46e5 100%);
}

.tp-audio-hero__meta {
  min-width: 0;
  flex: 1;
}

.tp-audio-hero__eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tp-audio-hero__title {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}

.tp-audio-hero__desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}

.tp-audio-hero__button {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f766e 0%, #0f766e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 14px 22px rgba(15, 118, 110, .22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
  position: relative;
}

.tp-audio-hero__button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 30px rgba(15, 118, 110, .24);
}

.tp-audio-hero__button-status {
  display: none;
}

.tp-record-answer-page .tp-audio-hero__button-status {
  display: inline-flex;
  position: absolute;
  top: -8px;
  right: -6px;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid rgba(255,255,255,.9);
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(37,99,235,.16);
}

.tp-audio-hero__button[data-state='idle'] .tp-audio-hero__button-status {
  background: #dbeafe;
}

.tp-audio-hero__button.is-replay-ready {
  background: linear-gradient(180deg, #0f766e 0%, #0f766e 100%);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.24);
}

.tp-audio-hero__button.is-replay-ready .tp-audio-hero__button-status {
  background: #ccfbf1;
  color: #0f766e;
}

.tp-audio-hero__button.is-loading {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
  box-shadow: 0 16px 26px rgba(71, 85, 105, 0.24);
}

.tp-audio-hero__button.is-loading .tp-audio-hero__button-status {
  background: #e2e8f0;
  color: #475569;
}

.tp-audio-hero__button.is-playing {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 16px 26px rgba(109, 40, 217, 0.28);
}

.tp-audio-hero__button.is-playing .tp-audio-hero__button-status {
  background: #ede9fe;
  color: #6d28d9;
}

.tp-audio-hero__button.is-error {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 16px 26px rgba(185, 28, 28, 0.22);
}

.tp-audio-hero__button.is-error .tp-audio-hero__button-status {
  background: #fee2e2;
  color: #b91c1c;
}

.tp-audio-hero__button-icon {
  font-size: 20px;
  line-height: 1;
  margin-left: 0;
  font-weight: 900;
  min-height: 20px;
}

.tp-audio-hero__button-text {
  display: none;
}

.tp-record-answer-page .tp-audio-hero__button-text {
  display: none;
}

.tp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--tp-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tp-back-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

.tp-back-btn__icon {
  font-size: 15px;
  line-height: 1;
}

/* ════════════════════════════════════════════════════
   辅助入口行（重听 / 看原文 / 看锦囊，同族胶囊）
   ════════════════════════════════════════════════════ */

/* 包裹行 */
.tp-aux-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  align-items: center;
}

.tp-aux-row--record {
  margin-top: 2px;
}

/* 通用辅助胶囊（包含重播按钮 + 帮助胶囊） */
.tp-aux-btn,
.tp-helper-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: none;
  white-space: nowrap;
  line-height: 1;
}
.tp-aux-btn:hover,
.tp-helper-capsule:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* 激活态：看原文 */
.tp-helper-capsule--active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* 激活态：看锦囊 */
.tp-helper-capsule--tips.tp-helper-capsule--active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

.tp-helper-capsule--assistant {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.tp-inline-panels {
  margin-bottom: 12px;
}

.tp-question-tools {
  margin: 0 0 14px;
}

.tp-question-tools__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-question-tools__panels {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tp-question-tools__shell[hidden] {
  display: none !important;
}

.tp-history-card {
  padding: 12px 14px;
}

.tp-history-card--sep {
  border-top: 1px solid var(--tp-ctx-border);
}

.tp-history-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tp-history-card__meta {
  min-width: 0;
  flex: 1;
}

.tp-history-card__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--tp-ctx-label);
  letter-spacing: .04em;
}

.tp-history-card__desc {
  margin: -2px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tp-text-muted);
}

.tp-history-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--tp-text);
  white-space: pre-wrap;
}

.tp-history-audio-btn {
  flex-shrink: 0;
}

.tp-history-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--tp-text);
}

.tp-history-list li + li {
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   展开面板（原文 / 锦囊，同族）
   ════════════════════════════════════════════════════ */

.tp-ref-panel,
.tp-helper-panel {
  border-radius: var(--tp-radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  animation: tp-fadein .2s ease;
  border: 1px solid var(--tp-border);
  background: var(--tp-ctx-bg);
}
.tp-ref-panel--hints,
.tp-helper-panel--tips {
  background: var(--tp-hint-bg);
  border-color: var(--tp-hint-border);
}

.tp-ref-panel--guide {
  background: var(--tp-ctx-bg);
  border-color: var(--tp-ctx-border);
}

/* 面板内原文文字 */
.tp-ref-panel__text,
.tp-helper-panel__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-text);
  line-height: 1.75;
  margin: 0;
}

/* ── 锦囊内容区块 ── */
.tp-hint-section { margin-bottom: 12px; }
.tp-hint-section:last-child { margin-bottom: 0; }
.tp-hint-section__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--tp-hint-label);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
/* 旧 class 兼容 */
.tp-helper-section { margin-bottom: 12px; }
.tp-helper-section:last-child { margin-bottom: 0; }
.tp-helper-section__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--tp-hint-label);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.tp-helper-section__list,
.tp-hint-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tp-helper-section__list li,
.tp-hint-list li {
  font-size: 13px;
  color: var(--tp-hint-text);
  padding: 2px 0 2px 14px;
  position: relative;
  line-height: 1.55;
}
.tp-helper-section__list li::before,
.tp-hint-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tp-hint-accent);
}
.tp-helper-section__tags,
.tp-hint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-helper-tag,
.tp-hint-tag {
  background: #fff;
  border: 1px solid var(--tp-hint-border);
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.tp-helper-section__ref,
.tp-hint-ref {
  font-size: 13px;
  color: var(--tp-hint-text);
  line-height: 1.7;
  background: #fff;
  border: 1px solid var(--tp-hint-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  white-space: pre-wrap;
}

/* ════════════════════════════════════════════════════
   上下文区（Context）：背景说明 / 方法 / 下一步
   ════════════════════════════════════════════════════ */

.tp-context-block {
  background: var(--tp-ctx-bg);
  border: 1px solid var(--tp-ctx-border);
  border-radius: var(--tp-radius-sm);
  padding: 11px 14px;
  margin-bottom: 12px;
}
.tp-context-block__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-ctx-label);
  margin: 0 0 4px;
  letter-spacing: .3px;
}
.tp-context-block__text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--tp-ctx-text);
  margin: 0;
}

/* 蓝色调（primary，如"目标"） */
.tp-context-block--primary {
  background: var(--tp-result-bg);
  border-color: var(--tp-result-border);
}
.tp-context-block--primary .tp-context-block__label {
  color: var(--tp-result-label);
}
.tp-context-block--primary .tp-context-block__text {
  color: var(--tp-result-text);
}

/* 更轻量的"下一步"预告 */
.tp-context-block--light {
  background: transparent;
  border-style: dashed;
  border-color: var(--tp-ctx-border);
}

/* ════════════════════════════════════════════════════
   资产区（Asset）：已确认成果
   ════════════════════════════════════════════════════ */

/* 通用资产卡（已确认核心答案、延伸问题等） */
.tp-asset-card,
.tp-answer--confirmed {
  background: var(--tp-asset-bg);
  border: 1px solid var(--tp-asset-border);
  border-radius: var(--tp-radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tp-asset-card__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-asset-label);
  margin: 0 0 5px;
}
.tp-asset-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tp-asset-text);
  margin: 0;
  white-space: pre-wrap;
}

/* 资产列表（延伸问题方向等） */
.tp-asset-list {
  background: var(--tp-hint-bg);
  border: 1px solid var(--tp-hint-border);
  border-radius: var(--tp-radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tp-asset-list__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--tp-hint-label);
  margin: 0 0 8px;
}
.tp-asset-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.tp-asset-list__items li {
  font-size: 13px;
  color: var(--tp-hint-text);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.tp-asset-list__items li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tp-hint-accent);
}

/* ════════════════════════════════════════════════════
   通用答案展示（旧 tp-answer，保留兼容）
   ════════════════════════════════════════════════════ */

.tp-answer {
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #fff;
}
.tp-answer__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-text-muted);
  letter-spacing: .3px;
  margin: 0 0 6px;
}
.tp-answer__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tp-text);
  white-space: pre-wrap;
  margin: 0;
}
/* tp-answer--confirmed 已被 .tp-asset-card 覆盖，保留选择器兼容 */
.tp-answer--confirmed {
  background: var(--tp-asset-bg);
  border-color: var(--tp-asset-border);
}
.tp-answer--confirmed .tp-answer__label { color: var(--tp-asset-label); }
.tp-answer--confirmed .tp-answer__text { color: var(--tp-asset-text); }

/* ════════════════════════════════════════════════════
   提示/支援面板（旧 tp-support，改用 token）
   ════════════════════════════════════════════════════ */

.tp-support {
  background: var(--tp-hint-bg);
  border: 1px solid var(--tp-hint-border);
  border-radius: var(--tp-radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tp-support__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--tp-hint-label);
  margin: 0 0 8px;
}
.tp-support__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tp-support__list li {
  font-size: 13px;
  color: var(--tp-hint-text);
  padding: 3px 0 3px 14px;
  position: relative;
}
.tp-support__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tp-hint-accent);
}

/* ════════════════════════════════════════════════════
   结果/反馈区
   ════════════════════════════════════════════════════ */

.tp-feedback {
  border-radius: var(--tp-radius-sm);
  padding: 16px;
  margin: 0 0 14px;
  animation: tp-fadein .4s ease;
}
@keyframes tp-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tp-feedback--good {
  background: var(--tp-result-bg);
  border: 1px solid var(--tp-result-border);
}
.tp-feedback--needs-work {
  background: var(--tp-hint-bg);
  border: 1px solid var(--tp-hint-border);
}
.tp-feedback__score {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--tp-text);
}
.tp-feedback__summary {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: var(--tp-text);
}

.tp-feedback-summary {
  display: grid;
  gap: 14px;
}

.tp-feedback-summary__intro {
  padding: 16px 16px 14px;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 82%);
}

.tp-feedback-summary__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
}

.tp-feedback-summary__intro h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
}

.tp-feedback-summary__intro p:last-child {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.tp-feedback-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.tp-feedback-panel--question {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.tp-feedback-panel--answer {
  border-color: #c7d2fe;
}

.tp-feedback-panel--confirmed {
  border-color: #bbf7d0;
  background: #f7fef9;
}

.tp-feedback-panel--evaluation {
  border-color: #fde68a;
  background: #fffdf5;
}

.tp-feedback-panel--reference {
  background: #fbfcff;
}

.tp-feedback-panel--summary-item + .tp-feedback-panel--summary-item {
  margin-top: 12px;
}

.tp-feedback-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tp-feedback-panel__meta {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.tp-feedback-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tp-feedback-panel__eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tp-feedback-panel__title {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
}

.tp-feedback-panel__audio {
  flex-shrink: 0;
}

.tp-feedback-panel__text {
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}

.tp-feedback-panel__text--empty {
  color: #94a3b8;
}

.tp-feedback-panel .tp-audio-btn {
  width: auto;
  min-height: 30px;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border-width: 1px;
  background: rgba(255,255,255,.9);
}

.tp-feedback-panel .tp-audio-btn__icon {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.tp-feedback-panel .tp-audio-btn__label {
  font-size: 11px;
  white-space: nowrap;
}

.tp-feedback-panel--foldable {
  padding: 0;
}

.tp-feedback-foldable-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.tp-feedback-foldable-summary::-webkit-details-marker {
  display: none;
}

.tp-feedback-foldable-summary::after {
  content: '+';
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.tp-feedback-panel--foldable[open] .tp-feedback-foldable-summary::after {
  content: '-';
}

.tp-feedback-foldable-summary__meta {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.tp-feedback-foldable-body {
  padding: 0 14px 14px;
}

.tp-feedback-confirmed-list,
.tp-feedback-eval-grid {
  display: grid;
  gap: 10px;
}

.tp-feedback-confirmed-item,
.tp-feedback-eval-box,
.tp-feedback-reference-answer {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(226, 232, 240, .9);
}

.tp-feedback-confirmed-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tp-feedback-confirmed-item__label,
.tp-feedback-eval-box__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
  color: #166534;
}

.tp-feedback-eval-summary {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}

.tp-feedback-eval-box {
  border-color: rgba(253, 230, 138, .9);
}

.tp-feedback-eval-box__label {
  color: #92400e;
}

.tp-feedback-eval-box ul,
.tp-feedback-reference-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.tp-feedback-eval-box li + li,
.tp-feedback-reference-list li + li {
  margin-top: 5px;
}

.tp-feedback-next-focus {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
}

.tp-feedback-next-focus span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #c2410c;
}

.tp-feedback-reference-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}

.tp-feedback-reference-answer {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
}

/* 结果页头部卡片容器（带顶部色条） */
.tp-result-header-card {
  border-radius: var(--tp-radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(15,23,42,.07);
}

.tp-result-section + .tp-result-section {
  margin-top: 18px;
}

.tp-result-section__head {
  margin-bottom: 10px;
}

.tp-result-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--tp-text);
}

.tp-result-section__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tp-text-muted);
}

.tp-result-section__body {
  display: grid;
  gap: 10px;
}

.tp-result-section--compact .tp-result-section__head {
  margin-bottom: 8px;
}

.tp-result-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-result-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.tp-audio-hero--result {
  margin-bottom: 0;
}

.tp-question--compact {
  margin-bottom: 0;
  padding: 14px 16px;
}

.tp-result-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-audio-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  background: #fff;
}

.tp-audio-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--tp-text);
}

.tp-audio-item__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tp-text-muted);
}

.tp-reference-item {
  padding: 14px;
  border: 1px solid var(--tp-asset-border);
  border-radius: var(--tp-radius-sm);
  background: var(--tp-asset-bg);
}

.tp-reference-item__label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--tp-asset-label);
}

.tp-reference-item__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #166534;
}

.tp-reference-item__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tp-asset-text);
  white-space: pre-wrap;
}

.tp-attempt-card {
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  background: #fff;
  overflow: hidden;
}

.tp-attempt-card__header {
  padding: 12px 14px 0;
}

.tp-attempt-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--tp-text);
}

.tp-attempt-card__body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.tp-question-group + .tp-question-group {
  margin-top: 14px;
}

.tp-question-group__head {
  margin-bottom: 10px;
}

.tp-question-group__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--tp-text);
}

.tp-question-group__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--tp-text-muted);
}

.tp-question-group__body {
  display: grid;
  gap: 10px;
}

.tp-result-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.tp-result-tabs--with-action {
  align-items: stretch;
}

.tp-result-tabs__action {
  grid-column: 1 / -1;
}

.tp-result-tabs__action .tp-btn {
  width: 100%;
}

.tp-result-tabs__tab {
  border: 1px solid var(--tp-border);
  background: #fff;
  color: var(--tp-text-muted);
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s ease;
}

.tp-result-tabs__tab:hover {
  border-color: #bfdbfe;
  color: var(--tp-text);
}

.tp-result-tabs__tab.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37,99,235,.08);
}

.tp-result-tab-panels {
  display: grid;
  gap: 10px;
}

.tp-result-tab-panel[hidden] {
  display: none !important;
}

/* ════════════════════════════════════════════════════
   Action Bar（固定底部操作区）
   ════════════════════════════════════════════════════ */

.tp-action-bar {
  position: fixed;
  bottom: var(--tp-mobile-tab-offset);
  left: 0;
  right: 0;
  background: var(--tp-card);
  border-top: 1px solid var(--tp-border);
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 10002;
  box-shadow: 0 -8px 24px rgba(15,23,42,.08);
}

/* ══ 对称式录音工具坞 ══ */
.tp-action-dock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 4px 0 0;
}
.tp-action-dock__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.tp-action-dock__slot--left,
.tp-action-dock__slot--right {
  width: 72px;
  flex-shrink: 0;
}
.tp-action-dock__slot--center {
  flex: 1;
  align-items: center;
}

/* 侧边图标按钮 */
.tp-dock-side-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--tp-border);
  background: var(--tp-ctx-bg);
  color: var(--tp-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.tp-dock-side-btn:hover {
  background: #e2e8f0;
  color: var(--tp-text);
}
.tp-dock-side-btn--assistant {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.tp-dock-side-btn--assistant:hover {
  background: #dbeafe;
  color: #1d4ed8;
}
.tp-dock-side-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--tp-text-muted);
  text-align: center;
}
#tp-helper-btn[hidden] + .tp-dock-side-label {
  display: none;
}

/* 麦克风包裹（叠加脉动环） */
.tp-mic-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.tp-mic-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,113,113,.34) 0%, rgba(251,146,60,.18) 42%, rgba(239,68,68,0) 72%);
  animation: tp-record-ripple 1.25s ease-out infinite;
  pointer-events: none;
}
@keyframes tp-mic-ring {
  0%  { transform: scale(.85); opacity: 1; }
  80% { transform: scale(1.25); opacity: 0; }
  100%{ opacity: 0; }
}

/* 麦克风按钮基础 */
.tp-record-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .2s ease;
  box-shadow: 0 10px 28px rgba(37,99,235,.22);
}
.tp-record-btn:hover { background: var(--tp-brand-dark); }
.tp-record-btn--recording {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 18px 36px rgba(239,68,68,.28);
}
.tp-record-btn--recording::before,
.tp-record-btn--recording::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(248,113,113,.36) 0%, rgba(252,165,165,.18) 48%, rgba(239,68,68,0) 72%);
  z-index: -1;
  animation: tp-record-ripple 1.2s ease-out infinite;
}
.tp-record-btn--recording::after {
  inset: -22px;
  animation-delay: .35s;
}
@keyframes tp-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%     { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}
@keyframes tp-record-ripple {
  0% { transform: scale(.82); opacity: .92; }
  70% { opacity: .2; }
  100% { transform: scale(1.22); opacity: 0; }
}
.tp-record-btn__icon {
  width: 32px;
  height: 32px;
  transition: opacity .18s ease, transform .18s ease;
}
.tp-record-btn__icon--stop {
  position: absolute;
  opacity: 0;
  transform: scale(.72);
}
.tp-record-btn--recording .tp-record-btn__icon--mic {
  opacity: 0;
  transform: scale(.72);
}
.tp-record-btn--recording .tp-record-btn__icon--stop {
  opacity: 1;
  transform: scale(1);
}

/* 大号麦克风（工具坞内） */
.tp-record-btn--large {
  width: 80px;
  height: 80px;
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
}
.tp-record-btn--large .tp-record-btn__icon { width: 36px; height: 36px; }
.tp-record-btn--large.tp-record-btn--recording {
  box-shadow: 0 8px 24px rgba(239,68,68,.3);
}

/* 状态文字 */
.tp-mic-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--tp-text-muted);
  text-align: center;
  margin: 4px 0 0;
  min-height: 16px;
  transition: color .2s;
}
.tp-mic-status--recording { color: var(--tp-danger); }
.tp-record-answer-page .tp-mic-status--recording {
  color: #ef4444;
  font-weight: 800;
  animation: tp-recording-status-pulse 1.2s ease-in-out infinite;
}
@keyframes tp-recording-status-pulse {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}

/* 提交按钮（工具坞下方，全宽） */
#tp-submit-btn {
  margin-top: 10px;
  width: 100%;
}

/* 操作结果区（结果页按钮组） */
.tp-action-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tp-border);
}
.tp-action-block__target {
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-text-muted);
  text-align: center;
  padding: 4px 0;
}

/* ════════════════════════════════════════════════════
   按钮
   ════════════════════════════════════════════════════ */

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--tp-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 44px;
}
.tp-btn--primary { background: var(--tp-brand); color: #fff; }
.tp-btn--primary:hover { background: var(--tp-brand-dark); }
.tp-btn--primary:active { transform: scale(.97); }
.tp-btn--secondary {
  background: transparent;
  color: var(--tp-text-muted);
  border: 1px solid var(--tp-border);
}
.tp-btn--secondary:hover { background: #f1f5f9; }
.tp-btn--danger { background: var(--tp-danger); color: #fff; border: 1px solid var(--tp-danger); }
.tp-btn--danger:hover { background: #dc2626; }
.tp-btn:disabled { opacity: .5; cursor: not-allowed; }
a.tp-btn { text-decoration: none; }
.tp-btn--full { width: 100%; }

/* ── 音频播放按钮 ── */
.tp-audio-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: var(--tp-ctx-bg);
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  cursor: pointer;
  transition: all .18s ease;
  text-align: left;
}
.tp-audio-btn:hover {
  background: #f1f5f9;
  border-color: var(--tp-brand-light);
}
.tp-audio-btn:active { transform: scale(.98); }
.tp-audio-btn__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tp-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.tp-audio-btn:hover .tp-audio-btn__icon { background: var(--tp-brand-dark); }
.tp-audio-btn__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-text);
  flex: 1;
}

/* ════════════════════════════════════════════════════
   Textarea
   ════════════════════════════════════════════════════ */

.tp-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  font-size: 14px;
  line-height: 1.65;
  color: var(--tp-text);
  resize: vertical;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.tp-textarea:focus {
  outline: none;
  border-color: var(--tp-brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.tp-textarea-wrap {
  position: relative;
}

.tp-answer-clear-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

.tp-answer-clear-btn:hover {
  transform: translateY(-1px);
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.tp-answer-clear-btn svg {
  width: 15px;
  height: 15px;
}

/* ════════════════════════════════════════════════════
   Video embed
   ════════════════════════════════════════════════════ */

.tp-video {
  width: 100%;
  border-radius: var(--tp-radius-sm);
  background: #000;
  aspect-ratio: 16/9;
}

/* ════════════════════════════════════════════════════
   Loading / Empty
   ════════════════════════════════════════════════════ */

.tp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--tp-text-muted);
}
.tp-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--tp-border);
  border-top-color: var(--tp-brand);
  border-radius: 50%;
  animation: tp-spin .8s linear infinite;
  margin-bottom: 12px;
}
@keyframes tp-spin { to { transform: rotate(360deg); } }

.tp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--tp-text-muted);
}
.tp-empty__icon { font-size: 48px; margin-bottom: 12px; }
.tp-empty__text { font-size: 15px; margin: 0; }

/* ════════════════════════════════════════════════════
   全局步骤进度条（Process Header，粘性顶部）
   ════════════════════════════════════════════════════ */

.tp-process-header {
  background: var(--tp-card);
  border-bottom: 1px solid var(--tp-border);
  padding: 0 12px 10px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.tp-ph-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 12px 0;
}

.tp-ph-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.tp-ph-current {
  display: none;
}
.tp-ph-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--tp-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
  justify-self: start;
}
.tp-ph-back-btn:hover {
  transform: none;
  background: #f8fafc;
  box-shadow: none;
  color: #0f172a;
  opacity: .78;
}
.tp-ph-back-btn__icon {
  font-size: 22px;
  line-height: 1;
}
.tp-ph-back-btn__label {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.tp-ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  justify-self: center;
}
.tp-ph-badge__label,
.tp-ph-badge__count {
  white-space: nowrap;
}
.tp-ph-badge__count {
  opacity: .82;
}
.tp-ph-badge--learn {
  background: var(--tp-result-bg);
  color: var(--tp-result-label);
}
.tp-ph-badge--practice {
  background: var(--tp-asset-bg);
  color: var(--tp-asset-label);
}
.tp-ph-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-text-muted);
}
.tp-ph-bars {
  display: flex;
  gap: 3px;
  margin-bottom: 0;
  padding: 0;
}
.tp-ph-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--tp-border);
  transition: background .3s ease;
}
.tp-ph-bar--done  { background: var(--tp-result-border); }
.tp-ph-bar--active { background: var(--tp-brand); }
.tp-ph-label {
  font-size: 15px;
  font-weight: 900;
  color: var(--tp-text);
  text-align: center;
  padding: 0;
}

.tp-ph-guide-btn {
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: rgba(239, 246, 255, .75);
  color: var(--tp-brand);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}

.tp-ph-guide-placeholder {
  display: inline-block;
  width: 84px;
  height: 36px;
}

.tp-ph-guide-btn.is-open {
  color: var(--tp-brand-dark);
}

.tp-ph-guide-panel {
  margin-top: 8px;
  border-top: 1px solid var(--tp-ctx-border);
  background: var(--tp-ctx-bg);
}
.tp-ph-summary {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tp-text-muted);
  padding: 0;
}

/* ════════════════════════════════════════════════════
   过渡页节点 Banner（学习收口 / 主题完成）
   统一用资产/结果 token
   ════════════════════════════════════════════════════ */

.tp-transition-banner {
  background: linear-gradient(135deg, var(--tp-result-bg) 0%, var(--tp-asset-bg) 100%);
  border: 1.5px solid var(--tp-result-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.tp-transition-banner--done {
  background: linear-gradient(135deg, var(--tp-asset-bg) 0%, #ecfdf5 100%);
  border-color: var(--tp-asset-border);
}
.tp-transition-banner__icon { font-size: 36px; margin-bottom: 8px; line-height: 1; }
.tp-transition-banner__title {
  font-size: 17px;
  font-weight: 900;
  color: var(--tp-result-text);
  margin-bottom: 6px;
}
.tp-transition-banner--done .tp-transition-banner__title {
  color: var(--tp-asset-text);
}
.tp-transition-banner__subtitle {
  font-size: 13px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 14px;
}

.tp-transition-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.tp-transition-check {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: rgba(255,255,255,.7);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-text);
}
.tp-transition-check--done  { color: var(--tp-asset-text); }
.tp-transition-check--pending { color: var(--tp-ctx-label); }
.tp-transition-check__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.tp-transition-check--done .tp-transition-check__icon {
  background: #dcfce7;
  color: var(--tp-asset-label);
}
.tp-transition-check--pending .tp-transition-check__icon {
  background: var(--tp-ctx-bg);
  color: var(--tp-ctx-label);
}
.tp-transition-next-review {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-asset-text);
  background: rgba(255,255,255,.8);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
}

/* ════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .tp-container { padding: 0 12px calc(100px + var(--tp-mobile-tab-offset)); }
  .tp-card__body { padding: 16px; }
  .tp-action-bar { padding: 10px 12px 12px; }
  .tp-result-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-audio-hero {
    align-items: center;
    flex-direction: row;
    text-align: left;
  }
  .tp-audio-hero__button {
    width: 54px;
    height: 54px;
    min-height: 54px;
  }
  .tp-record-answer-page .tp-audio-hero__button-status {
    top: -7px;
    right: -4px;
  }
  .tp-audio-hero__button-icon {
    margin-left: 0;
  }
  .tp-history-card__head {
    flex-direction: column;
  }
}

/* ════════════════════════════════════════════════════
   步骤引导卡（Step Guide）
   目标 / 方法 / 下一步，三行合一，融合入页面布局
   ════════════════════════════════════════════════════ */

.tp-step-guide {
  background: var(--tp-ctx-bg);
  border: 1px solid var(--tp-ctx-border);
  border-radius: var(--tp-radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.tp-step-guide__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 14px;
}

.tp-step-guide__row--sep {
  border-top: 1px solid var(--tp-ctx-border);
}

.tp-step-guide__icon {
  font-size: 14px;
  line-height: 1.5;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.tp-step-guide__icon--text {
  width: 44px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-ctx-label);
}

.tp-step-guide__body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.tp-step-guide__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--tp-ctx-label);
  letter-spacing: .4px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.tp-step-guide__text {
  font-size: 12px;
  color: var(--tp-ctx-text);
  line-height: 1.55;
}

/* ── step guide 折叠交互 ── */
.tp-step-guide__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--tp-ctx-text);
  text-align: left;
}
.tp-step-guide__toggle:hover {
  background: rgba(148,163,184,.08);
}
.tp-step-guide__toggle-text {
  color: var(--tp-ctx-text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-step-guide__toggle-arrow {
  font-size: 14px;
  color: var(--tp-ctx-label);
  margin-left: 6px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.tp-step-guide__toggle--open .tp-step-guide__toggle-arrow {
  transform: rotate(90deg);
}
.tp-step-guide__content {
  border-top: 1px solid var(--tp-ctx-border);
}

/* 主题名（替代原大标题） */
.tp-card-topic-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.4;
  text-align: center;
}

.tp-page-title {
  display: none;
}

/* Record Answer Style Refresh */
.tp-record-answer-page .tp-process-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.tp-record-answer-page .tp-container {
  padding: 10px 14px calc(176px + var(--tp-mobile-tab-offset));
}

.tp-record-answer-page .tp-ph-top {
  gap: 10px;
  padding: 10px 0;
}

.tp-record-answer-page .tp-ph-meta {
  gap: 0;
}

.tp-record-answer-page .tp-ph-back-btn {
  gap: 6px;
}

.tp-record-answer-page .tp-ph-badge {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  gap: 10px;
}

.tp-record-answer-page .tp-ph-guide-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.tp-record-answer-page .tp-ph-badge {
  background: #eff6ff;
  color: #2563eb;
}

.tp-record-answer-page .tp-card {
  margin: 0 0 16px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.tp-record-answer-page .tp-card__body {
  position: relative;
  padding: 20px 20px 18px;
}

.tp-record-answer-page .tp-card__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(96,165,250,.5), rgba(99,102,241,.6));
}

.tp-record-answer-page .tp-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 20px;
  text-align: left;
}

.tp-record-answer-page .tp-card-head__badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tp-record-answer-page .tp-card-head__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
}

.tp-record-answer-page .tp-card-topic-label {
  margin: 0;
  max-width: none;
  order: 1;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 900;
  color: #0f172a;
  align-self: center;
  text-align: center;
}

.tp-record-answer-page .tp-page-title {
  display: block;
  margin: 0;
  order: 2;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: #2563eb;
}

.tp-page-description {
  order: 3;
  max-width: none;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}

.tp-record-answer-page .tp-audio-hero {
  display: block;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, rgba(238,242,255,.88) 100%);
  border: 1px solid rgba(191, 219, 254, .95);
  box-shadow: 0 10px 22px rgba(59, 130, 246, .08);
  padding: 18px 18px 14px;
  margin-bottom: 16px;
}

.tp-record-answer-page .tp-audio-hero__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tp-record-answer-page .tp-audio-hero::before {
  width: 6px;
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 100%);
}

.tp-record-answer-page .tp-audio-hero__footer {
  margin-top: 12px;
  padding-left: 16px;
}

.tp-record-answer-page .tp-audio-hero__button {
  width: 56px;
  height: 56px;
  min-height: 56px;
  background: linear-gradient(180deg, #0f766e 0%, #0f766e 100%);
  box-shadow: 0 14px 22px rgba(15, 118, 110, .22);
}

.tp-record-answer-page .tp-audio-hero__button:hover {
  box-shadow: 0 18px 30px rgba(15, 118, 110, .24);
}

.tp-record-answer-page .tp-question-tools__row {
  gap: 10px;
  margin: 0 0 14px;
}

.tp-record-answer-page .tp-helper-capsule__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke: currentColor;
}

.tp-record-answer-page .tp-question-tools__panels {
  gap: 12px;
  margin-top: 8px;
}

.tp-record-answer-page .tp-helper-capsule,
.tp-record-answer-page .tp-aux-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.tp-record-answer-page .tp-helper-capsule:hover,
.tp-record-answer-page .tp-aux-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.tp-record-answer-page .tp-helper-capsule--active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.tp-record-answer-page .tp-helper-capsule--tips.tp-helper-capsule--active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

.tp-record-answer-page .tp-helper-capsule span {
  display: inline-flex;
  align-items: center;
}

.tp-record-answer-page .tp-helper-capsule--inline {
  padding: 0;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
}

.tp-record-answer-page .tp-helper-capsule--inline:hover {
  background: transparent;
  border-color: transparent;
  color: #1d4ed8;
}

.tp-record-answer-page .tp-helper-capsule--compact {
  padding: 6px 12px;
  font-size: 12px;
}

.tp-record-answer-page .tp-ref-panel,
.tp-record-answer-page .tp-helper-panel {
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.tp-record-answer-page .tp-ref-panel--guide {
  background: #eff6ff;
  border-color: #dbeafe;
}

.tp-record-answer-page .tp-ref-panel--hints,
.tp-record-answer-page .tp-helper-panel--tips {
  background: rgba(238, 242, 255, .74);
  border-color: #c7d2fe;
}

.tp-record-answer-page .tp-ref-panel__text,
.tp-record-answer-page .tp-helper-panel__text {
  color: #334155;
  font-weight: 500;
  line-height: 1.8;
}

.tp-record-answer-page .tp-hint-section__title,
.tp-record-answer-page .tp-helper-section__title {
  font-size: 12px;
  color: #4f46e5;
  letter-spacing: .02em;
  margin-bottom: 8px;
  text-transform: none;
}

.tp-record-answer-page .tp-hint-list li,
.tp-record-answer-page .tp-helper-section__list li {
  color: #475569;
  padding: 3px 0 3px 16px;
  line-height: 1.65;
}

.tp-record-answer-page .tp-hint-list li::before,
.tp-record-answer-page .tp-helper-section__list li::before {
  content: '•';
  color: #6366f1;
}

.tp-record-answer-page .tp-hint-ref,
.tp-record-answer-page .tp-helper-section__ref {
  border-radius: 14px;
  border-color: #c7d2fe;
  padding: 12px 14px;
  color: #475569;
}

.tp-record-answer-page #tp-history-cards .tp-step-guide {
  background: #f8fafc;
  border-color: #dbeafe;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.tp-record-answer-page #tp-history-cards .tp-step-guide__toggle {
  padding: 12px 14px;
}

.tp-record-answer-page #tp-history-cards .tp-step-guide__toggle:hover {
  background: rgba(59, 130, 246, .06);
}

.tp-record-answer-page #tp-history-cards .tp-step-guide__toggle-text {
  color: #334155;
  font-weight: 800;
}

.tp-record-answer-page #tp-history-cards .tp-step-guide__content {
  border-top-color: #dbeafe;
}

.tp-record-answer-page #tp-history-cards .tp-history-card__label {
  color: #2563eb;
}

.tp-record-answer-page .tp-editor-shell {
  position: relative;
}

.tp-record-answer-page .tp-textarea {
  min-height: 160px;
  border-radius: 22px;
  padding: 16px 54px 16px 18px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.tp-record-answer-page .tp-textarea:hover {
  background: #f1f5f9;
}

.tp-record-answer-page .tp-textarea:focus {
  background: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .12);
}

.tp-record-answer-page .tp-action-bar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226, 232, 240, .9);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 30px rgba(15,23,42,.06);
  padding: 18px 24px 18px;
}

.tp-record-answer-page .tp-action-dock {
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 0;
  margin-bottom: 0;
}

.tp-record-answer-page .tp-action-dock__slot {
  gap: 8px;
}

.tp-record-answer-page .tp-action-dock__slot--left,
.tp-record-answer-page .tp-action-dock__slot--right {
  justify-content: flex-end;
}

.tp-record-answer-page .tp-action-dock__slot--center {
  justify-content: flex-end;
}

.tp-record-answer-page .tp-action-dock__slot--left .tp-dock-side-btn,
.tp-record-answer-page .tp-action-dock__slot--right .tp-dock-side-btn {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.tp-record-answer-page .tp-dock-side-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e7edf8;
}

.tp-record-answer-page .tp-dock-side-btn--assistant {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.tp-record-answer-page .tp-dock-side-btn--submit {
  background: #f8fafc;
  border-color: #e7edf8;
  color: #cbd5e1;
  box-shadow: none;
}

.tp-record-answer-page .tp-dock-side-btn--submit:not(:disabled) {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

.tp-record-answer-page .tp-dock-side-btn--submit:disabled {
  background: #f1f5f9;
  border-color: #e7edf8;
  color: #a7b4ca;
  box-shadow: none;
  cursor: not-allowed;
}

.tp-record-answer-page .tp-dock-side-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.tp-record-answer-page .tp-record-btn--large {
  width: 86px;
  height: 86px;
  box-shadow: 0 18px 34px rgba(37, 99, 235, .24);
}

.tp-record-answer-page .tp-mic-status {
  order: -1;
  margin: 0 0 14px;
  min-height: 18px;
  font-size: 12px;
  color: #8fa1bf;
  text-align: center;
}

.tp-answer-replay-btn {
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #dbe7ff;
  background: rgba(255, 255, 255, .92);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .08);
}

.tp-answer-replay-btn:hover {
  background: #eff6ff;
}

.tp-answer-replay-btn.is-loading,
.tp-answer-replay-btn:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
  cursor: wait;
}

.tp-record-answer-page #tp-submit-btn {
  margin-top: 0;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}

.tp-ref-panel--asset {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.tp-choice-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tp-choice-option {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  background: #fff;
  color: #334155;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tp-choice-option:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .10);
}

.tp-choice-option.is-selected {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .12);
}

@media (min-width: 1024px) {
  .tp-desktop-shell {
    min-height: calc(100vh - 56px);
    background:
      radial-gradient(circle at top left, rgba(59, 130, 246, .08), transparent 30%),
      linear-gradient(180deg, #f8fafc 0%, #f4f4f5 100%);
  }

  .tp-desktop-shell > .tp-container.tp-desktop-shell__container {
    max-width: 1360px;
    padding: 24px 32px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
  }

  .tp-desktop-shell > .tp-container.tp-desktop-shell__container:not(:has(.tp-desktop-shell__aside)) {
    max-width: 1360px;
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-desktop-shell__main,
  .tp-desktop-shell__aside {
    min-width: 0;
  }

  .tp-desktop-stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .tp-desktop-stage__body {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .06);
    overflow: hidden;
  }

  .tp-desktop-stage__body--result {
    padding: 24px;
  }

  .tp-desktop-stage__content {
    min-height: 420px;
  }

  .tp-desktop-side-card {
    position: sticky;
    top: 92px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
    padding: 20px 18px;
  }

  .tp-desktop-side-card__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
  }

  .tp-desktop-side-card__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
  }

  .tp-desktop-result-head {
    margin-bottom: 18px;
  }

  .tp-desktop-result-head .tp-header__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
  }

  .tp-desktop-result-head .tp-header__subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #64748b;
  }

  .tp-desktop-shell--interaction .tp-process-header,
  .tp-desktop-shell--result .tp-process-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0 28px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  }

  .tp-desktop-shell--interaction .tp-ph-top,
  .tp-desktop-shell--result .tp-ph-top {
    min-height: 56px;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
  }

  .tp-desktop-shell--interaction .tp-ph-back-btn,
  .tp-desktop-shell--result .tp-ph-back-btn {
    font-size: 13px;
    color: #475569;
  }

  .tp-desktop-shell--interaction .tp-ph-back-btn__icon,
  .tp-desktop-shell--result .tp-ph-back-btn__icon {
    font-size: 24px;
  }

  .tp-desktop-shell--interaction .tp-ph-guide-btn,
  .tp-desktop-shell--result .tp-ph-guide-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
  }

  .tp-desktop-shell--interaction .tp-ph-guide-btn:hover,
  .tp-desktop-shell--result .tp-ph-guide-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
  }

  .tp-desktop-shell--interaction #tp-page-root > .tp-container,
  .tp-desktop-shell--result #tp-result-content > .tp-container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .tp-desktop-shell--interaction #tp-page-root > .tp-container {
    padding: 24px;
  }

  .tp-desktop-shell--interaction #tp-content {
    padding: 24px;
  }

  .tp-desktop-shell--interaction #tp-content .tp-card,
  .tp-desktop-shell--result #tp-result-content .tp-card {
    margin: 0;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
  }

  .tp-desktop-shell--interaction #tp-action-bar {
    position: static;
    padding: 0 24px 24px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .tp-desktop-shell--interaction .tp-action-bar__inner {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  }

  .tp-desktop-shell--interaction .tp-action-bar__actions {
    justify-content: flex-end;
  }

  .tp-desktop-shell--result #tp-result-content .tp-card__body {
    padding: 24px;
  }

  .tp-record-answer-page--desktop {
    min-height: calc(100vh - 56px);
    background: #f4f4f5;
  }

  .tp-record-answer-page--desktop .tp-process-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0 28px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  }

  .tp-record-answer-page--desktop .tp-ph-top {
    max-width: 1280px;
    min-height: 56px;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
  }

  .tp-record-answer-page--desktop .tp-ph-back-btn {
    font-size: 13px;
    color: #475569;
  }

  .tp-record-answer-page--desktop .tp-ph-back-btn__icon {
    font-size: 24px;
  }

  .tp-record-answer-page--desktop .tp-ph-guide-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
  }

  .tp-record-answer-page--desktop .tp-ph-guide-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
  }

  .tp-record-answer-page--desktop .tp-container.tp-desktop-answer-layout {
    max-width: 1280px;
    padding: 24px 32px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }

  .tp-record-answer-page--desktop .tp-container.tp-desktop-answer-layout.tp-desktop-answer-layout--sidebar-empty {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-record-answer-page--desktop .tp-desktop-answer-main,
  .tp-record-answer-page--desktop .tp-desktop-answer-sidebar {
    min-width: 0;
  }

  .tp-record-answer-page--desktop .tp-card {
    margin: 0;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
    overflow: hidden;
  }

  .tp-record-answer-page--desktop .tp-card__body {
    padding: 24px;
  }

  .tp-record-answer-page--desktop .tp-card-head {
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    margin: 0 0 18px;
  }

  .tp-record-answer-page--desktop .tp-card-topic-label {
    max-width: none;
    font-size: 24px;
    line-height: 1.25;
  }

  .tp-record-answer-page--desktop .tp-question-tools--desktop-actions {
    margin: 0 0 14px;
  }

  .tp-record-answer-page--desktop .tp-question-tools__row {
    gap: 10px;
    margin: 0;
  }

  .tp-record-answer-page--desktop .tp-audio-hero {
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .06);
  }

  .tp-record-answer-page--desktop .tp-audio-hero__main {
    align-items: center;
  }

  .tp-record-answer-page--desktop .tp-audio-hero__footer {
    display: flex;
    justify-content: flex-start;
    padding-left: 18px;
  }

  .tp-record-answer-page--desktop .tp-editor-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .tp-record-answer-page--desktop .tp-textarea {
    min-height: 104px;
    border-radius: 16px 16px 0 0;
    padding-right: 52px;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    background: #fff;
    box-shadow: none;
    resize: vertical;
  }

  .tp-record-answer-page--desktop .tp-textarea:hover {
    background: #fff;
  }

  .tp-record-answer-page--desktop .tp-textarea:focus {
    border-color: #93c5fd;
    box-shadow: inset 0 0 0 1px #93c5fd;
  }

  .tp-record-answer-page--desktop .tp-action-bar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .tp-record-answer-page--desktop .tp-action-dock {
    justify-content: space-between;
    align-items: center;
    gap: 18px;
  }

  .tp-record-answer-page--desktop .tp-action-dock__slot--left,
  .tp-record-answer-page--desktop .tp-action-dock__slot--right {
    width: auto;
    min-width: 92px;
  }

  .tp-record-answer-page--desktop .tp-action-dock__slot--center {
    flex: 1;
  }

  .tp-record-answer-page--desktop .tp-record-btn--large {
    width: 64px;
    height: 64px;
  }

  .tp-record-answer-page--desktop .tp-dock-side-btn {
    width: 48px;
    height: 48px;
  }

  .tp-record-answer-page--desktop .tp-mic-status {
    order: 0;
    margin: 0;
    font-size: 12px;
    color: #64748b;
  }

  .tp-record-answer-page--desktop .tp-answer-replay-btn {
    margin-top: 6px;
  }

  .tp-record-answer-page--desktop .tp-desktop-answer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tp-record-answer-page--desktop .tp-desktop-answer-sidebar .tp-question-tools__shell,
  .tp-record-answer-page--desktop .tp-desktop-answer-sidebar #tp-history-cards {
    display: block;
  }

  .tp-record-answer-page--desktop .tp-desktop-answer-sidebar .tp-ref-panel,
  .tp-record-answer-page--desktop .tp-desktop-answer-sidebar .tp-step-guide {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
  }

  .tp-record-answer-page--desktop .tp-inline-error,
  .tp-record-answer-page--desktop #tp-inline-error {
    margin-top: 14px;
  }
}
