/* ==========================================================================
   步骤层：九个实验步骤的专用组件（暖纸 + 墨色 + 朱柿橙主色）。
   ========================================================================== */

/* ===== 步骤1 · 领取客户需求单 ============================================ */
.intake-layout { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.customer-portrait { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 520px;
  background: var(--dark-2); box-shadow: var(--shadow-lift); }
.customer-portrait img.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-tint { position: absolute; inset: 0; background: linear-gradient(185deg, rgba(35, 27, 15, .04) 34%, rgba(24, 19, 10, .9) 84%); }
.portrait-top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.portrait-top > span { font-size: 10px; letter-spacing: 2.5px; color: #f2ede2; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7ee2b8; margin-right: 6px; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(126, 226, 184, .5); } 55% { box-shadow: 0 0 0 6px rgba(126, 226, 184, 0); } }
.portrait-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; color: #f2ede2; }
.portrait-caption .kicker { color: var(--on-dark-accent); }
.portrait-caption h2 { color: #fff; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.5; margin: 8px 0 14px; }
.portrait-id { display: flex; align-items: baseline; gap: 10px; }
.portrait-id span { font-size: 17px; font-weight: 700; }
.portrait-id b { font-size: 12.5px; color: #cfc6b2; font-weight: 500; }
.portrait-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.intake-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.conversation-tip { display: flex; gap: 9px; align-items: center; margin-top: 16px; padding: 11px 14px;
  border-radius: var(--r-m); background: var(--accent-soft); border: 1px solid var(--accent-mist); color: #8a4626; font-size: 12.5px; }
.conversation-tip .ico { color: var(--accent-deep); }
.bubble-row { display: flex; gap: 11px; margin-top: 14px; align-items: flex-end; }
.bubble-row.operator { flex-direction: row-reverse; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: var(--shadow); }
.avatar.operator { display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 700; font-size: 13px; border: 0; }
.bubble { position: relative; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 12px 16px; max-width: 78%; font-size: 13.5px; }
.bubble-row.operator .bubble { border-radius: 14px 14px 4px 14px; background: var(--accent-soft); border-color: var(--accent-mist); }
.bubble small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.bubble.customer-bubble { background: #fdfaf3; border-color: #e3d8c3; font-family: var(--serif); font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fact-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); transition: .18s; box-shadow: var(--shadow); }
.fact-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.fact-card.read { border-color: #c4e3d2; background: linear-gradient(150deg, #fff, #eef5ef); }
.fact-card.hard { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.fact-card.hard.read { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.fact-card .fact-icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-deep); }
.fact-card.read .fact-icon { background: var(--ok-bg); color: var(--ok); }
.fact-card small { display: block; color: var(--muted); font-size: 11px; }
.fact-card b { display: block; color: var(--ink); font-size: 13px; margin-top: 2px; }
.fact-card > .ico { margin-left: auto; color: var(--faint); }
.fact-card.read > .ico:last-child { color: var(--ok); }
.fact-modal-symbol { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 17px;
  background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 12px; }
.fact-modal-symbol .ico { width: 30px; height: 30px; }
.check-row.alert-row { border-color: #eec2b8; background: var(--bad-bg); }
.check-row.alert-row b { color: #8f2f28; }

/* ===== 步骤2 · 任务书与路线 ============================================== */
.brief-banner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-l); color: #ded5c4; box-shadow: var(--shadow-lift); }
.brief-symbol { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px;
  background: rgba(244, 165, 120, .16); color: var(--on-dark-accent); flex-shrink: 0; }
.brief-banner .kicker { color: #b3a487; }
.brief-banner h3 { color: #f2ede2; font-size: 17px; margin: 4px 0 5px; }
.brief-banner p { color: #a89d89; font-size: 12.5px; }
.brief-banner > div { flex: 1; min-width: 260px; }
.brief-banner[data-action] { cursor: pointer; transition: .16s; }
.brief-banner[data-action]:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(24, 20, 12, .28); }
.brief-open { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #f2ede2; color: #6b3413; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.brief-open .ico { width: 15px; height: 15px; }
.brief-banner:hover .brief-open { background: #ffffff; }

/* —— 决策书文档(模态内) —— */
.brief-doc { display: flex; flex-direction: column; gap: 13px; }
.brief-doc-sec { border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 16px; background: var(--panel-soft); }
.brief-doc-sec header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.brief-doc-sec header i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-deep); font-style: normal; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.brief-doc-sec h4 { margin: 0; font-size: 14px; color: var(--ink); }
.brief-doc-sec.red { border-color: #eec2b8; background: #faf0ea; }
.brief-doc-sec.red header i { background: var(--bad-bg); color: #a52a3e; }
.brief-doc-sec.amber { border-color: #e8d190; background: #faf4dd; }
.brief-doc-sec.amber header i { background: var(--warn-bg); color: #7c4e05; }
.brief-doc-sec p { font-size: 13px; color: var(--text); margin: 2px 0; }
.brief-doc-lead { font-weight: 650; color: var(--ink) !important; }
.brief-doc-sec ul { margin: 6px 0 0; display: flex; flex-direction: column; gap: 5px; }
.brief-doc-sec li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text); }
.brief-doc-sec li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); }
.brief-doc-sec.red li::before { background: #d98a76; }
.brief-doc-sec.amber li::before { background: #d9b96a; }
.tab-bar { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.tab-bar button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 13px; transition: .15s; }
.tab-bar button b { font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.tab-bar button.active { background: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(217, 72, 31, .3); }
.tab-bar button.active b { color: #ffdfcc; }
.tab-bar button:disabled { opacity: .45; }
.tab-bar > span { margin-left: 14px; font-size: 12px; color: var(--faint); }
.journey-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.scene-map-scroll { overflow-x: auto; padding-bottom: 6px; }
.scene-map { position: relative; min-width: 560px; aspect-ratio: 500/281; border-radius: var(--r-m); overflow: hidden;
  background: #221c11 center/cover; }
.scene-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.scene-map::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 26, 13, .18), rgba(24, 19, 10, .6)); }
.scene-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-path line { stroke: rgba(255, 255, 255, .42); stroke-width: 1.2; stroke-dasharray: 4 5; }
.scene-path line.traveled { stroke: var(--on-dark-accent); stroke-dasharray: none; stroke-width: 1.8; }
.map-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 5px; }
.map-pin b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(30, 25, 15, .85); border: 1.5px solid rgba(255, 255, 255, .5); color: #fff;
  font-size: 13px; font-variant-numeric: tabular-nums; transition: .18s; }
.map-pin b .ico { width: 17px; height: 17px; color: var(--on-dark-accent); }
.map-pin.done b { background: var(--accent); border-color: #f4a578; }
.map-pin.selected b { transform: scale(1.18); border-color: #fff; box-shadow: 0 0 0 6px rgba(217, 72, 31, .35); }
.map-pin span { padding: 3px 9px; border-radius: 999px; background: rgba(30, 25, 15, .85); color: #f2ede2; font-size: 11px; white-space: nowrap; }
.map-pin:disabled { opacity: .5; }
.map-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }
.map-foot span i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 5px 0 12px; background: var(--accent); }
.map-foot span i:first-child { margin-left: 0; background: var(--ok); }
.map-foot span i.gray { background: #c3bba9; }
.journey-focus { display: flex; flex-direction: column; gap: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.focus-art { height: 150px; background: #221c11 center/140% no-repeat url('../assets/restaurant-scene.webp');
  display: flex; align-items: flex-end; padding: 16px 20px; position: relative; }
.focus-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(24, 19, 10, .88)); }
.focus-art span { position: relative; font-size: 40px; font-weight: 750; color: var(--on-dark-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.focus-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 13px; }
.focus-body h2 { font-size: 20px; }
.focus-body > p { color: var(--muted); font-size: 13px; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-actions span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--panel-soft); border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.focus-actions b { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 10.5px; font-weight: 700; }
.focus-note { color: var(--faint); font-size: 11.5px; }
/* 规则归类 */
.rules-panel .slim-progress { height: 6px; border-radius: 4px; background: #efe9dd; overflow: hidden; margin: -6px 0 16px; }
.rules-panel .slim-progress i { display: block; height: 100%; background: linear-gradient(90deg, #eb7443, var(--accent)); transition: width .4s; }
.metric-inline { text-align: right; }
.metric-inline b { display: block; font-size: 22px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.metric-inline span { font-size: 11px; color: var(--muted); }
.rule-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sort-card { position: relative; text-align: left; padding: 15px 16px; background: var(--panel); border: 1.5px solid var(--line-2);
  border-radius: var(--r-m); box-shadow: var(--shadow); transition: .16s; cursor: grab; }
.sort-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sort-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 72, 31, .16); }
.sort-card.dragging { opacity: .25; }
.sort-card > span { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 1.5px; color: var(--accent-deep); font-weight: 700; }
.sort-card > span i { letter-spacing: 0; color: var(--line-2); font-style: normal; }
.sort-card h3 { margin: 7px 0 5px; font-size: 14.5px; }
.sort-card p { font-size: 12px; color: var(--muted); }
.sort-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sort-zone { border-radius: var(--r-m); padding: 16px; border: 1.5px dashed var(--line-2); background: var(--panel-soft); transition: .15s; }
.sort-zone header { display: flex; gap: 11px; align-items: center; margin-bottom: 14px; }
.sort-zone header .ico { width: 26px; height: 26px; }
.sort-zone h3 { font-size: 14.5px; }
.sort-zone header p { font-size: 11.5px; color: var(--muted); }
.sort-zone.red { border-color: #eec3b2; background: #faf0ea; }
.sort-zone.red header .ico { color: var(--bad); }
.sort-zone.accept { border-color: #bfe0cc; background: #eef5ef; }
.sort-zone.accept header .ico { color: var(--ok); }
.placed-rule { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 13px; margin-bottom: 9px; }
.placed-rule b { display: block; font-size: 13px; color: var(--ink); }
.placed-rule small { display: block; font-size: 11px; margin: 3px 0 5px; }
.placed-rule.retried b { color: var(--warn); }
.placed-rule p { font-size: 11.5px; color: var(--muted); }

/* ===== 步骤3 · 客户画像 ================================================== */
.insight-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: 20px; align-items: start; }
.dialogue-person { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dialogue-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft); }
.dialogue-person h2 { font-size: 17px; margin: 4px 0 3px; }
.dialogue-person p { color: var(--muted); font-size: 12px; }
.dialogue-person .pill { margin-left: auto; align-self: flex-start; }
.dialogue-stream { max-height: 430px; overflow-y: auto; padding: 4px 2px; }
.dialogue-stream .bubble-row { margin-top: 12px; }
.dialogue-stream .bubble-row.compact { align-items: flex-start; }
.evidence-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 11px;
  border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-mist); color: var(--accent-deep); font-size: 11.5px; font-weight: 600; }
.evidence-link:hover { background: var(--accent-mist); }
.evidence-link .ico { width: 13px; height: 13px; }
.question-board { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.question-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.question-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--text); transition: .15s; }
.question-chip:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.question-chip.asked { background: var(--ok-bg); border-color: #c4e3d2; color: var(--ok); }
.question-chip:disabled { opacity: .75; }
.question-chip span { color: var(--accent-deep); font-weight: 700; }
.question-board > small { display: block; margin-top: 10px; color: var(--faint); font-size: 11.5px; }
.customer-board { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.board-hero .kicker { margin-bottom: 6px; }
.board-hero h2 { font-size: 21px; }
.mini-stats { display: flex; gap: 18px; margin-top: 12px; }
.mini-stats span { font-size: 11.5px; color: var(--muted); }
.mini-stats b { font-size: 20px; color: var(--accent-deep); margin-right: 5px; font-variant-numeric: tabular-nums; }
.legend-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-cards { display: grid; gap: 13px; }
.profile-evidence-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--shadow); }
.profile-evidence-card header { display: flex; align-items: center; gap: 11px; }
.profile-evidence-card header h3 { flex: 1; font-size: 14.5px; }
.profile-evidence-card header small { color: var(--faint); font-variant-numeric: tabular-nums; }
.dimension-symbol { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0; }
.value-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 4px; }
.pending-line { display: flex; gap: 7px; align-items: center; color: var(--warn); font-size: 12px; margin: 7px 0; }
.pending-line .ico { width: 14px; height: 14px; }
.evidence-question { margin-top: 11px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.evidence-question > span { font-size: 10.5px; letter-spacing: 1.8px; color: var(--accent-deep); font-weight: 700; }
.evidence-question p { margin: 6px 0 9px; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.segmented { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; background: var(--panel); }
.segmented button { padding: 8px 16px; background: var(--panel-soft); font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--line); font-weight: 600; transition: .13s; }
.segmented button:last-child { border-right: 0; }
.segmented button:hover:not(:disabled):not(.selected) { background: var(--accent-soft); color: var(--accent-deep); }
.segmented button.selected { background: var(--accent); color: #fff; }
.segmented button:disabled { opacity: .5; }
.evidence-question > small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.button-pair { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 步骤4 · AI生成候选 ================================================ */
.ai-context { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.ai-context-person { display: flex; align-items: center; gap: 10px; }
.ai-context-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ai-context-person small { display: block; font-size: 9.5px; letter-spacing: 2px; color: var(--accent-deep); font-weight: 700; }
.ai-context-person b { font-size: 13.5px; color: var(--ink); }
.ai-context-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.ai-context-version { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 12px; }
.ai-decision-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.ai-engine { display: flex; flex-direction: column; gap: 14px; }
.ai-engine-heading .kicker { margin-bottom: 5px; }
.ai-engine-heading h2 { font-size: 18px; margin-bottom: 5px; }
.ai-engine-heading p { color: var(--muted); font-size: 12px; }
.ai-engine-live { float: right; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.ai-engine-live i { width: 7px; height: 7px; border-radius: 50%; background: #c3bba9; }
.ai-engine-visual.complete .ai-engine-live i { background: #7ee2b8; animation: pulse 2.2s infinite; }
.ai-engine-visual { position: relative; height: 230px; border-radius: var(--r-m); overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #332918 0%, #1a150c 70%); display: grid; place-items: center; }
.ai-core { position: relative; z-index: 3; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #e06a35, #c14e1f); border: 1px solid rgba(244, 165, 120, .55);
  box-shadow: 0 0 34px rgba(236, 130, 82, .35), inset 0 0 22px rgba(0, 0, 0, .3); color: #dfe6ff; text-align: center; }
.ai-core .ico { width: 26px; height: 26px; }
.ai-core b { font-size: 13px; letter-spacing: 2px; }
.ai-core small { display: block; font-size: 6.5px; letter-spacing: 1.6px; color: #b3a487; }
.ai-orbit { position: absolute; left: 50%; top: 46%; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 50%; }
.ai-orbit-outer { width: 200px; height: 200px; transform: translate(-50%, -50%); animation: orbit-spin 26s linear infinite; }
.ai-orbit-inner { width: 136px; height: 136px; transform: translate(-50%, -50%); animation: orbit-spin 18s linear infinite reverse; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ai-orbit-node { position: absolute; left: 50%; top: 50%; z-index: 4; display: flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(16, 23, 51, .92); border: 1px solid rgba(244, 165, 120, .42);
  color: #cdd7f5; font-size: 10.5px; white-space: nowrap; }
.ai-orbit-node .ico { width: 13px; height: 13px; color: var(--on-dark-accent); }
.node-0 { transform: translate(-50%, -50%) rotate(0deg) translateY(-100px) rotate(0deg); }
.node-1 { transform: translate(-50%, -50%) rotate(72deg) translateY(-100px) rotate(-72deg); }
.node-2 { transform: translate(-50%, -50%) rotate(144deg) translateY(-100px) rotate(-144deg); }
.node-3 { transform: translate(-50%, -50%) rotate(216deg) translateY(-100px) rotate(-216deg); }
.node-4 { transform: translate(-50%, -50%) rotate(288deg) translateY(-100px) rotate(-288deg); }
.ai-engine-visual.complete::after { content: ''; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(100deg, transparent 0 14px, rgba(126, 226, 184, .06) 14px 15px);
  animation: scan 2.6s linear infinite; }
@keyframes scan { to { background-position: 60px 0; } }
.ai-input-status { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink); }
.ai-input-status .ico { color: var(--accent-deep); margin-top: 2px; }
.ai-input-status p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ai-engine-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ai-engine-flow > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel-soft); }
.ai-engine-flow span { font-size: 10px; color: var(--accent-deep); font-weight: 700; letter-spacing: 1px; }
.ai-engine-flow b { display: block; font-size: 12px; margin: 3px 0 2px; color: var(--ink); }
.ai-engine-flow small { font-size: 10.5px; color: var(--muted); }
.ai-weight-title { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.ai-weight-bars > div { display: grid; grid-template-columns: 86px 1fr 38px; align-items: center; gap: 10px; margin-top: 9px; font-size: 12px; }
.ai-weight-bars i { height: 8px; border-radius: 5px; background: #efe9dd; overflow: hidden; }
.ai-weight-bars i b { display: block; height: 100%; background: linear-gradient(90deg, #eb7443, var(--accent)); }
.ai-weight-bars em { font-style: normal; color: var(--accent-deep); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ai-engine-caption { display: flex; gap: 7px; align-items: center; color: var(--faint); font-size: 11px; }
.ai-bank-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 8px; }
.ai-bank-heading h2 { font-size: 20px; }
.ai-bank-heading h2 small { font-size: 12px; color: var(--accent-deep); margin-left: 6px; }
.ai-bank-status { font-size: 11.5px; color: var(--muted); }
.ai-bank-intro { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.ai-candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.ai-card-placeholder { border: 1.5px dashed var(--line-2); border-radius: var(--r-m); padding: 18px; text-align: center; color: var(--faint); }
.ai-placeholder-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1.5px; }
.ai-placeholder-orb { width: 58px; height: 58px; margin: 18px auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); position: relative; }
.ai-placeholder-orb span { position: absolute; right: -4px; bottom: -4px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.ai-card-placeholder b { color: var(--muted); font-size: 12.5px; }
.ai-card-placeholder p { font-size: 11px; margin: 5px 0 12px; }
.ai-placeholder-line { display: block; height: 7px; border-radius: 4px; background: #efe9dd; margin-top: 8px; }
.ai-placeholder-line.short { width: 55%; margin: 8px auto 14px; }
.ai-placeholder-bottom { font-size: 10.5px; color: var(--faint); }
.ai-candidate { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: .2s; }
.ai-candidate:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ai-candidate.best { border-color: #f4a578; box-shadow: 0 14px 36px rgba(217, 72, 31, .18); }
.ai-candidate.blocked { opacity: .88; border-color: #eec2b8; }
.ai-candidate.reveal { animation: card-reveal .55s ease both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes card-reveal { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.ai-dish-image { position: relative; height: 160px; background-color: #eee6d8; }
.ai-image-caption { position: absolute; left: 14px; bottom: 12px; right: 54px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.ai-image-caption span { font-size: 10.5px; letter-spacing: 1.5px; opacity: .9; }
.ai-image-caption h3 { color: #fff; font-size: 17px; }
.ai-card-number { position: absolute; top: 12px; left: 14px; font-size: 9.5px; letter-spacing: 1.8px; color: #f2ede2;
  background: rgba(30, 25, 15, .62); padding: 3px 9px; border-radius: 999px; }
.ai-card-badge { position: absolute; top: 12px; right: 12px; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ai-card-badge.green { background: var(--ok-bg); color: var(--ok); }
.ai-card-badge.gold { background: #fde4d6; color: var(--accent-deep); }
.ai-card-badge.red { background: var(--bad-bg); color: var(--bad); }
.ai-detail-icon { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent-deep); box-shadow: var(--shadow); }
.ai-card-body { padding: 14px 16px 16px; }
.ai-card-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ai-card-summary small { display: block; color: var(--muted); font-size: 10.5px; }
.ai-card-summary strong { font-size: 25px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ai-card-summary strong em { font-size: 11px; color: var(--faint); font-style: normal; }
.ai-card-summary > div > span { font-size: 10.5px; color: var(--faint); }
.ai-score-orbit { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--score)), #efe9dd 0); flex-shrink: 0; }
.ai-score-orbit::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); }
.ai-score-orbit span { position: relative; font-size: 14px; font-weight: 700; color: var(--ink); }
.ai-score-orbit span small { display: block; font-size: 7px; letter-spacing: 1.4px; color: var(--accent-deep); text-align: center; }
.ai-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.ai-card-metrics button { text-align: left; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel-soft); transition: .14s; }
.ai-card-metrics button:hover { border-color: var(--accent); background: var(--accent-soft); }
.ai-card-metrics small { display: block; color: var(--faint); font-size: 9.5px; }
.ai-card-metrics b { display: block; font-size: 12px; color: var(--ink); margin: 2px 0; }
.ai-card-metrics span { font-size: 10px; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ai-card-reason { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.ai-card-reason b { display: block; color: var(--ink); margin-bottom: 3px; font-size: 11.5px; }
.ai-prompt-impact { display: block; margin-top: 5px; color: var(--accent-deep); font-size: 11px; }
.ai-safety-line { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 11px; border-radius: var(--r-s); font-size: 11.5px; }
.ai-safety-line.pass { background: var(--ok-bg); color: #206248; }
.ai-safety-line.stop { background: var(--bad-bg); color: #a52a3e; }
.ai-card-footer { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.ai-card-footer .text { font-size: 11.5px; padding: 5px 8px; margin-left: auto; }
.ai-data-footnote { display: flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--faint); font-size: 11.5px; }
/* 提示词循环 */
.ai-prompt-loop { margin-top: 22px; }
.ai-prompt-head { display: flex; gap: 14px; align-items: flex-start; }
.ai-prompt-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0; }
.ai-prompt-head small { font-size: 10px; letter-spacing: 2px; color: var(--accent-deep); font-weight: 700; }
.ai-prompt-head h2 { font-size: 18px; margin: 4px 0 4px; }
.ai-prompt-head p { color: var(--muted); font-size: 12.5px; max-width: 620px; }
.ai-prompt-head .pill { margin-left: auto; flex-shrink: 0; margin-top: 8px; }
.ai-prompt-history { margin: 16px 0 4px; display: grid; gap: 9px; }
.ai-prompt-history article { display: flex; gap: 12px; align-items: center; padding: 12px 15px; background: var(--panel-soft);
  border: 1px solid var(--line); border-radius: var(--r-m); }
.ai-prompt-history article > div { flex: 1; min-width: 0; }
.ai-prompt-history article > .pill, .ai-prompt-history article > .ico { align-self: center; flex-shrink: 0; }
.ai-prompt-history article.current { border-color: #f4a578; background: var(--accent-soft); }
.ai-prompt-history article > span { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 9px; background: var(--accent-mist); color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.ai-prompt-history small { display: block; color: var(--faint); font-size: 10.5px; }
.ai-prompt-history p { font-size: 13px; margin: 3px 0; color: var(--ink); }
.ai-prompt-history em { font-style: normal; font-size: 11.5px; color: var(--accent-deep); }
.ai-prompt-composer { margin-top: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.ai-prompt-composer label { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.ai-prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ai-prompt-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ai-prompt-actions > span { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.ai-prompt-actions > span .ico { width: 14px; height: 14px; color: var(--ok); }
.ai-prompt-actions .btn { margin-left: auto; }
.ai-prompt-response { display: flex; gap: 11px; margin-top: 13px; padding: 13px 16px; border-radius: var(--r-m);
  background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); color: #ded5c4; }
.ai-prompt-response .ico { color: var(--on-dark-accent); }
.ai-prompt-response small { display: block; font-size: 10.5px; letter-spacing: 1.5px; color: #b3a487; }
.ai-prompt-response p { font-size: 13px; margin-top: 4px; }
.ai-prompt-response b { color: var(--on-dark-accent); }
.ai-prompt-disclosure { display: block; margin-top: 11px; color: var(--faint); font-size: 11px; }
/* 热力图 */
.ai-heatmap-panel { margin-top: 20px; }
.ai-heatmap-toggle { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  padding: 17px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); transition: .15s; }
.ai-heatmap-toggle:hover { border-color: var(--accent); }
.ai-heat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0; }
.ai-heatmap-toggle small { display: block; font-size: 9.5px; letter-spacing: 2px; color: var(--accent-deep); font-weight: 700; }
.ai-heatmap-toggle b { display: block; font-size: 14.5px; color: var(--ink); margin: 2px 0; }
.ai-heatmap-toggle em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ai-heat-status { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ok); font-weight: 600; flex-shrink: 0; }
.ai-heat-status i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 7px; font-style: normal; color: var(--muted); }
#heatmap-content { margin-top: 13px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.ai-heat-legend { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.ai-scale { width: 110px; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #eec2b8, #fde4d6, var(--accent)); }
.ai-heat-legend b { color: var(--accent-deep); }
.ai-table-scroll { overflow-x: auto; }
.ai-heat-table { width: 100%; border-collapse: separate; border-spacing: 7px; }
.ai-heat-table th[scope='col'] { min-width: 150px; padding: 9px; text-align: left; vertical-align: top; }
.ai-heat-table th[scope='col'] b { display: block; font-size: 13px; color: var(--ink); }
.ai-heat-table th[scope='col'] small { font-size: 10.5px; color: var(--muted); }
.ai-heat-table th[scope='col'] small.danger { color: var(--bad); }
.ai-table-thumb { display: inline-block; width: 38px; height: 30px; border-radius: 7px; vertical-align: middle;
  background-color: #eee6d8; margin-right: 7px; border: 1px solid var(--line); }
.ai-heat-table th[scope='row'] { text-align: left; padding: 9px 11px; background: var(--panel-soft); border-radius: var(--r-s); border: 1px solid var(--line); vertical-align: top; }
.ai-heat-dim { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--ink); font-weight: 650; }
.ai-heat-dim .ico { width: 15px; height: 15px; color: var(--accent-deep); }
.ai-heat-table th[scope='row'] b { display: block; font-size: 12px; color: var(--accent-deep); font-weight: 600; margin-top: 3px; }
.ai-heat-table th[scope='row'] small { font-size: 10.5px; color: var(--faint); }
.ai-heat-cell { width: 100%; text-align: left; padding: 10px 11px; border-radius: var(--r-s); border: 1.5px solid transparent; transition: .14s; background: var(--panel-soft); vertical-align: top; }
.ai-heat-cell:hover { border-color: var(--accent); }
.ai-heat-cell.match { background: #fdeee6; }
.ai-heat-cell.mismatch, .ai-heat-cell.blocked { background: #fbe7e3; }
.ai-heat-cell.pending { background: #f7f3ea; }
.ai-heat-cell.strongest { border-color: #f4a578; box-shadow: 0 3px 12px rgba(217, 72, 31, .18); }
.ai-heat-cell.seen::after { content: '✓'; float: right; color: var(--ok); font-size: 11px; }
.ai-heat-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ai-heat-top i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: var(--faint); white-space: nowrap; }
.ai-heat-top em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ai-heat-cell.blocked .ai-heat-top em { color: var(--bad); font-size: 12px; }
.ai-heat-cell.mismatch .ai-heat-top em { color: var(--warn); }
.ai-heat-top em small { font-size: 9px; color: var(--faint); }
.ai-heat-cell > b { display: block; font-size: 11.5px; color: var(--ink); margin: 3px 0 2px; }
.ai-heat-bottom { font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.ai-heat-note { display: flex; gap: 9px; margin-top: 13px; color: var(--muted); font-size: 11.5px; }
.ai-heat-note .ico { color: var(--accent-deep); flex-shrink: 0; margin-top: 2px; }
.ai-heatmap-await { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 17px 20px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-m); color: var(--faint); font-size: 13px; }
.ai-heatmap-await b { margin-left: auto; font-size: 11px; letter-spacing: 2px; color: var(--accent-deep); }
/* 操作成绩 */
.ai-operation-score { margin-top: 22px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.ai-operation-title { display: flex; align-items: center; gap: 14px; }
.ai-operation-title h3 { flex: 1; }
.ai-operation-title b { font-size: 25px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ai-operation-title b small { font-size: 12px; color: var(--muted); }
.ai-operation-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.ai-operation-item:last-of-type { border-bottom: 0; }
.ai-operation-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--panel-soft); border: 1px solid var(--line); color: var(--muted); }
.ai-operation-item.complete > span { background: var(--ok-bg); border-color: #c4e3d2; color: var(--ok); }
.ai-operation-item b { display: block; font-size: 13.5px; color: var(--ink); }
.ai-operation-item small { color: var(--muted); font-size: 11.5px; }
.ai-operation-item strong { margin-left: auto; font-size: 17px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ai-operation-item strong small { font-size: 11px; color: var(--muted); }
.ai-operation-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 13px 0 4px; flex-wrap: wrap; }
.ai-score-note { color: var(--faint); font-size: 11.5px; }
.ai-entry-note { display: flex; gap: 13px; align-items: center; padding: 18px 20px; background: var(--accent-soft);
  border: 1px solid var(--accent-mist); border-radius: var(--r-l); }
.ai-entry-note .ico { width: 30px; height: 30px; color: var(--accent-deep); flex-shrink: 0; }
.ai-entry-note b { display: block; color: var(--ink); }
.ai-entry-note small { color: var(--muted); }
.ai-entry-note a, .ai-entry-note .btn { margin-left: auto; flex-shrink: 0; }
.ai-demo-note { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 11px 16px;
  background: var(--warn-bg); border: 1px solid #ecd9a8; border-radius: var(--r-m); color: #7c4e05; font-size: 12.5px; }
.ai-demo-note button { margin-left: auto; color: var(--warn); font-weight: 700; font-size: 12px; }

/* ===== 步骤5 · 对比择优 ================================================== */
.compare-brief { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; padding: 20px 23px; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.compare-brief-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0; }
.compare-brief h2 { font-size: 18px; margin: 4px 0 4px; }
.compare-brief p { color: var(--muted); font-size: 12.5px; }
.compare-hard-rules { display: flex; flex-direction: column; gap: 7px; margin-left: auto; }
.compare-hard-rules span { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--text); }
.compare-hard-rules .ico { width: 15px; height: 15px; color: var(--accent-deep); }
.compare-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.radar-stage { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: start; }
.radar-wrap { background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; }
.compare-radar { width: 100%; height: auto; }
.radar-grid polygon, .radar-grid line { fill: none; stroke: #e6ddcd; stroke-width: 1; }
.data-shape { fill: color-mix(in srgb, var(--radar) 26%, transparent); stroke: var(--radar); stroke-width: 2.4; stroke-linejoin: round; }
.radar-labels text { font-size: 12px; fill: var(--muted); font-weight: 600; }
.radar-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.radar-legend span { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text); }
.radar-legend i { width: 11px; height: 11px; border-radius: 4px; }
.dimension-inspector { display: flex; flex-direction: column; gap: 8px; }
.dimension-inspector button { display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px 13px;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--r-m); transition: .14s; }
.dimension-inspector button:hover { border-color: var(--accent); }
.dimension-inspector button .ico { color: var(--muted); }
.dimension-inspector button.seen { border-color: #c4e3d2; background: var(--ok-bg); }
.dimension-inspector button.seen .ico { color: var(--ok); }
.dimension-inspector b { display: block; font-size: 13px; color: var(--ink); }
.dimension-inspector small { font-size: 11px; color: var(--muted); }
.compare-table { margin-top: 18px; }
.compare-table-head, .compare-row { display: grid; grid-template-columns: 1.7fr .8fr .8fr 1fr 1.3fr auto; gap: 10px; align-items: center; }
.compare-table-head { padding: 9px 15px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--r-s) var(--r-s) 0 0; }
.compare-row { padding: 13px 15px; background: var(--panel); border: 1px solid var(--line); border-top: 0; }
.compare-row:last-child { border-radius: 0 0 var(--r-s) var(--r-s); }
.compare-row.chosen { background: #edf5ef; box-shadow: inset 3px 0 0 var(--ok); }
.compare-row.blocked { opacity: .8; }
.compare-row > div > b { display: block; color: var(--ink); font-size: 14px; }
.compare-row > div > small { color: var(--faint); font-size: 10.5px; }
.compare-thumb { display: inline-block; width: 52px; height: 38px; border-radius: 8px; margin-right: 9px; vertical-align: middle;
  background-color: #eee6d8; border: 1px solid var(--line); }
.compare-row strong { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare-row strong small { font-size: 10px; color: var(--faint); }
.compare-row strong.ok { color: var(--ok); font-size: 12.5px; }
.compare-row strong.bad { color: var(--bad); font-size: 12.5px; }
.culture-slider { display: flex; flex-direction: column; gap: 3px; }
.culture-slider output { font-size: 13px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.culture-slider small { font-size: 10px; color: var(--faint); }
.compare-estimate-note { display: flex; gap: 9px; margin-top: 13px; color: var(--muted); font-size: 11.5px; }
.compare-estimate-note .ico { color: var(--accent-deep); flex-shrink: 0; margin-top: 1px; }
.candidate-pool .panel-head, .knowledge-mini { margin-bottom: 10px; }
.compare-pool-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 11px 13px;
  background: var(--panel); border: 1.5px solid var(--line-2); border-radius: var(--r-m); transition: .15s; cursor: grab; }
.compare-pool-card:hover { border-color: var(--accent); }
.compare-pool-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 72, 31, .16); }
.compare-pool-card.dragging { opacity: .3; }
.compare-pool-card > span:first-child { width: 56px; height: 42px; border-radius: 9px; flex-shrink: 0;
  background-color: #eee6d8; border: 1px solid var(--line); }
.compare-pool-card b { display: block; font-size: 13.5px; color: var(--ink); }
.compare-pool-card small { color: var(--muted); font-size: 11px; }
.compare-pool-card em { display: block; font-style: normal; font-size: 10.5px; color: var(--ok); margin-top: 3px; }
.compare-pool-card.danger em { color: var(--bad); }
.compare-pool-card > i { margin-left: auto; color: var(--line-2); font-style: normal; letter-spacing: 2px; }
.pool-help { display: block; margin-top: 9px; color: var(--faint); font-size: 11px; }
.knowledge-mini { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 15px 17px;
  background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-m); color: #ded5c4; }
.knowledge-mini > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(244, 165, 120, .16); color: var(--on-dark-accent); flex-shrink: 0; }
.knowledge-mini small { display: block; font-size: 9px; letter-spacing: 2px; color: #b3a487; }
.knowledge-mini h3 { color: #f2ede2; font-size: 13.5px; margin: 3px 0; }
.knowledge-mini p { font-size: 11.5px; color: #a89d89; }
.reason-panel .reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.reason-card { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; border: 1.5px solid var(--line-2);
  border-radius: var(--r-m); background: var(--panel-soft); transition: .15s; }
.reason-card.filled { border-color: #bfe0cc; background: #eef5ef; }
.reason-card > span { font-size: 11px; letter-spacing: 1px; color: var(--accent-deep); font-weight: 700; }
.reason-card textarea { flex: 1; min-height: 74px; background: var(--panel); }
.reason-card small { text-align: right; color: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.assessment-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px;
  background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-m); color: #ded5c4; }
.assessment-strip > div { flex: 1; min-width: 200px; }
.assessment-strip .kicker { color: #b3a487; }
.assessment-strip h3 { color: #f2ede2; font-size: 15px; margin-top: 4px; }
.assessment-strip > span { display: flex; flex-direction: column; font-size: 11.5px; color: #a89d89; }
.assessment-strip > span b { font-size: 19px; color: var(--on-dark-accent); font-variant-numeric: tabular-nums; }
.assessment-strip > span em { font-style: normal; font-size: 10.5px; color: #93887a; }

/* ===== 步骤6 · 数字档案 ================================================== */
.dish-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.gallery-card { text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-m); overflow: hidden;
  background: var(--panel); transition: .16s; box-shadow: var(--shadow); }
.gallery-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.gallery-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 72, 31, .15); }
.dish-thumb { position: relative; display: block; height: 96px; background-color: #eee6d8; }
.dish-thumb span { position: absolute; top: 9px; right: 9px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px;
  background: rgba(30, 25, 15, .72); color: #f2ede2; font-variant-numeric: tabular-nums; }
.gallery-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 13px 12px; }
.gallery-caption b { font-size: 13.5px; color: var(--ink); }
.gallery-caption small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.gallery-caption strong { color: var(--accent-deep); font-size: 12px; white-space: nowrap; }
.product-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.dish-hero { position: relative; height: 320px; border-radius: var(--r-m); overflow: hidden; background-color: #eee6d8; }
.dish-image-shade { position: absolute; inset: 0; background: linear-gradient(190deg, rgba(35, 27, 15, .02) 42%, rgba(24, 19, 10, .8)); }
.dish-badge { position: absolute; top: 13px; left: 13px; display: flex; gap: 6px; align-items: center; padding: 5px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--accent-deep); font-size: 11.5px; font-weight: 650; }
.product-hotspot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.product-hotspot b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--accent-deep); font-size: 12.5px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(30, 25, 15, .35); transition: .15s; }
.product-hotspot b .ico { width: 16px; height: 16px; color: var(--ok); }
.product-hotspot.visited b { background: #fff7f0; }
.product-hotspot span { padding: 3px 9px; border-radius: 999px; background: rgba(30, 25, 15, .78); color: #f2ede2; font-size: 10.5px; white-space: nowrap; }
.product-hotspot:hover b, .product-hotspot.active b { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(217, 72, 31, .35); }
.evidence-switches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.evidence-switches button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--panel-soft); font-size: 12px; font-weight: 600; transition: .14s; }
.evidence-switches button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.evidence-switches button i { font-style: normal; color: var(--ok); font-size: 11px; }
.source-document { display: flex; gap: 15px; margin-top: 14px; padding: 17px 18px; background: var(--panel-soft);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-m); }
.document-icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-deep); }
.source-document h3 { font-size: 14.5px; margin: 3px 0 6px; }
.source-document p { font-size: 12.5px; color: var(--text); }
.trace-chain { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.trace-chain span { padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 11.5px; color: var(--text); }
.trace-chain .ico { width: 15px; height: 15px; color: var(--accent-deep); }
.source-caution { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--faint); font-size: 11.5px; }
.source-caution .ico { color: var(--accent-deep); flex-shrink: 0; }
.digital-passport { display: flex; flex-direction: column; gap: 13px; }
.passport-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.passport-heading h2 { font-size: 19px; margin-top: 4px; }
.passport-heading p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.passport-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.passport-fields article { padding: 14px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.passport-fields article.safety-field { grid-column: 1 / -1; }
.passport-fields article header { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.passport-fields article header .ico { color: var(--accent-deep); }
.passport-fields article h3 { flex: 1; font-size: 13.5px; }
.passport-fields article > b { font-size: 14.5px; color: var(--ink); display: block; }
.passport-fields article > p { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.passport-price { font-size: 21px !important; }
.passport-price small { font-size: 11px; color: var(--muted); }
.attribute-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.attribute-choices button { padding: 9px 8px; border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--panel-soft); text-align: left; transition: .13s; }
.attribute-choices button.selected { border-color: var(--accent); background: var(--accent-soft); }
.attribute-choices b { display: block; font-size: 12px; color: var(--ink); }
.attribute-choices small { font-size: 10px; color: var(--muted); }
.attribute-choices .ico { float: right; width: 14px; height: 14px; color: var(--ok); }
.safety-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.safety-options button { display: flex; gap: 8px; align-items: center; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: var(--r-s); background: var(--panel-soft); font-size: 12px; text-align: left; transition: .13s; }
.safety-options button.selected { border-color: var(--accent); background: var(--accent-soft); }
.safety-options .ico { width: 16px; height: 16px; color: var(--muted); }
.safety-options button.selected .ico { color: var(--ok); }

/* ===== 步骤7 · 成本与定价 ================================================ */
.cost-candidate-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 17px 21px; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.cost-candidate-strip h2 { font-size: 17px; margin: 4px 0; }
.cost-candidate-strip p { color: var(--muted); font-size: 12px; }
.cost-candidate-strip > strong { margin-left: auto; font-size: 22px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.cost-candidate-strip > strong small { display: block; font-size: 10.5px; color: var(--muted); text-align: right; }
.cost-candidate-tabs { display: flex; gap: 9px; flex-wrap: wrap; }
.cost-candidate-tabs button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 126px; padding: 9px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: var(--panel-soft); transition: .14s; }
.cost-candidate-tabs button:hover:not(:disabled) { border-color: var(--accent); }
.cost-candidate-tabs button.active { border-color: var(--accent); background: var(--accent-soft); }
.cost-candidate-tabs button.blocked { opacity: .55; }
.cost-candidate-tabs button > span { width: 100%; height: 56px; border-radius: 9px;
  background-color: #eee6d8; border: 1px solid var(--line); }
.cost-candidate-tabs b { font-size: 12.5px; color: var(--ink); }
.cost-candidate-tabs small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.cost-brief { display: flex; gap: 18px; align-items: center; padding: 19px 22px; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-l); color: #ded5c4; box-shadow: var(--shadow-lift); flex-wrap: wrap; }
.cost-dish-photo { width: 96px; height: 72px; border-radius: 13px; flex-shrink: 0; border: 2px solid rgba(244, 165, 120, .5); background-color: #eee6d8; }
.cost-brief .kicker { color: var(--on-dark-accent); }
.cost-brief h2 { color: #f2ede2; font-size: 20px; margin: 4px 0 6px; }
.cost-brief p { color: #a89d89; font-size: 12.5px; }
.cost-brief > div > div { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.cost-version { margin-left: auto; display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--on-dark-accent); }
.cost-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.bom-formula { display: flex; gap: 8px; align-items: center; margin-bottom: 13px; padding: 9px 13px;
  background: var(--accent-soft); border: 1px solid var(--accent-mist); border-radius: var(--r-s); color: #8a4626; font-size: 12px; }
.bom-formula .ico { color: var(--accent-deep); flex-shrink: 0; }
.cost-total { text-align: right; }
.cost-total small { display: block; font-size: 10.5px; color: var(--muted); }
.cost-total b { font-size: 22px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.bom-table-head, .bom-row { display: grid; grid-template-columns: 1.5fr 1.5fr .5fr .8fr .95fr; gap: 9px; align-items: center; }
.bom-table-head { padding: 8px 13px; font-size: 11px; color: var(--muted); font-weight: 600;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--r-s) var(--r-s) 0 0; }
.bom-table-head span:nth-child(3), .bom-table-head span:nth-child(4) { text-align: right; }
.bom-row { padding: 11px 13px; background: var(--panel); border: 1px solid var(--line); border-top: 0; }
.bom-row:last-of-type { border-radius: 0 0 var(--r-s) var(--r-s); }
.bom-row > div > b { display: block; font-size: 13px; color: var(--ink); margin-top: 3px; }
.bom-quantity label { display: block; }
.bom-quantity output { font-size: 12px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.bom-quantity small { font-size: 10.5px; color: var(--muted); display: block; margin-top: 2px; }
.bom-row > strong { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.bom-row > strong:nth-of-type(2) { white-space: nowrap; }
.bom-row.accurate > strong:last-of-type { color: var(--ok); }
.cost-answer { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.cost-answer span { color: var(--muted); }
.cost-answer input { width: 78px; padding: 7px 9px; text-align: right; font-variant-numeric: tabular-nums; }
.cost-answer i { font-style: normal; font-size: 10px; color: var(--faint); white-space: nowrap; width: 52px; }
.bom-row.accurate .cost-answer i { color: var(--ok); }
.bom-row.error .cost-answer i { color: var(--bad); }
.bom-score { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 13px 16px;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--r-m); font-size: 12.5px; }
.bom-score b { color: var(--accent-deep); margin-left: 7px; }
.bom-score strong { font-size: 21px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.bom-score strong small, .bom-score span small { font-size: 11px; color: var(--muted); }
.pricing-console { display: flex; flex-direction: column; gap: 14px; }
.pricing-core { padding: 18px 20px; border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: var(--panel); }
.pricing-core.pass { border-color: #bfe0cc; background: linear-gradient(165deg, #fff, #eef5ef); }
.pricing-core.warn { border-color: #ecd9a8; background: linear-gradient(165deg, #fff, #f8f0da); }
.pricing-core.fail { border-color: #eec2b8; background: linear-gradient(165deg, #fff, #faecea); }
.pricing-core-head { display: flex; justify-content: space-between; align-items: center; }
.pricing-core-head b { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.pricing-core-head b i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.pricing-core.pass .pricing-core-head b i { background: var(--ok); }
.pricing-core.warn .pricing-core-head b i { background: var(--warn); }
.pricing-core.fail .pricing-core-head b i { background: var(--bad); }
.price-dial { position: relative; margin: 15px auto 6px; width: 190px; height: 190px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--margin-pct)), #efe9dd 0);
  display: grid; place-items: center; transition: .3s; }
.pricing-core.fail .price-dial { background: conic-gradient(var(--bad) calc(var(--margin-pct)), #efe9dd 0); }
.pricing-core.warn .price-dial { background: conic-gradient(var(--warn) calc(var(--margin-pct)), #efe9dd 0); }
.price-dial::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 4px 14px rgba(32, 27, 20, .08); }
.price-dial > div { position: relative; text-align: center; }
.price-dial span { font-size: 11px; color: var(--muted); }
.price-dial strong { display: block; font-size: 33px; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.price-dial small { font-size: 11px; color: var(--muted); }
.pricing-controls { display: flex; flex-direction: column; gap: 13px; margin-top: 9px; }
.pricing-controls label > span { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text); margin-bottom: 6px; }
.pricing-controls label > span b { color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.suggested-price { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--panel-soft);
  border: 1px solid var(--line); border-radius: var(--r-s); }
.suggested-price > span { flex: 1; font-size: 12px; color: var(--muted); }
.suggested-price > span small { display: block; font-size: 10px; }
.suggested-price b { font-size: 22px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.suggested-price.over b { color: var(--bad); }
.pricing-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.pricing-gates > div { display: flex; gap: 9px; align-items: center; padding: 11px 13px; border-radius: var(--r-s); font-size: 11.5px; }
.pricing-gates .ok { background: var(--ok-bg); color: #206248; }
.pricing-gates .bad { background: var(--bad-bg); color: #a52a3e; }
.pricing-gates b { display: block; margin-top: 2px; }
.curve-panel { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.curve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.curve-grid article { text-align: center; }
.curve-grid article > span { font-size: 11px; color: var(--muted); }
.curve-grid svg { width: 100%; height: auto; margin: 4px 0; }
.cost-grid-line { stroke: #efe9dd; stroke-width: 1; }
.curve-grid b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cost-score { display: flex; align-items: center; gap: 14px; padding: 16px 19px; background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-m); color: #ded5c4; }
.cost-score > div { flex: 1; }
.cost-score h3 { color: #f2ede2; font-size: 14.5px; margin-top: 4px; }
.cost-score > strong { font-size: 26px; color: var(--on-dark-accent); font-variant-numeric: tabular-nums; }
.cost-score > strong small { font-size: 12px; color: #b3a487; }
.cost-score p { font-size: 11px; color: #a89d89; margin-top: 3px; }
.cost-decision { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 22px; border-radius: var(--r-l); }
.cost-decision .ico { width: 30px; height: 30px; flex-shrink: 0; }
.cost-decision > div { flex: 1; }
.cost-decision h2 { font-size: 16.5px; margin: 4px 0 5px; }
.cost-decision p { color: var(--muted); font-size: 12.5px; }
.cost-decision.pass { background: #ecf4ee; border: 1px solid #c4e3d2; color: #206248; }
.cost-decision.pass .ico { color: var(--ok); }
.cost-decision.fail { background: #faecea; border: 1px solid #eec2b8; color: #a52a3e; }
.cost-decision.fail .ico { color: var(--bad); }
.cost-decision .button-pair { display: flex; gap: 9px; flex-wrap: wrap; }

/* ===== 步骤8 · 主推锁定 ================================================== */
.decision-pipeline { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 18px; }
.decision-pipeline > div { flex: 1; min-width: 170px; display: flex; gap: 10px; align-items: center; padding: 11px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.decision-pipeline .ico { color: var(--accent-deep); }
.decision-pipeline span { font-size: 10.5px; color: var(--muted); display: block; }
.decision-pipeline b { font-size: 12px; color: var(--ink); }
.decision-pipeline > .ico { flex: none; color: var(--faint); }
.final-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.final-choice-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); transition: .16s; }
.final-choice-card.chosen { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(12, 157, 110, .14); }
.final-choice-card.muted { opacity: .68; }
.final-choice-photo { position: relative; height: 128px; background-color: #eee6d8; }
.final-choice-photo span { position: absolute; top: 10px; left: 11px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px;
  background: rgba(30, 25, 15, .72); color: #f2ede2; }
.final-choice-photo b { position: absolute; top: 10px; right: 11px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px;
  background: var(--ok); color: #fff; }
.final-choice-card > div:last-child { padding: 13px 15px 15px; }
.final-choice-card h3 { font-size: 15.5px; }
.final-choice-card p { font-size: 12px; color: var(--muted); margin: 6px 0 9px; }
.final-choice-facts { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.final-choice-facts span { padding: 3px 10px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line);
  font-size: 11px; color: var(--accent-deep); font-weight: 600; }
.final-choice-card small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 11px; }
.pending-evidence { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px;
  background: var(--warn-bg); border: 1px solid #ecd9a8; border-radius: var(--r-m); color: #7c4e05; font-size: 12.5px; flex-wrap: wrap; }
.pending-evidence a { color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
.selected-decision-line { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px 16px;
  background: var(--ok-bg); border: 1px solid #c4e3d2; border-radius: var(--r-m); color: #206248; font-size: 13px; flex-wrap: wrap; }
.report-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; margin-top: 20px; }
/* 不吸顶：栏高超过视口时吸顶会把决策块池底部裁掉且无法滚动 */
.report-source { display: flex; flex-direction: column; gap: 14px; }
.report-person-art { display: flex; gap: 14px; align-items: center; }
.report-person-art img { width: 74px; height: 74px; border-radius: 17px; object-fit: cover; border: 3px solid var(--accent-soft); }
.report-person-art h2 { font-size: 17px; line-height: 1.45; }
.report-person-art small { color: var(--muted); font-size: 11.5px; }
.source-summary { display: flex; flex-direction: column; gap: 9px; }
.source-summary > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-m); }
.source-summary .ico { color: var(--accent-deep); margin-top: 2px; }
.source-summary small { display: block; color: var(--muted); font-size: 10.5px; }
.source-summary b { display: block; font-size: 12.5px; color: var(--ink); }
.source-summary em { display: block; font-style: normal; color: var(--warn); font-size: 10.5px; margin-top: 2px; }
.block-bank-header h3 { margin: 5px 0 4px; }
.block-bank-header p { color: var(--muted); font-size: 12px; }
.decision-block-pool { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.decision-block { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; padding: 11px 13px;
  background: var(--panel); border: 1.5px solid var(--line-2); border-radius: var(--r-m); transition: .15s; cursor: grab; }
.decision-block:hover:not(:disabled) { border-color: var(--accent); }
.decision-block.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 72, 31, .16); }
.decision-block.dragging { opacity: .3; }
.decision-block .ico { color: var(--accent-deep); }
.decision-block b { display: block; font-size: 13px; color: var(--ink); }
.decision-block small { color: var(--muted); font-size: 10.5px; }
.decision-block > i { margin-left: auto; color: var(--line-2); font-style: normal; letter-spacing: 2px; }
.report-workspace { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel-intro { color: var(--muted); font-size: 12.5px; }
.claim-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.claim { display: flex; gap: 13px; align-items: center; padding: 13px 15px; background: var(--panel-soft);
  border: 1px solid var(--line); border-radius: var(--r-m); flex-wrap: wrap; }
.claim > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.claim > div { flex: 1; min-width: 220px; }
.claim p { font-size: 13.5px; color: var(--ink); }
.claim small { display: block; margin-top: 4px; }
.claim.resolved { border-color: #c4e3d2; background: #f0f7f2; }
.claim-actions { display: flex; gap: 7px; }
.decision-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.decision-zone { border-radius: var(--r-m); padding: 15px; border: 1.5px dashed var(--line-2); background: var(--panel-soft); min-height: 150px; }
.decision-zone header { display: flex; gap: 10px; align-items: center; margin-bottom: 11px; }
.decision-zone header .ico { width: 24px; height: 24px; }
.decision-zone header h3 { font-size: 14px; flex: 1; }
.decision-zone header p { display: none; }
.decision-zone header b { font-size: 19px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.decision-zone.red { border-color: #eec3b2; background: #faf0ea; }
.decision-zone.red header .ico { color: var(--bad); }
.decision-zone.preference { border-color: #ddd2b8; background: #f5f1e6; }
.decision-zone.preference header .ico { color: var(--accent-deep); }
.decision-zone.business { border-color: #d3cbb2; background: #faf8ee; }
.decision-zone.business header .ico { color: var(--warn); }
.decision-rule { display: flex; gap: 7px; align-items: stretch; margin-bottom: 8px; }
.rule-detail { flex: 1; display: flex; gap: 9px; align-items: center; text-align: left; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); transition: .13s; }
.rule-detail:hover { border-color: var(--accent); }
.rule-detail .ico { color: var(--accent-deep); width: 17px; height: 17px; }
.rule-detail b { display: block; font-size: 12.5px; color: var(--ink); }
.rule-detail small { font-size: 10.5px; color: var(--muted); }
.rule-detail > .ico:last-child { margin-left: auto; color: var(--faint); width: 14px; height: 14px; }
.remove-rule { width: 26px; border-radius: var(--r-s); background: var(--bad-bg); color: var(--bad); font-size: 15px; flex-shrink: 0; }
.remove-rule:hover { background: var(--bad); color: #fff; }
.insight-editor .writing-prompts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.insight-editor textarea { margin-top: 4px; min-height: 110px; }
.word-count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.editor-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.editor-bottom small { color: var(--faint); font-size: 11px; }
.polish-label { display: block; font-size: 12px; font-weight: 650; color: var(--ink); margin: 13px 0 6px; }
.original-writing { padding: 12px 15px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.checklist-panel .check-row { margin-bottom: 9px; }

/* ===== 步骤9 · 收尾与成绩单 ============================================== */
.finale-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--r-l); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 20px; }
.finale-hero-art { position: relative; min-height: 320px; background-color: #eee6d8; }
.finale-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(35, 27, 15, .1), rgba(24, 19, 10, .78)); }
.finale-hero-art .finale-badge { position: absolute; left: 22px; bottom: 20px; color: #f2ede2; }
.finale-hero-art .finale-badge span { font-size: 10px; letter-spacing: 2.5px; color: var(--on-dark-accent); font-weight: 700; }
.finale-hero-art .finale-badge h2 { color: #fff; font-size: 27px; margin-top: 5px; font-family: var(--serif); }
.finale-hero-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.finale-hero-body h1 { font-size: 23px; line-height: 1.5; }
.finale-hero-body > p { color: var(--muted); font-size: 13px; }
.finale-hero-meta { display: flex; gap: 9px; flex-wrap: wrap; }
.scorecard-table { width: 100%; border-collapse: separate; border-spacing: 0 7px; }
.scorecard-table th { font-size: 11px; color: var(--muted); text-align: left; padding: 0 13px 2px; font-weight: 600; white-space: nowrap; }
.scorecard-table th:nth-child(4) { text-align: right; }
.scorecard-table td { background: var(--panel); padding: 12px 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scorecard-table tr td:first-child { border-left: 1px solid var(--line); border-radius: var(--r-s) 0 0 var(--r-s); min-width: 44px; color: var(--accent-deep); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scorecard-table tr td:nth-child(2) { font-weight: 650; color: var(--ink); }
.scorecard-table tr td:nth-child(3) { color: var(--muted); font-size: 12px; }
.scorecard-table tr td:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.scorecard-table tr td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--r-s) var(--r-s) 0; text-align: center; width: 70px; }
.scorecard-table tr.pending td { opacity: .75; }
.scorecard-table tr.done td:first-child { color: var(--ok); }
.score-total-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 15px; padding: 17px 21px;
  background: linear-gradient(120deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-m); color: #ded5c4; }
.score-total-strip > div { flex: 1; min-width: 180px; }
.score-total-strip .kicker { color: #b3a487; }
.score-total-strip h3 { color: #f2ede2; margin-top: 4px; font-size: 15px; }
.score-total-strip b.big { font-size: 30px; color: var(--on-dark-accent); font-variant-numeric: tabular-nums; }
.score-total-strip b.big small { font-size: 13px; color: #b3a487; }
.score-total-strip > span { text-align: right; font-size: 11.5px; color: #a89d89; }
.score-total-strip > span b { display: block; font-size: 17px; color: var(--on-dark-accent); }
.finale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 14px; }
.finale-module { padding: 17px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.finale-module > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 11px; }
.finale-module small { font-size: 9.5px; letter-spacing: 2px; color: var(--accent-deep); font-weight: 700; }
.finale-module h3 { margin: 4px 0 5px; font-size: 14.5px; }
.finale-module p { font-size: 12px; color: var(--muted); }
.finale-module b { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--faint); font-weight: 600; }
.journey-recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.journey-recap article { padding: 13px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.journey-recap span { font-size: 10px; letter-spacing: 1.5px; color: var(--accent-deep); font-weight: 700; }
.journey-recap b { display: block; font-size: 13px; color: var(--ink); margin: 4px 0 3px; }
.journey-recap small { font-size: 11px; color: var(--muted); }
.journey-recap i { float: right; color: var(--ok); font-style: normal; }

/* ===== 步骤10 · 炒菜机器人实机演示 ======================================== */
.panel.robot-intro .panel-head { margin-bottom: 4px; }
.robot-intro-text { margin: 12px 0 6px; font-size: 13px; line-height: 1.8; color: var(--text); max-width: 980px; }
.robot-intro-text b { color: var(--accent-deep); }

/* —— S 形流程看板：上排 1/3/5、下排 2/4，箭头走中带（底层铺设） ————— */
/* 间隙用百分比（列中心恒为 8.6%/29.3%/50%/70.7%/91.4%），与 SVG 连线精确对齐 */
.robot-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3.5% 1fr 3.5% 1fr 3.5% 1fr 3.5% 1fr;
  grid-template-rows: auto 66px auto;
  margin-top: 16px;
  padding: 16px 14px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-l);
}
.robot-flow {
  position: absolute; z-index: 0; overflow: visible; pointer-events: none;
  left: 14px; right: 14px; top: 16px; bottom: 16px;
  width: calc(100% - 28px); height: calc(100% - 32px);
}
.robot-flow path { fill: none; stroke: #e5a183; stroke-width: 2.2; stroke-linecap: round; }
.robot-flow path.ah { stroke: var(--accent); stroke-width: 2.6; }
.robot-flow circle { fill: #fff; stroke: #e5a183; stroke-width: 2; vector-effect: non-scaling-stroke; }

.robot-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.robot-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.robot-card.viewed { border-color: #bfdcc9; }
.robot-card.viewed .robot-num { background: var(--ok); }
.robot-card-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px 8px; border-bottom: 1px solid var(--line); }
.robot-num {
  width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 7px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.robot-card-head h4 { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.robot-dur { flex-shrink: 0; font-size: 10.5px; color: var(--faint); font-weight: 650; }
.robot-video { position: relative; background: var(--dark-2); aspect-ratio: 16 / 11; }
.robot-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.robot-theater {
  position: absolute; top: 7px; right: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(24, 20, 13, .62); color: #f2ede2;
  font-size: 10.5px; font-weight: 650; backdrop-filter: blur(4px);
  transition: background .15s;
}
.robot-theater:hover { background: var(--accent); }
.robot-theater .ico { width: 12px; height: 12px; }
.robot-seen {
  position: absolute; left: 7px; bottom: 40px;
  display: none; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--ok); color: #fff; font-size: 10.5px; font-weight: 650;
}
.robot-seen .ico { width: 12px; height: 12px; }
.robot-card.viewed .robot-seen { display: inline-flex; }
.robot-desc { padding: 9px 11px 10px; font-size: 11.5px; line-height: 1.6; color: var(--muted); flex: 1; }

/* —— 放大观看弹窗 ————————————————————————————————— */
.robot-theater-wrap video { width: 100%; max-height: 62vh; border-radius: var(--r-s); background: #000; display: block; }
.robot-theater-wrap p { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.action-dock.robot-dock { position: sticky; }

/* 令牌实际定义于 base.css，此处冗余声明用于单文件静态自检 */
:root { --accent: #d9481f; }

/* ===== 窄桌面（笔记本）适配 ============================================== */
@media (max-width: 1280px) {
  .topbar-title { display: none; }
  .step-node .label { font-size: 10.5px; }
}
@media (max-width: 1220px) {
  .journey-layout, .insight-layout, .product-layout, .cost-layout, .report-layout, .ai-decision-layout, .finale-hero { grid-template-columns: 1fr; }
  .ai-engine, .report-source { position: static; }
  .radar-stage { grid-template-columns: 1fr; }
  .decision-zones { grid-template-columns: 1fr; }
  .dish-gallery { grid-template-columns: repeat(2, 1fr); }
  .passport-fields { grid-template-columns: 1fr; }
  .sort-zones { grid-template-columns: 1fr; }
  .curve-grid, .finale-grid { grid-template-columns: 1fr; }
}
/* 步骤10 看板窄屏退化为两列纵排，隐藏 S 形连线 */
@media (max-width: 1080px) {
  .robot-board { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 14px; }
  .robot-flow { display: none; }
  .robot-card { grid-column: auto !important; grid-row: auto !important; }
}
