/* =========================================================================
 * 记词宝 · 今日说一段（AI 口语对话）—— 本页布局
 * -------------------------------------------------------------------------
 * 只放布局与组件样式；配色/主题一律用 css/speaking.css 里的变量，
 * 不要在这里写死颜色（否则 20 套主题里有 19 套会错）。
 *
 * 三端同一份文件：
 *   宽屏（≥900px）→ 左侧信息 + 中间对话 + 右侧实时反馈（桌面优势）
 *   窄屏（<900px）→ 纵向堆叠，反馈自动滚到眼前
 * ========================================================================= */

body { background: var(--bg); }

/* ---------------- 顶栏 ---------------- */
.tk-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.tk-back {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--soft);
  color: var(--ink); text-decoration: none; font-size: 18px; line-height: 1;
}
.tk-back:active { background: var(--accent-soft); }
.tk-title {
  flex: 1; min-width: 0; text-align: center;
  font-size: 16px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 右上角会员状态（2026-10-31：口语不再卖兑换码，统一进会员权益）
   未开通 = 描边「开通会员」；已开通 = 实底「会员 · 至 日期」 */
.tk-member {
  flex: none; border: 1px solid var(--accent);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  padding: 6px 11px; border-radius: 9px; cursor: pointer;
  white-space: nowrap;
}
.tk-member:active { opacity: .8; }
.tk-member.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- 通用容器（选一段 / 报告） ---------------- */
.tk-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 16px 12px calc(28px + env(safe-area-inset-bottom, 0px));
}
.tk-intro {
  margin: 0 0 14px; font-size: 13.5px; line-height: 1.75; color: var(--muted);
}
.tk-intro b { color: var(--ink); }
.tk-dim { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }
.tk-sub { margin: 10px 0 8px; font-size: 12.5px; color: var(--faint); }
.tk-empty { margin: 22px 0; text-align: center; font-size: 13px; color: var(--faint); }
.tk-note { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--faint); }

/* ---------------- 未登录提示 ---------------- */
.tk-login {
  background: var(--warn-soft); border: 1px solid var(--warn);
  color: var(--warn); border-radius: 11px;
  padding: 11px 13px; margin-bottom: 13px;
  font-size: 13px; line-height: 1.7;
}
.tk-login b { font-weight: 700; }
.tk-login a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; }
/* 非会员但还有免费试用 → 温和提示，不挡路 */
.tk-login.trial {
  background: var(--soft); border-color: var(--line); color: var(--muted);
}
.tk-login.trial b { color: var(--ink); }
.tk-login.trial a { color: var(--accent-ink); }
/* 试用用完 / 非会员时换成更醒目的强调色（不是错误，是引导开通） */
.tk-login.member {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink);
}
.tk-login.member a { color: var(--accent-ink); }

/* ---------------- 三类型切换 ---------------- */
.tk-tabs {
  display: flex; gap: 7px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.tk-tab {
  flex: none; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-family: inherit;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 10px; cursor: pointer;
}
.tk-tab.on {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

/* ---------------- 模考二级切换（雅思 / 托福） ---------------- */
.tk-subtabs { display: flex; gap: 7px; margin: 0 0 11px; }
/* 🔴 给了 display:flex 就必须显式写 [hidden]，否则 hidden 属性失效、按钮一直显示 */
.tk-subtabs[hidden] { display: none; }
.tk-subtab {
  flex: 1; padding: 9px 6px; font-size: 13px; font-weight: 700; font-family: inherit;
  color: var(--muted); background: var(--soft);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.tk-subtab:active { opacity: .85; }
.tk-subtab.on {
  color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent);
}
/* 分类多的那一栏（旅行生活 8 个）横向滚动，不换行、不显示滚动条 */
.tk-subtabs.scroll {
  overflow-x: auto; flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.tk-subtabs.scroll::-webkit-scrollbar { display: none; }
.tk-subtabs.scroll .tk-subtab {
  flex: 0 0 auto; padding: 8px 13px; white-space: nowrap; font-size: 12.5px;
}

/* ---------------- 场景分组标题（旅行生活场景按高频分段） ---------------- */
.tk-grp {
  margin: 15px 2px 8px;
  font-size: 12px; font-weight: 700; color: var(--faint);
  letter-spacing: .03em;
}
.tk-grp:first-child { margin-top: 2px; }


/* ---------------- 岗位定制面试：入口卡 + 弹窗 ---------------- */
.tk-role {
  display: flex; align-items: center; gap: 11px; width: 100%;
  text-align: left; font-family: inherit; cursor: pointer;
  padding: 13px 12px; border-radius: 13px; margin-bottom: 10px;
  border: 1px dashed var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--panel) 72%);
}
.tk-role:active { opacity: .85; }
.tk-role-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--accent); color: #fff;
}
.tk-role-main { flex: 1; min-width: 0; }
.tk-role-main b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tk-role-main small {
  display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); line-height: 1.5;
}
.tk-role-go {
  flex: none; font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 6px 10px; border-radius: 8px;
}

/* ---------------- 岗位定制面试：独立整页（不用弹窗） ----------------
   2026-10-31 颖总：原来做成半透明浮层 + 遮罩，跟背后场景卡的标题/副标题叠在一起，
   整块糊得看不清。改成切走列表页、展开这一页 —— 没有任何背景文字重叠。
   下面这几条是「页面骨架」，输入框/麦克风/chips/题量档位仍复用 .tk-input / .tk-mic / .tk-chip / .tk-size。 */
