:root {
  color-scheme: light;
  --bg: #f4f2ec;
  --surface: #ffffff;
  --ink: #19201f;
  --muted: #65706b;
  --line: #d9ded7;
  --accent: #167c6b;
  --accent-strong: #0f5d51;
  --warn: #b75d27;
  --danger: #a33d3d;
  --ok: #2f7d43;
  --soft: #e7f1ed;
  --shadow: 0 18px 50px rgba(35, 45, 40, 0.12);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(22, 124, 107, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(183, 93, 39, 0.12), transparent 34%),
    var(--bg);
  color: var(--ink);
}

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

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 410px) 1fr;
  gap: 18px;
  align-items: start;
}

.panel,
.score-card,
.radar-wrap,
.report-panel,
.module-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.input-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.25;
}

.brand p,
.eyebrow,
.score-card span,
.module-card p,
.report-heading span {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: #303835;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c6cec8;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.range-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.range-label output {
  min-width: 48px;
  color: var(--accent-strong);
  text-align: right;
  font-weight: 800;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

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

.check-grid.compact {
  gap: 8px;
}

.check-grid.compact .check-row {
  font-size: 13px;
}

.category-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.category-template-panel {
  display: grid;
  gap: 10px;
}

.category-template-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.category-template-head strong {
  color: var(--accent-strong);
  font-size: 16px;
}

.category-template-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-template-grid {
  display: grid;
  gap: 10px;
}

.category-template-block {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-template-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf2ef;
  color: #44504b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.category-tags span.selected {
  background: var(--soft);
  color: var(--accent-strong);
}

.category-maturity-list {
  display: grid;
  gap: 8px;
}

.maturity-report-meta {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.category-maturity-row {
  display: grid;
  gap: 5px;
  padding: 5px 0;
}

.category-maturity-row div:first-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.category-maturity-row b {
  font-size: 13px;
}

.category-maturity-row span {
  flex: 1 1 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.category-maturity-head em {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf2ef;
  color: #44504b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.category-maturity-row.urgent .category-maturity-head em {
  background: #fff1db;
  color: #9a5a00;
}

.category-maturity-row.important .category-maturity-head em {
  background: #eaf1ff;
  color: #2958a8;
}

.category-maturity-row.done .category-maturity-head em {
  background: var(--soft);
  color: var(--accent-strong);
}

.category-maturity-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: #e6ece8;
}

.category-maturity-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #42a581);
}

.category-maturity-track i {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 11px;
  background: #26302c;
}

.compact-actions {
  justify-content: stretch;
}

.compact-actions button {
  width: 100%;
}

.maturity-output-panel {
  margin-top: 12px;
}

.maturity-output-panel .category-template-block {
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.secondary {
  width: auto;
  padding: 0 14px;
  background: #24302d;
}

.case-select {
  width: 150px;
  min-height: 42px;
  border-color: #24302d;
  background: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.file-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: #24302d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.file-button:hover {
  background: #111917;
}

.file-button input {
  display: none;
}

.results {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 6px 2px;
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
}

.score-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.score-card {
  display: grid;
  place-content: center;
  min-height: 260px;
  text-align: center;
}

.score-card strong {
  margin: 8px 0;
  font-size: 72px;
  line-height: 1;
}

.score-card p {
  font-weight: 700;
  color: var(--accent-strong);
}

.radar-wrap {
  min-height: 400px;
  padding: 12px;
  overflow: hidden;
}

.radar-wrap canvas {
  width: 100%;
  height: clamp(360px, 34vw, 460px);
  display: block;
}

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

.applicability-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.8fr) minmax(200px, 0.8fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #b8d5c2;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f4faf5;
}

.applicability-summary strong {
  color: var(--accent-strong);
}

.applicability-summary p {
  margin-top: 5px;
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.applicability-summary > p {
  max-width: 460px;
  padding-left: 14px;
  border-left: 1px solid #cfe0d3;
}

.execution-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-step {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfb;
}

.pipeline-step.attention {
  border-top-color: var(--warn);
  background: #fffaf4;
}

.pipeline-step-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.pipeline-step b {
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.35;
}

.pipeline-step p {
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.pipeline-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.pipeline-step.attention .pipeline-status {
  background: #fff0d9;
  color: #9a5b12;
}

.module-card {
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 14px;
}

.module-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.module-title h3 {
  margin: 0;
  font-size: 16px;
}

.module-activation {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.badge {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  color: #fff;
}

.badge.low {
  background: var(--danger);
}

.badge.mid {
  background: var(--warn);
}

.badge.high {
  background: var(--ok);
}

.module-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #303835;
  font-size: 14px;
}

.benchmark-panel {
  display: grid;
  gap: 12px;
}

.benchmark-catchup,
.benchmark-catchup-controls {
  display: grid;
  gap: 12px;
}

.benchmark-catchup-controls {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.benchmark-catchup-controls label {
  margin: 0;
}

.benchmark-catchup-controls button {
  width: 100%;
  min-height: 42px;
}

.benchmark-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr;
  gap: 10px;
  align-items: stretch;
}

.benchmark-overview div,
.benchmark-overview p {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.benchmark-overview span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.benchmark-overview strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
}

.benchmark-overview strong.negative {
  color: var(--danger);
}

.benchmark-overview strong.positive {
  color: var(--ok);
}

.benchmark-overview p {
  color: #303835;
  line-height: 1.55;
}

.benchmark-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.benchmark-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.benchmark-row div:first-child {
  display: grid;
  gap: 3px;
}

.benchmark-row span {
  color: var(--muted);
  font-size: 12px;
}

.benchmark-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.benchmark-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #42a581);
}

.benchmark-base {
  position: absolute;
  z-index: 1;
  top: -2px;
  width: 2px;
  height: 12px;
  background: #26302c;
}

.benchmark-row > strong {
  color: var(--accent-strong);
}

.benchmark-row.lagging > strong {
  color: var(--danger);
}

.benchmark-actions {
  display: grid;
  gap: 8px;
}

.benchmark-actions p {
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfb;
  color: #303835;
  line-height: 1.55;
}

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

.case-match-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.case-match-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.case-match-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.case-match-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.case-match-head strong {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1;
}

.case-match-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.case-match-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #42a581);
}

.case-match-card p,
.case-match-card li {
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

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

.case-match-columns div,
.case-match-result {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-match-columns b,
.case-match-result b {
  display: block;
  margin-bottom: 6px;
}

.case-match-columns ul {
  margin: 0;
  padding-left: 18px;
}

.report-panel {
  padding: 18px;
}

.insight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.roadmap-grid {
  display: grid;
  gap: 10px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.roadmap-item strong {
  color: var(--accent-strong);
}

.roadmap-item p {
  color: #303835;
  line-height: 1.65;
}

.long-roadmap {
  display: grid;
  gap: 10px;
}

.long-roadmap-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.long-roadmap-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
}

.long-roadmap-head strong {
  color: var(--accent-strong);
}

.long-roadmap-head p {
  color: #303835;
  line-height: 1.55;
}

.long-roadmap-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.long-roadmap-tracks div {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e6e1;
}

.long-roadmap-tracks span {
  color: var(--accent-strong);
  font-weight: 800;
}

.long-roadmap-tracks p,
.long-roadmap-tracks small,
.long-roadmap-acceptance {
  color: #303835;
  line-height: 1.45;
}

.long-roadmap-tracks small,
.long-roadmap-acceptance {
  color: var(--muted);
}

.risk-matrix {
  display: grid;
  gap: 8px;
}

.risk-row {
  display: grid;
  grid-template-columns: 76px 1fr 58px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.risk-level {
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.risk-level.high {
  background: var(--danger);
}

.risk-level.medium {
  background: var(--warn);
}

.risk-level.low {
  background: var(--ok);
}

.finding-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.finding-row strong {
  color: var(--accent-strong);
}

.evaluation-results {
  display: grid;
  gap: 10px;
}

.evaluation-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.evaluation-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.evaluation-title strong {
  font-size: 15px;
}

.evaluation-card ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.checklist-result {
  display: grid;
  gap: 8px;
}

.checklist-row {
  display: grid;
  grid-template-columns: 22px 1fr 68px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.check-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.check-icon.done {
  background: var(--ok);
}

.check-icon.todo {
  background: var(--warn);
}

.checklist-row p {
  color: #303835;
  line-height: 1.55;
}

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

.metric-tile {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-tile strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--accent-strong);
  font-size: 26px;
}

.metric-tile p {
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.data-quality-panel {
  display: grid;
  gap: 12px;
}

.quality-summary {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.quality-summary strong {
  color: var(--accent-strong);
  font-size: 34px;
  line-height: 1;
}

.quality-summary p {
  color: #303835;
  line-height: 1.55;
}

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

.quality-section {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quality-section div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.quality-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quality-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.quality-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #42a581);
}

.quality-actions {
  display: grid;
  gap: 6px;
}

.quality-actions p {
  padding: 8px 10px;
  border-left: 3px solid var(--warn);
  border-radius: 6px;
  background: #fff8f1;
  color: #303835;
  line-height: 1.5;
}

.task-ledger,
.batch-results {
  overflow-x: auto;
}

.task-table,
.batch-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.task-table th,
.task-table td,
.batch-table th,
.batch-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.task-table th,
.batch-table th {
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
}

.priority {
  display: inline-block;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.priority.p0 {
  background: var(--danger);
}

.priority.p1 {
  background: var(--warn);
}

.priority.p2 {
  background: var(--ok);
}

.policy-list {
  display: grid;
  gap: 10px;
}

.policy-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.policy-item strong {
  display: block;
  margin-bottom: 6px;
}

.policy-item p {
  color: #303835;
  line-height: 1.6;
}

.compact-heading {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.opportunity-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.opportunity-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.opportunity-head strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.opportunity-category {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.opportunity-card h3 {
  margin: 0;
  font-size: 15px;
}

.opportunity-card p,
.opportunity-card small {
  color: #303835;
  line-height: 1.55;
}

.opportunity-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.opportunity-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.opportunity-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #42a581);
}

.knowledge-controls {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 8px;
  margin-bottom: 8px;
}

.knowledge-notice {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.knowledge-results {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.knowledge-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.knowledge-card strong {
  display: block;
  margin-bottom: 6px;
}

.knowledge-card span {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-card p,
.knowledge-card li {
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.knowledge-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.assist-controls {
  margin-bottom: 10px;
}

.assist-controls textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #c6cec8;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}

.prompt-pack {
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.special-heading {
  align-items: center;
}

.api-heading {
  align-items: center;
}

.special-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.special-report {
  min-height: 360px;
  max-height: 560px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.evidence-pack {
  display: grid;
  gap: 10px;
}

.evidence-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  overflow: hidden;
}

.evidence-group h3 {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.evidence-row {
  display: grid;
  grid-template-columns: 86px 1fr 120px;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.evidence-row:last-child {
  border-bottom: 0;
}

.status {
  display: inline-block;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.status.done {
  background: var(--ok);
}

.status.partial {
  background: var(--warn);
}

.status.missing {
  background: var(--danger);
}

.evidence-row p {
  color: #303835;
  line-height: 1.55;
}

.evidence-row small {
  color: var(--muted);
  line-height: 1.45;
}

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

.application-pack {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.application-pack-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.application-pack-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.application-pack-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.application-pack-head strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.application-pack > p {
  color: #303835;
  line-height: 1.55;
}

.application-materials {
  display: grid;
  gap: 8px;
}

.application-material {
  display: grid;
  grid-template-columns: 58px 1fr 82px;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  background: #fff;
}

.application-material span {
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.application-material.done span {
  background: var(--ok);
}

.application-material.missing span {
  background: var(--warn);
}

.application-material p,
.application-material small {
  color: #303835;
  line-height: 1.45;
}

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

.api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.api-card {
  min-height: 122px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.api-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.api-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--accent-strong);
  font-size: 17px;
}

.api-card p {
  color: #303835;
  font-size: 13px;
  line-height: 1.55;
}

.report-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

pre {
  white-space: pre-wrap;
  margin: 0;
  color: #26302c;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 1080px) {
  .workspace,
  .score-layout,
  .insight-layout {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
    max-height: none;
  }

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

@media (max-width: 680px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .report-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .two-col,
  .check-grid,
  .application-packs,
  .opportunity-grid,
  .case-match-grid,
  .case-match-columns,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }

  .actions button,
  .file-button,
  .case-select,
  .special-actions button {
    width: 100%;
  }

  .special-actions {
    justify-content: stretch;
  }

  .roadmap-item,
  .long-roadmap-head,
  .risk-row,
  .checklist-row,
  .application-material,
  .evidence-row {
    grid-template-columns: 1fr;
  }

  .long-roadmap-tracks {
    grid-template-columns: 1fr;
  }

  .value-metrics {
    grid-template-columns: 1fr;
  }

  .api-grid {
    grid-template-columns: 1fr;
  }

  .quality-summary,
  .benchmark-overview,
  .benchmark-bars,
  .quality-sections,
  .applicability-summary,
  .execution-pipeline {
    grid-template-columns: 1fr;
  }

  .applicability-summary > p {
    max-width: none;
    padding-left: 0;
    border-left: 0;
  }

  .knowledge-controls {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: 190px;
  }

  .radar-wrap {
    min-height: 360px;
  }

  .radar-wrap canvas {
    height: 360px;
  }

  .score-card strong {
    font-size: 58px;
  }
}

.industry-rule-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(240px, 1.2fr) minmax(220px, 1fr);
  gap: 18px;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid #b9dfc7;
  border-radius: 8px;
  background: #f4fbf5;
}

.industry-rule-summary span,
.industry-rule-summary small {
  color: #51705c;
  font-size: 12px;
}

.industry-rule-summary strong {
  display: block;
  margin-top: 4px;
  color: #195c33;
  font-size: 18px;
}

.industry-rule-summary p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.industry-rule-path p {
  margin-top: 0;
}

.industry-weight-bars {
  display: grid;
  gap: 8px;
}

.industry-weight-bars > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 34px;
  gap: 4px 10px;
  align-items: center;
}

.industry-weight-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  overflow: hidden;
  background: #d9ece0;
  border-radius: 4px;
}

.industry-weight-bars b {
  display: block;
  height: 100%;
  background: #2f9b5e;
  border-radius: inherit;
}

.industry-check-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.industry-check-list p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
}

.industry-check-list p.passed {
  color: #1f6b40;
}

.industry-check-list p.attention {
  color: #9a5a00;
  background: #fff8e8;
}

.industry-execution-guard {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #cfe3d5;
  border-radius: 8px;
  background: #fff;
}

.industry-execution-guard.attention {
  border-color: #d8c18a;
  background: #fffaf0;
}

.industry-execution-guard.blocked {
  border-color: #e3a6a6;
  background: #fff5f5;
}

.industry-execution-guard-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.industry-execution-guard-head strong {
  margin: 0;
  font-size: 15px;
}

.industry-execution-guard p {
  margin: 0;
}

.industry-execution-guard ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.industry-execution-guard li.passed {
  color: #1f6b40;
}

.industry-execution-guard li.attention {
  color: #9a5a00;
}

.industry-isolation-note {
  grid-column: 1 / -1;
  margin-bottom: 0 !important;
  color: #295d3a;
}

.opc-panel {
  display: grid;
  gap: 14px;
}

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

.opc-grid fieldset {
  min-width: 0;
}

.opc-v3-panel {
  display: grid;
  gap: 12px;
}

.opc-v3-panel fieldset {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--accent);
  background: #f8fbf9;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.opc-v3-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.opc-v3-options label {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #303835;
  font-size: 13px;
  font-weight: 700;
}

.opc-v3-options input {
  width: auto;
}

.opc-v3-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  background: #fff;
}

.opc-v3-preview strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.opc-v3-preview span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf5f1;
  color: #2f4f3f;
  font-size: 12px;
  font-weight: 800;
}

.opc-advanced-fields {
  display: none;
  border: 1px dashed #c6d6cc;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

.opc-panel.opc-generated .opc-advanced-fields {
  display: block;
}

.opc-advanced-fields summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.opc-advanced-fields .opc-grid {
  margin-top: 12px;
}

.opc-result {
  display: grid;
  gap: 12px;
}

.opc-command-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.opc-command-row button:first-child {
  min-width: 220px;
}

.opc-status {
  display: grid;
  gap: 12px;
}

.opc-scoreline {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #cfe3d5;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f7fbf8;
}

.opc-status.blocked .opc-scoreline {
  border-color: #e4c89b;
  border-left-color: var(--warn);
  background: #fffaf2;
}

.opc-scoreline strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.opc-scoreline span,
.opc-scoreline p {
  color: var(--muted);
}

.opc-checks,
.opc-report-grid,
.opc-detail-grid {
  display: grid;
  gap: 12px;
}

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

.opc-check {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.opc-check.done strong {
  color: #1f6b40;
}

.opc-check.blocked strong {
  color: #9a5b12;
}

.opc-check p {
  color: var(--muted);
  font-size: 12px;
}

.opc-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opc-module-card,
.opc-detail-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.opc-module-card h3,
.opc-detail-card h3 {
  margin: 0;
  font-size: 15px;
}

.opc-module-card p,
.opc-detail-card p,
.opc-module-card li,
.opc-detail-card li {
  color: #303835;
  line-height: 1.6;
}

.opc-module-card ul,
.opc-detail-card ul {
  margin: 0;
  padding-left: 18px;
}

.opc-json-card {
  grid-column: 1 / -1;
}

.opc-json-card pre {
  max-height: 240px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  background: #f8fbf9;
  color: #24342c;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.opc-order {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #edf5f1;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.opc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opc-actions span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2ef;
  color: #44504b;
  font-size: 12px;
  font-weight: 800;
}

.opc-timeline {
  display: grid;
  gap: 8px;
}

.opc-timeline p {
  margin: 0;
}

.opc-focus-card {
  border-left: 4px solid var(--accent);
}

.opc-evidence-row {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.opc-evidence-row:last-child {
  border-bottom: 0;
}

.opc-evidence-row strong {
  color: var(--accent-strong);
}

.opc-ledger-table {
  display: grid;
  gap: 10px;
}

.opc-ledger-table article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.opc-ledger-table small {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .opc-grid,
  .opc-v3-options,
  .opc-checks,
  .opc-report-grid,
  .opc-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .input-panel,
  .topbar .actions {
    display: none;
  }

  .app-shell {
  padding: 0;
}

.check-row.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.check-row.is-unavailable::after {
  content: "当前行业不适用";
  grid-column: 2;
  color: #8b5f1a;
  font-size: 11px;
}

  .workspace,
  .score-layout,
  .insight-layout {
    display: block;
  }

  .panel,
  .score-card,
  .radar-wrap,
  .report-panel,
  .module-card {
    box-shadow: none;
    break-inside: avoid;
  }

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

  .prompt-pack {
    max-height: none;
  }
}
