:root {
  --bg: #eef2ea;
  --panel: rgba(255, 255, 255, 0.94);
  --card: #ffffff;
  --surface: #f5f8ef;
  --surface-2: #edf4e0;
  --green-950: #08100c;
  --green-900: #123020;
  --green-850: #1c402d;
  --green-800: #26513a;
  --green-700: #3b6a4b;
  --green-600: #5c8740;
  --green-500: #87bf27;
  --green-400: #b7d77a;
  --green-300: #dce9c6;
  --green-200: #ecf4df;
  --green-100: #f5f9ee;
  --amber-100: #fff5d7;
  --amber-700: #a16f00;
  --red-100: #fde6df;
  --red-700: #ad4532;
  --blue-100: #e7efff;
  --blue-700: #2d5aa3;
  --text: #111713;
  --muted: #607066;
  --border: #d7e5ca;
  --shadow: 0 18px 40px rgba(10, 17, 12, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(135, 191, 39, 0.09), transparent 22%),
    linear-gradient(135deg, #f5f8f3 0%, #ecf1e7 55%, #e4ebdc 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.app-frame {
  min-height: calc(100vh - 48px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.topbar {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 18px 26px;
  background: linear-gradient(180deg, #0b110d 0%, #111912 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.brand-kicker,
.section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.topbar-brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  padding-left: 12px;
}

.topbar-nav-item {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.topbar-nav-item:hover,
.topbar-nav-item.is-active {
  background: var(--green-500);
  color: var(--green-950);
  transform: translateY(-1px);
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 20px;
  background: linear-gradient(180deg, #0b110d 0%, #101812 100%);
  color: #fff;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
}

.sidebar-context,
.sidebar-note {
  padding: 18px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-context h2,
.sidebar-note h3 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.sidebar-context p,
.sidebar-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
}

.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sidebar-nav-item {
  min-height: 52px;
  padding: 12px 16px;
  text-align: left;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.is-active {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(2px);
  box-shadow: inset 4px 0 0 var(--green-500);
}

.main-panel {
  min-width: 0;
  padding: 28px 32px 36px;
  overflow: auto;
}

.hero-card,
.panel-card,
.metric-card,
.table-card,
.content-card,
.upload-card,
.summary-card,
.section-card,
.empty-state,
.preview-section {
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 240, 0.96)),
    linear-gradient(135deg, #dce8cb, #bed29f);
}

.hero-head,
.toolbar-row,
.inline-head,
.table-row,
.finding-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.hero-head h2,
.content-title,
.preview-drawer-head h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.hero-head p,
.content-subtitle,
.muted-text,
.table-card p,
.content-card p,
.summary-card p,
.section-card p,
.empty-state p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.muted-text {
  margin: 0;
}

.toolbar-grid,
.content-grid,
.two-col-grid,
.three-col-grid,
.stats-grid,
.field-grid,
.card-grid,
.list-grid {
  display: grid;
  gap: 18px;
}

.toolbar-grid {
  margin-top: 22px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.toolbar-grid-no-stats {
  grid-template-columns: 1fr;
}

.risk-toolbar-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(420px, 1fr);
}

.risk-toolbar-grid .stats-grid {
  grid-template-columns: 1fr;
}

.risk-toolbar-grid .metric-card {
  min-height: 100%;
}

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

.three-col-grid {
  grid-template-columns: 1.1fr 0.95fr 1.15fr;
}

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

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

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

.report-workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.review-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(340px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.panel-card,
.metric-card,
.table-card,
.content-card,
.upload-card,
.summary-card,
.section-card,
.empty-state {
  padding: 22px;
}

.metric-card {
  position: relative;
}

.process-tab-strip {
  padding: 0 2px;
}

.source-group-card .checkbox-group {
  margin-top: 16px;
}

.review-left-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.review-left-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.review-knowledge-panel {
  padding: 0;
}

.review-knowledge-panel .divider {
  margin: 14px 0;
}

.review-knowledge-section .inline-head {
  align-items: start;
}

.review-knowledge-section h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.review-knowledge-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.review-knowledge-section .checkbox-group {
  margin-top: 14px;
  gap: 10px;
}

.review-knowledge-section .checkbox-item {
  padding: 10px 12px;
}

.review-knowledge-section .checkbox-item strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.review-knowledge-section .checkbox-item span {
  line-height: 1.55;
}

.report-editor-panel {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.report-canvas {
  min-height: calc(100vh - 420px);
  flex: 1 1 auto;
  padding: 18px 20px;
  line-height: 1.9;
  font-size: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 244, 0.98));
  border: 1px solid rgba(135, 191, 39, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-canvas-review {
  min-height: calc(100vh - 300px);
}

.checklist-card {
  border-left: 4px solid rgba(135, 191, 39, 0.52);
}

.panel-card h3,
.metric-card h3,
.table-card h3,
.content-card h3,
.upload-card h3,
.summary-card h3,
.section-card h3,
.content-card h4,
.table-card h4,
.summary-card h4 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--green-900);
}

.search-box,
.form-select,
.form-input,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.form-textarea {
  min-height: 96px;
  padding: 12px 16px;
}

.search-box:focus,
.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(135, 191, 39, 0.15);
}

.button-row,
.chip-row,
.tag-row,
.tab-row,
.pill-row,
.file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row .search-box,
.button-row .form-select {
  flex: 1 1 260px;
}

.company-summary-card p {
  max-width: 760px;
}

.primary-action,
.secondary-action,
.ghost-action,
.pill-button,
.tab-button,
.file-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: var(--green-500);
  color: var(--green-950);
  box-shadow: 0 12px 22px rgba(11, 17, 13, 0.14);
}

.primary-action[disabled],
.secondary-action[disabled],
.ghost-action[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.secondary-action {
  background: var(--green-900);
  color: #fff;
}

.ghost-action {
  background: #fff;
  color: var(--green-900);
  border: 1px solid var(--border);
}

.pill-button,
.tab-button,
.file-chip {
  min-height: 38px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid var(--border);
}

.pill-button.is-active,
.tab-button.is-active {
  background: var(--green-500);
  color: var(--green-950);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
}

.status-stable {
  background: var(--green-100);
  color: var(--green-800);
}

.status-watch {
  background: var(--amber-100);
  color: var(--amber-700);
}

.status-pressure {
  background: var(--red-100);
  color: var(--red-700);
}

.status-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-900);
}

.metric-label {
  color: var(--muted);
  line-height: 1.7;
}

.field-item,
.summary-item,
.list-item,
.upload-item,
.table-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.field-item strong,
.table-item strong,
.summary-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-900);
}

.field-item span,
.table-item span,
.summary-item span,
.list-item,
.upload-item {
  color: var(--muted);
  line-height: 1.7;
}

.field-item.is-editable {
  background: #fff;
  border-color: rgba(135, 191, 39, 0.52);
  box-shadow: inset 0 0 0 1px rgba(135, 191, 39, 0.18);
}

.field-item [contenteditable="true"] {
  display: block;
  min-height: 30px;
  padding: 6px 8px;
  margin: -6px -8px 0;
  border-radius: 8px;
  outline: none;
}

.field-item [contenteditable="true"]:focus {
  background: var(--green-100);
  box-shadow: 0 0 0 3px rgba(135, 191, 39, 0.16);
}

.field-upload-slot {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(245, 249, 238, 0.76);
}

.field-upload-slot input {
  width: 100%;
}

.field-upload-slot span {
  color: var(--muted);
}

.field-upload-slot-compact {
  padding: 10px;
}

.completion-control {
  position: relative;
  flex: 0 0 auto;
}

.completion-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.completion-trigger {
  min-width: 112px;
}

.completion-done {
  background: rgba(255, 255, 255, 0.86);
}

.completion-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 150px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  z-index: 12;
}

