:root {
  /* 画布与表面 */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e5eaf2;
  --border-strong: #cdd6e4;

  /* 排版色阶：主文字够黑，次级文字够深，避免一片浅灰 */
  --ink: #0a1122;
  --ink-2: #3b4657;
  --ink-3: #5b6779;

  /* 品牌主色 */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-deep: #1e40af;
  --accent-soft: #eff6ff;
  --accent-bd: #bfdbfe;

  /* 语义状态色 */
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --ok-bd: #a7f3d0;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-bd: #fde68a;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --err-bd: #fecaca;

  /* 形状与阴影 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.05);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 12% -6%, rgba(37, 99, 235, 0.07), transparent 60%),
    radial-gradient(760px 380px at 92% 4%, rgba(99, 102, 241, 0.06), transparent 58%);
  background-attachment: fixed;
  color: var(--ink);
  font: 14.5px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* 顶部导航栏 */
.topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 234, 242, 0.9);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-sub {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 12.5px;
  padding-left: 8px;
  border-left: 1px solid var(--border-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a,
.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover,
.nav-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
  text-decoration: none;
}
.nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-bd);
  font-weight: 600;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 4px 10px 4px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
}

/* 主容器 */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.wrap-narrow {
  max-width: 440px;
  margin: 56px auto;
  padding: 0 20px;
}

/* 页面头部 */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.page-head-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.t0-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 卡片容器 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.card-auth {
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}
.auth-emblem {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 650;
}

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 统计 KPI 卡片 */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.stat:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.stat-val {
  font-size: 26px;
  font-weight: 750;
  margin-top: 6px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px;
}

