:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-subtle: #faf9f6;
  --sidebar: #142624;
  --sidebar-ink: #e8eeec;
  --sidebar-muted: #8aa09b;
  --ink: #172422;
  --ink-secondary: #4a5a57;
  --muted: #768582;
  --line: #e4e2dc;
  --line-strong: #cfccc4;
  --accent: #1d5c52;
  --accent-hover: #15473f;
  --accent-soft: #eaf2ef;
  --gold: #9c6b30;
  --gold-soft: #f9f3eb;
  --ok: #1f6a4a;
  --ok-soft: #ebf5f0;
  --warn: #9a5b13;
  --warn-soft: #fdf4e7;
  --danger: #b42318;
  --danger-soft: #fef0ee;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: transparent;
}

input, textarea, [contenteditable="true"] {
  caret-color: var(--ink);
}

button, select, summary, .step, .nav-item, .tab, .tag, .sc {
  user-select: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* 整体壳体：左侧深松石导航 + 右侧平静画布 */
.shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  padding: 4px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #8ab0a6;
  font-weight: 600;
  margin-bottom: 4px;
}

.brand-title {
  font-size: 16px;
  font-weight: 650;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--sidebar-muted);
  margin-top: 3px;
}

.nav-section-label {
  padding: 0 10px;
  font-size: 11px;
  color: var(--sidebar-muted);
  font-weight: 500;
}

.steps.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step,
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sidebar-muted);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.step:hover,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.step.on {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.step .n,
.nav-num {
  font-family: var(--mono);
  font-size: 11px;
  color: #7da399;
}

.step.on .n {
  color: #ffffff;
  font-weight: 600;
}

.step-text b,
.nav-item b {
  display: block;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.3;
}

.step-text small,
.nav-item small {
  display: block;
  font-size: 11px;
  color: var(--sidebar-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step.on .step-text small {
  color: #c2d6d1;
}

.nav-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-footer {
  padding: 10px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.6;
  color: var(--sidebar-muted);
}

/* 右侧主区域 */
.content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部极简导航栏（对标 Strategy Studio） */
.topbar {
  height: 62px;
  padding: 0 36px;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crumb-muted {
  color: var(--muted);
  font-size: 13px;
}

.crumb-sep {
  color: var(--line-strong);
}

.crumb-project {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  border: 0;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
}

.crumb-project:hover {
  background: rgba(0, 0, 0, 0.04);
}

.group-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}

.group-pill select {
  border: 0;
  background: transparent;
  font-weight: 600;
  color: var(--ink);
  padding-right: 4px;
  outline: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.save-state {
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}

/* 主体工作容器 */
.workspace {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 36px 56px;
}

/* 阶段顶部元信息行 */
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.project-row-left,
.project-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--warn);
  font-size: 12px;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--accent-hover);
}

/* 阶段主标题区（对标 Strategy Studio .heading） */
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.heading h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}

.heading h1 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  color: #8da39e;
  margin-right: 10px;
}

.heading .lead {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  font-size: 13px;
  max-width: 680px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 关键指标横条（彻底去除卡片框与顶部彩条，采用 Strategy Studio 极简分割线） */
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 22px;
  background: transparent;
}

.summary-item {
  padding: 2px 18px;
  border-right: 1px solid var(--line);
}

.summary-item:first-child {
  padding-left: 2px;
}

.summary-item:last-child {
  border-right: 0;
}

.summary-num {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 450;
  color: var(--ink);
  line-height: 1.15;
}

.summary-item.accent .summary-num {
  color: var(--accent);
}

.summary-item.warn .summary-num {
  color: var(--warn);
}

.summary-item.bad .summary-num {
  color: var(--danger);
}

.summary-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* 通用按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: #b8b4aa;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-secondary);
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.035);
  color: var(--ink);
}

.btn.small {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 5px;
}

.btn.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* 主画布白卡容器（对标 Strategy Studio .surface） */
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 18px;
}

.surface-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.surface-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.surface-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* 分段切换器（替代杂乱的大号卡片 Tab） */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: #f0efe9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s ease, color 0.12s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tab small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.tab.on small {
  color: var(--accent);
}

/* 场景一句话提问引导栏 */
.scenario-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.scenario-prompt strong {
  color: var(--ink);
}

/* 按需展开的次级工具抽屉（默认收起，保持界面清爽） */
.helper-drawer {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
  margin-bottom: 16px;
}