.completion-menu.is-open {
  display: grid;
  gap: 6px;
}

.completion-menu button {
  min-height: 38px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
}

.completion-menu button:hover {
  background: var(--green-500);
  color: var(--green-950);
}

.inventory-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, 70vw);
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  z-index: 10;
}

.metric-card:hover .inventory-popover {
  display: grid;
  gap: 8px;
}

.inventory-popover span {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 12, 0.42);
  backdrop-filter: blur(6px);
}

.completion-modal {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border-radius: 18px;
  background: rgba(247, 250, 244, 0.98);
  box-shadow: 0 32px 52px rgba(8, 16, 12, 0.22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fdfefd, #eef4e7);
}

.modal-head h3 {
  margin: 0;
  font-size: 24px;
  color: var(--green-900);
}

.modal-body {
  overflow: auto;
  padding: 22px 24px;
}

.industry-analysis-card .field-grid {
  grid-template-columns: 1fr;
}

.list-stack,
.summary-stack,
.upload-stack {
  display: grid;
  gap: 14px;
}

.content-card .field-grid {
  margin-top: 16px;
}

.analysis-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.analysis-badge-stable {
  background: var(--green-100);
  color: var(--green-800);
  border-color: var(--border);
}

.analysis-badge-watch {
  background: var(--amber-100);
  color: var(--amber-700);
  border-color: rgba(161, 111, 0, 0.16);
}

.analysis-badge-pressure {
  background: var(--red-100);
  color: var(--red-700);
  border-color: rgba(173, 69, 50, 0.18);
}

.graph-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ownership-map-panel,
.finance-headline-card,
.finance-dimension-card,
.finance-panel-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 245, 0.94));
  box-shadow: var(--shadow);
}

