:root {
  --ink: #1f3a5f;
  --ink-2: #2c4a6e;
  --ink-3: #16283f;
  --teal: #267f7a;
  --teal-soft: #e8f4f2;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e2e6ea;
  --line-strong: #cfd6dd;
  --text: #1f2933;
  --muted: #667085;
  --red: #b42318;
  --red-soft: #fef3f2;
  --amber: #b54708;
  --amber-soft: #fffaeb;
  --green: #067647;
  --green-soft: #ecfdf3;
  --blue-soft: #eff6ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 12px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
p { margin: 0; }
code {
  background: #eef1f4;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.hidden { display: none !important; }
.req { color: var(--red); }
.strong-link { font-weight: 700; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--ink-3);
  color: #dbe4ef;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3c8f89, #2a5d8f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
}
.brand-name { font-size: 15px; font-weight: 700; color: #fff; }
.brand-sub { font-size: 11px; color: #9fb0c5; margin-top: 2px; }
.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: block;
  color: #c6d2e2;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 700; }
.sidebar-footer { margin-top: auto; padding: 18px 20px; }
.disclaimer-mini {
  font-size: 11px;
  color: #9fb0c5;
  line-height: 1.7;
  border-left: 3px solid #b54708;
  padding-left: 9px;
}
.version { font-size: 10px; color: #6f829b; margin-top: 10px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.global-banner {
  background: var(--amber-soft);
  color: #7a3e0a;
  border-bottom: 1px solid #fedf89;
  padding: 9px 28px;
  font-size: 12px;
  line-height: 1.6;
}
.content { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.card-head p { margin-top: 4px; }
.head-actions { display: flex; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: #f7f9fb; border-color: #b9c3cd; text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #f3c6c1; background: #fff; }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  white-space: nowrap;
}
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfcfd; }

/* Chips / status */
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1f4;
  color: #475467;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.danger { background: var(--red-soft); color: var(--red); }
.status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef1f4;
  color: #475467;
  white-space: nowrap;
}
.status-parsing, .status-extracting, .status-generating, .status-polishing {
  background: var(--blue-soft);
  color: #175cd3;
}
.status-review { background: var(--amber-soft); color: var(--amber); }
.status-done { background: var(--green-soft); color: var(--green); }
.status-failed { background: var(--red-soft); color: var(--red); }
.badge-stack { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: #344054; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(38, 127, 122, .18);
  border-color: var(--teal);
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.6; }
.field-hint a { color: var(--teal); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 14px 0;
}
.form-grid.one { grid-template-columns: 1fr; }
.field.wide { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.checkline {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}
.checkline input { margin-top: 3px; flex: 0 0 auto; }
.checklist { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.ack {
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ack.attention {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 4px; }
.mode-card {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}
.mode-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-title { font-weight: 700; color: var(--ink); }
.mode-desc { font-size: 12px; color: var(--muted); }

/* Notices */
.notice {
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
}
.notice.warning { background: var(--amber-soft); border-color: #fedf89; color: #7a3e0a; }
.notice.danger { background: var(--red-soft); border-color: #f3c6c1; color: var(--red); }
.notice.success { background: var(--green-soft); border-color: #abefc6; color: var(--green); }
.hintbox {
  background: var(--blue-soft);
  border: 1px solid #d1e9ff;
  color: #1849a9;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
}
.page-intro { margin-bottom: 16px; }

/* Empty */
.empty { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 34px; color: #98a2b3; }
.empty h3 { margin: 10px 0 6px; }
.empty p { color: var(--muted); max-width: 540px; margin: 0 auto; }
.empty-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* Job header */
.job-head { padding: 18px 20px 16px; }
.job-title-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.job-status-block { min-width: 280px; max-width: 380px; text-align: right; }
.status-line { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.progress {
  height: 8px;
  border-radius: 999px;
  background: #e9edf1;
  overflow: hidden;
  margin: 10px 0 6px;
}
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--ink-2)); transition: width .4s; }
.stepper { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.stepper-step { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.stepper-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef1f4; color: #667085; font-size: 11px; font-weight: 700;
}
.stepper-step.done .stepper-dot { background: var(--green-soft); color: var(--green); }
.stepper-step.active .stepper-dot { background: var(--ink); color: #fff; }
.stepper-step.active { color: var(--ink); font-weight: 700; }
.stepper-arrow { color: #c0c8d2; margin: 0 2px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 18px;
  overflow-x: auto;
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

/* Dropzone */
.dropzone {
  border: 1.5px dashed #b9c6d2;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  background: #fbfcfd;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--teal); background: var(--teal-soft); }
.dropzone.compact { padding: 20px 14px; }
.dropzone-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }

/* File list */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.file-row.sub { margin-left: 26px; border-left: 3px solid var(--line-strong); }
.file-main { min-width: 0; }
.file-name { font-weight: 600; word-break: break-all; }
.file-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.file-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.file-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: #475467; }
.file-status.done { background: var(--green-soft); color: var(--green); }
.file-status.empty { background: var(--amber-soft); color: var(--amber); }
.file-status.failed { background: var(--red-soft); color: var(--red); }
.file-status.parsing { background: var(--blue-soft); color: #175cd3; }

/* Facts */
.fact-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fact-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
}
.fact-stat strong { color: var(--ink); font-size: 15px; margin-right: 4px; }
.fact-list { display: flex; flex-direction: column; gap: 14px; }
.fact-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.fact-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.fact-card.suggested { border-left: 3px solid #f5b547; }
.fact-card.confirmed { border-left: 3px solid #12b76a; }
.fact-card.excluded { opacity: .55; border-left: 3px solid #98a2b3; }
.fact-card-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fact-title-input {
  flex: 1;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 9px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
}
.fact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fact-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact-field label { font-size: 11px; color: var(--muted); font-weight: 600; }
.fact-field input, .fact-field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12px;
  font-family: var(--font);
  width: 100%;
}
.fact-field textarea { min-height: 70px; resize: vertical; }
.fact-field.missing input, .fact-field.missing textarea { border-color: #f5b547; background: #fffcf5; }
.fact-missing { color: var(--amber); font-size: 11px; margin-top: 2px; }
.fact-evidence { margin-top: 10px; }
.fact-evidence summary { cursor: pointer; font-size: 12px; color: var(--ink); font-weight: 600; }
.evidence-item { border-left: 2px solid var(--line-strong); padding: 6px 10px; margin: 6px 0; font-size: 12px; color: #475467; }
.evidence-item .verified { color: var(--green); }
.evidence-item .unverified { color: var(--amber); }
.fact-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.fact-extra { margin-top: 8px; font-size: 12px; color: var(--amber); }
.empty-row { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 10px; }

/* Outline */
.outline-editor { display: flex; flex-direction: column; gap: 12px; }
.outline-section { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fbfcfd; }
.outline-heading-input { font-weight: 700; color: var(--ink); width: 100%; }
.outline-textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12px;
  font-family: var(--font);
  margin-top: 6px;
  resize: vertical;
}
.outline-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--muted); }
.outline-section input {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 9px;
  font-family: var(--font);
  font-size: 12px;
}

/* Deliverables */
.deliverable-list { display: flex; flex-direction: column; gap: 9px; }
.deliverable-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
}
.deliverable-main { min-width: 0; }
.deliverable-name { font-weight: 600; word-break: break-all; }
.deliverable-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Verification */
.verification { display: flex; flex-direction: column; gap: 12px; }
.verification-group { border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.verification-group h4 { margin-bottom: 8px; }
.verification-item { font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #eef1f4; }
.verification-item:last-child { border-bottom: 0; }
.verification-ok { color: var(--green); font-size: 12px; }
.verification-warn { color: var(--amber); font-size: 12px; }
.verification-danger { color: var(--red); font-size: 12px; }

/* Logs */
.log-list { display: flex; flex-direction: column; gap: 6px; }
.log-entry { display: flex; gap: 10px; font-size: 12px; padding: 7px 0; border-bottom: 1px dashed #eef1f4; }
.log-entry:last-child { border-bottom: 0; }
.log-time { color: var(--muted); flex: 0 0 130px; }
.log-level { flex: 0 0 50px; font-weight: 700; }
.log-level.info { color: #175cd3; }
.log-level.warn { color: var(--amber); }
.log-level.error { color: var(--red); }
.usage-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.usage-item { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.usage-item .label { color: var(--muted); font-size: 12px; }
.usage-item .value { font-size: 19px; font-weight: 700; color: var(--ink); }

/* Template library */
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.template-card.disabled { opacity: .62; }
.card-actions { display: flex; justify-content: flex-end; margin: 10px 0 4px; }
.meta-row { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #475467; margin: 8px 0; }
.details { margin-top: 10px; }
.details summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink); }
.details-body { margin-top: 12px; }
.details-body h4 { margin: 12px 0 6px; }
.mini-block { border-left: 2px solid var(--line-strong); padding: 5px 10px; margin: 6px 0; }
.section-list { margin: 6px 0 0 18px; padding: 0; font-size: 12px; color: #475467; }
.section-list li { margin: 4px 0; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.kv { display: flex; flex-direction: column; gap: 9px; margin: 8px 0 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 12px; }
.kv > div > span:first-child { color: var(--muted); flex: 0 0 90px; }
.kv code { word-break: break-all; text-align: right; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: min(880px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .25);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-body textarea {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
  font-family: var(--font);
  resize: vertical;
}
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 460px;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #912018; }
.toast.success { background: #05603a; }

/* Responsive */
@media (max-width: 1120px) {
  .sidebar { width: 200px; flex-basis: 200px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; }
  .brand { border-bottom: 0; padding: 14px; }
  .nav { flex-direction: row; padding: 8px; }
  .sidebar-footer { display: none; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .global-banner { padding: 8px 16px; }
  .grid-2, .form-grid, .mode-grid, .fact-fields { grid-template-columns: 1fr; }
  .job-title-row { flex-direction: column; }
  .job-status-block { text-align: left; min-width: 0; max-width: none; width: 100%; }
  .status-line { justify-content: flex-start; }
  .usage-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 政策审核：展开的审核行（extracted 字段 + 原文对照） */
.policy-review-row td { background: var(--blue-soft); }
.policy-review-row .notice { margin: 4px 0; }
.policy-review-row pre {
  white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto;
  background: #fff; padding: 8px; border-radius: 6px;
}
.policy-review-row details summary { cursor: pointer; }

/* 订单页：材料清单与申报大纲 */
.materials-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.material-list-title { font-weight: 600; margin-bottom: 6px; }
.material-list { margin: 0; padding-left: 18px; }
.material-list li { margin: 4px 0; line-height: 1.5; }
.outline-box { border-top: 1px solid var(--border, #e5e7eb); padding-top: 12px; }
#client-outline { margin: 8px 0 12px; }
#client-outline h3 { margin: 0 0 8px; font-size: 15px; }
#client-outline ol { margin: 0 0 8px; padding-left: 22px; }
#client-outline .muted { margin: 4px 0; }
@media (max-width: 640px) { .materials-layout { grid-template-columns: 1fr; } }
