/* ════════════════════════════════════════════════════
   解药 · 极简风（对标 WorkBuddy App）
   基调：大留白 / 黑底白字(深色) / 底部胶囊输入框 / 无多余卡片
   ════════════════════════════════════════════════════ */

:root {
  --brand:        #07c160;
  --brand-deep:   #06a854;
  --brand-soft:   #e8f8f0;

  --bg:           #ffffff;
  --panel:        #f7f8fa;
  --border:       #ebedf0;

  --ink:          #1a1d21;
  --sub:          #6b7280;
  --faint:        #9aa1ab;

  --radius-pill:  26px;
  --shadow-pop:   0 4px 16px rgba(16,24,40,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: .5; }

/* ═══ 整体 ═══ */
.app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ═══ 顶栏 ═══ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  flex: 0 0 auto;
}
.menu-btn {
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span {
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); display: block;
}
.topbar-title { font-size: 17px; font-weight: 700; letter-spacing: .5px; }

.credits {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.credits-ic { font-size: 12px; }
.credits-num { font-variant-numeric: tabular-nums; }

/* ═══ 主区：大留白 + 吉祥物 + 大字 ═══ */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}
.hero { text-align: center; }

.hero-mascot {
  width: 120px; height: 120px;
  margin: 0 auto 26px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.m-check { stroke: var(--brand); }

.hero-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.hero-sub {
  font-size: 14px;
  color: var(--sub);
}

/* ═══ 底部双输入框（吸底胶囊） ═══ */
.composer {
  flex: 0 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.composer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding: 10px 0;
  max-height: 120px;
}
.field-input::placeholder { color: var(--faint); }

/* 输入框底部工具条（仅"你的想法"框有） */
.field-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 4px;
}
.bar-spacer { flex: 1; }

.bar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--sub);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, transform .1s;
}
.bar-btn:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.bar-btn:active { transform: scale(.9); }

/* 发送键（唯一高亮） */
.bar-btn.send {
  background: var(--brand);
  color: #fff;
  width: 40px; height: 40px;
}
.bar-btn.send:hover { background: var(--brand-deep); color: #fff; }
.bar-btn.send:disabled { background: var(--faint); }

/* ═══ 加载态 ═══ */
.loading {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.loading[hidden] { display: none !important; pointer-events: none; }

.loading-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 26px 34px;
  text-align: center;
}
.spinner { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.spinner i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  animation: bounce 1.2s infinite ease-in-out;
}
.spinner i:nth-child(2) { animation-delay: .15s; }
.spinner i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-8px); opacity: 1; }
}
.loading-text { font-size: 14.5px; font-weight: 700; }
.loading-sub { font-size: 12px; color: var(--sub); margin-top: 5px; }

/* ═══ Toast ═══ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 252px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
  max-width: 82%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════════════
   结果页（result.html 用）
   ════════════════════════════════════════════════════ */
.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.block { margin-bottom: 18px; }
.block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.block-title { font-size: 14px; font-weight: 700; }
.block-tag { font-size: 12px; color: var(--sub); }

.quote-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 12px 14px;
}
.quote-label { font-size: 12px; font-weight: 700; color: var(--brand-deep); flex: 0 0 auto; }
.quote-text { font-size: 14.5px; color: var(--ink); font-weight: 500; }