.tk-rolepg { padding-bottom: 30px; }
.tk-rolepg-back {
  display: inline-flex; align-items: center;
  border: none; background: none; padding: 0;
  margin: 0 0 14px; color: var(--accent);
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.tk-rolepg-t { margin: 0 0 7px; font-size: 19px; font-weight: 700; color: var(--ink); }
.tk-rolepg-sub { margin: 0 0 16px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.tk-rolepg-sub b { color: var(--ink); }
.tk-rolepg-label { margin: 18px 0 0; font-size: 11.5px; color: var(--faint); }
.tk-rolepg-msg {
  min-height: 0; margin-top: 12px;
  font-size: 12.5px; line-height: 1.6; color: var(--danger);
}
.tk-rolepg-msg:empty { display: none; }
.tk-rolepg-go { width: 100%; margin-top: 16px; }
.tk-rolepg-go:disabled { opacity: .6; cursor: default; }
.tk-rolepg-tip {
  margin: 12px 0 0; text-align: center;
  font-size: 11.5px; color: var(--faint); line-height: 1.6;
}

.tk-role-row { display: flex; gap: 7px; align-items: stretch; }
.tk-input {
  flex: 1; min-width: 0; box-sizing: border-box;
  padding: 11px 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: var(--soft);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.tk-input:focus { border-color: var(--accent); background: var(--panel); }
.tk-input::placeholder { color: var(--faint); font-size: 13px; }
.tk-mic {
  flex: none; width: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--soft); color: var(--ink); font-size: 17px;
  cursor: pointer; font-family: inherit;
}
.tk-mic.rec {
  background: var(--danger); border-color: var(--danger); color: #fff;
  animation: tkPulse 1s ease-in-out infinite;
}
@keyframes tkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.tk-chip {
  border: 1px solid var(--line); background: var(--soft); color: var(--muted);
  font-size: 11.5px; font-family: inherit; padding: 5px 9px;
  border-radius: 20px; cursor: pointer; line-height: 1.4;
}
.tk-chip:active { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.tk-chip.on {
  background: var(--accent-soft); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 600;
}
/* 岗位 chip 上的「公司类型」角标（2026-11-01）：
   决定要不要英文面试的不是岗位而是公司类型 —— 同一个会计，国内所纯中文、四大可能全英文。
   角标只标「外企 / 出海」，不标「国内」（不打扰用户，靠 title 兜底说明）。 */
.tk-chip-co {
  display: inline-block; margin-left: 4px; padding: 0 4px;
  border-radius: 4px; font-style: normal; font-size: 9.5px; line-height: 1.6;
  background: var(--accent-soft); color: var(--accent-ink);
  vertical-align: 1px; white-space: nowrap;
}

/* 题量选择（2026-10-31 颖总：6 题别把人卡死，给档位） */
.tk-size {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.tk-size-t { font-size: 11.5px; color: var(--faint); margin-right: 2px; }
.tk-size .tk-chip { font-size: 12px; padding: 6px 11px; }

/* ---------------- 对话列表 ---------------- */
.tk-list { display: grid; gap: 9px; }
.tk-card {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left; font-family: inherit;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px 14px; cursor: pointer;
}
.tk-card:active { background: var(--soft); }
.tk-card-ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.tk-card-main { flex: 1; min-width: 0; }
.tk-card-main b {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-card-main small {
  display: block; margin-top: 3px; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-card-go { flex: none; color: var(--faint); font-size: 15px; }

/* ---------------- 对话中：三栏 ---------------- */
.tk-room {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 258px;
  gap: 12px;
  max-width: 1180px; margin: 0 auto;
  padding: 12px 12px 0;
  height: calc(100vh - 52px);
  height: calc(100dvh - 52px);
}
.tk-pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
  overflow: hidden;
}

/* 左栏 */
.tk-pane-side { padding: 14px; display: flex; flex-direction: column; }
.tk-side-title {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  line-height: 1.45; word-break: break-word;
}
.tk-side-sub { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.tk-prog {
  margin: 13px 0 7px; height: 5px; border-radius: 3px;
  background: var(--soft); overflow: hidden;
}
.tk-prog i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .25s; }
.tk-side-step { font-size: 12px; color: var(--faint); }
.tk-side-tip {
  margin: 14px 0 auto; font-size: 11.5px; line-height: 1.7; color: var(--faint);
  border-top: 1px dashed var(--line); padding-top: 11px;
}

/* 中栏：对话流 */
.tk-pane-chat { display: flex; flex-direction: column; }
.tk-msgs {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px;
}
.tk-msg { display: flex; gap: 8px; margin-bottom: 13px; align-items: flex-start; }
.tk-msg-av {
  width: 28px; height: 28px; flex: none; border-radius: 8px;
  background: var(--soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.tk-msg-bd { flex: 1; min-width: 0; }
.tk-msg-nm { display: block; font-size: 10.5px; color: var(--faint); margin-bottom: 3px; letter-spacing: .03em; }
.tk-msg-tx {
  display: inline-block; max-width: 100%;
  font-size: 14px; line-height: 1.65; color: var(--ink);
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 12px; border-top-left-radius: 4px;
  padding: 8px 12px; word-break: break-word;
}
.tk-msg.me .tk-msg-tx {
  background: var(--accent-soft); border-color: var(--accent-soft);
  color: var(--accent-ink); border-radius: 12px; border-top-right-radius: 4px;
}
.tk-msg.me { flex-direction: row-reverse; }
.tk-msg.me .tk-msg-nm { text-align: right; }
.tk-msg-cn { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); line-height: 1.6; }
.tk-replay {
  display: inline-block; margin-top: 5px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--accent-ink); font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 7px; cursor: pointer;
}
.tk-ref {
  margin-top: 5px; font-size: 11.5px; color: var(--faint);
  border-left: 2px solid var(--line); padding-left: 8px; line-height: 1.65;
}
.tk-ref b { color: var(--muted); font-weight: 600; }

/* 「💡 看提示」（2026-11-01）：说话前就地展开参考说法。
   🔴 提示块底色用 --bg 不用 --panel：--panel 在几套主题里是半透明的，会盖不住字。 */
.tk-hint-btn {
  display: inline-block; margin-top: 5px; margin-left: 6px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--accent-ink); font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 7px; cursor: pointer;
}
.tk-hint-btn[disabled] { color: var(--faint); cursor: default; opacity: .7; }
.tk-hint {
  display: block; margin-top: 6px; max-width: 100%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 10px; padding: 9px 11px;
}
.tk-hint-tag {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--muted); margin-bottom: 4px;
}
.tk-hint-en { display: block; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.tk-hint-cn { display: block; font-size: 12px; line-height: 1.65; color: var(--muted); margin-top: 3px; }

/* 中栏：录音条 */
.tk-recbar {
  flex: none; border-top: 1px solid var(--line);
  padding: 11px 14px calc(13px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
}
.tk-wave {
  height: 22px; display: flex; align-items: flex-end; justify-content: center;
  gap: 3px; margin-bottom: 8px; opacity: 0; transition: opacity .2s;
}
.tk-wave.on { opacity: 1; }
.tk-wave i {
  display: block; width: 3px; border-radius: 2px;
  background: var(--accent); height: 4px;
}
.tk-state {
  margin-top: 8px; text-align: center;
  font-size: 12px; color: var(--faint); line-height: 1.6;
}

/* ---------------- 右栏：反馈 ---------------- */
.tk-pane-fb {
  padding: 14px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.tk-fb-title {
  font-size: 12px; font-weight: 700; color: var(--ink);
  letter-spacing: .02em; margin-bottom: 9px;
}
.tk-fb-title.mt { margin-top: 16px; }
.tk-fb-empty { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.7; }
.tk-fb-item {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; margin-bottom: 7px;
}
.tk-fb-good { font-size: 12px; font-weight: 700; color: var(--ok); }
.tk-fb-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 5px; margin-bottom: 4px;
}
.tk-fb-tag.must { background: var(--danger-soft); color: var(--danger); }
.tk-fb-tag.sug { background: var(--warn-soft); color: var(--warn); }
.tk-fb-line { font-size: 12.5px; line-height: 1.65; color: var(--muted); word-break: break-word; }
.tk-fb-line s { color: var(--danger); text-decoration: line-through; }
.tk-fb-line em { color: var(--ok); font-style: normal; font-weight: 700; }
.tk-fb-why { margin: 4px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.tk-fb-stat > div {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.tk-fb-stat > div:last-child { border-bottom: none; }
.tk-fb-stat b { color: var(--ink); font-weight: 700; }
.tk-fb-note { margin: 13px 0 0; font-size: 11px; color: var(--faint); line-height: 1.6; }

/* ───────── 发音分（2026-11-02 接上音素级评测引擎）─────────
   原来这里是一句「发音评分需接入评测引擎，暂未开放」；引擎接上后换成真实评分卡。
   底色用 --bg 不用 --panel（部分主题 --panel 半透明会把字透出来，同盲听那条铁律）。 */
.tk-pron {
  margin: 13px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.tk-pron-top { display: flex; align-items: baseline; gap: 7px; }
.tk-pron-top b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tk-pron-top span { font-size: 11.5px; color: var(--muted); }
.tk-pron .good { color: #1a9e6f; }
.tk-pron .mid { color: var(--accent-ink); }
.tk-pron .low { color: #d85a30; }
.tk-pron-sub { display: flex; gap: 13px; margin-top: 6px; }
.tk-pron-sub i { font-style: normal; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-pron-sub em { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--muted); margin-left: 3px; }
.tk-pron-weak { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.tk-pron-weak > span { font-size: 11px; color: var(--muted); }
/* 弱词是按钮（2026-11-02）：点一下存进生词本，所以必须有 button 的 reset */
.tk-pron-w {
  font-family: inherit; font-size: 11.5px; font-weight: 700; padding: 1px 7px;
  border-radius: 999px; cursor: pointer; border: 0;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.tk-pron-w i { font-style: normal; font-weight: 600; opacity: .75; margin-left: 4px; font-size: 10.5px; }
.tk-pron-w.saved { box-shadow: inset 0 0 0 1px var(--accent); }
.tk-pron-w.saved::after { content: " ✓"; opacity: .8; }
.tk-pron-msg { font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.tk-pron-msg b { color: var(--ink); }

/* ---------------- 按钮 ---------------- */
.tk-btn {
  width: 100%; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 12px 14px; border-radius: 11px; cursor: pointer;
}
.tk-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.tk-btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.tk-btn.ghost { background: var(--soft); color: var(--muted); }
.tk-btn.big { padding: 14px; font-size: 15px; }
.tk-btn.sm { padding: 8px 12px; font-size: 12.5px; }
.tk-btn:disabled { opacity: .55; cursor: default; }

/* ---------------- 报告 ---------------- */
.tk-rep-head { margin-bottom: 14px; }
.tk-rep-title { font-size: 19px; font-weight: 700; color: var(--ink); }
.tk-rep-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.tk-rep-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.tk-rep-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 9px; text-align: center;
}
.tk-rep-card span { display: block; font-size: 11px; color: var(--faint); }
.tk-rep-card b { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.tk-rep-sec { margin-bottom: 18px; }
.tk-rep-sec h2 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 9px; }
.tk-rep-line {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; margin-bottom: 7px;
  font-size: 13px; line-height: 1.7; color: var(--muted); word-break: break-word;
}
.tk-rep-line .q { color: var(--faint); font-size: 12px; display: block; margin-bottom: 4px; }
.tk-rep-actions { display: flex; gap: 9px; margin-top: 6px; }
.tk-rep-actions .tk-btn { flex: 1; }

/* =========================================================================
 * 窄屏：纵向堆叠
 * ========================================================================= */
@media (max-width: 900px) {
  .tk-room {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
    gap: 8px;
    padding: 8px 8px 0;
  }
  .tk-pane-side {
    flex-direction: row; align-items: center; gap: 10px;
    /* 🔴 窄屏这一行是**横排**（标题 + 第几句 + 结束按钮）⇒ 侧栏里的 AI 标识条
       会被挤成一根竖排的细柱子（实测文字一个个竖着落）。
       加 flex-wrap 让它换到下一行、并整行占满。 */
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .tk-pane-side .tk-aibar.sm {
    flex: 1 1 100%; margin: 2px 0 0; padding: 6px 9px;
  }
  .tk-pane-side .tk-aibar.sm .tk-aibar-tx { font-size: 11.5px; line-height: 1.5; }
  .tk-side-title { font-size: 13.5px; flex: 1 1 auto; min-width: 0; }
  .tk-side-sub, .tk-side-tip { display: none; }
  /* 窄屏不显示进度条（「第 1 / 6 句」这行字已经说清楚了），把空间让给退出按钮 */
  .tk-prog { display: none; }
  .tk-side-step { flex: none; font-size: 11px; }
  /* 🔴 2026-10-31 修：原来这里是 display:none，手机上「结束这一场」被藏掉了 ——
     用户想中途换一场（自由对话主题不满意时尤其常见）只能退回首页、再点进来，多两步。
     改成缩小的胶囊放在标题右侧。 */
  .tk-pane-side .tk-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
    /* 🔴 .tk-btn 基础样式是 width:100%，这里必须显式改回 auto，
       否则按钮会占满整行、把标题挤成一列竖排（第一版就这么翻的） */
    width: auto; white-space: nowrap;
    padding: 5px 9px; font-size: 11.5px; border-radius: 8px;
  }

  .tk-msgs { padding: 11px; }
  .tk-msg-tx { font-size: 13.5px; }

  /* 反馈栏收成一张紧凑卡片，跟对话一起滚 */
  .tk-pane-fb { display: flex; flex-direction: column; max-height: 34vh; padding: 11px 12px; }
  .tk-fb-note { display: none; }
  /* 🔴 手机上发音分必须第一眼看到：反馈栏只有 34vh、内容却有 500 多像素，
     按原来的 DOM 顺序它被挤到 1000px 之外（实测 pronTop=1004 / vh=820），要滚才看得见。
     用 order:-1 把它提到最上面，压缩字号，其余照旧往下排。 */
  .tk-pane-fb #tkPron { order: -1; margin: 0 0 10px; padding: 9px 11px; }
  .tk-pane-fb #tkPron .tk-pron-top b { font-size: 22px; }
  .tk-pane-fb #tkPron .tk-pron-sub { gap: 11px; margin-top: 4px; }
  .tk-pane-fb #tkPron .tk-pron-weak { margin-top: 5px; }
  /* 累计三行压薄一点，把高度留给发音分和本轮挑错 */
  .tk-fb-stat > div { padding: 3px 0; font-size: 12px; }
  .tk-recbar { padding: 9px 11px calc(11px + env(safe-area-inset-bottom, 0px)); }
  .tk-btn.big { padding: 13px; font-size: 14.5px; }

  .tk-rep-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .tk-tabs { gap: 6px; }
  .tk-tab { padding: 8px 12px; font-size: 13px; }
}

/* ───────── 评价方式切换（2026-11-02）─────────
   颖总：「整场一起评 / 说一句评一句，让用户自己选」。
   默认逐句（即时纠错更有效），整场适合模拟真实面试。 */
.tk-mode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.tk-mode-t { font-size: 12px; color: var(--muted); }
.tk-mode .tk-chip { font-size: 12.5px; }


/* ───────── 整场点评（2026-11-02）───────── */
.tk-sess-band {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 8px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent);
}
.tk-sess-verdict { font-size: 14px; line-height: 1.75; color: var(--ink); margin: 0 0 12px; }
.tk-sess-block { margin: 0 0 12px; }
.tk-sess-block > b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 5px; }
.tk-sess-block ul { margin: 0; padding-left: 18px; }
.tk-sess-block li { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 3px; }
.tk-sess-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-sess-tags span {
  font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
}

/* ───────── 「日常对话」启动卡（2026-11-02）─────────
   颖总：「默认停在日常对话那里，不要是旅行生活」。
   原来 daily 是跳转型按钮、点了直接进对话；现在默认停在这一栏，用它开始。 */
.tk-start-free {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 16px; margin-bottom: 14px; text-align: left;
  font-family: inherit; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.tk-start-free:active { border-color: var(--accent); }
.tk-sf-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--accent-soft);
}
.tk-sf-tx { flex: 1 1 auto; min-width: 0; }
.tk-sf-tx b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.tk-sf-tx em { font-style: normal; font-size: 12px; line-height: 1.6; color: var(--muted); }
.tk-sf-go { flex: none; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }

/* 重录按钮：跟在「下一句」下面，做成一条不抢戏的小按钮 */
.tk-redo { margin-top: 8px; opacity: .9; }

/* ───────── 模考目标分（2026-11-02）───────── */
.tk-target { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.tk-target[hidden] { display: none; }
.tk-target-t { font-size: 12px; color: var(--muted); }
.tk-target-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-target .tk-chip { font-size: 12.5px; }
.tk-target-hint { font-size: 11px; color: var(--faint); }
.tk-target-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; }
.tk-target-custom[hidden] { display: none; }
.tk-target-custom input {
  width: 78px; padding: 5px 9px; border-radius: 8px; font-family: inherit;
  font-size: 13px; font-weight: 700; text-align: center;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); outline: none;
}
.tk-target-custom input:focus { border-color: var(--accent); }
/* 高目标分时才出现的那句提醒：说清 AI 能看到什么、看不到什么，别让人以为 8 分也测得准 */
.tk-target-hint.warn { flex: 1 1 100%; color: var(--muted); line-height: 1.6; }

/* ───────── 「距离你的目标」（2026-11-02）─────────
   模考整场考完才出现。分数一律标「估算」，发音那一行用真实评测分。 */
.tk-gap-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tk-gap-now { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-gap-arrow { font-size: 13px; color: var(--faint); }
.tk-gap-tgt { font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.tk-gap-note { font-size: 10.5px; color: var(--faint); margin-left: auto; }
.tk-gap-verdict { font-size: 13px; line-height: 1.7; color: var(--ink); margin: 0 0 10px; }
/* 高目标分（8+）的依据说明：告诉用户 AI 依据的是文字，不是他真实的声音表现 */
.tk-gap-est {
  font-size: 12px; line-height: 1.7; color: var(--muted);
  margin: 0 0 12px; padding: 8px 10px; border-radius: 9px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.tk-gap-est b { color: var(--ink); }
.tk-gap-dims { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.tk-gap-row {
  display: grid; grid-template-columns: 84px 88px 1fr; gap: 8px; align-items: baseline;
  padding: 8px 10px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.tk-gap-row b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tk-gap-row i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.tk-gap-row em { font-style: normal; font-size: 12px; line-height: 1.6; color: var(--muted); }
.tk-gap-pron i { color: #1a9e6f; }
.tk-gap-prio { margin-top: 2px; }
.tk-gap-prio > b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 5px; }
.tk-gap-prio ol { margin: 0; padding-left: 20px; }
.tk-gap-prio li { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 900px) {
  .tk-gap-row { grid-template-columns: 72px 1fr; }
  .tk-gap-row em { grid-column: 1 / -1; }
}

/* ───────── AI 生成显著标识（2026-11-02 微信审核 / 深度合成合规）─────────
   审核要求：AI 生成页面须有「AI生成 / 人工智能生成」或同等含义的显著说明。
   底色用 --bg + 内描边，不用半透明 --panel（会透字，同盲听那条铁律）。
   字号 ≥12px：太小会被判成不显眼。 */
.tk-aibar {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 14px; padding: 9px 12px; border-radius: 10px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.tk-aibar.sm { margin: 12px 0 0; padding: 7px 10px; }
.tk-aibar-tag {
  flex: none; font-size: 12px; font-weight: 800; line-height: 1.5;
  padding: 1px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; white-space: nowrap;
}
.tk-aibar-tx { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* 单条 AI 消息名旁的标签 */
.tk-ai-tag {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  font-size: 10.5px; font-weight: 700; line-height: 1.6;
  padding: 0 5px; border-radius: 4px;
  background: var(--panel); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* 岗位定制页那行说明 */
.tk-ai-line { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* =========================================================================
 * 🀄 中文搭稿（2026-11-06，职场模块）
 * -------------------------------------------------------------------------
 * 配色一律用 speaking.css 的变量（本文件不写死颜色，否则只有一套主题对）。
 * 🔴 类名前缀 .tk-cp-：.tk-* 已被对话页占满，撞名会静默改坏别处
 *    （.tk-state / .tk-step 这类通用名尤其危险）。
 *
 * 信息层级照搬雅思模考那套（已被验证过的顺序）：
 *   答案本体 + 朗读 + 「说这段，开始录音」在第一屏，解析全部折进 <details>，
 *   否则录音按钮会被顶出屏幕 —— 这正是「搬进现场」之后才出现的约束。
 * ========================================================================= */

/* ---------- 入口（录音条里，就在「点一下，开始说」正上方）---------- */
.tk-cp-entry {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; margin-bottom: 8px;
  border: 1px dashed var(--line); border-radius: 11px;
  background: var(--soft); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tk-cp-entry-ic { font-size: 17px; line-height: 1; flex: none; }
.tk-cp-entry-tx { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.tk-cp-entry-tx b { font-size: 13px; font-weight: 600; }
.tk-cp-entry-tx span { font-size: 11px; color: var(--muted); }
.tk-cp-entry i { flex: none; font-style: normal; font-size: 11.5px; color: var(--accent-ink); }
@media (hover: hover) { .tk-cp-entry:hover { border-color: var(--accent); background: var(--accent-soft); } }
@media (hover: none)  { .tk-cp-entry:active { border-color: var(--accent); background: var(--accent-soft); } }

/* ---------- 面板 ---------- */
/* 🔴🔴 底部抽屉（2026-11-06 两次试错后的最终形态）
 *   试过「塞进对话区当一块面板」，两次都失败，原因写在下面，别改回去：
 *     ① 写上 flex:0 1 auto → 被 flex 压缩到 175px，内容 601px，答案和按钮全在滚动区外；
 *     ② 改成 flex:none + max-height 72% → 面板 324px + 录音条 180px = 504px，
 *        而对话区只有 428px ⇒ 主录音按钮被挤出 overflow:hidden 之外（截图里直接看不见）。
 *   抽屉不参与任何 flex 计算，高度由自己定，答案 + 按钮 + 说明一定能同屏。 */
.tk-cp-mask {
  position: fixed; inset: 0; z-index: 38;
  background: rgba(0, 0, 0, .42);
}
/* 🔴 抽屉 = flex 三段（2026-11-06 第三版，前两版都栽在「按钮够不着」）：
 *   ① .tk-cp-grab / .tk-cp-head   固定
 *   ② .tk-cp-scroll               唯一可滚区（内容长短都在这层消化）
 *   ③ .tk-cp-footbar              固定底部动作区（**不能叫 tk-cp-bar**：那是电平条）
 *   为什么不能用 sticky 按钮：sticky 永远悬在内容之上，无论如何留白都会压住正文最后两行
 *   （实测 "…the direct impact of my decisions." 被盖掉一半）。把它挪出滚动区才是干净的。 */
.tk-cp {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 39;
  max-height: 78vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: var(--bg);
}
.tk-cp-scroll {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 14px 12px;
}
/* 🔴 叫 footbar，不叫 bar —— .tk-cp-bar 是麦克风电平条（3px 绝对定位），撞名按钮就没了 */
.tk-cp-footbar {
  flex: none;
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.tk-cp-footbar[hidden] { display: none; }
.tk-cp-footbar .tk-btn { width: 100%; }
.tk-cp-grab {
  flex: none;
  width: 38px; height: 4px; border-radius: 2px; margin: 8px auto 0;
  background: var(--line);
}
/* PC：不占满整宽，居中一块（跟其它浮层一致） */
@media (min-width: 901px) {
  .tk-cp { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 18px; border-radius: 16px; }
}
/* 头部固定（在滚动区之外，不需要 sticky） */
.tk-cp-head {
  flex: none;
  display: flex; align-items: center; gap: 9px;
  margin: 0; padding: 8px 14px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.tk-cp-ic { font-size: 19px; line-height: 1; flex: none; }
.tk-cp-ht { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.tk-cp-ht b { font-size: 14px; }
.tk-cp-ht span { font-size: 11px; color: var(--muted); }
.tk-cp-x {
  flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 11.5px; padding: 4px 9px; border-radius: 8px; cursor: pointer;
}

/* 对方刚才说的那句（面板里必须能看到，否则收起再展开就忘了在搭哪一句） */
.tk-cp-q {
  display: flex; gap: 7px; align-items: baseline; margin: 0 0 10px;
  background: var(--panel); border-radius: 9px; padding: 8px 10px;
  font-size: 12px; line-height: 1.6; color: var(--ink-soft);
}
.tk-cp-q-tag {
  flex: none; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px;
  color: var(--accent-ink); background: var(--accent-soft);
}
.tk-cp-q-tx { min-width: 0; }

.tk-cp-step { display: flex; align-items: center; gap: 7px; margin: 12px 0 7px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.tk-cp-step i {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-size: 10.5px;
  background: var(--accent); color: #fff;
}

/* 录音大按钮（主入口） */
.tk-cp-mic {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1.5px solid var(--accent); border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-ink);
  font: inherit; text-align: left; cursor: pointer;
  position: relative; overflow: hidden;
}
.tk-cp-mic-ic { font-size: 22px; line-height: 1; flex: none; }
.tk-cp-mic-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tk-cp-mic-tx b { font-size: 14px; font-weight: 600; color: var(--ink); }
.tk-cp-mic-tx span { font-size: 11.5px; color: var(--muted); }
.tk-cp-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; }
.tk-cp-bar i { display: block; height: 100%; width: 3%; background: var(--accent); transition: width .12s linear; }
.tk-cp-mic.rec { border-color: var(--danger); background: rgba(199,76,89,.10); }
.tk-cp-mic.rec .tk-cp-mic-tx b { color: var(--danger); }
.tk-cp-mic.rec .tk-cp-bar i { background: var(--danger); }
.tk-cp-mic.busy { opacity: .72; cursor: default; }

.tk-cp-type { margin-top: 9px; }
.tk-cp-tt {
  background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 12px;
  cursor: pointer; padding: 3px 0; text-decoration: underline; text-underline-offset: 3px;
}
.tk-cp-ta {
  width: 100%; box-sizing: border-box; margin-top: 7px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  font: inherit; font-size: 13.5px; line-height: 1.7; color: var(--ink);
  background: var(--panel); resize: vertical; min-height: 84px;
}
.tk-cp-ta:focus { outline: none; border-color: var(--accent); }
.tk-cp-cnt { text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.tk-cp-cnt .warn { color: var(--danger); }

.tk-cp-gen { width: 100%; }
.tk-cp-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.tk-cp-dim { font-size: 11.5px; color: var(--muted); }
.tk-cp-loading { text-align: center; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); padding: 12px 0; }
.tk-cp-err { font-size: 12.5px; line-height: 1.7; color: var(--danger); padding: 6px 0; }

/* ---------- 结果：答案本体第一屏 ---------- */
.tk-cp-ans { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.tk-cp-ans-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.tk-cp-badge { font-size: 11.5px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.tk-cp-ops { margin-left: auto; display: flex; gap: 6px; }
.tk-cp-mini {
  background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft);
  font: inherit; font-size: 11.5px; padding: 4px 9px; cursor: pointer;
}
.tk-cp-mini.strong { background: var(--accent); border-color: var(--accent); color: #fff; }
.tk-cp-mini.playing { background: var(--accent); border-color: var(--accent); color: #fff; }
.tk-cp-answer { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
/* 「说这段，开始录音」—— 抽屉里给足高度后它一定可见（这是整个流程的出口） */
.tk-cp-foot { margin-top: 11px; }
.tk-cp-foot .tk-btn { width: 100%; }
.tk-cp-check { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.tk-cp-mine { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12px; line-height: 1.7; color: var(--muted); }
.tk-cp-mine span { display: block; font-size: 11px; opacity: .8; margin-bottom: 3px; }

/* ---------- 折起来的次要内容（原生 details）---------- */
.tk-cp-more { margin-top: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0 11px; }
.tk-cp-more summary {
  cursor: pointer; font-size: 12px; color: var(--ink-soft); padding: 10px 0; list-style: none;
  display: flex; align-items: center; gap: 6px;
}
.tk-cp-more summary::-webkit-details-marker { display: none; }
.tk-cp-more summary::before { content: "▸"; font-size: 10.5px; color: var(--muted); }
.tk-cp-more[open] summary::before { content: "▾"; }
.tk-cp-more > *:last-child { padding-bottom: 11px; }
.tk-cp-regenrow { margin-top: 8px; text-align: right; }

.tk-cp-sents { list-style: none; margin: 0; padding: 0; }
.tk-cp-sent { padding: 9px 0; border-bottom: 1px solid var(--line); }
.tk-cp-sent:last-child { border-bottom: 0; }
.tk-cp-sent-en { font-size: 13.5px; line-height: 1.65; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .tk-cp-sent-en:hover { color: var(--accent); } }
.tk-cp-sent-en.playing { color: var(--accent); }
.tk-cp-sent-why { margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.tk-cp-tag { display: inline-block; font-size: 10.5px; border-radius: 5px; padding: 1px 6px; margin-right: 5px; }
.tk-cp-tag.t-LR { background: rgba(15,134,196,.12); color: var(--accent-ink); }
.tk-cp-tag.t-GRA { background: rgba(245,166,35,.16); color: #8a5a00; }
.tk-cp-tag.t-CC { background: rgba(32,134,85,.12); color: var(--green); }
.tk-cp-tag.t-TR { background: rgba(199,76,89,.12); color: var(--danger); }

.tk-cp-gaps { list-style: none; margin: 0; padding: 0; }
.tk-cp-gap { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }
.tk-cp-gap:last-child { border-bottom: 0; }
.tk-cp-gap b { display: block; color: var(--ink); margin-bottom: 3px; font-weight: 500; }
.tk-cp-gap span { color: var(--ink-soft); }

.tk-cp-phrases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-cp-phrase { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.tk-cp-phrase b { color: var(--ink); font-weight: 500; }
.tk-cp-phrase span { color: var(--muted); font-size: 11.5px; }
.tk-cp-add {
  margin-left: auto; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--accent);
  font-size: 13px; line-height: 1; cursor: pointer;
}

/* ---------- 素材与对方那句话对不上（是引导，不是报错）---------- */
.tk-cp-mm { background: var(--panel); border: 1px solid var(--warn); border-radius: 12px; padding: 12px; margin-top: 10px; }
.tk-cp-mm-t { margin: 0 0 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tk-cp-mm-x { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.tk-cp-mm-h { margin: 9px 0 0; padding-left: 17px; font-size: 12px; line-height: 1.75; color: var(--ink-soft); }
.tk-cp-mm-h li { margin-bottom: 5px; }
.tk-cp-mm-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tk-cp-mm-a .tk-btn { flex: 1; min-width: 120px; }

/* ---------- 结果态：收起输入区，答案 + 出口按钮进同一屏 ----------
   面板限高 74%，答案 200 字符 + 折叠条 + 完整的输入区会把「说这段，开始录音」顶出滚动区。
   生成完自动进这个态；点「✎ 改一下我说的」回到输入态。 */
.tk-cp.has-result .tk-cp-q,
.tk-cp.has-result .tk-cp-step,
.tk-cp.has-result .tk-cp-mic,
.tk-cp.has-result .tk-cp-type,
.tk-cp.has-result .tk-cp-gen,
.tk-cp.has-result .tk-cp-sample-btn,
.tk-cp.has-result .tk-cp-note { display: none; }
.tk-cp-regenrow { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- 录音中：稿子移到屏幕上半部 ----------
 * 🔴 为什么必须换边：抽屉是 bottom:0，录音条也在页面底部 ——
 *   实测「说完了」按钮被抽屉整个盖住，用户录着音找不到停止键。
 *   录音时把抽屉贴到顶栏下方、只留答案（+对方那句话），底部完整让给波形和「说完了」。 */
.tk-cp.answering {
  top: 52px; bottom: auto;
  max-height: 46vh;
  border-top: 0; border-bottom: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  padding-top: 0;
}
.tk-cp.answering .tk-cp-grab { display: none; }
@media (min-width: 901px) {
  .tk-cp.answering { top: 70px; bottom: auto; width: 560px; left: 50%; transform: translateX(-50%); border-radius: 16px; border-top: 1px solid var(--line); }
}
.tk-cp.answering .tk-cp-step,
.tk-cp.answering .tk-cp-mic,
.tk-cp.answering .tk-cp-type,
.tk-cp.answering .tk-cp-gen,
.tk-cp.answering .tk-cp-note,
.tk-cp.answering .tk-cp-check,
.tk-cp.answering .tk-cp-mine,
.tk-cp.answering .tk-cp-more,
.tk-cp.answering .tk-cp-regenrow,
.tk-cp.answering .tk-cp-foot { display: none; }
.tk-cp.answering .tk-cp-ans { margin-top: 0; }

@media (max-width: 560px) {
  .tk-cp { max-height: 82vh; }
  .tk-cp-scroll { padding: 0 12px 11px; }
  .tk-cp-footbar { padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); }
  .tk-cp-head { padding: 8px 12px; }
  .tk-cp-mic { padding: 12px; gap: 10px; }
  .tk-cp-mic-tx b { font-size: 13.5px; }
  .tk-cp-mic-ic { font-size: 20px; }
  .tk-cp-answer { font-size: 14px; }
  .tk-cp-entry-tx span { display: none; }
}

/* =========================================================================
 * 🆘 示范答案（2026-11-06，"我暂时想不到怎么回答"）
 * -------------------------------------------------------------------------
 * 产品底线：这是**示范**，不是用户的经历。所以视觉上有两层保护：
 *   ① 顶部粉色标签明写「示范答案 · 不是你的经历」
 *   ② 「说之前先改这几处」用 warn 色块放在答案**上面**（放折叠里等于没放）
 * ========================================================================= */
.tk-cp-sample-btn{
  width:100%; display:flex; align-items:center; gap:9px; margin-top:10px;
  padding:9px 11px; border-radius:11px; cursor:pointer; font:inherit; text-align:left;
  border:1px dashed var(--line); background:transparent; color:var(--ink);
}
/* 🔴 display:flex 会盖掉 [hidden] 的 UA 样式（display:none）——
   漏了这行，JS 里 `btn.hidden = true` 在会议/谈判场景**照样显示**（踩过：行内元素用 flex 时必加）。 */
.tk-cp-sample-btn[hidden]{display:none}
.tk-cp-sb-ic{font-size:16px; line-height:1; flex:none}
.tk-cp-sb-tx{display:flex; flex-direction:column; gap:1px; flex:1; min-width:0}
.tk-cp-sb-tx b{font-size:12.5px; font-weight:600}
.tk-cp-sb-tx span{font-size:11px; color:var(--muted)}
@media (hover:hover){ .tk-cp-sample-btn:hover{border-color:var(--accent); background:var(--accent-soft)} }
@media (hover:none){ .tk-cp-sample-btn:active{border-color:var(--accent); background:var(--accent-soft)} }

.tk-cp-sample{background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px; margin-top:6px}
.tk-cp-sample-tag{
  display:inline-flex; align-items:center; gap:6px; margin-bottom:10px;
  font-size:11.5px; font-weight:700; border-radius:999px; padding:2px 10px;
  background:rgba(199,76,89,.12); color:var(--danger);
}
.tk-cp-sample-tag span{font-weight:400; opacity:.85}
.tk-cp-block-h{
  display:flex; align-items:baseline; gap:6px; margin:12px 0 6px;
  font-size:12px; font-weight:600; color:var(--ink-soft);
}
.tk-cp-block-h:first-of-type{margin-top:0}
.tk-cp-block-h i{font-style:normal; font-size:11px; color:var(--muted); font-weight:400}
.tk-cp-list{margin:0; padding-left:17px; font-size:12.5px; line-height:1.75; color:var(--ink-soft)}
.tk-cp-list li{margin-bottom:4px}
.tk-cp-swap{
  margin:0 0 12px; padding:10px 12px; border-radius:10px;
  background:rgba(245,166,35,.10); border:1px solid rgba(245,166,35,.35);
}
.tk-cp-swap-h{margin:0 0 6px; font-size:12px; font-weight:700; color:var(--warn)}
.tk-cp-swap ul{margin:0; padding-left:17px; font-size:12.5px; line-height:1.75; color:var(--ink-soft)}
.tk-cp-swap li{margin-bottom:4px}
.tk-cp-samops{display:flex; gap:7px; margin-top:10px}
/* 出口按钮已移到 .tk-cp-footbar（固定底部），结果区里不再放按钮 */
.tk-cp-sample .tk-cp-foot{display:none}
