:root {
  /* 主色：中车红（参照 CRRC 视觉：深红 + 白 + 中性灰） */
  --brand: #c0111a;
  --brand-2: #d8323c;
  --brand-dark: #8e0b12;
  --brand-soft: #fdf1f2;
  --brand-line: #f2cfd2;

  --bg: #f4f5f7;
  --panel: #ffffff;
  --line: #e7e9ee;
  --line-strong: #d3d7df;
  --text: #1b1f27;
  --text-2: #59606f;
  --muted: #8b92a1;

  --key: #c97a08;
  --key-soft: #fff6e8;
  --ok: #1f8a5b;
  --ok-soft: #eefaf3;
  --danger: #b3261e;
  --danger-soft: #fdf1f0;
  --doing: #1a6ab0;
  --doing-soft: #eef5fc;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(24, 28, 38, .05), 0 6px 20px rgba(24, 28, 38, .06);
  --shadow-hi: 0 2px 6px rgba(24, 28, 38, .08), 0 14px 34px rgba(24, 28, 38, .10);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

/* 应用外壳：整页不滚动，滚动交给各表格容器，
   这样表头 position:sticky 才能一直贴在容器顶部（页面滚动时表头会跟着滚走）。 */
body { display: flex; flex-direction: column; overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 600; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: linear-gradient(118deg, var(--brand-dark), var(--brand) 52%, #d8323c);
  color: #fff;
  box-shadow: 0 2px 12px rgba(140, 12, 20, .26);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text h1 { font-size: 17px; letter-spacing: .5px; }
.brand-text p { margin: 0; font-size: 12px; opacity: .8; }

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

.save-state {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  white-space: nowrap;
}
.save-state.saving { background: rgba(255, 214, 102, .22); }
.save-state.saved { background: rgba(46, 204, 113, .22); }

/* ---------- 按钮 ---------- */
.btn {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 7px 14px;
  border: 1px solid transparent;
  transition: .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: #fff; color: var(--brand); font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--brand-soft); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.btn-back, .crumb .btn-ghost {
  background: #fff; color: var(--brand); border: 1px solid var(--line-strong);
}
.btn-back:hover, .crumb .btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-2); }

.panel .btn-ghost, .legend + .btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line-strong);
}
.panel .btn-ghost:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-2); }
.panel .btn-ghost.danger { color: var(--danger); border-color: #eccac5; }
.panel .btn-ghost.danger:hover:not(:disabled) { background: #fdf1ef; }

.icon-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 6px;
}
.icon-btn:hover { color: var(--danger); }

/* ---------- 布局 ---------- */
.view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 14px 22px;
  max-width: 1900px;
  margin: 0 auto;
  width: 100%;
}
.view > * { flex: 0 0 auto; }

/* 需要占满剩余高度的表格面板：其内部 .table-wrap 独立滚动，表头固定 */
.panel-fill {
  flex: 1 1 auto;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
}
.panel-fill .table-wrap,
.panel-fill .table-wrap.tall { flex: 1 1 auto; min-height: 0; max-height: none; }
.view > .panel:last-child { margin-bottom: 0; }

