.metrics.compact {
  grid-template-columns: repeat(4, 1fr);
}

.text-metric {
  font-size: 17px !important;
}

.head-actions,
.quick-add,
.inline-form,
td form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary {
  border: 1px solid #cbd6e5;
  background: #fff;
  color: var(--blue);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

.primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.inline-form.padded {
  padding: 18px 21px;
  flex-wrap: wrap;
}

.inline-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.inline-form input,
.inline-form select,
.quick-add select,
td select,
.inline-input,
dialog label > input {
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  font: inherit;
}

.inline-input {
  max-width: 110px;
}

.file-mini {
  max-width: 170px;
  font-size: 10px;
}

.danger-text {
  color: var(--danger);
  font-weight: 700;
}

.import-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 21px;
}

.import-summary > div {
  display: grid;
  gap: 3px;
}

.import-summary strong {
  font-size: 21px;
}

.import-summary span {
  color: var(--muted);
  font-size: 10px;
}

.import-summary form {
  margin-left: auto;
}

.has-error strong,
.error-list strong {
  color: var(--danger);
}

.error-list {
  margin: 0 21px 20px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff1f0;
  color: #7a271a;
  font-size: 11px;
}

.file-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.form-stack,
.assistant-panel > form {
  display: grid;
  gap: 14px;
  padding: 21px;
}

.form-stack label,
.assistant-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.assistant-panel textarea {
  border: 1px solid #cfd8e5;
  border-radius: 7px;
  padding: 10px;
  font: inherit;
}

.form-stack textarea,
.assistant-panel textarea {
  min-height: 100px;
  resize: vertical;
}

.timeline {
  padding: 8px 21px 20px;
}

.timeline section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  border-left: 2px solid #dbe5f2;
  padding: 13px 0 13px 16px;
}

.timeline section > span {
  grid-row: span 2;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.timeline section > strong {
  font-size: 12px;
}

.timeline section > small {
  color: var(--muted);
}

.assistant-panel {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(7, 27, 63, .05);
}

.assistant-panel > form textarea {
  min-height: 120px;
  font-size: 15px;
}

.assistant-panel > form button {
  justify-self: end;
}

.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 21px 20px;
}

.suggestion-list span {
  border-radius: 18px;
  background: #eef4fb;
  color: var(--blue);
  padding: 6px 10px;
  font-size: 10px;
}

.evidence-list {
  margin: 16px 21px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: #fffaf0;
}

.evidence-list h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

.evidence-list p {
  margin: 6px 0;
  color: #526176;
  font-size: 11px;
}

.exam-review-grid {
  grid-template-columns: minmax(250px, .7fr) minmax(620px, 2fr);
}

.exam-event-list {
  display: grid;
  padding: 8px;
  gap: 5px;
}

.exam-event {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.exam-event:hover,
.exam-event.selected {
  background: #eef4fb;
}

.exam-event span,
.exam-event small,
.source-notice p {
  color: var(--muted);
}

.source-notice {
  margin: 0 21px 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--gold);
  background: #fffaf0;
}

.source-notice p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .exam-review-grid { grid-template-columns: 1fr; }
}

.answer {
  border-top: 1px solid var(--line);
  padding: 22px;
}

.answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.answer > p {
  white-space: pre-line;
  color: #3f4d62;
  line-height: 1.8;
}

.answer article {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #edf1f6;
  font-size: 11px;
}

.answer article span {
  color: var(--muted);
}

.confidence {
  border-radius: 20px;
  padding: 5px 9px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 10px;
}

.confidence.高 {
  background: #e8f7ef;
  color: #16794b;
}

.narrow {
  max-width: 560px;
}

.sidebar-foot > a {
  color: #fff;
  text-decoration: none;
}

.nav-section {
  display: block;
  padding: 15px 14px 4px;
  color: #7187a9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.sidebar nav .nav-section:first-child {
  padding-top: 0;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid #d6e2f1;
  border-radius: 9px;
  background: #edf5ff;
}

.share-link strong {
  color: var(--blue);
  font-size: 11px;
  white-space: nowrap;
}

.share-link input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #3d506a;
}