.reply-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.reply-tag { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tag.humor { background: #fff3e8; color: #e4572e; }
.tag.true  { background: #e8f1ff; color: #2f6bd8; }
.tag.push  { background: var(--brand-soft); color: var(--brand-deep); }

.copy {
  font-size: 12.5px; font-weight: 600; color: var(--brand);
  padding: 4px 12px; border-radius: 99px;
  border: 1px solid var(--brand); background: transparent;
}
.copy:active { background: var(--brand-soft); }

.reply-text { font-size: 15px; line-height: 1.7; font-weight: 500; margin-bottom: 10px; }
.why {
  font-size: 12px; color: var(--sub); line-height: 1.65;
  padding: 9px 11px; background: var(--panel); border-radius: 8px;
}

.forecast { display: flex; flex-direction: column; gap: 8px; }
.f-her, .f-me {
  font-size: 13.5px; line-height: 1.6;
  padding: 9px 12px; border-radius: 10px; max-width: 88%;
}
.f-her { background: var(--panel); border: 1px solid var(--border); align-self: flex-start; }
.f-me  { background: var(--brand-soft); align-self: flex-end; }

.discipline {
  margin: 6px 0 18px;
  padding: 12px 14px;
  background: #fff5f3; border: 1px solid #ffd9cf;
  border-radius: 12px;
  font-size: 12.5px; color: #c2451f; font-weight: 600; text-align: center;
}

.gen {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  background: var(--brand); color: #fff;
  border-radius: 14px;
  font-size: 15px; font-weight: 700;
}
.gen.secondary { background: var(--panel); border: 1px solid var(--border); color: var(--ink); }
.gen-label { font-size: 15px; font-weight: 700; }

/* 结果页专用主区滚动 */
.main.scroll { display: block; align-items: initial; justify-content: initial; padding: 16px; }

/* ═══ 深色模式（对标 WorkBuddy 黑底） ═══ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --panel: #1c1f22;
    --border: #2b2f34;
    --ink: #e8eaed;
    --sub: #9aa1ab;
    --faint: #6b7280;
    --brand-soft: rgba(7,193,96,.16);
    --shadow-pop: 0 4px 16px rgba(0,0,0,.5);
  }
  .loading { background: rgba(17,19,21,.7); }
  .discipline { background: rgba(228,87,46,.12); border-color: rgba(228,87,46,.3); color: #ff9b7a; }
  .bar-btn:hover { background: rgba(255,255,255,.08); }
}

/* ════════════════════════════════════════════════════
   两态输入组件 + 模型面板（v2 · 2026-10-15）
   折叠＝极简（🎤+占位+➕）；聚焦＝展开（+模型▾+消耗+发送）
   ════════════════════════════════════════════════════ */

/* ── 框 2 容器（两态） ── */
.box2 {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color .15s, box-shadow .15s;
}
.box2:focus-within, .box2.expanded {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.mini-row {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px 8px 12px;
  cursor: text;
}
.mini-ph { flex: 1; font-size: 15px; color: var(--faint); padding-left: 2px; }
.full-box { display: none; flex-direction: column; padding: 6px 8px 6px 16px; }
.box2.expanded .mini-row { display: none; }
.box2.expanded .full-box { display: flex; }

/* ── 模型按钮 ── */
.model-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 9px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
  transition: background .15s;
}
.model-btn:hover { background: rgba(0,0,0,.03); }
.model-sum { font-size: 11px; color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
.model-btn .caret { transition: transform .15s; margin-top: 1px; }
.model-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ── 面板页脚（⛔ 无消耗数字 · 只留图例与完成） ── */
.pop-legend { font-size: 11.5px; color: var(--faint); }

/* ── 模型面板（上弹） ── */
.pop {
  position: absolute; left: 0; right: 0;
  bottom: calc(100% + 10px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 14px 14px 10px;
  z-index: 40;
  animation: popIn .16s ease-out;
}
.pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px); } }

.pop-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.pop-title { font-size: 14px; font-weight: 700; }
.pop-note { font-size: 11px; color: var(--faint); }

.pop-group { margin-bottom: 12px; }
.pop-gtitle { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.pop-gsub { font-weight: 400; color: var(--faint); margin-left: 4px; }

.opts { display: flex; gap: 6px; }
.opt {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 2px 7px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color .12s, background .12s, transform .08s;
}
.opt:active { transform: scale(.97); }
.opt b { font-size: 13px; font-weight: 700; color: var(--ink); }
.opt i { font-size: 11px; font-style: normal; color: var(--sub); }
.opt em {
  font-size: 9.5px; font-style: normal; color: #a06a00;
  background: #fff4d6; border-radius: 99px; padding: 0 5px;
  margin-top: 1px; white-space: nowrap;
}
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt.on i { color: var(--brand-deep); }

/* 锁定项：灰色不可选（只标注旗舰版 / 亲密度 200，⛔ 无价格） */
.opt:disabled {
  cursor: not-allowed;
  opacity: .5;
  border-color: var(--border);
  background: var(--panel);
}
.opt:disabled b { color: var(--faint); }
.opt:disabled em { background: #f1f1f1; color: #9a9a9a; }

.pop-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--sub);
}
.pop-foot b { color: var(--ink); font-size: 14px; }
.pop-done {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 99px; padding: 6px 16px;
  transition: background .15s;
}
.pop-done:active { background: var(--brand-deep); }

/* ── 深色模式补 ── */
@media (prefers-color-scheme: dark) {
  .opt em { background: rgba(240,170,0,.15); color: #e0a83c; }
  .opt:disabled em { background: rgba(255,255,255,.08); color: #8a8a8a; }
  .model-btn:hover { background: rgba(255,255,255,.06); }
}

/* ════════════════════════════════════════════════════
   底部四栏 + 各页 + 工具抽屉（v3 · 2026-10-15）
   ════════════════════════════════════════════════════ */

/* ── 页面切换 ── */
.page-hidden { display: none !important; }
.composer.hide { display: none; }

/* ── 底部四栏 ── */
.tabbar {
  display: flex;
  flex: 0 0 auto;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0 2px;
  color: var(--faint);
  transition: color .15s;
}
.tab svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tab span { font-size: 10.5px; font-weight: 600; }
.tab.on { color: var(--brand); }
.tab:active { opacity: .7; }

/* ── 教练页 ── */
.coach-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 10px;
}
.coach-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  color: #a06a00; background: #fff4d6;
  border-radius: 99px; padding: 2px 9px;
  margin-bottom: 8px;
}
.coach-text { font-size: 13.5px; line-height: 1.65; margin-bottom: 10px; }
.coach-text b { color: var(--brand-deep); }
.coach-act {
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 99px;
  padding: 7px 16px;
  transition: background .15s;
}
.coach-act:active { background: var(--brand-deep); }
.coach-act.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}

.feed {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.feed-item {
  display: flex; gap: 10px;
  padding: 11px 14px;
  font-size: 12.5px; line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }
.feed-time { flex: 0 0 44px; color: var(--faint); font-size: 11.5px; padding-top: 1px; }

/* ── 通用行列表（发现 / 我的） ── */
.rows {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.row:last-child { border-bottom: none; }
.row:active { background: rgba(0,0,0,.03); }
.row-sub {
  display: block;
  font-size: 11.5px; color: var(--faint);
  margin-top: 3px; font-weight: 400;
}
.chev { color: var(--faint); font-size: 14px; }

/* ── 发现页 ── */
.tip-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 13px 14px;
}
.tip-text { font-size: 13.5px; line-height: 1.7; }
.tip-text b { color: var(--brand-deep); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip2 {
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--sub);
  cursor: pointer;
}
.chip2.on { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); font-weight: 700; }

/* ── 我的页 ── */
.me-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 12px;
}
.me-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.me-name { font-size: 15px; font-weight: 700; }
.me-sub { font-size: 11.5px; color: var(--sub); margin-top: 2px; }

.credit-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 14px;
  margin-bottom: 12px;
}
.credit-label { font-size: 11.5px; color: var(--sub); }
.credit-big { font-size: 27px; font-weight: 800; letter-spacing: .5px; margin-top: 2px; }
.credit-big i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--sub); }
.credit-actions { display: flex; gap: 8px; margin-top: 13px; }
.cbtn {
  flex: 1; text-align: center;
  font-size: 12.5px; font-weight: 700;
  padding: 10px 0; border-radius: 99px;
  transition: opacity .15s;
}
.cbtn:active { opacity: .8; }
.cbtn.primary { background: var(--brand); color: #fff; }
.cbtn.ghost { background: transparent; border: 1px solid var(--border); color: var(--ink); }

.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack-mini {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  text-align: left;
}
.pack-mini b { font-size: 13.5px; display: block; }
.pack-mini i { font-style: normal; font-size: 10.5px; color: var(--sub); display: block; margin-top: 3px; }
.pack-mini:active { border-color: var(--brand); }

/* ── 工具抽屉 ── */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 70;
}
.drawer-panel {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  z-index: 71;
  animation: popIn .18s ease-out;
}
.drawer-title { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 10px; }
.drawer-item {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-align: left;
  transition: border-color .12s;
}
.drawer-item:active { border-color: var(--brand); }
.drawer-item span { font-size: 11.5px; color: var(--faint); font-weight: 400; margin-top: 3px; }