/* 售前存档展开时改为整页滚动，当前计划给一个固定高度 */
.view.archive-open .panel-fill { flex: 0 0 auto; min-height: 0; }
.view.archive-open .panel-fill .table-wrap { height: 46vh; flex: 0 0 auto; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

/* ---------- 可折叠信息条 ----------
   默认收起成一行，点击左侧按钮展开；让表格占据页面绝大部分高度。 */
.foldbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 14px;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 面板内部的一行折叠条（项目信息 / 填写说明 / 显示规则） */
.foldrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 3px 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.foldbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.foldbar-btn:hover { background: var(--brand-soft); border-color: var(--line-strong); }
.foldbar-btn .caret {
  display: inline-block;
  width: 9px;
  font-size: 10px;
  color: var(--text-2);
}
.foldbar-summary {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foldbar-summary b { color: var(--text); font-weight: 600; }
.foldbar-summary .sep { color: var(--line-strong); margin: 0 2px; }
.foldbar-hint { flex: 0 0 auto; font-size: 12px; color: var(--muted); }

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.kpi .kpi-label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.kpi .kpi-value { font-size: 24px; font-weight: 700; color: var(--brand); line-height: 1.3; }
.kpi .kpi-value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.kpi.accent-key .kpi-value { color: var(--key); }
.kpi.accent-doing .kpi-value { color: #1a6ab0; }
.kpi.accent-done .kpi-value { color: var(--ok); }
.kpi.accent-over .kpi-value { color: #b3281c; }
.kpi.accent-soon .kpi-value { color: #a4700a; }
.kpi.accent-month .kpi-value { color: #5b46ac; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel-title h2 { font-size: 15px; color: var(--brand); }
.panel-title p { margin: 2px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex: 1 1 auto; }
.filters .input, .filters select { width: auto; min-width: 142px; }
.filters #fKeyword { min-width: 260px; }
.filters .btn { padding: 6px 12px; }

.input {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  outline: none;
  width: 100%;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(31, 111, 178, .12); }
textarea.input { resize: vertical; line-height: 1.5; font-family: inherit; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; max-height: calc(100vh - 330px); }
.table-wrap.tall { max-height: calc(100vh - 420px); }

table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; table-layout: fixed; }
table.grid col { min-width: 0; }

table.grid th, table.grid td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  background: var(--panel);
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* 标签 / 勾选框 / 按钮类单元格在行内垂直居中 */
table.grid td.c-center { vertical-align: middle; }

table.grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #eef4fa;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

table.grid tbody tr:hover td { background: #f8fbff; }

table.grid td.c-num, table.grid th.c-num { text-align: center; color: var(--text-2); }
table.grid td.c-center, table.grid th.c-center { text-align: center; }

/* 阶段梳理表格：前两列吸附 */
.stage-grid th.sticky-1, .stage-grid td.sticky-1 { position: sticky; left: 0; z-index: 2; background: #fff; }
.stage-grid th.sticky-2, .stage-grid td.sticky-2 { position: sticky; left: var(--stick-1, 86px); z-index: 2; background: #fff; box-shadow: 2px 0 4px -2px rgba(0,0,0,.12); }
.stage-grid thead th.sticky-1, .stage-grid thead th.sticky-2 { z-index: 5; background: #eef4fa; }
.stage-grid tbody tr:hover td.sticky-1, .stage-grid tbody tr:hover td.sticky-2 { background: #f8fbff; }
.stage-grid td.cell-edit { padding: 3px; }

.stage-grid td.cell-edit input,
.stage-grid td.cell-edit textarea,
.stage-grid td.cell-edit select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 5px 6px;
  font: inherit;
  color: inherit;
  outline: none;
  resize: none;
  font-family: inherit;
}

/* 自适应高度的文本域：文字全部换行显示，行高随内容与列宽自动增长 */
.stage-grid td.cell-edit textarea.asz {
  display: block;
  overflow: hidden;
  resize: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.55;
  min-height: 30px;
}
.stage-grid td.cell-edit select { cursor: pointer; padding: 4px 6px; }
.stage-grid td.cell-edit input:hover,
.stage-grid td.cell-edit textarea:hover,
.stage-grid td.cell-edit select:hover { border-color: var(--line-strong); background: #fff; }
.stage-grid td.cell-edit input:focus,
.stage-grid td.cell-edit textarea:focus,
.stage-grid td.cell-edit select:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(31,111,178,.1); }

.stage-grid .ro { display: block; padding: 5px 6px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

tr.row-key > td { background: #fffdf7; }
tr.row-key:hover > td, .stage-grid tbody tr.row-key:hover td.sticky-1,
.stage-grid tbody tr.row-key:hover td.sticky-2 { background: #fff8ec; }
tr.row-key td.sticky-1, tr.row-key td.sticky-2 { background: #fffdf7; }
tr.row-filled > td { background: #f7fdfa; }
tr.row-filled td.sticky-1, tr.row-filled td.sticky-2 { background: #f7fdfa; }
tr.row-filled.row-key > td { background: #fffaf0; }
tr.row-custom .c-seq { font-style: italic; }

/* ---------- 已完成：绿色（勾选完成后 7 天内显示在项目管理中） ---------- */
tr.row-done > td { background: #eefaf3; }
tr.row-done td.sticky-1, tr.row-done td.sticky-2 { background: #eefaf3; }
tr.row-done > td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
tr.row-done:hover > td { background: #e6f7ee; }
.stage-grid tbody tr.row-done:hover td.sticky-1,
.stage-grid tbody tr.row-done:hover td.sticky-2 { background: #e6f7ee; }
tr.row-done td.cell-edit input, tr.row-done td.cell-edit textarea { background: transparent; }

/* 勾选框列 */
.cell-check { vertical-align: middle; }
.stage-grid td.cell-check input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); margin: 0;
}
tr.row-done td.cell-check input[type="checkbox"] { accent-color: var(--ok); }

/* ---------- 计划完成时间：3天内标黄、过期标红 ---------- */
.due-cell { vertical-align: middle; }
.due-cell .due-date { white-space: pre-wrap; word-break: break-word; }
.due-badge {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2px;
}
tr td.due-soon { background: #fff6d9 !important; }
tr td.due-overdue { background: #ffe2e0 !important; }
tr td.due-done { background: #eaf8f0 !important; }
tr td.due-soon .due-badge { color: #a4700a; }
tr td.due-overdue .due-badge { color: #b3281c; }
tr td.due-done .due-badge { color: var(--ok); }
tr.due-soon > td:first-child { box-shadow: inset 3px 0 0 #e0a020; }
tr.due-overdue > td:first-child { box-shadow: inset 3px 0 0 #d6453a; }
tr.due-soon > td:not(.due-soon) { background: #fffdf4; }
tr.due-overdue > td:not(.due-overdue) { background: #fff6f5; }
tr.due-soon td.sticky-1, tr.due-soon td.sticky-2 { background: #fffdf4; }
tr.due-overdue td.sticky-1, tr.due-overdue td.sticky-2 { background: #fff6f5; }
tr.due-soon:hover > td:not(.due-soon) { background: #fffaea; }
tr.due-overdue:hover > td:not(.due-overdue) { background: #ffefee; }
tr.due-soon td.cell-edit input, tr.due-overdue td.cell-edit input,
tr.due-soon td.cell-edit select, tr.due-overdue td.cell-edit select { background: transparent; }
tr.due-soon td.cell-edit input:hover, tr.due-overdue td.cell-edit input:hover { background: #fff; }
.txt-over { color: #b3281c; font-weight: 600; }
.txt-soon { color: #a4700a; font-weight: 600; }
.txt-month { color: #5b46ac; font-weight: 600; }
.txt-warn { color: #a4700a; }

.level-1 td { font-weight: 600; }
.level-2 > td { font-weight: 500; }
.level-3 > td, .level-4 > td { font-weight: 400; }

/* ---------- 树形层级：序号列（固定 75px，序号过长自动换行） ---------- */
/* 选择器需带 table.grid 前缀才能盖过 `table.grid td { padding: 7px 9px }`，否则右侧白占 7px */
table.grid td.cell-tree { padding: 3px 2px; vertical-align: middle; }
.tree-wrap { display: flex; align-items: center; gap: 2px; min-width: 0; }
.tree-toggle {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 3px;
  color: var(--brand);
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tree-toggle:hover { background: var(--brand-soft); border-color: var(--brand-2); }
.tree-toggle.collapsed { background: var(--brand-soft); }
/* 叶子节点无折叠按钮：占位宽度收窄，把空间让给序号 */
.tree-toggle.placeholder { width: 8px; border-color: transparent; background: transparent; cursor: default; }
.tree-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 4px 1px;
  font: inherit;
  color: inherit;
  outline: none;
  /* 固定窄列：放不下时换行，而不是被截断 */
  display: block;
  resize: none;
  overflow: hidden;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-all;
}
.tree-input:hover { border-color: var(--line-strong); background: #fff; }
.tree-input:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(31,111,178,.1); }
.level-4 td.cell-tree .tree-input, .level-5 td.cell-tree .tree-input { color: var(--text-2); }

/* ---------- 列宽调整 ---------- */
/* 注意：不要给 thead th 设 position:relative，否则会覆盖 position:sticky 导致表头不再固定。
   position:sticky 本身就是已定位元素，绝对定位的 .col-resizer 依然以表头单元格为参照。 */
.col-resizer {
  position: absolute;
  top: 0; right: -3px;
  width: 7px; height: 100%;
  cursor: col-resize;
  z-index: 6;
  background: transparent;
}
.col-resizer:hover, .col-resizer:active { background: linear-gradient(to right, transparent 2px, var(--brand-2) 2px, var(--brand-2) 4px, transparent 4px); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }

/* 末尾占位列：吸收剩余宽度，保证固定列宽不被拉伸 */
table.grid th.col-spacer, table.grid td.col-spacer {
  border-right: none;
  background: transparent;
  padding: 0;
}
table.grid tbody tr:hover td.col-spacer { background: transparent; }
tr.row-key td.col-spacer, tr.row-done td.col-spacer, tr.row-filled td.col-spacer,
tr.due-soon > td.col-spacer:not(.due-soon), tr.due-overdue > td.col-spacer:not(.due-overdue) { background: transparent; }

/* ---------- 拖动排序 ---------- */
.rowbtns .drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1;
  cursor: grab;
  user-select: none;
}
.rowbtns .drag-handle:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }
.rowbtns .drag-handle:active { cursor: grabbing; }
tr.dragging > td { opacity: .45; background: var(--brand-soft) !important; }
tr.drop-before > td { box-shadow: inset 0 2px 0 0 var(--brand-2) !important; }
tr.drop-after > td { box-shadow: inset 0 -2px 0 0 var(--brand-2) !important; }

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-key { background: var(--key-soft); color: var(--key); border-color: #f2d9ae; font-weight: 600; }
.tag-type-售前 { background: var(--brand-soft); color: var(--brand); border-color: #c9dcf0; }
.tag-type-执行 { background: #eef7ef; color: var(--ok); border-color: #cfe8d3; }
.tag-type-招标 { background: var(--key-soft); color: var(--key); border-color: #f2d9ae; }
.tag-muted { background: #f1f3f7; color: var(--muted); border-color: var(--line); }
.tag-doing { background: #e6f1fd; color: #1a6ab0; border-color: #bcd9f2; font-weight: 600; }
.tag-done { background: #e8f7ef; color: var(--ok); border-color: #c6e8d6; font-weight: 600; }
.tag-soon { background: #fff4d6; color: #a4700a; border-color: #f0d9a3; font-weight: 600; }
.tag-over { background: #ffe4e1; color: #b3281c; border-color: #f0c4bf; font-weight: 600; }
.tag-month { background: #eee9fb; color: #5b46ac; border-color: #d4caf3; font-weight: 600; }

/* 无进行中事项的项目占位行 */
tr.plan-empty-row > td { background: #fbfcfe; }
tr.plan-empty-row:hover > td { background: #f5f9ff; }
tr.plan-empty-row .p-link { font-weight: 600; }
.plan-empty-tip {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  background-image: repeating-linear-gradient(45deg, #f7f9fc 0 8px, #fbfcfe 8px 16px);
}

/* 项目名称可点击进入详细内容 */
.p-link { color: var(--brand); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--brand-2); cursor: pointer; }
.p-link:hover { color: var(--brand-2); border-bottom-style: solid; }
tr.plan-row { cursor: pointer; }
tr.plan-row .rowbtns button { cursor: pointer; }

.rowbtns { display: flex; gap: 3px; justify-content: center; }
.rowbtns button {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 6px;
  width: 24px; height: 24px;
  cursor: pointer;
  color: var(--text-2);
  line-height: 1;
  font-size: 13px;
  padding: 0;
}
.rowbtns button:hover:not(:disabled) { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }
.rowbtns button.del:hover:not(:disabled) { border-color: #e0b5ae; color: var(--danger); background: #fdf1ef; }
.rowbtns button:disabled { opacity: .35; cursor: not-allowed; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-actions { margin: 16px 0 0; }

/* 确认弹窗正文按原样换行：导入 Excel 的识别结果是多行文本 */
#confirmText { white-space: pre-line; }

/* ---------- 拖拽导入 Excel 的提示遮罩 ---------- */
.drop-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(16, 30, 50, .45);
  pointer-events: none;
}
.drop-mask-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 28px 40px;
  border-radius: 14px;
  background: #fff;
  border: 2px dashed var(--brand-2);
  box-shadow: 0 12px 40px rgba(10, 40, 80, .3);
  color: var(--brand);
}
.drop-mask-box strong { font-size: 16px; }
.drop-mask-box span { font-size: 12.5px; color: var(--text-2); }

/* ---------- 项目视图 ---------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 12px;
  min-height: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.crumb-sep { color: var(--line-strong); }
.crumb-name { font-weight: 600; color: var(--brand); }
.crumb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-convert {
  background: linear-gradient(120deg, #12805c, #1aa06f);
  color: #fff;
  font-weight: 600;
  border: 1px solid #0d6b4c;
  box-shadow: 0 2px 8px rgba(18, 128, 92, .28);
}
.btn-convert:hover { background: linear-gradient(120deg, #0f7152, #17915f); }
.btn-convert::before { content: '⇥ '; }

.project-meta { padding: 14px 16px 12px; }
.project-meta #metaSource { margin: 10px 0 0; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; color: var(--text-2); }
.field-wide { grid-column: 1 / -1; }
.req { color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.legend { margin: 0; padding: 10px 16px; background: #fbfcfe; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.legend .tag { margin-right: 6px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(16, 30, 50, .45);
  display: grid; place-items: center;
  z-index: 60;
  padding: 20px;
}
/* 弹窗可以叠弹窗（账号管理 → 改登录名 → 确认框），必须显式指定层级，
   否则后出现的反而被 DOM 靠后的弹窗盖住、点不到。 */
#modalPrompt { z-index: 70; }
#modalConfirm { z-index: 80; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: min(720px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(10, 30, 60, .3);
  overflow: hidden;
}
.modal-sm { width: min(440px, 100%); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15px; color: var(--brand); }
.modal-body { padding: 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-body p { margin: 0; white-space: pre-line; line-height: 1.7; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 13px 18px; border-top: 1px solid var(--line); background: #fafbfd;
}
.modal-foot .btn-primary { background: var(--brand); color: #fff; }
.modal-foot .btn-primary:hover:not(:disabled) { background: var(--brand-2); }
.modal-foot .btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line-strong); }
.modal-foot .btn-ghost:hover { background: #f1f4f9; }

.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card {
  font: inherit; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  display: flex; flex-direction: column; gap: 6px;
  transition: .15s;
}
.type-card strong { font-size: 15px; color: var(--text); }
.type-card small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.type-card:hover { border-color: var(--brand-2); background: #f7fbff; }
.type-card.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(31,111,178,.1); }
.type-card.active strong { color: var(--brand); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  background: #22314a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(10, 25, 50, .3);
  font-size: 13px;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* ---------- 登录 ---------- */
/* 未登录时把整个应用外壳藏起来，只留登录框 */
.not-logged-in .topbar,
.not-logged-in .view { display: none !important; }

.login-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f3f70 0%, #1c61a6 55%, #2b7cc0 100%);
  padding: 24px;
}
.login-box {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6, 24, 48, .45);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.login-brand .brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #14508c, #2b7cc0);
  color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.login-brand h1 { font-size: 17px; color: var(--brand); }
.login-brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.login-msg { margin: 0; min-height: 18px; font-size: 12.5px; color: var(--danger); }
.btn-login {
  background: linear-gradient(120deg, #14508c, #1f6fb2);
  color: #fff;
  font-weight: 600;
  padding: 11px 14px;
  letter-spacing: 2px;
}
.btn-login:hover:not(:disabled) { background: linear-gradient(120deg, #0f3f70, #1a5f9c); }
.login-tip { margin: 0; text-align: center; }

/* ---------- 顶栏用户区 ---------- */
.topbar-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .3);
  margin: 0 2px;
}
.topbar-user {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  white-space: nowrap;
}
.topbar-user .role-tag {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 214, 102, .28);
  font-size: 11px;
}

/* ---------- 只读（项目负责人不是当前账号） ---------- */
.ro-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #8a6d1a;
  background: #fff6d9;
  border: 1px solid #f0d9a3;
  vertical-align: middle;
  cursor: help;
}
.ro-banner {
  margin: 0 0 10px;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: #fffaf0;
  border: 1px solid #f0d9a3;
  color: #8a6d1a;
  font-size: 12.5px;
}
.ro-banner b { color: #a4700a; }

/* 只读时给输入框一点视觉暗示：不再像可编辑的样子 */
.view-readonly .stage-grid td.cell-edit input,
.view-readonly .stage-grid td.cell-edit textarea,
.view-readonly .stage-grid td.cell-tree .tree-input,
.view-readonly .project-meta .input {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  cursor: default;
}
.view-readonly .stage-grid td.cell-edit input:hover,
.view-readonly .stage-grid td.cell-edit textarea:hover,
.view-readonly .stage-grid td.cell-tree .tree-input:hover { border-color: transparent !important; }
.view-readonly .rowbtns button { opacity: .35; }
.view-readonly .tree-toggle { opacity: 1; }

/* ---------- 账号管理 ---------- */
.modal-lg { max-width: 860px; }
.user-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 4px;
}
.user-grid { width: 100%; font-size: 12.5px; }
.user-grid th {
  position: sticky; top: 0; z-index: 1;
  background: #eef4fa;
  font-size: 12px;
}
.user-grid td { padding: 7px 10px; }
.user-grid td.rowbtns { white-space: nowrap; }
.user-grid td.rowbtns button {
  font: inherit;
  font-size: 12px;
  padding: 3px 9px;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
}
.user-grid td.rowbtns button:hover { background: var(--brand-soft); border-color: var(--brand-2); }
.user-add-title {
  margin: 18px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--brand);
}

/* ---------- 日期列：手动输入 + 点击日历选择 ---------- */
.date-wrap, .list-wrap { display: flex; align-items: center; gap: 2px; min-width: 0; }
.date-wrap { position: relative; }
.date-wrap > textarea, .list-wrap > input { flex: 1 1 auto; min-width: 0; width: auto; }
.date-pick, .list-pick {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}
.date-pick:hover, .list-pick:hover { background: var(--brand-soft); border-color: var(--line-strong); }
.date-pick svg, .list-pick svg { display: block; }
/* 真正弹出的原生控件：盖在日历按钮上但完全透明，只负责唤起选择器。
   必须留在可视位置，否则 showPicker() 会被浏览器拒绝。 */
.stage-grid td.cell-edit input.date-native {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 21px; height: 26px;
  min-width: 0; padding: 0; border: 0;
  opacity: 0;
  pointer-events: none;
}
.view-readonly .date-pick, .view-readonly .list-pick { display: none; }
.stage-grid td.cell-edit input.name-input { width: 100%; padding: 4px 6px; }

/* ---------- 筛选：只看我负责的 ---------- */
.filters .filter-chk {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--text-2);
  white-space: nowrap;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.filters .filter-chk:hover { border-color: var(--brand-2); color: var(--text); }
.filters .filter-chk input { accent-color: var(--brand); margin: 0; }

/* ---------- 我的任务 ---------- */
.task-badge {
  display: inline-block;
  margin-left: 5px;
  min-width: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: #d6453a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.task-section { margin: 16px 0 2px; font-size: 13px; color: var(--brand); }
#taskBody > .task-section:first-child { margin-top: 2px; }
.task-proj { margin: 10px 0 6px; font-size: 12.5px; font-weight: 600; }
.task-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.task-item:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.task-item .t-seq { flex: 0 0 auto; font-weight: 600; color: var(--brand); }
.task-item .t-main { flex: 1 1 auto; min-width: 0; }
.task-item .t-activity { display: block; }
.task-item .t-meta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.task-item.is-done .t-activity { color: var(--muted); text-decoration: line-through; }
.task-item .t-flag {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}
.task-empty { padding: 28px 10px; text-align: center; color: var(--muted); }

/* ---------- 变更对比（审批依据） ---------- */
#modalDiff, #modalAudit { z-index: 75; }
.diff-row {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.diff-row .d-head {
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}
.diff-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.diff-table td { padding: 4px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff-table tr:last-child td { border-bottom: 0; }
.diff-table .d-field {
  width: 110px;
  color: var(--muted);
  white-space: nowrap;
  background: #f7f9fc;
}
.diff-table .d-old {
  width: 38%;
  color: #b3281c;
  background: #fff6f5;
  text-decoration: line-through;
  text-decoration-color: rgba(179, 40, 28, .35);
}
.diff-table .d-to { color: #1c7a3e; background: #f4fdf6; font-weight: 600; }
.d-empty { color: var(--muted); font-style: normal; opacity: .7; }
.d-added td { background: #f4fdf6; }
.d-removed td { background: #fff6f5; color: #b3281c; }
.d-add-title { color: #1c7a3e !important; }
.d-del-title { color: #b3281c !important; }

/* ---------- 操作日志 ---------- */
.audit-filter { display: flex; gap: 8px; margin-bottom: 10px; }
.audit-filter #auditKeyword { flex: 1 1 auto; min-width: 0; }
.audit-filter #auditAction { flex: 0 0 auto; }
.audit-time { white-space: nowrap; color: var(--muted); }

/* ---------- 已拖期 / 风险预警 明细 ---------- */
#modalAggr { z-index: 70; }
.kpi.clickable { cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.kpi.clickable:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.kpi.clickable::after {
  content: '明细 ▸';
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--brand);
}
.aggr-row { cursor: pointer; }
.aggr-row:hover td { background: var(--brand-soft); }

/* ---------- 变更审批 / 版本历史 ---------- */
#modalSubmit { z-index: 70; }
#modalApprovals, #modalVersions, #modalVerDetail { z-index: 70; }
.flow-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-2);
  border-radius: 8px;
  background: #fff;
}
.flow-item .f-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.flow-item .f-proj { font-weight: 600; }
.flow-item .f-reason { flex: 1 1 auto; min-width: 0; }
.flow-item .f-meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.flow-item .f-note {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f7f9fc;
  font-size: 12px;
  white-space: pre-wrap;
}
.flow-item .f-btns { margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.flow-item .f-btns input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}
.flow-st { font-size: 11px; padding: 1px 7px; border-radius: 9px; }
.flow-st.pending_leader { background: #fff3c4; color: #8a6400; }
.flow-st.pending_director { background: #dcecff; color: #1c5aa8; }
.flow-st.approved { background: #d9f2e0; color: #1c7a3e; }
.flow-st.rejected { background: #ffe2e0; color: #b3281c; }
.ver-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ver-table th, .ver-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.ver-table th { color: var(--muted); font-weight: 600; background: #f7f9fc; }
.ver-table tr.is-cur td { background: #f2fbf4; }
.ver-open {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  padding: 2px 7px;
  cursor: pointer;
}
.ver-open:hover { background: var(--brand-soft); border-color: var(--brand-2); }

/* ---------- 草稿状态条 ---------- */
.draft-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f7f9fc;
  color: var(--text-2);
  font-size: 12.5px;
}
.draft-bar b { color: var(--text); }
.draft-bar.dirty { border-left-color: #e0a020; background: #fffdf4; }
.draft-bar.dirty b { color: #a4700a; }
.draft-bar.locked { border-left-color: #d6453a; background: #fff6f5; color: #8a2b22; }
.draft-bar.locked b { color: #b3281c; }
.draft-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e0a020;
}
.draft-bar.locked .draft-dot { background: #d6453a; }
.draft-bar:not(.dirty):not(.locked) .draft-dot { display: none; }

/* ---------- 输出载体附件 ---------- */
.cell-output { vertical-align: top; }
.att-box {
  margin-top: 3px;
  padding: 3px 2px 1px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
}
.att-row { display: flex; align-items: center; gap: 3px; min-height: 19px; }
.att-label {
  flex: 0 0 auto;
  width: 24px;
  color: var(--muted);
  font-size: 10.5px;
}
.att-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.att-none { color: #b9c2cc; }
.att-chip {
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #f4f8fc;
  color: var(--brand);
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  padding: 0 5px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.att-chip:hover { background: var(--brand-soft); border-color: var(--brand-2); }
.att-x {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  border: 0; padding: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.att-x:hover { background: #ffe2e0; color: #b3281c; }
.att-up {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.att-up:hover { background: var(--brand-soft); border-color: var(--brand-2); }
/* 只读项目：能下载，不能上传 / 删除 */
.view-readonly .att-up, .view-readonly .att-x { display: none; }

/* 从「我的任务」跳过来时高亮那一行 */
@keyframes rowFlash { 0%, 100% { background: transparent; } 35% { background: #fff3c4; } }
tr.row-flash > td { animation: rowFlash 1.5s ease-in-out 2; }

@media (max-width: 720px) {
  .type-cards, .field-row { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: stretch; }
}

/* ---------- 统计概览：四列矩阵（项目总数 / 售前 / 招标 / 执行） ---------- */
.stat-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 16px 16px;
}
.mx-col {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.mx-head {
  display: block;
  width: 100%;
  padding: 10px 12px 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mx-head:hover { background: var(--brand-soft); }
.mx-head .mx-name { display: block; font-weight: 700; font-size: 14px; }
.mx-head .mx-proj { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.mx-head .mx-proj b { font-size: 21px; color: #1f2733; }
.mx-head .mx-sub { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.mx-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mx-row:last-child { border-bottom: 0; }
.mx-row:hover { background: var(--brand-soft); }
.mx-row .mx-label { flex: 1 1 auto; font-size: 12.5px; color: var(--muted); }
.mx-row .mx-value { font-size: 19px; font-weight: 700; }
.mx-row .mx-unit { flex: 0 0 60px; font-size: 10.5px; color: var(--muted); text-align: right; }
.mx-row .mx-unit i { display: block; font-style: normal; }
.mx-doing .mx-value { color: #1a6ab0; }
.mx-done .mx-value { color: var(--ok); }
.mx-overdue .mx-value { color: #b3281c; }
.mx-soon .mx-value { color: #a4700a; }
.mx-zero .mx-value { color: #b9c0cc; font-weight: 600; }
.stat-extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 4px 16px 12px;
}
@media (max-width: 980px) {
  .stat-matrix { grid-template-columns: 1fr; }
  .stat-extras { grid-template-columns: 1fr; }
  .stats-top2 { grid-template-columns: 1fr; }
}

/* ---------- 账号「所属区域」多选勾选框 ---------- */
.region-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
.rg-chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
}
.rg-chk input { margin: 0; }

/* ---------- 统计页顶部一行：待办事项 + 任务日历 ---------- */
.stats-top2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

/* ---------- 矩阵内：进行中的项目与具体步骤 ---------- */
.mx-list-head {
  padding: 7px 12px 5px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.mx-none { padding: 12px; font-size: 12px; color: var(--muted); }
.mx-pj { border-bottom: 1px solid var(--line); }
.mx-pj:last-child { border-bottom: 0; }
.mx-pj-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 12px 6px;
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.mx-pj-name:hover { background: var(--brand-soft); }
.mx-pj-name span { font-weight: 400; font-size: 11px; color: var(--muted); white-space: nowrap; }
.mx-step {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  padding: 4px 12px 4px 22px;
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 12px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
}
.mx-step:hover { background: var(--brand-soft); color: var(--brand); }
.mx-step b { flex: 0 0 auto; font-weight: 600; color: #1f2733; }
.mx-step i {
  flex: 0 0 auto;
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
}
.mx-more { padding: 5px 12px; font-size: 11px; color: var(--muted); }