.integration-state{padding:25px}.integration-state strong{color:#b54708}.integration-state p{color:var(--muted);line-height:1.7}.wrap-cell{max-width:360px;white-space:normal;line-height:1.5}

.integration-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 21px}
.integration-banner h2{margin:0 0 4px;font-size:16px}
.integration-banner>div>p{margin:0;color:var(--muted);font-size:11px}
.integration-banner .integration-state{padding:0;text-align:right}
.integration-banner .integration-state p{margin:3px 0 0}
.template-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;padding:16px 18px 19px}
.template-card{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fbfcfe}
.template-card-head strong,.template-card-head span{display:block}
.template-card-head strong{font-size:13px}.template-card-head span{margin-top:4px;font-size:9px}
.template-card label{display:grid;gap:5px;color:var(--muted);font-size:10px}
.template-card select{width:100%;border:1px solid #cfd8e5;border-radius:6px;padding:7px 8px;background:white}
.template-card .template-active{display:flex;align-items:center}.template-card button{width:100%}
.readiness-阻断{background:#fff1f0;color:#b42318}.readiness-待确认{background:#fff7e8;color:#b54708}.readiness-待授权{background:#f2f4f7;color:#475467}.readiness-通过{background:#e8f7ef;color:#16794b}
.implementation-list{display:grid}.implementation-item{padding:20px 21px;border-bottom:1px solid var(--line)}.implementation-item:last-child{border-bottom:0}.implementation-title{display:flex;justify-content:space-between;gap:24px}.implementation-title h3{margin:8px 0 5px;font-size:15px}.implementation-title p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.implementation-title small{margin-left:8px;color:var(--muted)}.implementation-schedule{display:flex;align-items:end;gap:8px;flex:0 0 auto}.implementation-schedule label,.implementation-evidence label{display:grid;gap:5px;color:var(--muted);font-size:10px}.implementation-schedule input,.implementation-evidence input{border:1px solid #cfd8e5;border-radius:6px;padding:7px 8px;background:white}.implementation-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.implementation-actions .inline-form{padding:0}.implementation-evidence{flex:1}.implementation-evidence label:first-of-type{flex:2}.implementation-evidence label:nth-of-type(2){flex:1}.evidence-card{margin-top:14px;padding:12px 14px;border-left:3px solid var(--mid);background:#f6f9fd;border-radius:6px}.evidence-card p{margin:5px 0;color:#3d506a;font-size:12px}.evidence-card small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.research-import{display:flex;align-items:end;gap:9px}.research-import label{display:grid;gap:4px;color:var(--muted);font-size:10px}.research-import input{max-width:230px}.research-tabs{flex-wrap:wrap}.research-list{display:grid}.research-item{padding:20px 21px;border-bottom:1px solid var(--line)}.research-item:last-child{border-bottom:0}.research-main{display:flex;justify-content:space-between;gap:24px}.research-main h3{margin:8px 0 5px;font-size:15px}.research-main p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.research-main small{margin-left:8px;color:var(--muted)}.research-待调研{background:#fff7e8;color:#b54708}.research-已记录{background:#eef4ff;color:#175cd3}.research-已确认{background:#e8f7ef;color:#16794b}
.preflight-manual_review{background:#e8f7ef;color:#16794b}.preflight-manual_review_attention{background:#fff7e8;color:#b54708}.preflight-preflight_failed{background:#fff1f0;color:#b42318}

.date-chip {
  color: var(--muted);
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
}

@media (max-width: 760px) {
  .metrics.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .head-actions,
  .quick-add {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-banner{align-items:flex-start;flex-direction:column}
  .implementation-title,.implementation-schedule,.implementation-actions,.implementation-evidence,.research-main,.research-import{align-items:stretch;flex-direction:column}.implementation-schedule{margin-top:14px}
  .integration-banner .integration-state{text-align:left}
  .template-grid{grid-template-columns:1fr}
}

@media (min-width:761px) and (max-width:1200px){.template-grid{grid-template-columns:repeat(3,1fr)}}

.bar progress{width:100%;height:6px;border:0;appearance:none}.bar progress::-webkit-progress-bar{background:#edf1f7;border-radius:9px}.bar progress::-webkit-progress-value{background:linear-gradient(90deg,var(--blue),#4f83c4);border-radius:9px}.bar progress::-moz-progress-bar{background:var(--blue);border-radius:9px}

.enrollment-create {
  scroll-margin-top: 20px;
}

.registration-form {
  padding: 22px;
}

.registration-section + .registration-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.registration-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.registration-section-head strong {
  font-size: 14px;
}

.registration-section-head span,
.material-security-note,
.archive-toolbar span {
  color: var(--muted);
  font-size: 10px;
}

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

.material-upload {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 132px;
  padding: 15px;
  border: 1px dashed #bdcbe0;
  border-radius: 10px;
  background: #f8fafc;
  color: #4d596b;
}

.material-upload.required-material {
  border-color: #96afd2;
  background: #f4f8fe;
}

.material-upload strong,
.material-upload small {
  display: block;
}

.material-upload strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
}

.material-upload small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.material-upload input {
  width: 100%;
  font-size: 10px;
}

.material-security-note {
  margin: 12px 0 0;
  line-height: 1.6;
}

.registration-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.registration-actions .notice {
  margin: 0;
}

.archive-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 12px;
}

.archive-toolbar strong,
.archive-toolbar span {
  display: block;
}

.archive-toolbar strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.archive-toolbar .search {
  width: min(440px, 100%);
  margin: 0;
}

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

.material-actions .small {
  display: inline-block;
  text-decoration: none;
}

.muted-material {
  color: var(--muted);
}

.field-hint {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.archive-list table {
  min-width: 1260px;
}

.workflow-status {
  background: #edf5ff;
  color: #175cd3;
  font-weight: 650;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 11px;
}

.section-heading strong,
.section-heading span {
  display: block;
}

.section-heading strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.section-heading span {
  color: var(--muted);
  font-size: 10px;
}

.section-heading a {
  color: var(--mid);
  font-size: 11px;
  text-decoration: none;
}

.metrics.workflow-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics.workflow-metrics .equipment {
  border-top: 3px solid #175cd3;
}

.metrics.workflow-metrics .manual {
  border-top: 3px solid #667085;
}

.metrics.workflow-metrics .danger {
  border-top: 3px solid var(--danger);
}

.workflow-panel {
  overflow: visible;
}

.workflow-heading {
  gap: 20px;
}

.workflow-mode {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.workflow-mode.equipment {
  background: #eaf2ff;
  color: #175cd3;
}

.workflow-mode.manual {
  background: #f2f4f7;
  color: #475467;
}

.workflow-mode.unconfigured {
  background: #fff7e8;
  color: #b54708;
}

.workflow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.workflow-summary > div {
  min-width: 0;
  padding: 17px 21px;
  border-right: 1px solid var(--line);
}

.workflow-summary > div:last-child {
  border-right: 0;
}

.workflow-summary span,
.workflow-summary strong {
  display: block;
}

.workflow-summary span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.workflow-summary strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.workflow-guidance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 18px 21px 0;
  padding: 15px 17px;
  border-radius: 9px;
}

.workflow-guidance.equipment-guidance {
  border: 1px solid #c7d7f2;
  background: #f3f7fd;
}

.workflow-guidance.manual-guidance {
  border: 1px solid #d8dde5;
  background: #f7f8fa;
}

.workflow-guidance.unconfigured-guidance {
  border: 1px solid #f0d5a5;
  background: #fffaf0;
}

.workflow-guidance strong {
  font-size: 12px;
}

.workflow-guidance p {
  max-width: 860px;
  margin: 5px 0 0;
  color: #536078;
  font-size: 10px;
  line-height: 1.65;
}

.external-action,
.task-process {
  flex: 0 0 auto;
  text-decoration: none;
}

.workflow-form {
  margin: 18px 21px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.workflow-form-head,
.workflow-form-actions,
.workflow-history-head,
.workflow-event-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workflow-form-head {
  margin-bottom: 15px;
}

.workflow-form-head strong,
.workflow-history-head strong {
  font-size: 13px;
}

.workflow-form-head span,
.workflow-history-head span,
.workflow-form-actions span {
  color: var(--muted);
  font-size: 9px;
}

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

.workflow-form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #4d596b;
  font-size: 10px;
}

.workflow-form-grid input,
.workflow-form-grid select,
.workflow-form-grid textarea {
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  font: inherit;
}

.workflow-form-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.workflow-form-actions {
  align-items: end;
  margin-top: 15px;
}

.workflow-form-actions span {
  max-width: 680px;
  line-height: 1.6;
}

.workflow-history {
  margin-top: 21px;
  padding: 19px 21px 5px;
  border-top: 1px solid var(--line);
}

.workflow-history-head {
  margin-bottom: 5px;
}

.workflow-timeline {
  position: relative;
  margin-top: 9px;
  padding-left: 13px;
}

.workflow-timeline section {
  position: relative;
  padding: 13px 0 15px 21px;
  border-left: 2px solid #dbe5f2;
}

.workflow-timeline-dot {
  position: absolute;
  top: 17px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 1px #b9cbea;
}

.workflow-event-title strong {
  font-size: 12px;
}

.workflow-event-title time {
  color: var(--muted);
  font-size: 9px;
}

.workflow-timeline p {
  margin: 5px 0;
  color: #3d506a;
  font-size: 11px;
  line-height: 1.55;
}

.workflow-timeline small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .material-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics.workflow-metrics,
  .workflow-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-summary > div:nth-child(2) {
    border-right: 0;
  }

  .workflow-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .material-upload-grid {
    grid-template-columns: 1fr;
  }

  .registration-section-head,
  .archive-toolbar,
  .registration-actions,
  .section-heading,
  .workflow-heading,
  .workflow-guidance,
  .workflow-form-head,
  .workflow-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-toolbar .search {
    width: 100%;
  }

  .metrics.workflow-metrics,
  .workflow-summary,
  .workflow-form-grid {
    grid-template-columns: 1fr;
  }

  .workflow-summary > div,
  .workflow-summary > div:nth-child(2),
  .workflow-summary > div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-summary > div:last-child {
    border-bottom: 0;
  }

  .workflow-form-grid .span-2 {
    grid-column: auto;
  }

  .workflow-form-actions button,
  .external-action {
    width: 100%;
    text-align: center;
  }
}