/* ── 深色模式补 ── */
@media (prefers-color-scheme: dark) {
  .coach-tag { background: rgba(240,170,0,.15); color: #e0a83c; }
  .row:active { background: rgba(255,255,255,.05); }
}

/* ════════════════════════════════════════════════════
   她的专属档案（养成 · 亲密度六级）· 2026-10-15
   ════════════════════════════════════════════════════ */

.sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.back-btn2 {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.back-btn2:active { border-color: var(--brand); }
.sub-title { font-size: 17px; font-weight: 700; }
.sub-count { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.sub-note { font-size: 11.5px; color: var(--sub); line-height: 1.65; margin-bottom: 14px; }

/* 她的卡片：环形进度 + 等级徽章 */
.her-card2 {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.her-card2:active { border-color: var(--brand); }
.her-card2.expanded-card { margin-bottom: 6px; }

.her-ring { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.her-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.her-ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--border); }
.ring-fill { stroke: var(--brand); stroke-linecap: round; }
.ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.her-info2 { min-width: 0; }
.her-line1 { display: flex; align-items: center; gap: 8px; }
.her-line1 b { font-size: 14.5px; }
.lv-badge {
  font-size: 10px; font-weight: 700;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 2px 8px; border-radius: 99px;
  white-space: nowrap;
}
.her-line2 { font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.her-card2 .chev { margin-left: auto; transition: transform .15s; }

/* 六级路线图（点开展开） */
.roadmap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 0;
  margin: 0 0 12px;
}
.roadmap[hidden] { display: none; }
.rm-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  font-size: 12px; color: var(--sub);
}
.rm-row b { font-weight: 600; color: inherit; }
.rm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex: 0 0 auto; }
.rm-range { font-size: 10.5px; color: var(--faint); }
.rm-state { margin-left: auto; font-size: 10.5px; }
.rm-row.done { color: var(--ink); }
.rm-row.done .rm-dot { background: var(--brand); }
.rm-row.done .rm-state { color: var(--brand-deep); }
.rm-row.cur {
  color: var(--brand-deep); font-weight: 700;
  background: var(--brand-soft);
}
.rm-row.cur .rm-dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rm-row.lock { opacity: .55; }

/* 新建档案 */
.dangan-add {
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--sub);
  font-size: 13px; font-weight: 600;
  margin-top: 4px;
  transition: border-color .15s, color .15s;
}
.dangan-add:active { border-color: var(--brand); color: var(--brand-deep); }

/* ════════════════════════════════════════════════════
   亲密度说明弹层（❓）· 2026-10-15
   规则透明：怎么加分 / 怎么扣分 / 等级对照（亲密度≠积分）
   ════════════════════════════════════════════════════ */

.help-btn {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--sub);
  font-size: 12px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.help-btn:active { border-color: var(--brand); color: var(--brand-deep); }

.sheet-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 80;
}
.sheet-panel {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 81;
  animation: popIn .18s ease-out;
  max-height: 78vh;
  display: flex; flex-direction: column;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; flex: 0 0 auto;
}
.sheet-title { font-size: 15px; font-weight: 700; }
.sheet-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--sub); font-size: 12px;
}
.sheet-body { overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }

.rule-sec { margin-bottom: 14px; }
.rule-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--sub);
  margin-bottom: 7px;
}
.rule-tag {
  font-size: 9.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px;
  background: var(--panel); color: var(--sub);
  border: 1px solid var(--border);
}
.rule-tag.up { color: var(--brand-deep); background: var(--brand-soft); border-color: transparent; }
.rule-tag.down { color: #c2451f; background: #fff0ea; border-color: transparent; }

.rule-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 5px;
}
.rule-row b { font-weight: 800; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rule-row b.up { color: var(--brand-deep); }
.rule-row b.down { color: #c2451f; }
.rule-note { font-size: 10.5px; color: var(--faint); padding: 2px 4px 0; }

.rule-lv {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  font-size: 11.5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 5px;
}
.rule-lv b { font-weight: 800; color: var(--brand-deep); font-size: 11px; width: 24px; flex: 0 0 auto; }
.rule-lv span { font-weight: 700; }
.rule-lv i { font-style: normal; color: var(--faint); font-size: 10.5px; }
.rule-lv em { margin-left: auto; font-style: normal; color: var(--sub); font-size: 10px; }

.rule-foot {
  font-size: 11px; color: var(--faint);
  text-align: center; padding: 4px 0 6px;
}

/* 深色模式补 */
@media (prefers-color-scheme: dark) {
  .rule-tag.down { background: rgba(228,87,46,.15); color: #ff9b7a; }
  .rule-row b.down { color: #ff9b7a; }
}

/* ════════════════════════════════════════════════════
   工具四模块（解剖室 / 对练场 / 筹划器 / 形象官）· 2026-10-15
   ════════════════════════════════════════════════════ */

.tool-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tool-input {
  width: 100%; border: none; outline: none; resize: none;
  background: transparent; font-family: inherit;
  font-size: 13px; line-height: 1.7; color: var(--ink);
  min-height: 96px;
}
.tool-input::placeholder { color: var(--faint); }

/* 解剖报告 */
.report {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.report-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 10px;
}
.report-head span {
  font-size: 10px; font-weight: 700;
  color: #c2451f; background: #fff0ea;
  padding: 2px 8px; border-radius: 99px;
}
.rp-line {
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px; line-height: 1.6;
  margin-bottom: 6px;
}
.rp-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px;
  margin-left: 6px;
}
.rp-tag.bad { color: #c2451f; background: #fff0ea; }
.rp-tag.good { color: var(--brand-deep); background: var(--brand-soft); }
.rp-fix {
  font-size: 12px; line-height: 1.6;
  color: var(--brand-deep); background: var(--brand-soft);
  border-radius: 10px; padding: 8px 12px;
  margin-bottom: 8px;
}
.rp-foot { font-size: 11.5px; color: var(--sub); line-height: 1.6; margin-top: 8px; }

/* 对练场 */
.sim-her {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px; line-height: 1.6;
  margin-bottom: 10px;
}
.sim-opt {
  display: block; width: 100%; text-align: left;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px; color: var(--ink);
  margin-bottom: 7px;
  transition: border-color .12s, background .12s;
}
.sim-opt:active { border-color: var(--brand); background: var(--brand-soft); }
.dl-score {
  font-size: 13px; font-weight: 700; line-height: 1.6;
  color: var(--brand-deep); background: var(--brand-soft);
  border-radius: 12px; padding: 11px 14px;
  margin-bottom: 10px;
}

/* 双门槛状态卡 */
.gate-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 0;
  margin-bottom: 12px;
}
.gate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.gate-row:last-child { border-bottom: none; }
.gate-row b { font-size: 11.5px; font-weight: 700; }
.gate-row.ok b { color: var(--brand-deep); }
.gate-row.no { opacity: .55; }
.gate-row.no b { color: var(--sub); }

/* 方案输出 */
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.plan-head { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.plan-row {
  font-size: 12.5px; line-height: 1.65;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.plan-row:last-child { border-bottom: none; }
.plan-row b { display: inline-block; min-width: 48px; color: var(--brand-deep); }

/* 上传框 */
.upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  font-size: 13px; color: var(--sub);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.upload-box:active { border-color: var(--brand); color: var(--brand-deep); }

/* 场合选择 */
.pick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }

/* 深色模式补 */
@media (prefers-color-scheme: dark) {
  .report-head span { background: rgba(228,87,46,.15); color: #ff9b7a; }
  .rp-tag.bad { background: rgba(228,87,46,.15); color: #ff9b7a; }
}

/* ════════════════════════════════════════════════════
   📷 传截图（主推输入）＋ 计分来源标注 · 2026-10-15
   ════════════════════════════════════════════════════ */

/* 框1：文字 + 传截图按钮 */
.field-her {
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 8px 6px 18px;
}
.field-her .field-input { flex: 1; }

.shot-btn {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 99px;
  padding: 7px 12px;
  margin: 5px 0;
  transition: opacity .15s;
}
.shot-btn:active { opacity: .75; }
.shot-btn:disabled { opacity: .5; }

/* 计分来源标注 */
.rule-src {
  font-style: normal;
  font-size: 9.5px;
  color: var(--faint);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 7px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.rule-row span:first-child { flex: 1; min-width: 0; }

/* ════════════════════════════════════════════════════
   场景地图（认识新朋友 · 开源地图）· 2026-10-15
   ════════════════════════════════════════════════════ */

.map-entry { cursor: pointer; }
.map-entry:active { border-left-color: var(--brand-deep); }
.map-entry-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700;
  margin-bottom: 6px;
}
.map-entry-title span { font-size: 10.5px; color: var(--sub); font-weight: 600; }

.map-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 36px 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .12s;
}
.map-card:active { border-color: var(--brand); }
.map-line1 { display: flex; align-items: center; gap: 8px; }
.map-line1 b { font-size: 14px; }
.map-type {
  font-size: 10px; font-weight: 700;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 2px 8px; border-radius: 99px;
  white-space: nowrap;
}
.map-meta { font-size: 11.5px; color: var(--sub); margin-top: 4px; }
.map-stars { font-size: 11px; color: var(--faint); margin-top: 2px; }
.map-card .chev {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  transition: transform .15s;
}

.map-detail {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: -2px 0 12px;
}
.md-title { font-size: 11.5px; font-weight: 700; color: var(--sub); margin: 8px 0 6px; }
.md-title:first-child { margin-top: 0; }
.md-line { font-size: 12.5px; line-height: 1.7; color: var(--ink); padding: 3px 0; }
.md-red {
  margin-top: 10px;
  font-size: 11.5px; line-height: 1.6; font-weight: 600;
  color: #c2451f; background: #fff0ea;
  border-radius: 10px; padding: 8px 11px;
}

.checkin-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  margin: 4px 0 12px;
  font-size: 13.5px; font-weight: 600;
}
.checkin-num { margin-left: 8px; color: var(--brand-deep); font-weight: 800; }

/* 深色模式补 */
@media (prefers-color-scheme: dark) {
  .md-red { background: rgba(228,87,46,.15); color: #ff9b7a; }
}

/* ════════════════════════════════════════════════════
   地图选点（演示版 · 真实版接高德 SDK）· 2026-10-15
   ════════════════════════════════════════════════════ */

.map-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.map-svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.map-hint {
  font-size: 10.5px; color: var(--faint);
  text-align: center;
  padding: 7px 4px 8px;
  line-height: 1.5;
}

/* 地图元素（浅色 / 深色两套） */
.map-svg .m-bg { fill: #eef1ed; }
.map-svg .m-road { stroke: #ffffff; }
.map-svg .m-river { stroke: #cfe6f5; }
.map-svg .m-park { fill: #dcefd8; }

.pin { cursor: pointer; }
.pin .p-bg {
  fill: var(--bg);
  stroke: var(--border-strong, var(--border));
  stroke-width: 2;
  transition: stroke .12s, fill .12s;
}
.pin:hover .p-bg { stroke: var(--brand); }
.pin.sel .p-bg { stroke: var(--brand); stroke-width: 2.5; fill: var(--brand-soft); }

/* 选中地点的攻略卡 */
.map-spot {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: -2px 0 12px;
}
.ms-head { display: flex; align-items: center; gap: 8px; }
.ms-head b { font-size: 14px; }
.ms-meta { font-size: 11.5px; color: var(--sub); margin: 4px 0 8px; }

/* 深色模式补 */
@media (prefers-color-scheme: dark) {
  .map-svg .m-bg { fill: #1b1f22; }
  .map-svg .m-road { stroke: #2b3036; }
  .map-svg .m-river { stroke: #23404f; }
  .map-svg .m-park { fill: #1f2c22; }
  .pin .p-bg { fill: #111315; }
}

/* ════════════════════════════════════════════════════
   补齐模块：建档 / 领养 / 记忆 / 签到 / 邀请 / 明细 / 开关
   （2026-10-15）
   ════════════════════════════════════════════════════ */

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.fq { margin-bottom: 13px; }
.fq:last-child { margin-bottom: 0; }
.fq > label { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 7px; }
.finput {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); background: var(--bg);
  border-radius: 10px; padding: 9px 12px;
  font-size: 13px; font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .15s;
}
.finput:focus { border-color: var(--brand); }
.fq-hint { font-size: 11px; color: var(--faint); margin-top: 7px; line-height: 1.6; }
.privacy-line { font-size: 11px; color: var(--sub); text-align: center; margin: 2px 0 12px; }
.cbtn.wide { width: 100%; display: block; }

.letter {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.letter p { font-size: 13px; line-height: 1.9; color: var(--ink); margin-bottom: 8px; }
.letter p:last-child { margin-bottom: 0; text-align: right; color: var(--brand-deep); font-weight: 700; }

.mem-tabs { margin-bottom: 10px; }
.mem-sec { display: none; }
.mem-sec.on { display: block; }
.mem-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
}
.mem-main { flex: 1; font-size: 12.5px; line-height: 1.6; }
.mem-main b { color: var(--brand-deep); font-weight: 700; margin-right: 6px; }
.mem-del {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 700;
  color: var(--sub);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px;
  background: transparent;
  transition: all .12s;
}
.mem-del.confirm { color: #c2451f; border-color: #e8b4a8; background: #fff0ea; }

.sign-grid { display: flex; gap: 6px; margin-bottom: 12px; }
.sg-cell {
  flex: 1; text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 0 8px;
  font-size: 12px; font-weight: 700; color: var(--sub);
}
.sg-cell i { display: block; font-style: normal; font-size: 9.5px; margin-top: 3px; color: var(--faint); font-weight: 600; }
.sg-cell.done { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-soft); }
.sg-cell.today { color: var(--ink); border-color: var(--brand); }
.sg-cell.big { color: #a06a00; border-color: #e8c987; background: #fff8e8; }

.sign-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13.5px; font-weight: 700;
}
.sign-card .cbtn { flex: 0 0 auto; padding: 9px 18px; }

.invite-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 12px;
  text-align: center;
}
.invite-label { font-size: 11.5px; color: var(--sub); }
.invite-code {
  font-size: 30px; font-weight: 800; letter-spacing: 3px;
  color: var(--brand-deep);
  margin: 8px 0 12px;
  font-variant-numeric: tabular-nums;
}

.row b.up { font-weight: 800; color: var(--brand-deep); flex: 0 0 auto; }
.row b.down { font-weight: 800; color: #c2451f; flex: 0 0 auto; }

.link-btn { font-size: 11.5px; font-weight: 700; color: var(--brand-deep); background: none; border: none; padding: 0; }
.credit-label { display: flex; align-items: center; justify-content: space-between; }
.me-card { cursor: pointer; transition: border-color .15s; }
.me-card:active { border-color: var(--brand); }
.me-card .chev { margin-left: auto; }

.switch {
  position: relative; flex: 0 0 auto;
  width: 42px; height: 24px; border-radius: 99px;
  background: var(--border); border: none;
  transition: background .15s;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .15s;
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

@media (prefers-color-scheme: dark) {
  .sg-cell.big { background: rgba(240,170,0,.12); border-color: rgba(240,170,0,.4); }
  .mem-del.confirm { background: rgba(228,87,46,.15); border-color: rgba(228,87,46,.3); }
  .switch::after { background: #e8eaed; }
  .row b.down { color: #ff9b7a; }
}

/* ═══════════ 素材广场（弹药飞轮 · 2026-10-16） ═══════════ */
.sc-drop {
  display: block; width: 100%; text-align: left;
  background: var(--brand-soft); border: 1px dashed var(--brand);
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
}
.sc-drop:active { opacity: .85; }
.sc-drop-t { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.sc-drop-s { display: block; font-size: 12px; color: var(--sub); margin-top: 4px; }

.sc-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px;
}
.sc-card.mine { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sc-line { font-size: 14px; color: var(--ink); line-height: 1.75; }
.sc-line b { color: var(--faint); font-weight: 600; margin-right: 4px; font-size: 12px; }
.sc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sc-tag {
  font-size: 11px; color: var(--brand-deep); background: var(--brand-soft);
  border-radius: 6px; padding: 2px 7px; font-weight: 700;
}
.sc-from, .sc-saves, .sc-note { font-size: 11px; color: var(--faint); }
.sc-save {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-deep);
  background: none; border: 1px solid var(--brand); border-radius: 99px;
  padding: 3px 12px; cursor: pointer;
}
.sc-save.done { color: var(--faint); border-color: var(--border); }
.sc-actions { display: flex; gap: 10px; margin-top: 10px; }
.sc-actions .cbtn { flex: 1; }

/* ═══════════ 互动层 + 自进化管道（素材广场 · 2026-10-16 晚） ═══════════ */
.evo-strip {
  margin: 0 0 10px; padding: 9px 12px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; line-height: 1.6;
}
.sc-rung { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.sc-rung.gold   { color: #8a6a1a; background: #fdf3d8; }
.sc-rung.purple { color: #6a4fd8; background: #efebff; }
.sc-rung.plain  { color: var(--sub); background: var(--border); }
.sc-acts {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
}
.sc-like, .sc-cmt {
  font-size: 12px; font-weight: 700; color: var(--sub);
  background: none; border: 1px solid var(--border); border-radius: 99px;
  padding: 3px 12px; cursor: pointer;
}
.sc-like.on { color: #e0426b; border-color: #f3b6c6; background: #fff0f4; }
.sc-used { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 700; }
.cmt-quote {
  font-size: 13px; color: var(--ink); background: var(--brand-soft);
  border-radius: 10px; padding: 10px 12px; line-height: 1.7; margin: 0 0 10px;
}
.cmt-note { font-size: 12px; color: var(--faint); margin: 0 0 8px; }
.cmt-compose { display: flex; gap: 8px; margin-bottom: 12px; }
.cmt-input {
  flex: 1; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; background: var(--bg); color: var(--ink);
}
.cmt-send {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--brand);
  border: none; border-radius: 10px; padding: 0 16px; cursor: pointer;
}
.cmt-row { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.cmt-row:last-child { border-bottom: none; }
.cmt-who { font-size: 12px; font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.cmt-txt { font-size: 13px; color: var(--ink); line-height: 1.6; }
.cmt-empty { font-size: 12px; color: var(--faint); padding: 8px 0; }

/* 自由评论：举报入口（2026-10-16 二次拍板） */
.cmt-report {
  margin-left: auto; font-size: 11px; color: var(--faint);
  cursor: pointer; white-space: nowrap; flex: none;
}
.cmt-report:active { color: var(--brand-deep); }

/* 晒一记 · 文字输入通道（2026-10-16 输入扩展） */
.sc-type {
  margin-top: 10px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 12px;
}
.sc-type-input {
  width: 100%; box-sizing: border-box; border: none; outline: none; resize: none;
  font-size: 13px; line-height: 1.7; color: var(--ink); background: transparent;
  font-family: inherit;
}
.sc-type-input::placeholder { color: var(--faint); }
.sc-type-foot { display: flex; align-items: center; margin-top: 6px; }
.sc-type-note { font-size: 11px; color: var(--faint); }
.sc-type-foot .cbtn { margin-left: auto; padding: 6px 16px; }

/* 素材广场规则弹层 · 积分公式框（2026-10-16） */
.rule-formula {
  margin: 6px 0 8px; padding: 9px 12px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; line-height: 1.9;
  word-break: break-word;
}

/* ═══════════ 档案卡：一卡一世界 + 上下文条（2026-10-16） ═══════════ */
.rm-status {
  margin: 6px 14px 0; padding: 8px 10px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; line-height: 1.6;
}
.rm-said {
  margin: 6px 14px 0; font-size: 12px; color: var(--sub); line-height: 1.6;
}
.rm-date { color: var(--faint); font-size: 10.5px; margin-left: 4px; }
.rm-actions { display: flex; gap: 8px; margin: 10px 14px 10px; }
.rm-act {
  flex: 1; font-size: 13px; font-weight: 700; color: var(--brand-deep);
  background: var(--bg); border: 1px solid var(--brand); border-radius: 10px;
  padding: 9px 0; cursor: pointer;
}
.rm-act.primary { background: var(--brand); color: #fff; }
.rm-act:active { opacity: .85; }

.ctx-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding: 9px 12px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; text-align: left;
}
.ctx-bar[hidden] { display: none; }
.ctx-clear {
  margin-left: auto; font-size: 11px; color: var(--brand-deep);
  background: none; border: 1px solid var(--brand); border-radius: 99px;
  padding: 2px 10px; cursor: pointer; flex: none;
}

/* 筹划器 · 六段全案 + 战场推演（2026-10-16） */
.plan-sub {
  display: block; margin-top: 3px; font-size: 11.5px; color: var(--sub);
}
.plan-wt {
  margin-top: 9px; padding: 10px 12px; border-radius: 10px;
  background: var(--brand-soft);
}
.plan-wt-head { font-size: 12px; font-weight: 700; color: var(--brand-deep); margin-bottom: 6px; }
.plan-wt-row { font-size: 12px; color: var(--ink); line-height: 1.7; }
.plan-wt-row b { color: var(--brand-deep); margin-right: 4px; }
.plan-foot {
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--border);
  font-size: 10.5px; color: var(--faint);
}

/* 筹划器 · 战报区（2026-10-16 关联设计） */
.wt-row { display: flex; gap: 8px; margin-top: 2px; }
.wt-input {
  flex: 1; border: 1px solid var(--border); border-radius: 9px;
  padding: 7px 10px; font-size: 12px; background: var(--bg); color: var(--ink);
}
.wt-btn {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--brand);
  border: none; border-radius: 9px; padding: 0 14px; cursor: pointer; flex: none;
}
#wtResult { margin-top: 7px; color: var(--brand-deep); }

/* ══════════════════════════════════════════════════════
   模块页并入样式（朋友圈 / 搭讪 / 形象官 · 2026-10-17）
   前缀 m- 隔离，避免与主样式冲突
   ══════════════════════════════════════════════════════ */
.m-sec{font-size:14px;font-weight:700;color:var(--ink,#23261f);margin:18px 0 8px;display:flex;align-items:center;gap:8px}
.m-sec small{font-size:10.5px;font-weight:600;color:var(--brand);background:var(--brand-lt,#e3f2ef);padding:2px 8px;border-radius:999px}
.m-card{background:#fff;border:1px solid #e7e5dd;border-radius:14px;padding:14px 16px;margin-bottom:10px}
.m-card .mt{font-size:13px;font-weight:700;color:var(--brand);margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}
.m-card .mt small{font-size:10.5px;color:var(--tab,#8a8d83);font-weight:600}
.m-note{font-size:11px;color:var(--sub,#9a9a92);line-height:1.75;margin-top:8px}
.m-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none;margin-bottom:4px}
.m-chips::-webkit-scrollbar{display:none}
.m-chip{flex:none;font-size:12px;padding:7px 13px;border-radius:999px;background:#fff;border:1px solid #e7e5dd;cursor:pointer;font-weight:600;color:var(--tab,#8a8d83);white-space:nowrap}
.m-chip.on{background:var(--brand,#1f7a6d);border-color:var(--brand,#1f7a6d);color:#fff}
.m-btn{background:var(--brand,#1f7a6d);color:#fff;text-align:center;border-radius:12px;padding:13px;font-size:14px;font-weight:700;cursor:pointer;margin-top:8px}
.m-tabs{display:flex;gap:8px;margin:6px 0 10px}
.m-tab{flex:1;text-align:center;font-size:12.5px;padding:9px 0;border-radius:11px;background:#fff;border:1px solid #e7e5dd;color:var(--tab,#8a8d83);cursor:pointer;font-weight:600}
.m-tab.on{background:var(--brand,#1f7a6d);border-color:var(--brand,#1f7a6d);color:#fff}
.m-score{text-align:center;padding:14px 0 10px}
.m-score .s{font-size:38px;font-weight:800;color:var(--brand,#1f7a6d)}
.m-score .s.bad{color:var(--poison,#e4572e)}
.m-score .d{font-size:11.5px;color:var(--sub,#9a9a92);margin-top:2px}
.m-bars{margin-top:8px}
.m-bar{margin-bottom:9px}
.m-bar .lb{display:flex;justify-content:space-between;font-size:12px}
.m-bar .lb span:last-child{color:var(--sub,#9a9a92)}
.m-bar i.bg{display:block;height:8px;background:#f2f0e9;border-radius:99px;margin-top:5px;overflow:hidden}
.m-bar i.bg b{display:block;height:100%;border-radius:99px;background:var(--brand,#1f7a6d)}
.m-bar i.bg b.warn{background:var(--poison,#e4572e)}
.m-tip{font-size:13px;line-height:1.75;padding:8px 0;border-bottom:1px dashed #eceae2}
.m-tip:last-child{border-bottom:none}
.m-tip b{color:var(--poison,#e4572e)}
.m-prog{background:#fff;border:1px solid #e7e5dd;border-radius:12px;padding:12px 14px;margin-bottom:10px}
.m-prog .pt{display:flex;justify-content:space-between;font-size:11.5px;color:var(--sub,#9a9a92)}
.m-prog .pb{height:9px;background:#f2f0e9;border-radius:99px;margin-top:7px;overflow:hidden}
.m-prog .pf{height:100%;width:0;background:var(--brand,#1f7a6d);border-radius:99px;transition:width .4s}
.m-step{background:#fff;border:1px solid #e7e5dd;border-radius:12px;margin-bottom:8px;overflow:hidden}
.m-step .sh{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer}
.m-step .num{width:22px;height:22px;border-radius:50%;background:#f2f0e9;color:var(--tab,#8a8d83);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.m-step.done .num{background:var(--brand,#1f7a6d);color:#fff}
.m-step .st{flex:1;font-size:13.5px;font-weight:600}
.m-step .bd{font-size:10px;color:var(--tab,#8a8d83);border:1px solid #e7e5dd;border-radius:999px;padding:2px 8px}
.m-step.done .bd{color:var(--brand,#1f7a6d);border-color:var(--brand,#1f7a6d)}
.m-step .sb{display:none;padding:0 14px 12px;border-top:1px dashed #eceae2}
.m-step .sb.open{display:block}
.m-step .kv{margin-top:9px}
.m-step .kv .k{font-size:10.5px;color:var(--sub,#9a9a92);margin-bottom:3px}
.m-step .kv .v{font-size:12.5px;line-height:1.7}
.m-step .kv .v.no{color:var(--poison,#e4572e)}
.m-step .ok{text-align:center;font-size:12.5px;font-weight:700;padding:9px 0;border-radius:9px;background:var(--brand,#1f7a6d);color:#fff;cursor:pointer;margin-top:10px}
.m-step.done .ok{background:#f2f0e9;color:var(--tab,#8a8d83)}
.m-cap{background:#fff;border:1px solid #e7e5dd;border-radius:12px;padding:12px 14px;margin-bottom:8px}
.m-cap .ct2{font-size:10.5px;font-weight:700;color:var(--brand,#1f7a6d);margin-bottom:5px}
.m-cap .cc{font-size:13px;line-height:1.7}
.m-ta{width:100%;height:64px;border:1px solid #e7e5dd;border-radius:10px;padding:9px;font-size:12.5px;font-family:inherit;resize:none;background:#fbfaf6;box-sizing:border-box}
.m-preset{display:inline-block;font-size:10.5px;padding:5px 9px;border-radius:999px;background:#f2f0e9;color:var(--tab,#8a8d83);cursor:pointer;margin:6px 6px 0 0}
.m-ar{margin-top:9px;font-size:12.5px;line-height:1.75;display:none}
.m-ar.show{display:block}
.m-ar .pass{color:var(--brand,#1f7a6d);font-weight:700}
.m-ar .flag{color:var(--poison,#e4572e);font-weight:700}
.m-ol{cursor:pointer;font-size:12.5px;padding:6px 0;border-bottom:1px dashed #eceae2}
.m-ol:last-child{border-bottom:none}
.m-acc{display:none;padding:6px 0 4px}
.m-acc.open{display:block}
.m-mrow{font-size:12.5px;line-height:1.7;margin-bottom:5px}
.m-mrow .k{color:var(--sub,#9a9a92);font-size:10.5px;margin-right:5px}
.m-mrow.red{color:var(--poison,#e4572e)}
.m-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.m-gitem{background:#fff;border:1px solid #e7e5dd;border-radius:11px;padding:10px;font-size:12px;line-height:1.5;cursor:pointer;min-height:52px;display:flex;align-items:center}
.m-gitem:active{border-color:var(--brand,#1f7a6d)}
.m-res{background:#fff;border:1.5px solid var(--brand,#1f7a6d);border-radius:12px;padding:13px;display:none;margin-bottom:10px}
.m-res.show{display:block}
.m-res .rt{font-size:10.5px;color:var(--sub,#9a9a92);margin-bottom:7px}
.m-res .r1{font-size:13.5px;font-weight:700;line-height:1.7}
.m-res .r2{font-size:12px;line-height:1.7;margin-top:6px}
.m-res .r3{font-size:12px;line-height:1.7;margin-top:6px;color:var(--poison,#e4572e)}
.m-q{background:#fff;border:1px solid #e7e5dd;border-radius:12px;padding:12px;margin-bottom:8px}
.m-q .qt{font-size:12.5px;line-height:1.6}
.m-qs{display:flex;gap:5px;margin-top:8px}
.m-qs span{flex:1;text-align:center;font-size:11px;padding:6px 0;border-radius:8px;background:#f2f0e9;color:var(--tab,#8a8d83);cursor:pointer;font-weight:600}
.m-qs span.on{background:var(--brand,#1f7a6d);color:#fff}
.m-spec{position:relative;height:92px;margin-top:4px}
.m-axis{position:absolute;left:0;right:0;top:50px;height:2px;background:#e3e1d8}
.m-sty{position:absolute;top:30px;font-size:9.5px;color:var(--tab,#8a8d83);transform:translateX(-50%);white-space:nowrap}
.m-lab{position:absolute;top:56px;font-size:9.5px;color:var(--sub,#9a9a92);transform:translateX(-50%)}
.m-marker{position:absolute;top:40px;transform:translateX(-50%);text-align:center}
.m-marker .pin{font-size:15px}
.m-marker .ml{font-size:10px;font-weight:700;color:var(--poison,#e4572e);white-space:nowrap}
.m-rep{display:flex;justify-content:space-between;font-size:12.5px;line-height:1.85;gap:10px}
.m-rep .k{color:var(--sub,#9a9a92);flex:none}
.m-rep .v{font-weight:600;text-align:right}
.m-bigtag{display:inline-block;background:var(--brand-lt,#e3f2ef);color:var(--brand,#1f7a6d);font-weight:700;border-radius:10px;padding:4px 12px;font-size:12.5px;margin-top:8px}
.m-actions{margin:4px 0 0 18px}
.m-actions li{font-size:12.5px;line-height:1.85}
.m-ckitem{display:flex;gap:9px;padding:6px 0;font-size:12.5px;line-height:1.65;cursor:pointer;align-items:flex-start}
.m-ckitem .ck{width:17px;height:17px;border-radius:5px;border:1.5px solid #cfccc2;flex:none;margin-top:2px;display:flex;align-items:center;justify-content:center;font-size:10px;color:#fff}
.m-ckitem.on .ck{background:var(--brand,#1f7a6d);border-color:var(--brand,#1f7a6d)}
.m-ckitem.on .tx{color:var(--tab,#8a8d83);text-decoration:line-through}
.m-hq{font-size:13px;font-weight:600;margin-bottom:8px}
.m-opts{display:flex;gap:8px;flex-wrap:wrap}
.m-opt{font-size:11.5px;padding:7px 13px;border-radius:999px;background:#f2f0e9;color:var(--tab,#8a8d83);cursor:pointer}
.m-opt.on{background:var(--brand,#1f7a6d);color:#fff}
.m-long input{width:90px;border:1px solid #e7e5dd;border-radius:8px;padding:7px 9px;font-size:12.5px;margin-top:7px;box-sizing:border-box}
.m-long .r{margin-top:7px;font-size:12.5px;font-weight:700;color:var(--brand,#1f7a6d)}
.m-gitem-s{margin-top:10px}
.m-subtag{font-size:10px;padding:2px 8px;border-radius:999px;background:var(--brand-lt,#e3f2ef);color:var(--brand,#1f7a6d);font-weight:600;margin-left:6px}

/* ── 依据条 + 词条抽屉（专业性外显层 demo · 10-17） ── */
.evi{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;font-weight:600;color:var(--brand,#1f7a6d);background:var(--brand-lt,#e3f2ef);border:none;border-radius:999px;padding:6px 12px;cursor:pointer}
.evi:active{opacity:.8}
.reply-basis{margin-block:12px;overflow-wrap:anywhere}
.reply-basis .evi{font-size:14px;min-height:40px;white-space:normal;text-align:start;margin-inline-end:8px}
.reply-basis .evi:focus-visible,.reply-basis-detail summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.reply-basis-status:empty{display:none}
.reply-basis-status{font-size:14px;line-height:1.6;margin-block:6px}
.reply-basis-detail{font-size:15px;line-height:1.7;margin-block:10px;max-width:72ch}
.reply-basis-detail summary{cursor:pointer;font-weight:600}
.reply-basis-section{margin-block:12px}
.reply-basis-section p,.reply-basis-section ul,.reply-basis-section ol{margin-block:4px 0}
.reply-basis-section ul,.reply-basis-section ol{padding-inline-start:22px}
.term-one{font-size:13px;line-height:1.8;color:var(--ink,#23261f)}
.term-sec{margin-top:10px;font-size:12.5px;line-height:1.75}
.term-sec .k{color:var(--sub,#9a9a92);font-size:10.5px;display:block;margin-bottom:2px}
.term-good{color:var(--brand,#1f7a6d)}
.term-bad{color:var(--poison,#e4572e)}
.term-link{display:block;margin-top:14px;font-size:12.5px;font-weight:700;color:var(--brand,#1f7a6d);cursor:pointer}
.term-item{padding:11px 2px;border-bottom:1px dashed #eceae2;font-size:13px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.term-item:last-child{border-bottom:none}
.term-item b{font-weight:600}
.term-item small{color:var(--sub,#9a9a92);font-size:11px}

/* ── 复盘诊断书（三级：症状→病因→处方 · 10-17） ── */
.dx-tier{margin:14px 0 6px;font-size:12px;font-weight:700;color:var(--brand,#1f7a6d);letter-spacing:.3px}
.dx-cause{font-size:12.5px;line-height:1.8;padding:8px 0;border-bottom:1px dashed #eceae2}
.dx-cause:last-of-type{border-bottom:none}
.evi.sm{margin-top:6px;font-size:11px;padding:4px 10px}

/* ── 教练周报（P1 · 10-17） ── */
.wk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center;margin-top:8px}
.wk-cell b{display:block;font-size:20px;font-weight:700;color:var(--brand,#1f7a6d)}
.wk-cell span{font-size:10.5px;color:var(--sub,#9a9a92)}
.wk-cell.up b{color:var(--poison,#e4572e)}

/* Member invitation and appointment screens */
.partner-pilot [hidden] { display: none !important; }
.partner-pilot .partner-notice { margin: 0 0 12px; color: var(--sub); font-size: 14px; line-height: 1.65; }
.partner-pilot .partner-access { margin-bottom: 12px; }
.partner-pilot .partner-facts { margin: 8px 0 14px; }
.partner-pilot .partner-facts > div { display: grid; grid-template-columns: minmax(5.75em, auto) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.partner-pilot .partner-facts dt, .partner-pilot .partner-facts dd { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.partner-pilot .partner-facts dt { color: var(--sub); }
.partner-pilot .partner-facts dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.partner-pilot .partner-form { margin-bottom: 8px; }
.partner-pilot .partner-footnote { margin-top: 14px; }
.partner-pilot .partner-step { display: grid; gap: 14px; }
.partner-pilot .partner-step .cloud-check { padding-block: 2px; }
.partner-pilot .partner-step .partner-consent-error { margin-top: -8px; color: var(--danger); font-size: 14px; line-height: 1.55; }
.partner-pilot .partner-state { width: fit-content; border-radius: 5px; padding: 3px 7px; background: var(--panel); color: var(--sub); font-size: 13px; line-height: 1.45; }
.partner-pilot .partner-state-pending { color: var(--brand-deep); background: var(--brand-soft); }
.partner-pilot .partner-advisor-info { min-width: 0; padding: 9px 12px 2px; background: var(--panel); border-radius: 10px; }
.partner-pilot .partner-advisor-info .partner-facts { margin: 0 0 4px; }
.partner-pilot .partner-advisor-info .partner-facts > div:last-child { border: 0; }
.partner-pilot .partner-appointments { list-style: none; margin: 0; padding: 0; }
.partner-pilot .partner-appointment-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.partner-pilot .partner-appointment-row:last-child { padding-bottom: 0; border-bottom: 0; }
.partner-pilot .partner-appointment-row .cbtn { margin-top: 9px; }
.partner-pilot .partner-appointment-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.partner-pilot .partner-appointment-heading h3 { font-size: 16px; overflow-wrap: anywhere; }
.partner-pilot .partner-appointment-heading h3:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.partner-pilot .partner-appointment-plan, .partner-pilot .partner-appointment-order { margin-block: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.partner-pilot .partner-appointment-plan h4 { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.partner-pilot .partner-appointment-plan .partner-facts, .partner-pilot .partner-appointment-order .partner-facts { margin: 0; }
.partner-pilot .partner-appointment-plan .partner-facts > div:last-child, .partner-pilot .partner-appointment-order .partner-facts > div:last-child { border-bottom: 0; }
.partner-pilot .partner-plan-details > summary { min-height: 44px; padding-block: 10px; color: var(--brand-deep); font-size: 14px; line-height: 1.6; cursor: pointer; }
.partner-pilot .partner-plan-details > .partner-appointment-plan { margin-top: 0; }
.partner-pilot .partner-appointment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.partner-pilot .partner-appointment-actions .cbtn { margin-top: 0; }
.partner-pilot button:disabled { cursor: default; opacity: .58; }