/* 状态徽章 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.pill-err { background: var(--err-bg); color: var(--err); border-color: var(--err-bd); }
.pill-blue { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-bd); }
.pill-mute { background: var(--surface-3); color: var(--ink-2); border-color: var(--border); }

/* 提示横幅 */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13px;
  border: 1px solid;
  line-height: 1.55;
}
.alert-ok { background: var(--ok-bg); border-color: var(--ok-bd); color: #065f46; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-bd); color: #92400e; }
.alert-err { background: var(--err-bg); border-color: var(--err-bd); color: #991b1b; }
.alert-info { background: var(--accent-soft); border-color: var(--accent-bd); color: #1e3a8a; }

/* 表单控件 */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .help {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:hover, select:hover, textarea:hover {
  border-color: #94a3b8;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}
textarea { min-height: 88px; resize: vertical; }

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--surface-2);
  border-color: #94a3b8;
  color: var(--ink);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
  border-color: #1e40af;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-danger {
  background: var(--surface);
  border-color: var(--err-bd);
  color: var(--err);
}
.btn-danger:hover {
  background: var(--err-bg);
  border-color: #fca5a5;
  color: var(--err);
}
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; padding: 10px 16px; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 元信息网格（独立可点选元素卡片） */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.meta-item {
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.meta-item:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}
.meta-k {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.meta-v {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.mono { font-family: var(--mono); font-size: 12px; }

.hash-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  max-width: 100%;
  word-break: break-all;
}

/* 阶段提交卡片 */
.stage-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stage-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.stage-card:last-child { margin-bottom: 0; }

/* 阶段卡片里的小字引导 */
.stage-tip {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}
.stage-tip-tag {
  display: inline-block;
  margin-right: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.stage-tip a { color: var(--accent); }

/* 起点卡只读视图 */
.card-ro {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
}
.ro-item {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.ro-k {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ro-v {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
}

.upload-box {
  margin-top: 14px;
  padding: 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-box:hover {
  border-color: var(--accent);
  background: #f8fbff;
}

.upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.upload-row input[type="file"] {
  font-size: 13px;
  max-width: 290px;
  color: var(--ink-2);
}
.upload-row input[type="text"] { flex: 1; min-width: 190px; }

/* 拖放区 + 多文件列表 */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dropzone:hover { border-color: var(--accent); background: #f8fbff; }
.dropzone:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.dz-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.dz-text { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dz-link { color: var(--accent); text-decoration: underline; }
.dz-hint { font-size: 12px; color: var(--ink-3); }

.file-list { margin-top: 12px; }
.file-empty {
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 9px;
  color: var(--ink-3);
  font-size: 12.5px;
  background: #fff;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
  cursor: default;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.file-row:hover { border-color: var(--border-strong); }
.file-row.dragging { opacity: 0.45; }
.file-row.drag-target { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14); }
.grip {
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: -2px;
  cursor: grab;
  user-select: none;
  padding: 0 2px;
}
.idx {
  width: 20px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.file-path {
  flex: 1;
  min-width: 120px;
  padding: 5px 8px !important;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  border-color: transparent !important;
  background: var(--surface-2) !important;
}
.file-path:hover { border-color: var(--border) !important; }
.file-path:focus { border-color: var(--accent) !important; background: #fff !important; }
.file-size {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 62px;
  text-align: right;
}
.row-btns { display: inline-flex; gap: 3px; }
.icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); color: var(--ink); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn.danger:hover { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }

.pkg-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 640px) { .pkg-bar { grid-template-columns: 1fr; } }
.pkg-field { display: flex; flex-direction: column; gap: 4px; }
.pkg-field span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pkg-field input { padding: 6px 9px; font-size: 12.5px; }

.upload-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.progress {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 12px;
  display: none;
}
.progress.show { display: block; }
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
  border-radius: 999px;
  transition: width 0.12s linear;
}
.upload-msg {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

/* 数据表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
th {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  background: var(--surface-2);
  white-space: nowrap;
}
tbody tr:hover td { background: #f8fafd; }
tr.row-warn td { background: #fffdf4; }
tr.row-warn:hover td { background: #fef9e7; }

/* 进度时间线 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.log-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease;
}
.log-item:hover { border-color: var(--border-strong); }

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.log-meta {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.log-body {
  white-space: pre-wrap;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

/* 提示词终端代码块 */
.prompt-pre {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 11px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
@media (max-width: 720px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }

.details-box summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent);
  padding: 4px 0;
}

.muted { color: var(--ink-3); font-size: 12.5px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.inline-form { display: inline; }

/* 页脚 */
.footer {
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* 首次起点建档向导 */
.wrap-wizard {
  max-width: 760px;
  margin: 28px auto 68px;
  padding: 0 20px;
}

.wizard-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 55%, #ffffff 100%);
  border: 1px solid var(--accent-bd);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.wizard-hero h1 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.wizard-hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.step-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--ink-2);
  flex-shrink: 0;
}
.step-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 650;
}
.step-pill.is-active .step-num {
  background: var(--accent);
  color: #fff;
}
.step-pill.is-done {
  border-color: var(--ok-bd);
  background: var(--ok-bg);
  color: var(--ok);
}
.step-pill.is-done .step-num {
  background: var(--ok);
  color: #fff;
}

.wizard-step { display: block; }
.wizard-enhanced .wizard-step { display: none; }
.wizard-enhanced .wizard-step.is-active { display: block; }

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 600px) {
  .level-grid, .step-bar { grid-template-columns: 1fr; }
}

.level-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-weight: 400;
  margin: 0;
}
.level-opt:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.level-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.level-opt input[type="radio"] {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.level-title { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.level-desc { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }

.guide-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid var(--accent-bd);
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.hidden { display: none !important; }

@media (max-width: 640px) {
  .topbar-inner { padding: 10px 16px; }
  .wrap { padding: 18px 14px 56px; }
  .card { padding: 16px; }
  .page-head { padding: 16px; }
  .brand-sub { display: none; }
}

/* ===== 排版层级（v2）：重点靠字号/字重/颜色三重拉开，减少成片浅灰小字 ===== */
body { font-size: 14.5px; }

.brand { font-size: 16px; }
.brand-sub { font-size: 13px; color: var(--ink-2); }
.nav a, .nav-btn { font-size: 13.5px; color: var(--ink-2); }
.nav-user { font-size: 13px; color: var(--ink-2); }

/* 页面主标题：整页唯一最大最黑的字 */
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.page-head p { font-size: 13.5px; color: var(--ink-2); }
.t0-chip { font-size: 12.5px; }

/* 区块标题：比正文大一档 + 左侧色条，扫读时先看到它 */
.card h2 { font-size: 17.5px; font-weight: 750; }
.card-head h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
  margin-right: 0;
  flex-shrink: 0;
}
.card h3 { font-size: 15.5px; font-weight: 700; }

.stat-label { font-size: 12.5px; color: var(--ink-2); }
.stat-val { font-size: 30px; }
.stat-sub { font-size: 12.5px; color: var(--ink-2); }

.pill { font-size: 12.5px; font-weight: 650; }
.alert { font-size: 13.5px; }

.field label { font-size: 13.5px; font-weight: 650; }
.field .help { font-size: 12.5px; color: var(--ink-2); }
.btn { font-size: 13.5px; }
.btn-sm { font-size: 12.5px; }

/* 元信息：标签小而深，值大而黑 */
.meta-k { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.meta-v { font-size: 15px; font-weight: 700; }

th { font-size: 12.5px; color: var(--ink-2); }
td { font-size: 13.5px; }

/* 阶段卡片 */
.stage-deadline { font-size: 13px; color: var(--ink-2); }
.stage-deadline strong { font-size: 14px; color: var(--ink); font-weight: 750; }
.stage-tip { font-size: 13px; color: var(--ink-2); }
.stage-tip-tag { font-size: 11.5px; background: var(--accent-soft); color: var(--accent-deep); }

.dz-text { font-size: 14.5px; }
.dz-hint { font-size: 13px; color: var(--ink-2); }
.file-empty { font-size: 13px; color: var(--ink-2); }
.file-size { font-size: 12px; color: var(--ink-2); }
.idx { font-size: 12px; color: var(--ink-2); }
.pkg-field span { font-size: 12.5px; }
.pkg-field input { font-size: 13px; }

.log-meta { font-size: 12.5px; color: var(--ink-2); }
.log-body { font-size: 14px; }

.ro-k { font-size: 12px; color: var(--ink-2); }
.ro-v { font-size: 14.5px; }
.hash-line { font-size: 12px; }
.mono { font-size: 12.5px; }
.prompt-pre { font-size: 13px; }
.level-desc { font-size: 12.5px; color: var(--ink-2); }

/* 次级文字统一抬到 13px 并加深；真正的弱化信息用 .caption */
.muted { color: var(--ink-2); font-size: 13px; }
.caption { color: var(--ink-3); font-size: 12px; }
.footer { font-size: 12.5px; color: var(--ink-2); }

/* ===== 就地编辑（所见即所得）：控件外观与只读文字一致，悬停/聚焦才显示可编辑 ===== */
.inline-input,
.inline-select,
.inline-area {
  width: 100%;
  margin: -3px -6px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  box-shadow: none;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.meta-item .inline-input,
.meta-item .inline-select { font-size: 15px; font-weight: 700; }
.meta-item .inline-url {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
}
.inline-area {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  resize: none;
  overflow: hidden;
  min-height: 1.7em;
  field-sizing: content;
}
.inline-input:hover,
.inline-select:hover,
.inline-area:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.inline-input:focus,
.inline-select:focus,
.inline-area:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.meta-item.meta-wide { grid-column: 1 / -1; }
.attest-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 2px 0 14px;
  cursor: pointer;
}
.attest-line input { width: auto; margin: 0; }
