/* 思维模型：测评、画像与学霸工具箱。
 * UG-MERGE-20261015-01：只作用于模块；沿用设计版页头、主题和主内容滚动容器。 */
.mentalmodel-screen { width: 100%; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.mentalmodel-screen button, .mentalmodel-screen input, .mentalmodel-screen textarea { max-width: 100%; }
.mm-page-description { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.mm-page-intro { margin-bottom: 16px; }
.mm-page-intro h2 { margin: 0 0 6px; font-size: 22px; }
.mm-page-intro small { color: var(--muted); }
.mm-legacy-link { display: block; border: 0; background: none; color: var(--button-blue-text, #315cc6); padding: 12px 0; margin-top: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.mentalmodel-screen .field-label { display: block; margin: 16px 0 8px; font-size: 14px; }

/* 雷达图 */
.mm-radar { width: 100%; height: auto; display: block; }
.mm-radar-wrap { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; padding: 6px; max-width: 208px; margin: 4px auto 12px; }

/* 介绍与信息列表 */
.mm-info-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.mm-info-list b { font-size: 15px; }
.mm-info-list span { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* 进度 */
.mm-progress-bar { height: 10px; border-radius: 999px; background: rgba(51,73,103,.10); overflow: hidden; margin: 10px 0 6px; }
.mm-progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6598ca,#7eb7b1); transition: width .3s ease; }
.mm-progress-card p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.mm-progress-text { color: var(--muted); font-size: 12px; }

/* 类型标签 */
.mm-type-chips { display: flex; flex-wrap: nowrap; gap: 7px; margin: 0 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mm-type-chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; color: #55708f; white-space: nowrap; }

/* 答题页顶部 */
.mm-test-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.mm-test-meta strong { font-size: 16px; }
.mm-test-meta small { display: block; color: var(--muted); margin-top: 2px; }

/* 二选一选项 */
.mm-choice-list { display: grid; gap: 11px; margin: 14px 0; }
.mm-choice { width: 100%; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.88); border-radius: 18px; padding: 15px 16px; text-align: left; color: var(--ink); cursor: pointer; box-shadow: 0 9px 24px rgba(70,92,120,.06); }
.mm-choice.selected { border-color: #6598ca; background: #eaf3fc; box-shadow: 0 0 0 3px rgba(101,152,202,.15); }
.mm-choice-letter { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #edf5ff; font-weight: 800; color: #55708f; }
.mm-choice.selected .mm-choice-letter { background: #6598ca; color: #fff; }
.mm-choice-text { flex: 1; font-size: 16px; line-height: 1.45; }
.mm-check { color: #6598ca; font-weight: 800; font-size: 18px; }

/* 5 级刻度 */
.mm-likert { display: grid; gap: 9px; margin: 14px 0; }
.mm-likert-opt { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.88); border-radius: 16px; padding: 13px 16px; cursor: pointer; color: var(--ink); text-align: left; }
.mm-likert-opt b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf5ff; color: #55708f; font-weight: 800; flex: none; }
.mm-likert-opt span { font-size: 15px; }
.mm-likert-opt.selected { border-color: #6598ca; background: #eaf3fc; }
.mm-likert-opt.selected b { background: #6598ca; color: #fff; }

/* 上一题/下一题 */
.mm-nav-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.mm-nav-row .primary, .mm-nav-row .secondary { margin-top: 0; }

/* 里程碑 */
.mm-milestone { text-align: center; padding: 26px 16px; }
.mm-milestone-icon { font-size: 52px; }
.mm-milestone h2 { margin: 14px 0 8px; }
.mm-milestone p { color: var(--muted); line-height: 1.6; }

/* 结果页随主内容滚动，统一页头由设计版外壳提供。 */
.mm-result { position: static; display: block; box-sizing: border-box; }
.mm-result-head { margin-bottom: 12px; }
.mm-result-body { min-height: 0; overflow: visible; padding: 2px 0 12px; }
.mm-result-body > * { margin-bottom: 12px; }
/* 「进入学霸工具箱」：滑到每个 Tab 底部才出现，不常驻遮挡 */
.mm-cta-end { margin-top: 16px; padding: 4px 0 10px; }
.mm-cta-end .primary { margin-top: 0; }

/* 结果页分段 Tab */
.mm-tabs { display: flex; gap: 4px; background: rgba(110,135,165,.12); border-radius: 15px; padding: 4px; margin: 6px 0 2px; }
.mm-tab { flex: 1; border: 0; background: transparent; padding: 10px 4px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #6b7c90; cursor: pointer; }
.mm-tab.on { background: #fff; color: #3d5a80; box-shadow: 0 4px 12px rgba(60,80,110,.13); }

/* 画像维度卡 */
.mm-dim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.mm-dim-head strong { font-size: 16px; }
.mm-lean { font-size: 12px; font-weight: 800; color: #55708f; background: #edf5ff; border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.mm-lean.bal { background: #f3f0f6; }
.mm-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; margin: 8px 0; }
.mm-row b { font-size: 13px; align-self: start; padding-top: 1px; white-space: nowrap; }
.mm-row p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.mm-adv b { color: #4f9a7e; }
.mm-pain b { color: #c0788d; }
.mm-why { margin-top: 8px; font-size: 13.5px; }
.mm-why summary { cursor: pointer; font-weight: 700; color: #55708f; }
.mm-why p { margin: 8px 0 0; line-height: 1.6; color: var(--muted); }
.mm-fix { background: #f5f9ff; padding: 10px 12px; border-radius: 12px; }
.mm-related-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mm-mini-method { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13px; cursor: pointer; color: #55708f; }

/* 能力条 */
.mm-cap-head { display: flex; justify-content: space-between; align-items: center; }
.mm-cap-head strong { font-size: 15px; }
.mm-cap-head span { font-weight: 800; color: #55708f; }
.mm-bar { height: 10px; border-radius: 999px; background: rgba(51,73,103,.10); overflow: hidden; margin: 9px 0; }
.mm-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#7eb7b1,#6598ca); }
.mm-cap-card p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.mm-note { display: block; color: #9b8290; margin-top: 8px; font-size: 12px; }

/* 推荐 */
.mm-rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mm-rec-card { border: 1px solid var(--line); background: rgba(255,252,252,.92); border-radius: 18px; padding: 12px 13px; text-align: left; box-shadow: 0 8px 20px rgba(70,92,120,.05); }
.mm-rec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.mm-rec-add { width: 24px; height: 24px; flex: none; border: 1px solid #9bb6cf; background: #fff; border-radius: 50%; color: #4f7eaa; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; }
.mm-rec-add.chosen { background: #6598ca; border-color: #6598ca; color: #fff; }
.mm-rec-main { display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.mm-rec-main strong { font-size: 15px; display: block; margin-bottom: 5px; }
.mm-rec-main small { color: var(--muted); font-size: 11.5px; line-height: 1.45; display: block; }

/* 工具箱筛选 */
.mm-filter-group { margin: 6px 0; }
.mm-filter-label { display: block; font-size: 12px; font-weight: 700; color: #7c8a9a; margin: 8px 0 0; }
.mm-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mm-filter-chips .chip { padding: 8px 12px; font-size: 13px; }
.mm-filter-group .mm-filter-chips { margin: 8px 0 4px; }
.mm-add-btn { margin-top: 8px; }

/* 工具箱筛选：三个并列下拉（按来源 / 按环节 / 按任务），取交集 */
.mm-dd-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.mm-dd { position: relative; flex: 1 1 0; min-width: 0; }
.mm-dd-btn {
  position: relative; width: 100%; display: flex; flex-direction: column;
  align-items: flex-start; gap: 2px; padding: 8px 26px 8px 11px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer;
}
.mm-dd-label { font-size: 11px; font-weight: 700; color: #94a3b8; line-height: 1.2; }
.mm-dd-value {
  font-size: 13px; font-weight: 700; color: #8a97a8; line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mm-dd-btn.is-active { border-color: #4f7eaa; background: #f3f8fd; }
.mm-dd-btn.is-active .mm-dd-value { color: #2f6093; }
.mm-dd-caret { position: absolute; top: 9px; right: 9px; font-size: 11px; line-height: 1; color: #94a3b8; }
.mm-dd.open { z-index: 50; }
.mm-dd.open .mm-dd-btn { border-color: #4f7eaa; }
.mm-dd.open .mm-dd-caret { transform: rotate(180deg); }
.mm-dd-menu {
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 51;
  display: none; min-width: 100%; padding: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(40, 60, 90, .16); max-height: 248px; overflow-y: auto;
}
.mm-dd.open .mm-dd-menu { display: block; }
.mm-dd-menu button {
  display: block; width: 100%; text-align: left; white-space: nowrap;
  padding: 8px 10px; font-size: 13px; color: var(--ink);
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.mm-dd-menu button:hover { background: #f1f5f9; }
.mm-dd-menu button.selected { color: #2f6093; font-weight: 700; }
.mm-dd-menu button.selected::after { content: ' ✓'; }
.mm-dd-mask { position: fixed; inset: 0; z-index: 40; background: transparent; }

/* 方法列表卡片 */
.mm-method-list { display: grid; gap: 11px; margin-top: 14px; }
.mm-method-card { border: 1px solid var(--line); background: rgba(255,252,252,.92); border-radius: 20px; padding: 15px; text-align: left; box-shadow: 0 9px 24px rgba(70,92,120,.05); }
.mm-card-main { display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; color: var(--ink); cursor: pointer; }
.mm-method-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mm-method-head strong { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.mm-academic { color: #8a97a8; font-size: 11.5px; display: block; margin: 3px 0 8px; }
.mm-method-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mm-method-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-method-tags span { background: #eef5fb; border-radius: 6px; padding: 4px 8px; font-size: 11px; color: #55708f; }
.mm-my-rating { margin-top: 10px; font-size: 12.5px; color: #c79a4a; letter-spacing: 1px; }
.mm-no-rating { margin-top: 10px; font-size: 12px; color: #a6b1bf; }

/* 加入我的方法按钮 */
.mm-choose-btn { width: 100%; margin-top: 12px; border: 1px dashed #9bb6cf; background: #f4f9fe; color: #4f7eaa; border-radius: 12px; padding: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mm-choose-btn.chosen { border-style: solid; border-color: #6598ca; background: #e6f1fc; color: #3f6f9f; }
.mm-method-card .mm-choose-btn { margin-top: 12px; }


/* 来源徽标 */
.mm-src { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.mentalmodel-screen .src-study { background: #eaf3fc; color: #4f7eaa; }
.mentalmodel-screen .src-top { background: #fff1e6; color: #c98a5a; }
.mentalmodel-screen .src-custom { background: #f3edfc; color: #7c61a8; }
.mentalmodel-screen .src-ai { background: #edf8f3; color: #4f9779; }

/* 方法详情 */
.mm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.mm-evidence, .mm-time { font-size: 11.5px; font-weight: 700; color: #6a7688; background: #f3f5f8; border-radius: 999px; padding: 4px 10px; }
.mm-one-liner { font-size: 16px; font-weight: 800; line-height: 1.5; margin: 6px 0 14px; }
.mm-principle { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.mm-step-list { margin: 8px 0 0; padding-left: 20px; }
.mm-step-list li { margin: 7px 0; font-size: 14px; line-height: 1.55; }
.mm-tip { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.mm-tip:last-child { margin-bottom: 0; }

/* 容器型方法子步骤 */
.mm-substeps { display: grid; gap: 10px; margin-top: 8px; }
.mm-substep { display: flex; align-items: flex-start; gap: 11px; }
.mm-substep b { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: #edf5ff; color: #55708f; font-size: 13px; }
.mm-substep strong { font-size: 14px; display: block; }
.mm-substep small { color: var(--muted); font-size: 12.5px; line-height: 1.5; display: block; }
.mm-substage { margin-left: auto; font-size: 11px; background: #f3f5f8; border-radius: 999px; padding: 4px 9px; color: #6a7688; white-space: nowrap; }

/* 评分卡 */
.mm-rate-row { display: grid; gap: 10px; margin-top: 10px; }
.mm-rate-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-rate-item span { font-size: 14px; font-weight: 700; }
.mm-stars { display: flex; gap: 4px; }
.mm-star { border: 0; background: transparent; font-size: 25px; cursor: pointer; color: #e3d7b0; padding: 0; line-height: 1; }
.mm-star.on { color: #e8b53a; }
.mm-rate-hint { display: block; color: #a6b1bf; margin-top: 10px; line-height: 1.5; }

/* 固定头：名称（偏好）+ 能力总览（右侧） */
.mm-id-row { display: flex; align-items: stretch; gap: 9px; margin: 2px 0; }
.mm-arch-banner { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.82); border-radius: 16px; padding: 10px 12px; }
.mm-arch-emoji { font-size: 23px; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f3f8fd; }
.mm-arch-text { min-width: 0; }
.mm-arch-text strong { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-arch-text small { color: var(--muted); font-size: 11px; }

/* 能力总览（右侧迷你四竖条） */
.mm-cap-mini { flex: none; width: 76px; border: 1px solid var(--line); background: rgba(255,255,255,.82); border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.mm-cap-mini small { font-size: 10.5px; font-weight: 700; color: #6b7c90; }
.mm-cap-mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.mm-cap-mini-bars i { width: 7px; border-radius: 3px; display: block; }
.mm-cap-mini-bars i.high { background: #7eb7b1; }
.mm-cap-mini-bars i.mid { background: #8fb6d6; }
.mm-cap-mini-bars i.low { background: #d6a9b6; }
.mm-mild-note { display: block; color: #8a97a8; font-size: 11.5px; line-height: 1.5; margin: 5px 2px 2px; }

/* 偏好百分比 */
.mm-pct-card { padding: 14px 15px; }
.mm-pct-title { font-size: 12.5px; font-weight: 700; color: #55708f; margin-bottom: 10px; }
.mm-pct-row { display: flex; align-items: center; gap: 9px; margin: 9px 0; }
.mm-pct-pole { flex: none; font-size: 11.5px; color: #93a1b2; white-space: nowrap; width: 82px; }
.mm-pct-pole:first-child { text-align: right; }
.mm-pct-pole.strong { color: #3f6f9f; font-weight: 800; }
.mm-pct-track { flex: 1; height: 9px; border-radius: 999px; background: rgba(51,73,103,.10); overflow: hidden; }
.mm-pct-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6598ca,#7eb7b1); }

/* 模块首页：画像横幅 + 我的方法 */
.mm-profile-banner { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); background: linear-gradient(135deg,#eaf3fc,#eef7f4); border-radius: 18px; padding: 13px 15px; text-align: left; cursor: pointer; margin: 4px 0; box-shadow: 0 9px 22px rgba(70,92,120,.06); }
.mm-banner-emoji { font-size: 25px; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #fff; }
.mm-banner-text { flex: 1; text-align: left; }
.mm-banner-text small { display: block; color: var(--muted); font-size: 11.5px; }
.mm-banner-text strong { font-size: 16px; }
.mm-banner-go { color: #9babc0; font-size: 24px; font-weight: 700; }

.mm-my-list { display: grid; gap: 9px; margin: 4px 0 12px; }
.mm-my-item { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.mm-my-main { flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0; border: 1px solid var(--line); background: rgba(255,255,255,.9); border-radius: 15px; padding: 11px 13px; text-align: left; cursor: pointer; }
.mm-album-move { flex: none; width: 40px; border: 1px solid var(--line); background: rgba(255,255,255,.9); border-radius: 13px; font-size: 17px; cursor: pointer; }
.mm-my-emoji { font-size: 20px; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f3f8fd; }
.mm-my-text { flex: 1; text-align: left; min-width: 0; }
.mm-my-text strong { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-my-text small { color: var(--muted); font-size: 11.5px; display: block; margin-top: 2px; }
.mm-album-tag { flex: none; font-size: 11px; color: #4f76a6; background: #eef4fb; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.mm-empty-my { margin: 4px 0 12px; }

/* 顶部 Tab：发现方法 / 我的方法 */
.mm-lib-tabs { display: flex; gap: 4px; background: rgba(110,135,165,.12); border-radius: 15px; padding: 4px; margin: 4px 0 12px; }
.mm-lib-tab { flex: 1; border: 0; background: transparent; padding: 11px 4px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #6b7c90; cursor: pointer; }
.mm-lib-tab.on { background: #fff; color: #3d5a80; box-shadow: 0 4px 12px rgba(60,80,110,.13); }

/* 我的方法：筛选 / 专辑 视图切换（筛选无条件即全部） */
.mm-mine-modes { display: flex; gap: 6px; margin: 0 0 10px; }
.mm-mine-mode { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: #6b7c90; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.mm-mine-mode.on { background: #3d5a80; color: #fff; border-color: #3d5a80; }

/* 专辑页：横向滚动的专辑 Tab（未分组 + 各专辑 + 创建） */
.mm-album-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mm-album-tabs::-webkit-scrollbar { display: none; }
.mm-album-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: #5d6e83; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mm-album-tab.on { background: #3d5a80; color: #fff; border-color: #3d5a80; }
.mm-album-tab-count { font-size: 11px; background: rgba(110,135,165,.18); border-radius: 999px; padding: 1px 7px; font-weight: 700; min-width: 18px; text-align: center; }
.mm-album-tab.on .mm-album-tab-count { background: rgba(255,255,255,.22); color: #fff; }
.mm-album-tab-add { border-style: dashed; color: #3d5a80; }
.mm-album-tab-name { display: inline-flex; align-items: center; gap: 3px; }

/* 内联创建专辑（专辑页与弹层通用） */
.mm-album-create-row { display: flex; gap: 8px; margin: 0 0 12px; align-items: center; }
.mm-album-create-row input, .mm-album-new input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; background: #fff; color: var(--ink); }
.mm-album-inline-ok, .mm-album-inline-cancel { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: #4a5b70; cursor: pointer; }
.mm-album-inline-ok { background: #3d5a80; color: #fff; border-color: #3d5a80; }

/* 专辑视图 */
.mm-album-group { margin-bottom: 16px; }
.mm-album-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 2px 8px; }
.mm-album-head strong { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.mm-album-count { font-size: 11px; color: #6b7c90; background: rgba(110,135,165,.16); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.mm-album-actions { display: flex; gap: 6px; }
.mm-album-actions button { border: 0; background: transparent; color: #6b7c90; font-size: 12px; cursor: pointer; padding: 3px 6px; }
.mm-album-rename-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 13px; background: #fff; }
.mm-album-head .mm-album-rename-save, .mm-album-head .mm-album-rename-cancel { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 10px; font-size: 12px; color: #4a5b70; cursor: pointer; }
.mm-album-head .mm-album-rename-save { background: #3d5a80; color: #fff; border-color: #3d5a80; }

/* 加入 / 整理专辑弹层：专辑单选（可滚动）→ 创建专辑 → 确认 */
.mm-modal-backdrop { position: absolute; inset: 0; background: rgba(40,55,75,.42); border: 0; cursor: default; }
.mm-album-modal { max-width: 360px; position: relative; z-index: 1; }
.mm-album-method { font-size: 13px; color: #6b7c90; margin: 0 0 12px; background: #f3f8fd; border-radius: 12px; padding: 9px 12px; }
.mm-album-options { display: grid; gap: 8px; margin-bottom: 10px; max-height: 36vh; overflow-y: auto; padding-right: 2px; }
.mm-album-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 1px solid var(--line); background: #f8fbfe; border-radius: 13px; padding: 11px 13px; font-size: 13.5px; font-weight: 600; color: #43536a; cursor: pointer; text-align: left; }
.mm-album-opt.on { border-color: #3d5a80; background: #eaf2fb; color: #3d5a80; }
.mm-album-opt-count { font-size: 11px; color: #6b7c90; background: rgba(110,135,165,.18); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.mm-album-create-btn { width: 100%; border: 1px dashed #9db4cf; background: #f8fbfe; border-radius: 13px; padding: 11px 13px; font-size: 13.5px; font-weight: 600; color: #3d5a80; cursor: pointer; text-align: center; margin-bottom: 10px; }
.mm-album-new { display: flex; gap: 8px; margin-bottom: 10px; }
.mm-album-confirm { width: 100%; border-radius: 13px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.mm-album-remove { width: 100%; margin-top: 10px; border: 1px solid #e3b9b9; background: #fdf0f0; color: #b15555; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* AI 个性化分析占位 */
.mm-ai-card { background: linear-gradient(135deg, rgba(237,248,243,.92), rgba(234,243,252,.82)); }
.mm-ai-placeholder { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: #6a7c8c; }

/* 我的页面入口卡 */
.mm-entry { width: 100%; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(114,145,178,.18); border-radius: 22px; padding: 15px 16px; margin: 14px 0 4px; color: var(--ink); background: linear-gradient(135deg, rgba(234,243,252,.95), rgba(237,248,243,.92)); text-align: left; cursor: pointer; box-shadow: 0 12px 30px rgba(70,92,120,.08); }
.mm-entry-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px; background: #fff; font-size: 23px; }
.mm-entry-copy { flex: 1; }
.mm-entry-copy strong { display: block; font-size: 16px; }
.mm-entry-copy small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 3px; }
.mm-entry-go { color: #9babc0; font-size: 24px; font-weight: 700; }


/* ===== V1.1 新增：来源化、社区评分、导师卡、同类型导师 ===== */

/* 工具卡底部：我的评分 + 大家评分 */
.mm-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mm-card-foot .mm-my-rating, .mm-card-foot .mm-no-rating { margin-top: 0; }
.mm-crowd { font-size: 11.5px; color: #8aa6bf; white-space: nowrap; }
.mm-crowd b { color: #c79a4a; font-weight: 700; }
.mm-crowd-none { color: #b6a6d4; }

/* 工具箱排序行 */
.mm-sort-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.mm-sort-row .mm-filter-label { margin: 0; }
.mm-sort-current { font-size: 12px; font-weight: 700; color: #4f7eaa; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; }
.mm-sort-more { color: #a6b1bf; font-size: 11px; }

/* 通用导师头像圆圈 */
.mm-mava { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; padding: 0; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(70,92,120,.14); }
.mm-ava-img { background: #eef3f8; }
.mm-ava-img img { width: 100%; height: 100%; object-fit: cover; }
.mm-ava-init { background: linear-gradient(135deg,#9db8d6,#7fb3ac); color: #fff; font-weight: 800; font-size: 18px; }

/* 学霸导师方法卡（详情） */
.mm-mentor-card { padding: 14px; }
.mm-mentor-head { display: flex; gap: 12px; align-items: center; }
.mm-mentor-ava { width: 56px; height: 56px; }
.mm-mentor-info { flex: 1; min-width: 0; }
.mm-mentor-info strong { font-size: 15.5px; display: block; }
.mm-mentor-info small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.45; }
.mm-mentor-strong { color: #c98a5a; }
.mm-mentor-arch b { color: #4f7eaa; }
.mm-mentor-quote { margin: 12px 0 0; padding: 10px 12px; background: #f6f9fc; border-left: 3px solid #9db8d6; border-radius: 0 10px 10px 0; color: #5c6b7d; font-size: 13px; line-height: 1.6; }
.mm-method-tags-detail { margin: 2px 0 6px; }

/* 社区评分（详情页） */
.mm-crowd-card { border: 1px solid var(--line); background: #f7fafd; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.mm-crowd-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; padding: 3px 0; }
.mm-crowd-row span { color: #6b7c90; font-weight: 700; min-width: 78px; }
.mm-crowd-row b { color: #43566b; font-weight: 700; }
.mm-crowd-row small { color: #9aa8b8; margin-left: auto; }
.mm-crowd-note { display: block; color: #b3bdc9; font-size: 10.5px; margin-top: 4px; }

/* 同类型导师横条 */
.mm-mentor-strip { border: 1px solid var(--line); background: rgba(255,255,255,.82); border-radius: 16px; padding: 12px 13px; margin-bottom: 12px; }
.mm-mentor-strip-head { display: flex; align-items: baseline; justify-content: space-between; }
.mm-mentor-strip-head strong { font-size: 14px; }
.mm-mentor-strip-head small { color: #8aa6bf; font-size: 11px; }
.mm-mentor-avatars { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.mm-mentor-ava { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 52px; }
.mm-mentor-ava .mm-mava { width: 50px; height: 50px; }
.mm-mentor-name { font-size: 10.5px; color: #5c6b7d; text-align: center; line-height: 1.2; max-width: 56px; }
.mm-mentor-more { background: #eef3f8; color: #8aa6bf; font-size: 22px; font-weight: 800; cursor: pointer; }
.mm-mentor-strip-note { display: block; color: #b3bdc9; font-size: 10.5px; margin-top: 8px; }

/* 导师弹窗 */
.mm-modal-mask { position: fixed; inset: 0; background: rgba(40,55,75,.42); display: grid; place-items: center; z-index: 60; padding: 28px; }
/* 原话 / 变体弹窗不做变灰遮罩，卡片浮在原页面上；只点 × 关闭，不响应外部点击。 */
.mm-modal-mask.mm-plain { background: transparent; }
.mm-var-mask { z-index: 60; }
.mm-raw-mask { z-index: 70; }
.mm-modal { width: 100%; max-width: 330px; max-height: 74vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 24px 60px rgba(30,45,70,.28); }
.mm-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mm-modal-head strong { font-size: 15px; }
.mm-modal-x { border: 0; background: #eef3f8; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; color: #6b7c90; cursor: pointer; }
.mm-modal-list { display: grid; gap: 12px; }
.mm-modal-item { display: flex; gap: 12px; align-items: center; }
.mm-modal-info { flex: 1; min-width: 0; }
.mm-modal-info strong { font-size: 14px; display: block; }
.mm-modal-info small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }

/* 自建表单必填星号 */
.mm-req { color: #d98a8a; }

/* ===== V1.2 雷达与导师并列 / 反馈延迟 / 自创编辑 ===== */

/* 雷达左、同类型导师竖排右侧 */
.mm-radar-mentor { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.mm-radar-side { flex: 1 1 auto; min-width: 150px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 18px; padding: 5px; display: flex; align-items: center; }
.mm-radar-side .mm-radar { width: 100%; height: auto; display: block; }
.mm-mentor-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 18px; padding: 10px; }
.mm-mentor-side-title { font-size: 12px; font-weight: 800; color: #55708f; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mm-mentor-side-title small { color: #8aa6bf; font-weight: 700; letter-spacing: .4px; }
.mm-side-row { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; padding: 0; color: var(--ink); cursor: pointer; width: 100%; }
.mm-side-ava { width: 34px; height: 34px; border-width: 1.5px; }
.mm-side-name { font-size: 12px; color: #5c6b7d; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-side-more { background: #eef3f8; color: #8aa6bf; font-size: 17px; font-weight: 800; }

/* 详情页编辑按钮（自创） */
.mm-edit-btn { width: 100%; border: 1px dashed #9db8d6; background: #f6f9fc; color: #55708f; border-radius: 14px; padding: 11px; font-size: 14px; font-weight: 700; cursor: pointer; margin: 12px 0 4px; }

/* 详情页动作按钮与上、下内容的间距统一为 12px（收藏按钮在正文后、评分卡前） */
.mentalmodel-screen > .mm-choose-btn { margin: 12px 0; }

/* 评分卡：反馈锁定提示 + 打完分展开 */
.mm-rate-locked { display: block; margin-top: 12px; font-size: 12px; color: #a6b1bf; }
.mm-crowd-open { margin-top: 12px; animation: mmCrowdIn .3s ease; }
@keyframes mmCrowdIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== 步骤标签行（标签 + 圆形「?」） ===== */
.plan-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-label-row .plan-label { margin: 0; }
.mm-help-btn { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #c2d2e3; background: #f2f6fa; color: #6b86a3; font-size: 12.5px; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.mm-help-btn:hover { background: #e6eef6; }
.mm-var-restore { margin-top: 8px; border: 0; background: transparent; color: #6b86a3; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 4px 0; }

/* ===== 「N 位学霸都在用」框 ===== */
.mm-used-box { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: #f6f9fc; border-radius: 16px; padding: 10px 12px; cursor: pointer; margin: 12px 0; }
.mm-used-avatars { display: flex; align-items: center; flex: none; }
.mm-used-ava { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-left: -8px; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; background: #e9f0f7; }
.mm-used-ava:first-child { margin-left: 0; }
.mm-used-ava img { width: 100%; height: 100%; object-fit: cover; }
.mm-used-ava .mm-ava-init { width: 100%; height: 100%; display: grid; place-items: center; font-size: 12px; }
.mm-used-ava.is-active { box-shadow: 0 0 0 2px #6ba0d6; }
.mm-used-more { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; background: #e9f0f7; border: 2px solid #fff; color: #7a93ad; display: grid; place-items: center; font-weight: 800; box-shadow: 0 0 0 1px var(--line); }
.mm-used-text { flex: 1; min-width: 0; text-align: left; font-size: 13px; color: #5b6b80; }
.mm-used-text strong { font-weight: 800; color: #3b4c61; }
.mm-used-go { flex: none; color: #a8b8c8; font-size: 18px; font-weight: 700; }

/* ===== 「TA 的原话」弹窗 ===== */
.mm-raw-modal { max-width: 340px; }
.mm-raw-body { display: grid; gap: 10px; }
.mm-raw-body p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #4a5a6d; white-space: pre-wrap; }

/* ===== 「大家都在用」可滑动卡片弹窗 ===== */
.mm-var-modal { max-width: 420px; max-height: 84vh; padding: 16px; }
.mm-var-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.mm-var-tabs::-webkit-scrollbar { display: none; }
.mm-var-tab { flex: none; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #f4f8fb; border-radius: 999px; padding: 5px 11px 5px 6px; font-size: 12px; font-weight: 700; color: #5d7086; cursor: pointer; }
.mm-var-tab.on { background: #3f77b8; border-color: #3f77b8; color: #fff; }
.mm-var-tab-ava { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e6eef6; }
.mm-var-tab-ava img { width: 100%; height: 100%; object-fit: cover; }
.mm-var-tab-std { font-size: 12px; }
.mm-var-stage { position: relative; display: flex; align-items: stretch; }
.mm-var-viewport { flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; touch-action: pan-y; }
.mm-var-track { display: flex; transition: transform .28s ease; will-change: transform; }
.mm-var-slide { flex: 0 0 100%; min-width: 0; }
.mm-var-card { height: 100%; background: #f7fafc; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.mm-var-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mm-var-card-head strong { font-size: 14px; }
.mm-var-mentor { display: flex; gap: 11px; align-items: flex-start; }
.mm-var-mentor-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e7eff7; }
.mm-var-mentor-ava img { width: 100%; height: 100%; object-fit: cover; }
.mm-var-mentor-ava .mm-ava-init { width: 100%; height: 100%; display: grid; place-items: center; font-size: 16px; }
.mm-var-mentor-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mm-var-mentor-info strong { font-size: 14px; }
.mm-var-mentor-info small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.mm-mentor-strong { color: #6b86a3; }
.mm-var-oneliner { margin: 10px 0 0; font-size: 13px; color: #4a5a6d; line-height: 1.55; }
.mm-var-set { margin-top: 12px; width: 100%; border: 0; border-radius: 12px; background: #3f77b8; color: #fff; padding: 10px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.mm-var-current-row { margin-top: 12px; }
.mm-var-badge { display: inline-block; font-size: 12px; font-weight: 800; color: #5d8a68; background: #e7f4ec; border-radius: 999px; padding: 4px 10px; }
.mm-var-arrow { flex: none; align-self: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #6b86a3; font-size: 18px; line-height: 1; cursor: pointer; z-index: 2; }
.mm-var-prev { margin-right: 4px; }
.mm-var-next { margin-left: 4px; }
.mm-var-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.mm-var-dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd8e5; cursor: pointer; }
.mm-var-dot.on { background: #3f77b8; width: 16px; border-radius: 999px; }

/* UG-MERGE-20261015-01：窄屏不裁图表或长方法名；桌面沿用外壳的内容宽度。 */
@media (max-width: 420px) {
  .mm-radar-mentor { flex-wrap: wrap; }
  .mm-radar-side { flex: 1 1 160px; min-width: 0; }
  .mm-mentor-side { flex: 1 1 105px; min-width: 0; }
  .mm-method-head, .mm-rate-item, .mm-sort-row { flex-wrap: wrap; }
  .mm-pct-row { gap: 5px; }
  .mm-pct-pole { width: 76px; font-size: 11px; }
  .mm-arch-text strong { white-space: normal; }
  .mm-modal-mask { padding: 16px; }
}
@media (min-width: 700px) {
  .mm-method-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-radar-mentor { max-width: 560px; }
}

/* 深色模式仅覆盖本模块，使用设计版提供的颜色变量。 */
.theme-dark .mentalmodel-screen :is(.mm-choice,.mm-likert-opt,.mm-type-chip,.mm-rec-card,.mm-method-card,.mm-mini-method,.mm-my-item,.mm-my-main,.mm-album-move,.mm-mine-mode,.mm-album-tab,.mm-album-opt,.mm-album-create-btn,.mm-album-inline-cancel,.mm-album-create-row input,.mm-album-new input,.mm-album-rename-input,.mm-album-head .mm-album-rename-cancel,.mm-arch-banner,.mm-cap-mini,.mm-radar-side,.mm-mentor-side,.mm-mentor-strip,.mm-modal,.mm-sort-current,.mm-dd-btn,.mm-dd-menu) { background: #202f41; color: var(--ink); border-color: var(--line); }
.theme-dark .mentalmodel-screen :is(.mm-choice.selected,.mm-likert-opt.selected,.mm-choose-btn.chosen,.mm-tab.on,.mm-lib-tab.on,.mm-mine-mode.on,.mm-album-tab.on,.mm-album-opt.on) { background: #304862; color: var(--ink); border-color: #7fa7dc; }
.theme-dark .mentalmodel-screen .mm-lib-tabs { background: rgba(120,150,185,.14); }
.theme-dark .mentalmodel-screen .mm-album-tag, .theme-dark .mentalmodel-screen .mm-album-method { background: #263c52; color: #c6d9ef; }
.theme-dark .mentalmodel-screen .mm-album-opt-count { background: #2c4057; color: #c6d9ef; }
.theme-dark .mentalmodel-screen :is(.mm-choice-letter,.mm-likert-opt b,.mm-fix,.mm-method-tags span,.mm-lean,.mm-evidence,.mm-time,.mm-substage,.mm-arch-emoji,.mm-banner-emoji,.mm-my-emoji,.mm-choose-btn,.mm-edit-btn,.mm-crowd-card,.mm-mentor-quote,.mm-modal-x,.mm-side-more) { background: #263c52; color: #c6d9ef; border-color: var(--line); }
.theme-dark .mentalmodel-screen :is(.mm-profile-banner,.mm-ai-card,.mm-entry) { background: linear-gradient(135deg,#243c53,#233d3d); color: var(--ink); }
.theme-dark .mentalmodel-screen :is(.mm-academic,.mm-no-rating,.mm-mild-note,.mm-filter-label,.mm-sort-more,.mm-crowd,.mm-rate-locked,.mm-rate-hint,.mm-crowd-note,.mm-mentor-strip-note,.mm-mentor-side-title,.mm-side-name,.mm-cap-head span,.mm-cap-mini small,.mm-why summary,.mm-pct-pole,.mm-crowd-row span,.mm-crowd-row b,.mm-dd-label) { color: #aabed6; }
.theme-dark .mentalmodel-screen :is(.mm-dd-btn.is-active,.mm-dd.open .mm-dd-btn) { background: #263c52; border-color: #7fa7dc; }
.theme-dark .mentalmodel-screen .mm-dd-btn.is-active .mm-dd-value { color: #cfe1f7; }
.theme-dark .mentalmodel-screen .mm-dd-menu button.selected { color: #cfe1f7; }
.theme-dark .mentalmodel-screen .mm-dd-menu button { color: #c6d9ef; }
.theme-dark .mentalmodel-screen .mm-dd-menu button:hover { background: #263c52; }
.theme-dark .mentalmodel-screen .mm-pct-pole.strong { color: #c6d9ef; }
.theme-dark .mentalmodel-screen :is(.src-study,.src-top,.src-custom,.src-ai) { background: #31445c; color: #d0e0f5; }
.theme-dark .mentalmodel-screen .mm-radar text { fill: #b7cde4; }
.theme-dark .mentalmodel-screen .mm-radar :is(line,circle[fill="none"]) { stroke: #506174; }
.theme-dark .mentalmodel-screen .mm-my-rating { color: #e0b66a; }

/* 变体/原话/都在用 深色模式 */
.theme-dark .mentalmodel-screen :is(.mm-var-modal,.mm-var-card,.mm-used-box,.mm-raw-modal,.mm-var-tab,.mm-var-arrow,.mm-help-btn,.mm-used-more,.mm-used-ava,.mm-var-tab-ava,.mm-var-mentor-ava,.mm-var-restore) { background: #202f41; color: var(--ink); border-color: var(--line); }
.theme-dark .mentalmodel-screen :is(.mm-raw-body p,.mm-var-oneliner,.mm-used-text) { color: #c6d9ef; }
.theme-dark .mentalmodel-screen :is(.mm-var-mentor-info strong,.mm-var-mentor-info,.mm-used-text strong) { color: var(--ink); }
.theme-dark .mentalmodel-screen .mm-var-tab.on { background: #4a7fb8; border-color: #4a7fb8; color: #fff; }
.theme-dark .mentalmodel-screen .mm-var-set { background: #4a7fb8; }
.theme-dark .mentalmodel-screen .mm-var-badge { background: #263c52; color: #9fc7aa; }
.theme-dark .mentalmodel-screen .mm-var-dot { background: #3a4c61; }
.theme-dark .mentalmodel-screen .mm-var-dot.on { background: #7fa7dc; }
.theme-dark .mentalmodel-screen :is(.mm-used-ava,.mm-used-more) { border-color: #202f41; }
.theme-dark .mentalmodel-screen .mm-var-track, .theme-dark .mentalmodel-screen .mm-var-stage { background: transparent; }