.ownership-map-panel,
.finance-headline-card,
.finance-dimension-card,
.finance-panel-card {
  padding: 24px;
}

.ownership-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin-top: 20px;
}

.graph-branch,
.graph-core,
.graph-cluster {
  position: relative;
}

.graph-branch::after,
.graph-core::before,
.graph-core::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(135, 191, 39, 0), rgba(135, 191, 39, 0.55), rgba(135, 191, 39, 0));
}

.graph-branch-left::after {
  right: -12px;
  width: 28px;
}

.graph-core::before {
  left: -18px;
  width: 20px;
}

.graph-core::after {
  right: -18px;
  width: 20px;
}

.graph-branch-title {
  margin-bottom: 14px;
}

.graph-branch-title h4,
.finance-section-head h3,
.dimension-head h4 {
  margin: 0;
  font-size: 20px;
  color: var(--green-900);
}

.graph-branch-title p,
.finance-section-head p,
.check-item p,
.finance-dimension-card p,
.graph-core-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.graph-node-stack,
.finance-dashboard,
.finance-section,
.dimension-metrics,
.finance-bullet-list,
.trend-group,
.check-item {
  display: grid;
  gap: 14px;
}

.graph-node {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.graph-node::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
}

.graph-node-person::before {
  background: linear-gradient(180deg, #86be29, #5c8740);
}

.graph-node-related::before {
  background: linear-gradient(180deg, #0a7862, #1d4f41);
}

.graph-node-change::before {
  background: linear-gradient(180deg, #d86f51, #ad4532);
}

.graph-node strong,
.graph-core-card h3 {
  display: block;
  color: var(--green-900);
}

.graph-node strong {
  font-size: 17px;
}

.graph-node span,
.graph-node p,
.finance-bullet-item,
.dimension-metric-row span,
.trend-group-label,
.mini-trend-row span,
.mini-trend-row strong,
.check-item-head strong {
  color: var(--muted);
  line-height: 1.7;
}

.graph-core {
  display: grid;
  align-items: center;
}

.graph-core-card {
  position: relative;
  padding: 30px 24px;
  border-radius: 22px;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(135, 191, 39, 0.18), transparent 45%),
    linear-gradient(180deg, #fdfefb 0%, #eff5e7 100%);
  border: 1px solid rgba(135, 191, 39, 0.24);
  text-align: center;
}

.graph-core-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.graph-core-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.28;
}

.graph-core-metrics {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.graph-core-metrics div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(135, 191, 39, 0.16);
}

.graph-core-metrics strong,
.dimension-metric-row strong,
.mini-trend-row strong,
.check-item-head strong {
  color: var(--green-900);
}

.graph-core-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.graph-cluster {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.graph-cluster-change {
  background: linear-gradient(180deg, rgba(255, 247, 244, 0.92), rgba(255, 255, 255, 0.7));
}

.finance-headline-card {
  background:
    radial-gradient(circle at right top, rgba(135, 191, 39, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 239, 0.96));
}

.finance-section {
  gap: 18px;
}

.finance-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 6px 2px 0;
}

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

.finance-dimension-card-stable,
.finance-panel-card-stable {
  border: 1px solid rgba(135, 191, 39, 0.22);
}

.finance-dimension-card-watch,
.finance-panel-card-watch {
  border: 1px solid rgba(161, 111, 0, 0.2);
}

.finance-dimension-card-pressure,
.finance-panel-card-pressure {
  border: 1px solid rgba(173, 69, 50, 0.2);
}

.dimension-head,
.check-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.dimension-metric-row,
.mini-trend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(215, 229, 202, 0.7);
}

.dimension-metric-row:last-child,
.mini-trend-row:last-child {
  border-bottom: 0;
}

.dimension-metric-row strong {
  font-size: 18px;
}

.finance-panel-card {
  gap: 16px;
}

.finance-bullet-list {
  gap: 10px;
}

.finance-bullet-item {
  position: relative;
  padding-left: 18px;
}

.finance-bullet-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-500);
}