.helper-drawer summary {
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.helper-drawer summary::-webkit-details-marker {
  display: none;
}

.helper-drawer summary::after {
  content: "展开工具 ▾";
  font-size: 11px;
  color: var(--muted);
}

.helper-drawer[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.helper-drawer[open] summary::after {
  content: "收起 ▴";
}

.helper-drawer-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-lbl {
  font-size: 12px;
  color: var(--muted);
  min-width: 110px;
}

/* 卡片网格与通用卡片（无任何小横线/小竖线装饰） */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.14s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field > span {
  font-size: 12px;
  font-weight: 560;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field.bad > span {
  color: var(--danger);
}

.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea,
.inline-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.inline-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
}

.field input:disabled,
.field textarea:disabled {
  background: #f3f2ee;
  color: var(--muted);
  cursor: not-allowed;
}

.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.inline-label select,
.inline-label input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 4px 8px;
  font-size: 12px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grow {
  flex: 1;
  min-width: 140px;
}

/* 理念标签 Chips */
.idea-field {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.chip.void {
  background: #f1f0ec;
  color: var(--muted);
  text-decoration: line-through;
}

.chip button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  opacity: 0.7;
}

.chip button:hover {
  opacity: 1;
}

.chip-empty {
  font-size: 12px;
  color: var(--muted);
}

/* 风险评分横排 */
.ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.ip-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ip {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eae8e1;
  color: var(--ink-secondary);
}

.ip.high {
  background: var(--danger-soft);
  color: var(--danger);
}

/* 徽章与状态标签（干净克制，无边框粗条） */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

.tag.line {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.tag.mute {
  background: #f1f0ec;
  color: var(--muted);
}

.tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag.bad {
  background: var(--danger-soft);
  color: var(--danger);
}

/* 阶段 02：理念·行为·制度定义卡 */
.def-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.def-card {
  padding: 16px 18px;
}

.def-idx {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
}

.def-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.def-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.rev-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
  flex-wrap: wrap;
}

/* 表格系统 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
}

th.num, td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr.cut td {
  background: var(--gold-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
}

tr.group-row td {
  background: #f3f2ed;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-secondary);
}

.bar {
  height: 6px;
  background: #eceae3;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* 阶段 03：矩阵评分按钮 */
.matrix th,
.matrix td {
  padding: 8px 6px;
}

.matrix th.idea {
  text-align: center;
  min-width: 100px;
}

.matrix td.name {
  min-width: 196px;
  max-width: 240px;
}

.mech-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}

.scores {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.sc {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-secondary);
  padding: 0;
}

.sc:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.sc.on.s-2, .sc.on.s-1 {
  background: var(--danger-soft);
  border-color: #e6b8b3;
  color: var(--danger);
  font-weight: 600;
}

.sc.on.s0 {
  background: #eae8e1;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 600;
}

.sc.on.s1, .sc.on.s2 {
  background: var(--ok-soft);
  border-color: #b4d9c7;
  color: var(--ok);
  font-weight: 600;
}

.two-col-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* 阶段 04 & 05：精简分组区块 */
.phase-block {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.phase-block .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
}

.phase-block:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.phase-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.phase-block-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.plan-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.plan-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 8px;
}

.two-col-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* 提示框与空状态（去除左侧粗条） */
.callout {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.callout.bad {
  background: var(--danger-soft);
  border-color: #f1c9c5;
  color: var(--danger);
}

.callout.ok {
  background: var(--ok-soft);
  border-color: #c5e3d4;
  color: var(--ok);
}

.empty-cell,
.empty-phase {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-subtle);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.hint.warn {
  color: var(--warn);
}

.hint.ok-text {
  color: var(--ok);
}

/* 底部折叠式填写提示与下一步引导条（对标 Strategy Studio 底部结构） */
.guide-strip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  margin-top: 18px;
}

.guide-strip summary {
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-strip summary::-webkit-details-marker {
  display: none;
}

.guide-strip summary::after {
  content: "点击展开本步方法与填写示范 ▾";
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.guide-strip[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.guide-strip[open] summary::after {
  content: "收起 ▴";
}

.guide-strip-body {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
}

.guide-strip-body h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--ink);
}

.guide-strip-body p {
  margin: 0 0 6px;
}

.next-step-strip {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.next-step-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.next-step-info span {
  font-size: 12px;
  color: var(--muted);
}

/* 首次进入欢迎页 */
.welcome {
  padding: 32px 34px;
}

.welcome-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.welcome h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.welcome-lead {
  color: var(--ink-secondary);
  max-width: 780px;
  margin: 0 0 22px;
}

.welcome-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.w-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.w-step span {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.w-step b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.w-step p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 页脚 */
.page-foot {
  padding: 14px 36px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* 弹窗系统 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 30, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.guide-modal-card {
  max-width: 980px;
  height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.export-modal-card {
  max-width: 820px;
}

.project-modal-card {
  max-width: 540px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.guide-modal-card .modal-head {
  padding: 16px 22px;
}

.modal-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* 指南弹窗内部布局 */
.guide-toolbar {
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-toolbar input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 13px;
}

.guide-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 0;
}

.guide-toc {
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 12px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-toc-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: flex;
  gap: 8px;
}

.guide-toc-item.on {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toc-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.guide-article {
  padding: 20px 26px;
  overflow-y: auto;
}

.guide-chapter-content h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.guide-chapter-content h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.guide-table th, .guide-table td {
  font-size: 12.5px;
  vertical-align: top;
}

.guide-example {
  padding: 12px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0;
  font-size: 12.5px;
}

/* 导出中心网格 */
.export-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0;
  font-size: 12px;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.export-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.export-card h3 {
  margin: 0;
  font-size: 14px;
}

.export-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.export-tag {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 200;
}

.toast.on {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
  }
  .summary,
  .def-grid,
  .two-col-panels,
  .welcome-flow-grid,
  .guide-strip-body,
  .export-grid {
    grid-template-columns: 1fr;
  }
}