.trend-group {
  gap: 10px;
}

.trend-group-label {
  font-weight: 700;
  color: var(--green-900);
}

.mini-trend {
  display: grid;
  gap: 10px;
}

.mini-trend-row {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  padding: 0;
}

.mini-trend-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--green-200);
  overflow: hidden;
}

.mini-trend-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
}

.check-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.divider {
  height: 1px;
  margin: 16px 0;
  background: var(--border);
}

.checkbox-group {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.checkbox-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.checkbox-item input {
  margin-top: 4px;
}

.checkbox-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-900);
}

.checkbox-item span {
  color: var(--muted);
  line-height: 1.7;
}

.table-card {
  overflow: hidden;
}

.table-stack {
  display: grid;
  gap: 12px;
}

.table-head {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--green-900);
  font-weight: 700;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: start;
}

.table-row span {
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  margin-top: 20px;
  border: 1px dashed var(--border);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 12, 0.44);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  z-index: 24;
}

.preview-drawer {
  width: min(980px, calc(100vw - 48px));
  height: 100%;
  border-radius: 18px;
  background: rgba(247, 250, 244, 0.98);
  box-shadow: 0 32px 52px rgba(8, 16, 12, 0.22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.preview-drawer-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fdfefd, #eef4e7);
}

.preview-drawer-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.preview-outline {
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  background: #f5f8ef;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.preview-nav-item {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--green-900);
  text-align: left;
  font-weight: 700;
}

.preview-nav-item.is-active {
  background: var(--green-500);
  color: var(--green-950);
}

.preview-article {
  padding: 24px 28px;
  overflow: auto;
  display: grid;
  gap: 18px;
}

.preview-section {
  padding: 22px;
  border: 1px solid var(--border);
}

.preview-section h4 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--green-900);
}

.preview-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.preview-section.is-target {
  box-shadow: 0 0 0 3px rgba(135, 191, 39, 0.16);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1320px) {
  .toolbar-grid,
  .two-col-grid,
  .three-col-grid,
  .report-workspace-grid,
  .review-workspace-grid,
  .card-grid,
  .field-grid,
  .ownership-map,
  .finance-dimension-grid {
    grid-template-columns: 1fr;
  }

  .graph-branch::after,
  .graph-core::before,
  .graph-core::after {
    display: none;
  }
}

@media (max-width: 1180px) {
  .workspace,
  .topbar,
  .preview-drawer-body {
    grid-template-columns: 1fr;
  }

  .topbar-nav {
    justify-content: flex-start;
  }

  .preview-outline {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

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

  .main-panel,
  .sidebar,
  .topbar {
    padding: 18px;
  }

  .hero-head,
  .toolbar-row,
  .inline-head,
  .finding-head,
  .finance-section-head,
  .dimension-head,
  .check-item-head {
    flex-direction: column;
    align-items: start;
  }

  .stats-grid,
  .table-head,
  .table-row {
    grid-template-columns: 1fr;
  }

  .graph-core-card h3 {
    font-size: 24px;
  }

  .mini-trend-row {
    grid-template-columns: 1fr;
  }
}
