:root {
  --ink: #17201c;
  --muted: #66746f;
  --line: #d9dfd7;
  --paper: #f7f8f2;
  --panel: #ffffff;
  --field: #eef2ea;
  --green: #0f8b68;
  --blue: #2f65b8;
  --gold: #af7b21;
  --red: #b84d3f;
  --charcoal: #24322d;
  --shadow: 0 18px 50px rgba(36, 50, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 139, 104, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 101, 184, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--green);
  color: var(--green);
}

input,
select {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 0;
}

#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-block {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

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

h2 {
  font-size: 28px;
  line-height: 1.15;
}

#db-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.search-block label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.search-row button,
.table-toolbar button,
.primary-button,
.secondary-button {
  border-radius: 6px;
  min-height: 40px;
}

.primary-button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  padding: 0 16px;
}

.secondary-button {
  padding: 0 14px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-button {
  text-align: left;
  border-radius: 6px;
  padding: 12px;
  background: transparent;
}

.nav-link {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(15, 139, 104, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover {
  border-color: var(--green);
  color: var(--green);
}

.nav-button.is-active {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

#health-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

#health-dot.ok {
  background: var(--green);
}

.main {
  padding: 28px;
  min-width: 0;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.embedded-review-frame {
  width: 100%;
  min-height: calc(100vh - 56px);
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.inline-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  box-shadow: var(--shadow);
}

.kpi .label {
  color: var(--muted);
  font-size: 12px;
}

.kpi .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.kpi .value.smaller {
  font-size: 20px;
}

.kpi .note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ds-migration-overview {
  margin-bottom: 16px;
}

.ds-migration-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.ds-migration-card {
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.ds-migration-card span,
.ds-migration-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ds-migration-card strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.25;
  word-break: break-word;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lifecycle-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.lifecycle-summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.lifecycle-summary-card span,
.lifecycle-summary-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lifecycle-summary-card strong {
  display: block;
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lifecycle-model-grid {
  margin-bottom: 14px;
}

.lifecycle-methodology-panel {
  margin-bottom: 14px;
}

.lifecycle-methodology {
  display: grid;
  gap: 14px;
}

.lifecycle-secondary-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  overflow: hidden;
}

.lifecycle-secondary-menu summary {
  list-style: none;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 14px 16px;
}

.lifecycle-secondary-menu summary::-webkit-details-marker {
  display: none;
}

.lifecycle-secondary-menu summary span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.lifecycle-secondary-menu summary strong {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lifecycle-secondary-menu summary small {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.lifecycle-secondary-menu[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f8faf5;
}

.lifecycle-secondary-menu[open] summary small {
  color: var(--green);
}

.lifecycle-secondary-menu[open] summary small::before {
  content: '收起';
}

.lifecycle-secondary-menu[open] summary small {
  font-size: 0;
}

.lifecycle-secondary-menu[open] summary small::before {
  font-size: 12px;
}

.lifecycle-secondary-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.lifecycle-priority-callout,
.lifecycle-standard-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.lifecycle-secondary-body.lifecycle-priority-callout {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lifecycle-priority-callout > div:first-child span,
.lifecycle-standard-title span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.lifecycle-priority-callout > div:first-child strong,
.lifecycle-standard-title strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.35;
}

.lifecycle-priority-callout > div:first-child p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.lifecycle-priority-grid,
.lifecycle-step-grid,
.lifecycle-standard-grid {
  display: grid;
  gap: 10px;
}

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

.lifecycle-step-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.lifecycle-standard-grid.is-demand {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lifecycle-priority-grid article,
.lifecycle-standard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  min-width: 0;
}

.lifecycle-priority-grid b,
.lifecycle-standard-card b {
  color: var(--green);
  font-size: 12px;
}

.lifecycle-priority-grid strong,
.lifecycle-standard-card strong {
  display: block;
  margin: 4px 0 6px;
  line-height: 1.35;
}

.lifecycle-priority-grid p,
.lifecycle-standard-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lifecycle-standard-card p:last-child {
  margin-bottom: 0;
}

.lifecycle-steps,
.lifecycle-states {
  display: grid;
  gap: 10px;
}

.lifecycle-step,
.lifecycle-state {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 10px;
  background: #f8faf5;
  display: grid;
  gap: 5px;
}

.lifecycle-step b {
  color: var(--green);
  font-size: 12px;
}

.lifecycle-step strong,
.lifecycle-state strong {
  line-height: 1.35;
}

.lifecycle-step span,
.lifecycle-state span,
.lifecycle-step p,
.lifecycle-state p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lifecycle-state div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lifecycle-state em {
  border-radius: 999px;
  background: #e7f4ee;
  color: var(--green);
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
}

.lifecycle-customer-panel {
  margin-top: 0;
}

.lifecycle-customer-cards {
  display: grid;
  gap: 12px;
}

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

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

.lifecycle-card-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lifecycle-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.lifecycle-card-head strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.lifecycle-card-head b {
  border-radius: 999px;
  background: #fff5df;
  color: var(--gold);
  padding: 5px 10px;
  white-space: nowrap;
}

.lifecycle-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lifecycle-card-metrics span {
  background: var(--field);
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}

.lifecycle-profile {
  line-height: 1.55;
}

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

.lifecycle-task-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8faf5;
  min-width: 0;
}

.lifecycle-task-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.lifecycle-task-grid p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.lifecycle-task-grid p span {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list code {
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  padding: 3px 7px;
  font-size: 11px;
}

.message-variant {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}

.message-variant:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.h5-screen-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.h5-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.h5-actions button {
  border-radius: 6px;
  padding: 8px 10px;
  cursor: default;
}

.h5-actions button:first-child {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.ab-footer {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.ab-footer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lifecycle-batch-panel {
  margin-top: 14px;
}

.lifecycle-batch20-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.lifecycle-batch20-summary article {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.lifecycle-batch20-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.lifecycle-batch20-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.lifecycle-batch20-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 560px;
}

.ai-insight-panel {
  margin-top: 14px;
}

.ai-insight-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.ai-insight-title-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: -4px;
}

.ai-insight-blocker {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 10px;
  margin: 12px 0;
}

.ai-insight-blocker article,
.ai-insight-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  padding: 10px;
  min-width: 0;
}

.ai-insight-blocker article:first-child {
  border-left: 5px solid var(--gold);
}

.ai-insight-blocker span,
.ai-insight-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ai-insight-blocker strong,
.ai-insight-summary strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.ai-insight-blocker p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}

.ai-insight-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ai-insight-summary strong {
  font-size: 20px;
}

.ai-insight-workbench {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ai-insight-customer-list {
  display: grid;
  gap: 8px;
  max-height: 760px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 8px;
}

.ai-insight-customer-button {
  text-align: left;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.ai-insight-customer-button.is-active {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
  background: #f5fbf7;
}

.ai-insight-customer-button span {
  color: var(--muted);
  font-size: 12px;
}

.ai-insight-customer-button strong {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ai-insight-customer-button small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ai-insight-customer-button b {
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.ai-insight-detail {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.ai-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  padding: 14px;
}

.ai-detail-head span {
  color: var(--muted);
  font-size: 12px;
}

.ai-detail-head h3 {
  margin: 4px 0;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.ai-detail-head p {
  color: var(--ink);
  line-height: 1.55;
}

.ai-detail-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 170px;
}

.ai-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-detail-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.ai-detail-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ai-detail-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.ai-warning-strip {
  border: 1px solid #f1d39c;
  border-radius: 8px;
  background: #fff8e8;
  color: #6d4d14;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.ai-warning-strip span {
  font-size: 12px;
  line-height: 1.5;
}

.ai-audit-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-audit-contract article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  padding: 10px;
  min-width: 0;
}

.ai-audit-contract span,
.ai-workflow-title span,
.ai-workflow-meta span,
.ai-workflow-section small,
.ai-workflow-boundary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ai-audit-contract strong {
  display: block;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.35;
}

.ai-audit-contract p,
.ai-workflow-policy,
.ai-workflow-calibration {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-brief-flow {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf5;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ai-brief-flow-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ai-brief-flow-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ai-brief-flow-head strong {
  color: var(--ink);
  font-size: 14px;
}

.ai-brief-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-brief-flow article {
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.ai-brief-flow b,
.ai-brief-flow p,
.ai-brief-flow small {
  margin: 0;
  line-height: 1.45;
}

.ai-brief-flow b {
  font-size: 12px;
}

.ai-brief-flow p {
  color: var(--ink);
  font-size: 12px;
}

.ai-brief-flow small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ai-conclusion-grid {
  display: grid;
  gap: 8px;
}

.ai-conclusion-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ai-conclusion-card summary {
  list-style: none;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 12px;
}

.ai-conclusion-card summary::-webkit-details-marker {
  display: none;
}

.ai-conclusion-card summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ai-conclusion-card summary strong {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-conclusion-card summary b {
  border-radius: 999px;
  background: #e7f4ee;
  color: var(--green);
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
}

.ai-conclusion-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f8faf5;
}

.ai-conclusion-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.ai-conclusion-body h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.ai-conclusion-body ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.ai-model-data-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  padding: 12px;
  display: grid;
  gap: 12px;
}

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

.ai-model-data-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.ai-model-data-grid h4,
.ai-model-data-grid p,
.ai-model-data-grid ol {
  margin: 0;
}

.ai-model-data-grid h4 {
  margin-bottom: 8px;
  font-size: 13px;
}

.ai-model-data-grid p,
.ai-model-data-grid ol {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.ai-workflow-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.ai-workflow-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.ai-workflow-title h4,
.ai-workflow-section h5 {
  margin: 0;
}

.ai-workflow-title h4 {
  font-size: 14px;
}

.ai-workflow-section h5 {
  font-size: 13px;
}

.ai-workflow-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-workflow-meta article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  min-width: 0;
}

.ai-workflow-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-workflow-section {
  display: grid;
  gap: 8px;
}

.ai-input-field-list,
.ai-workflow-boundary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-input-field-list span,
.ai-workflow-boundary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
  overflow-wrap: anywhere;
}

.ds-h5-review-mirror {
  display: grid;
  gap: 12px;
}

.ds-h5-review-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ds-h5-review-title h2 {
  font-size: 24px;
}

.ds-h5-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-summary-grid article,
.ds-h5-main-card,
.ds-h5-side-card,
.ds-h5-hero-card,
.ds-h5-section,
.ds-h5-metric,
.ds-h5-analysis-grid article,
.ds-h5-support-grid article,
.ds-h5-verification-grid article,
.ds-h5-boundary-grid article,
.ds-h5-hook-board article,
.ds-h5-goal-board article,
.ds-h5-angle-grid article,
.ds-h5-readonly-script {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.ds-h5-summary-grid article {
  padding: 10px;
  min-width: 0;
}

.ds-h5-summary-grid span,
.ds-h5-summary-grid em,
.ds-h5-section-title span,
.ds-h5-section-title b,
.ds-h5-metric span,
.ds-h5-metric em,
.ds-h5-chip-stack span,
.ds-h5-phone small,
.ds-h5-phone-top,
.ds-h5-phone-facts span,
.ds-h5-log-list span,
.ds-h5-feedback-label span,
.ds-h5-map-grid span,
.ds-h5-score-grid span,
.ds-h5-hook-board span,
.ds-h5-goal-board span,
.ds-h5-angle-grid span,
.ds-h5-readonly-script span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.ds-h5-summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.ds-h5-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  align-items: start;
}

.ds-h5-main-card,
.ds-h5-side-card {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.ds-h5-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-h5-section-title strong {
  font-size: 16px;
}

.ds-h5-section-title b {
  margin-left: auto;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--green);
  padding: 4px 8px;
}

.ds-h5-hero-card {
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #fbfdf9;
}

.ds-h5-hero-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ds-h5-hero-card h3,
.ds-h5-section h4 {
  margin: 4px 0;
}

.ds-h5-hero-card span,
.ds-h5-section p,
.ds-h5-list,
.ds-h5-support-grid dd,
.ds-h5-support-grid dt,
.ds-h5-analysis-grid small {
  font-size: 12px;
  line-height: 1.55;
}

.ds-h5-chip-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 240px;
}

.ds-h5-chip-stack span {
  border-radius: 999px;
  background: #edf5f0;
  color: var(--green);
  padding: 4px 8px;
  font-weight: 700;
}

.ds-h5-metric-grid,
.ds-h5-truth-grid,
.ds-h5-task-metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-truth-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-h5-task-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-h5-metric {
  padding: 10px;
  background: #fff;
  min-width: 0;
}

.ds-h5-metric strong {
  display: block;
  margin: 4px 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ds-h5-section {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ds-h5-section h4 {
  font-size: 14px;
}

.ds-h5-hook-board {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-hook-board article,
.ds-h5-goal-board article,
.ds-h5-angle-grid article,
.ds-h5-readonly-script {
  padding: 10px;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ds-h5-hook-board article.is-primary {
  background: #eef7f2;
  border-color: #d4eadf;
}

.ds-h5-hook-board strong,
.ds-h5-goal-board strong,
.ds-h5-angle-grid strong {
  overflow-wrap: anywhere;
}

.ds-h5-hook-board p,
.ds-h5-goal-board p,
.ds-h5-angle-grid p,
.ds-h5-readonly-script p,
.ds-h5-angle-grid blockquote {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ds-h5-goal-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-goal-board .ds-h5-action-row {
  grid-column: 1 / -1;
}

.ds-h5-angle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-angle-grid article.is-selected {
  background: #f4faf6;
  border-color: #9dcfba;
}

.ds-h5-angle-grid blockquote {
  border-left: 3px solid var(--green);
  background: #f8faf5;
  border-radius: 8px;
  padding: 8px;
}

.ds-h5-angle-grid button {
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

.ds-h5-readonly-script {
  background: #fbfdf9;
}

.ds-h5-readonly-script em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ds-h5-analysis-grid,
.ds-h5-support-grid,
.ds-h5-verification-grid,
.ds-h5-boundary-grid {
  display: grid;
  gap: 8px;
}

.ds-h5-analysis-grid {
  grid-template-columns: 1.4fr 1fr 0.8fr;
}

.ds-h5-support-grid,
.ds-h5-verification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.ds-h5-analysis-grid article,
.ds-h5-support-grid article,
.ds-h5-verification-grid article,
.ds-h5-boundary-grid article {
  padding: 10px;
  min-width: 0;
}

.ds-h5-analysis-grid strong,
.ds-h5-support-grid strong,
.ds-h5-verification-grid strong,
.ds-h5-boundary-grid strong {
  display: block;
  margin-bottom: 6px;
}

.ds-h5-support-grid dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ds-h5-support-grid dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
}

.ds-h5-support-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.ds-h5-support-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ds-h5-score-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f2;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ds-h5-score-card p {
  margin: 0;
}

.ds-h5-score-card b {
  color: var(--green);
  white-space: nowrap;
}

.ds-h5-score-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-score-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.ds-h5-score-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 17px;
}

.ds-h5-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.ds-h5-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ds-h5-script-tabs,
.ds-h5-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ds-h5-script-tabs button,
.ds-h5-action-row button {
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 30px;
  font-size: 12px;
}

.ds-h5-script-tabs button.is-active {
  border-color: var(--green);
  background: #e8f5ef;
  color: var(--green);
}

.ds-h5-section textarea,
.ds-h5-feedback-label textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 72px;
  padding: 10px;
  resize: vertical;
  font: inherit;
}

.ds-h5-feedback-label {
  display: grid;
  gap: 6px;
}

.ds-h5-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ds-h5-map-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
  padding: 10px;
}

.ds-h5-map-grid strong {
  display: block;
  margin: 4px 0;
}

.ds-h5-boundary-grid .is-danger {
  border-color: #edd4ce;
  background: #fff8f6;
}

.ds-h5-side {
  display: grid;
  gap: 12px;
}

.ds-h5-phone {
  width: min(100%, 280px);
  margin: 0 auto;
  border: 1px solid #e2ece6;
  border-radius: 24px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(36, 50, 45, 0.1);
  display: grid;
  gap: 12px;
}

.ds-h5-phone-top,
.ds-h5-phone-facts,
.ds-h5-phone-tabs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ds-h5-phone h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.ds-h5-phone p {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.ds-h5-phone-visual {
  height: 86px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff8f4, #dceee6);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 24px;
}

.ds-h5-phone-facts {
  flex-wrap: wrap;
}

.ds-h5-phone-facts article {
  flex: 1 1 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  padding: 8px;
}

.ds-h5-phone-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.ds-h5-phone-notice {
  border-radius: 8px;
  background: #eaf6f0;
  color: var(--green);
  padding: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.ds-h5-phone button {
  border-radius: 8px;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  padding: 10px;
  font-weight: 700;
}

.ds-h5-phone-tabs {
  justify-content: center;
}

.ds-h5-phone-tabs span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--muted);
  font-size: 10px;
}

.ds-h5-phone-tabs span.is-active {
  border-color: var(--green);
  color: var(--green);
}

.ds-h5-gate-list {
  display: grid;
  gap: 8px;
}

.ds-h5-gate-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
}

.ds-h5-log-list {
  display: grid;
  gap: 8px;
}

.ds-h5-log-list article {
  border-left: 3px solid var(--green);
  background: #f8faf5;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.ai-audit-row-grid {
  display: grid;
  gap: 7px;
}

.ai-audit-row-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-audit-row-grid article {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ai-audit-row-grid strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ai-audit-row-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-audit-row-grid b {
  color: var(--ink);
  margin-right: 6px;
}

.ai-audit-empty {
  color: var(--muted);
  font-size: 12px;
}

.ai-json-block {
  display: grid;
  gap: 8px;
}

.ai-json-block pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f4;
  color: var(--ink);
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

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

.ai-score-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 9px;
}

.ai-score-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ai-score-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.lifecycle-ops-panel {
  margin-top: 14px;
}

.lifecycle-ops-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.lifecycle-ops-summary article {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.lifecycle-ops-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.lifecycle-ops-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

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

.lifecycle-ops-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.advisor-review-list,
.feedback-unit-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.advisor-review-item,
.feedback-unit-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.review-item-head {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.review-item-head strong,
.feedback-unit-item strong {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.advisor-review-item p,
.feedback-unit-item p {
  margin: 0;
  line-height: 1.45;
  font-size: 13px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manual-send-gate {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.manual-send-gate strong,
.manual-send-gate span {
  overflow-wrap: anywhere;
}

.manual-send-button {
  width: fit-content;
  border-radius: 6px;
  border: 1px solid #86b89a;
  background: #eaf6ee;
  color: #1f6b3d;
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
}

.outcome-actions,
.todo-actions,
.admin-source-sync-actions,
.admin-source-sync-execution-actions,
.product-copy-review-actions,
.h5-publish-review-actions,
.h5-publish-execution-actions,
.h5-engagement-actions,
.h5-formal-outcome-actions,
.h5-post-formal-followup-actions,
.h5-no-conversion-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-actions button,
.outcome-actions button,
.todo-actions button,
.admin-source-sync-actions button,
.admin-source-sync-execution-actions button,
.product-copy-review-actions button,
.h5-publish-review-actions button,
.h5-publish-execution-actions button,
.h5-engagement-actions button,
.h5-formal-outcome-actions button,
.h5-post-formal-followup-actions button,
.h5-no-conversion-review-actions button {
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}

.review-action-status,
.outcome-action-status,
.manual-send-status,
.admin-todo-status,
.admin-source-sync-status,
.admin-source-sync-execution-status,
.product-copy-review-status,
.h5-publish-review-status,
.h5-publish-execution-status,
.h5-engagement-status,
.h5-formal-outcome-status,
.h5-post-formal-followup-status,
.h5-no-conversion-review-status {
  min-height: 18px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.45;
}

.feedback-unit-item span {
  color: var(--muted);
  font-size: 12px;
}

.advisor-event-log,
.outcome-event-log,
.manual-send-event-log,
.post-send-followup-log,
.next-round-action-log,
.admin-todo-log {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.advisor-event-log h4,
.outcome-event-log h4,
.manual-send-event-log h4,
.post-send-followup-log h4,
.next-round-action-log h4,
.admin-todo-log h4 {
  margin: 0;
  font-size: 14px;
}

.advisor-event-log article,
.outcome-event-log article,
.manual-send-event-log article,
.post-send-followup-log article,
.next-round-action-log article,
.admin-todo-log article {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 5px;
}

.advisor-event-log article span,
.outcome-event-log article span,
.manual-send-event-log article span,
.post-send-followup-log article span,
.next-round-action-log article span,
.admin-todo-log article span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.outcome-event-log article {
  border-left-color: var(--blue);
}

.manual-send-event-log article {
  border-left-color: #1f6b3d;
}

.post-send-followup-log article {
  border-left-color: #b7791f;
}

.next-round-action-log article {
  border-left-color: #7c3aed;
}

.admin-todo-log article {
  border-left-color: #0f766e;
}

.admin-todo-event-log,
.admin-source-sync-log,
.admin-source-sync-event-log,
.admin-source-sync-execution-log,
.mvp-result-scorecard-log,
.real-business-backfill-log,
.product-classification-seed-log,
.product-classification-review-log,
.product-classification-review-event-log,
.product-classification-execution-log,
.product-classification-import-log,
.product-classification-import-readiness-log,
.product-classification-recompute-log,
.product-classification-impact-log,
.traceability-log,
.customer-detail-log,
.h5-publish-gate-log,
.h5-publish-review-event-log,
.h5-publish-execution-event-log,
.h5-engagement-event-log,
.h5-feedback-learning-bridge-log,
.h5-formal-outcome-event-log,
.h5-post-formal-followup-log,
.h5-post-formal-followup-event-log,
.h5-no-conversion-review-log,
.h5-no-conversion-review-event-log,
.product-copy-review-log,
.product-copy-review-event-log,
.gate-recalculation-log {
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.admin-todo-event-log h4,
.admin-source-sync-log h4,
.admin-source-sync-event-log h4,
.admin-source-sync-execution-log h4,
.mvp-result-scorecard-log h4,
.real-business-backfill-log h4,
.product-classification-seed-log h4,
.product-classification-review-log h4,
.product-classification-review-event-log h4,
.product-classification-execution-log h4,
.product-classification-import-log h4,
.product-classification-import-readiness-log h4,
.product-classification-recompute-log h4,
.product-classification-impact-log h4,
.traceability-log h4,
.customer-detail-log h4,
.h5-publish-gate-log h4,
.h5-publish-review-event-log h4,
.h5-publish-execution-event-log h4,
.h5-engagement-event-log h4,
.h5-feedback-learning-bridge-log h4,
.h5-formal-outcome-event-log h4,
.h5-post-formal-followup-log h4,
.h5-post-formal-followup-event-log h5,
.h5-no-conversion-review-log h4,
.h5-no-conversion-review-event-log h5,
.product-copy-review-log h4,
.product-copy-review-event-log h4,
.gate-recalculation-log h4 {
  margin: 0;
  font-size: 13px;
}

.admin-todo-event-log article {
  border-left-color: #155e75;
}

.admin-source-sync-log article {
  border-left-color: #334155;
}

.admin-source-sync-event-log article {
  border-left-color: #2563eb;
}

.admin-source-sync-execution-log article {
  border-left-color: #0f766e;
}

.mvp-result-scorecard-log article {
  border-left-color: #b45309;
}

.real-business-backfill-log article {
  border-left-color: #7c2d12;
}

.product-classification-seed-log article {
  border-left-color: #0f766e;
}

.product-classification-review-log article {
  border-left-color: #0369a1;
}

.product-classification-review-event-log article {
  border-left-color: #4338ca;
}

.product-classification-execution-log article {
  border-left-color: #7c3aed;
}

.product-classification-import-log article {
  border-left-color: #0d9488;
}

.product-classification-import-readiness-log article {
  border-left-color: #a16207;
}

.product-classification-recompute-log article {
  border-left-color: #be185d;
}

.product-classification-impact-log article {
  border-left-color: #b45309;
}

.traceability-log article {
  border-left-color: #4f46e5;
}

.customer-detail-log article {
  border-left-color: #be185d;
}

.h5-publish-gate-log article {
  border-left-color: #2563eb;
}

.h5-publish-review-event-log article {
  border-left-color: #1d4ed8;
}

.h5-publish-execution-event-log article {
  border-left-color: #0369a1;
}

.h5-engagement-event-log article {
  border-left-color: #0f766e;
}

.h5-feedback-learning-bridge-log article {
  border-left-color: #15803d;
}

.h5-formal-outcome-event-log article {
  border-left-color: #047857;
}

.h5-post-formal-followup-log article {
  border-left-color: #0e7490;
}

.h5-post-formal-followup-event-log article {
  border-left-color: #0891b2;
}

.h5-no-conversion-review-log article {
  border-left-color: #7c3aed;
}

.h5-no-conversion-review-event-log article {
  border-left-color: #6d28d9;
}

.product-copy-review-log article {
  border-left-color: #b45309;
}

.product-copy-review-event-log article {
  border-left-color: #92400e;
}

.gate-recalculation-log article {
  border-left-color: #64748b;
}

.traceability-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.traceability-summary span,
.customer-detail-summary span,
.h5-publish-gate-summary span,
.h5-publish-review-summary span,
.h5-publish-execution-summary span,
.h5-engagement-summary span,
.h5-feedback-learning-bridge-summary span,
.h5-formal-outcome-summary span,
.h5-post-formal-followup-summary span,
.h5-post-formal-followup-event-summary span,
.h5-feedback-angle-list span,
.h5-no-conversion-review-summary span,
.h5-no-conversion-reason-list span,
.h5-no-conversion-review-event-summary span,
.admin-source-sync-event-summary span,
.admin-source-sync-execution-summary span,
.mvp-result-scorecard-summary span,
.real-business-backfill-summary span,
.real-business-sql-summary span,
.product-classification-seed-summary span,
.product-classification-review-summary span,
.product-classification-execution-summary span,
.product-classification-import-summary span,
.product-classification-import-actions span,
.product-classification-import-readiness-summary span,
.product-classification-recompute-summary span,
.product-classification-recompute-gates span,
.product-classification-impact-summary span,
.product-classification-impact-sql-summary span,
.product-classification-sql-summary span,
.product-copy-review-summary span,
.gate-recalculation-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f7ff;
  color: #4338ca;
  font-size: 12px;
  padding: 5px 9px;
}

.customer-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-publish-gate-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-publish-review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-publish-execution-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-engagement-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-feedback-learning-bridge-summary,
.h5-formal-outcome-summary,
.h5-post-formal-followup-summary,
.h5-post-formal-followup-event-summary,
.h5-feedback-angle-list,
.h5-no-conversion-review-summary,
.h5-no-conversion-reason-list,
.h5-no-conversion-review-event-summary,
.admin-source-sync-event-summary,
.admin-source-sync-execution-summary,
.mvp-result-scorecard-summary,
.real-business-backfill-summary,
.real-business-sql-summary,
.product-classification-seed-summary,
.product-classification-review-summary,
.product-classification-execution-summary,
.product-classification-import-summary,
.product-classification-import-actions,
.product-classification-import-readiness-summary,
.product-classification-recompute-summary,
.product-classification-recompute-gates,
.product-classification-impact-summary,
.product-classification-impact-sql-summary,
.product-classification-sql-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-copy-review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gate-recalculation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-detail-summary span {
  background: #fff7fb;
  color: #9d174d;
}

.h5-publish-gate-summary span {
  background: #eff6ff;
  color: #1d4ed8;
}

.h5-publish-review-summary span {
  background: #eef6ff;
  color: #1e40af;
}

.h5-publish-execution-summary span {
  background: #f0f9ff;
  color: #075985;
}

.h5-engagement-summary span {
  background: #f0fdfa;
  color: #0f766e;
}

.h5-feedback-learning-bridge-summary span,
.h5-formal-outcome-summary span,
.h5-post-formal-followup-summary span,
.h5-post-formal-followup-event-summary span,
.h5-feedback-angle-list span,
.h5-no-conversion-review-summary span,
.h5-no-conversion-reason-list span,
.h5-no-conversion-review-event-summary span,
.admin-source-sync-event-summary span,
.admin-source-sync-execution-summary span {
  background: #f0fdf4;
  color: #166534;
}

.mvp-result-scorecard-summary span {
  background: #fffbeb;
  color: #92400e;
}

.real-business-backfill-summary span,
.real-business-sql-summary span {
  background: #fff7ed;
  color: #7c2d12;
}

.product-classification-seed-summary span,
.product-classification-sql-summary span {
  background: #f0fdfa;
  color: #0f766e;
}

.product-copy-review-summary span {
  background: #fff7ed;
  color: #9a3412;
}

.gate-recalculation-summary span {
  background: #f8fafc;
  color: #334155;
}

.customer-detail-log article p,
.customer-detail-log article small,
.h5-publish-gate-log article p,
.h5-publish-gate-log article small,
.h5-publish-review-event-log article p,
.h5-publish-review-event-log article small,
.h5-publish-execution-event-log article p,
.h5-publish-execution-event-log article small,
.h5-engagement-event-log article p,
.h5-engagement-event-log article small,
.h5-feedback-learning-bridge-log article p,
.h5-feedback-learning-bridge-log article small,
.h5-formal-outcome-event-log article p,
.h5-formal-outcome-event-log article small,
.h5-post-formal-followup-log article p,
.h5-post-formal-followup-log article small,
.h5-no-conversion-review-log article p,
.h5-no-conversion-review-log article small,
.h5-no-conversion-review-event-log article p,
.h5-no-conversion-review-event-log article small,
.admin-source-sync-event-log article p,
.admin-source-sync-event-log article small,
.admin-source-sync-execution-log article p,
.admin-source-sync-execution-log article small,
.product-copy-review-log article p,
.product-copy-review-log article small,
.gate-recalculation-log article p,
.gate-recalculation-log article small {
  margin: 0;
  line-height: 1.45;
}

.customer-detail-log article small,
.h5-publish-gate-log article small,
.h5-publish-review-event-log article small,
.h5-publish-execution-event-log article small,
.h5-engagement-event-log article small,
.h5-feedback-learning-bridge-log article small,
.h5-formal-outcome-event-log article small,
.h5-post-formal-followup-log article small,
.product-copy-review-log article small,
.gate-recalculation-log article small {
  color: var(--muted);
  font-size: 12px;
}

.post-send-followup-log small,
.next-round-action-log small,
.admin-todo-log small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.todo-column-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.todo-column-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf9;
  color: #0f766e;
  font-size: 12px;
  padding: 5px 9px;
}

.rule-candidate-section {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.rule-candidate-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.rule-candidate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.rule-candidate-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.rule-candidate-head {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.rule-candidate-head strong {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.rule-candidate-item span,
.rule-candidate-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.rule-candidate-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.rule-candidate-metrics b {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px;
  text-align: center;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 260px) 1fr 82px;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
}

.bar-label {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.bar-track {
  height: 12px;
  background: var(--field);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.section-pill {
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 8px;
  padding: 10px;
  min-height: 78px;
}

.section-pill strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

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

.browser-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
}

.entity-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  box-shadow: var(--shadow);
}

.entity-button {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 7px;
}

.entity-button.is-active {
  background: #e6f3ed;
  border-color: var(--green);
}

.entity-button code,
.selected-entity-head code,
.dictionary-row code {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.entity-meta {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.table-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.selected-entity-head {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.selected-entity-head strong {
  font-size: 18px;
}

.selected-entity-head p {
  color: var(--muted);
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 42px 42px;
  gap: 8px;
  margin-bottom: 12px;
}

.data-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 270px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  max-width: 360px;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  background: #edf3ed;
  z-index: 1;
}

tbody tr:hover {
  background: #f2f6f1;
}

.customer-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 14px;
}

.scene-user-panel {
  padding: 12px;
}

.scene-user-list-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--field);
}

.scene-user-list-summary span {
  color: var(--muted);
  font-size: 12px;
}

.customer-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 245px);
  overflow: auto;
}

.customer-button {
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.customer-button.is-active {
  border-color: var(--blue);
  background: #eef4ff;
}

.scene-user-button code {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.scene-user-button span {
  color: var(--muted);
  font-size: 12px;
}

.scene-user-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.scene-user-metrics b {
  background: var(--field);
  border-radius: 5px;
  padding: 5px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-detail {
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.run-status {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
}

.run-status.empty {
  border-left-color: var(--gold);
  color: var(--muted);
}

.run-status.is-ok {
  border-color: rgba(41, 126, 96, 0.26);
  border-left-color: var(--green);
  background: #f6fbf8;
  color: var(--ink);
}

.run-status.is-warning {
  border-color: rgba(205, 155, 73, 0.34);
  border-left-color: var(--gold);
  background: #fffbf0;
  color: #6f541d;
}

.run-status.is-error {
  border-color: rgba(185, 76, 76, 0.32);
  border-left-color: #b94c4c;
  background: #fff7f6;
  color: #7e2d2d;
}

.ds-extraction-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.ds-extraction-progress.is-hidden {
  display: none;
}

.ds-extraction-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
}

.ds-extraction-phases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.ds-extraction-phase {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--muted);
  padding: 7px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ds-extraction-phase.is-active {
  border-color: var(--blue);
  background: #eef5ff;
  color: var(--blue);
}

.ds-extraction-phase.is-complete {
  border-color: rgba(15, 139, 104, 0.32);
  background: #eaf7f1;
  color: var(--green);
}

.ds-extraction-phase.is-failed {
  border-color: rgba(184, 77, 63, 0.42);
  background: #fff1ee;
  color: var(--red);
}

.ds-extraction-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e7efeb;
}

.ds-extraction-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #9fd9c7);
  transition: width 180ms ease;
}

.ds-extraction-log {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ds-extraction-layout {
  align-items: start;
}

.scene-user-detail {
  padding: 14px;
}

.user-file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.user-file-head h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.user-file-head code {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

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

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

.detail-item {
  background: var(--field);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.user-file-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf0;
}

.user-file-notice span {
  color: var(--muted);
  line-height: 1.5;
}

.md-completeness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.md-completeness-card strong {
  font-size: 22px;
}

.md-completeness-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.md-summary-block {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.md-summary-head {
  margin: 0;
}

.md-summary-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #fbfdf8;
}

.md-summary-tag {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border: 1px solid #e5ebe0;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.md-summary-tag > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf3ed;
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}

.md-summary-tag strong,
.md-summary-tag p,
.md-summary-tag small {
  overflow-wrap: anywhere;
}

.md-summary-tag p {
  margin: 4px 0;
  line-height: 1.45;
}

.md-summary-tag small {
  color: var(--muted);
}

.md-table-section.is-support-md {
  border-style: dashed;
}

.md-evidence-records {
  display: grid;
  gap: 8px;
  border: 1px solid #dce7d8;
  border-radius: 8px;
  background: #fbfdf8;
  padding: 10px;
}

.md-evidence-records > strong {
  color: var(--green);
  font-size: 13px;
}

.md-evidence-records.is-modal {
  border: 0;
  background: transparent;
  padding: 0;
}

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

.md-evidence-record-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.md-evidence-record-head div,
.md-evidence-record-head code {
  min-width: 0;
}

.md-evidence-record-head b,
.md-evidence-record-head span,
.md-evidence-record-head code {
  display: block;
  overflow-wrap: anywhere;
}

.md-evidence-record-head span,
.md-evidence-record-head code,
.md-evidence-record-meta {
  color: var(--muted);
  font-size: 12px;
}

.md-evidence-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.md-evidence-record-meta span {
  border-radius: 999px;
  background: var(--field);
  padding: 4px 8px;
}

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

.md-evidence-field-grid div {
  min-width: 0;
  border-radius: 6px;
  background: var(--field);
  padding: 8px;
}

.md-evidence-field-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.md-evidence-field-grid p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.md-row-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px;
}

.md-row-grid div {
  min-width: 0;
  border-radius: 6px;
  background: var(--field);
  padding: 8px;
}

.md-row-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.md-row-grid strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.user-requirement-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
  background: var(--panel);
}

.user-requirement-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #edf3ed;
  border-bottom: 1px solid var(--line);
}

.user-requirement-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.section-insight {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f7faf3;
  border-bottom: 1px solid var(--line);
}

.section-insight strong {
  font-size: 13px;
  color: var(--green);
}

.section-insight ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.section-insight li {
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.user-requirement-rows {
  display: grid;
}

.user-requirement-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #edf0e9;
  border-left: 5px solid var(--blue);
}

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

.user-requirement-row.is-complete {
  border-left-color: var(--green);
}

.user-requirement-row.is-pending {
  border-left-color: var(--gold);
}

.user-requirement-row.is-summary {
  border-left-color: #5e7f5b;
}

.user-requirement-row.is-no-record {
  border-left-color: #7b6f63;
}

.user-requirement-row.is-indexed {
  border-left-color: var(--blue);
}

.user-requirement-row.is-missing {
  border-left-color: var(--red);
}

.user-requirement-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.user-requirement-title strong {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.md-evidence-detail-button {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 139, 104, 0.28);
  border-radius: 999px;
  background: #ecf8f2;
  color: var(--green);
  padding: 5px 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.md-evidence-detail-button:hover {
  border-color: rgba(15, 139, 104, 0.52);
  background: #dff2e9;
}

.user-requirement-facts {
  display: grid;
  grid-template-columns: 120px minmax(140px, 1fr) 90px minmax(160px, 1fr);
  gap: 8px;
}

.user-requirement-facts span {
  background: var(--field);
  border-radius: 6px;
  padding: 7px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.value-snippet {
  margin: 0;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: #f2f7ee;
  color: var(--ink);
  padding: 8px 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.value-snippet span,
.value-text span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.requirement-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.requirement-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 210px;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 13px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: #e9f3ef;
  color: var(--green);
}

.status-chip.is-complete {
  background: #e7f4ee;
  color: var(--green);
}

.status-chip.is-pending {
  background: #fff5df;
  color: var(--gold);
}

.status-chip.is-summary {
  background: #edf3e5;
  color: #5e7f5b;
}

.status-chip.is-no-record {
  background: #f1ece6;
  color: #7b6f63;
}

.status-chip.is-indexed {
  background: #eef4ff;
  color: var(--blue);
}

.status-chip.is-missing {
  background: #fdecea;
  color: var(--red);
}

.requirement-audit-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.audit-rule {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  background: var(--panel);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.audit-rule.is-warn {
  border-left-color: var(--gold);
}

.audit-rule span,
.audit-rule p {
  color: var(--muted);
}

.audit-rule-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 8px;
}

.audit-rule-grid span {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.requirement-kpis {
  margin-bottom: 0;
}

.requirement-charts {
  margin-bottom: 14px;
}

.compact-bars .bar-row {
  grid-template-columns: 120px 1fr 80px;
}

.requirement-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  margin-bottom: 14px;
}

.requirement-audit-list {
  display: grid;
  gap: 14px;
}

.requirement-audit-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.requirement-section-head {
  padding: 14px;
  background: #edf3ed;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.requirement-section-head strong {
  font-size: 17px;
}

.requirement-section-head span,
.requirement-section-head p {
  color: var(--muted);
  font-size: 12px;
}

.requirement-audit-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.requirement-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  min-width: 0;
  display: grid;
  gap: 9px;
}

.requirement-card.is-complete {
  border-left-color: var(--green);
}

.requirement-card.is-pending {
  border-left-color: var(--gold);
}

.requirement-card.is-summary {
  border-left-color: #5e7f5b;
}

.requirement-card.is-no-record {
  border-left-color: #7b6f63;
}

.requirement-card.is-indexed {
  border-left-color: var(--blue);
}

.requirement-card.is-missing {
  border-left-color: var(--red);
}

.requirement-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.requirement-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.requirement-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.requirement-meta-grid div {
  background: var(--field);
  border-radius: 6px;
  padding: 8px;
  min-width: 0;
}

.requirement-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.requirement-meta-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.matched-text,
.value-text,
.explanation,
.source-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.value-text {
  color: var(--green);
}

.ds-truth-repair-headline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ds-truth-repair-panel {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
  margin: 12px 0;
  display: grid;
  gap: 12px;
}

.ds-truth-repair-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ds-truth-repair-top strong {
  display: block;
  font-size: 15px;
}

.ds-truth-repair-top span,
.ds-truth-empty {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ds-truth-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ds-truth-step {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 7px 8px;
  text-align: center;
  font-size: 12px;
  min-height: 32px;
}

.ds-truth-step.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: #f4f8ff;
}

.ds-truth-step.is-complete {
  border-color: var(--green);
  color: var(--green);
  background: #f3faf6;
}

.ds-truth-step.is-failed {
  border-color: var(--red);
  color: var(--red);
  background: #fff7f5;
}

.ds-truth-identity-grid,
.ds-truth-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ds-truth-identity-grid div,
.ds-truth-summary span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
  min-width: 0;
}

.ds-truth-identity-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ds-truth-identity-grid strong,
.ds-truth-summary span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ds-truth-repair-list {
  display: grid;
  gap: 8px;
}

.ds-truth-repair-list article {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 5px;
}

.ds-truth-repair-list strong,
.ds-truth-repair-list span {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ds-truth-repair-list span {
  color: var(--muted);
}

.ds-truth-trace {
  max-height: 140px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

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

.ds-extraction-branch-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.ds-extraction-branch-card.is-running {
  border-left-color: var(--blue);
  background: #f4f8ff;
}

.ds-extraction-branch-card.is-generated {
  border-left-color: var(--green);
  background: #f7fcfa;
}

.ds-extraction-branch-card.is-failed {
  border-left-color: var(--red);
  background: #fff7f5;
}

.ds-extraction-branch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ds-extraction-branch-head strong {
  font-size: 13px;
  line-height: 1.35;
}

.ds-extraction-branch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ds-extraction-branch-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.truth-detail-button {
  appearance: none;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: #f2f7ee;
  color: var(--green);
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.truth-detail-button:hover {
  background: #e6f1df;
}

.truth-detail-button span {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.truth-detail-button strong {
  font-size: 12px;
  color: var(--ink);
}

.explanation {
  color: var(--ink);
}

.dictionary-table {
  display: grid;
  gap: 8px;
}

.dictionary-row {
  display: grid;
  grid-template-columns: 260px 230px minmax(0, 1fr) 270px 82px;
  gap: 12px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.dictionary-row.header {
  background: var(--charcoal);
  color: #fff;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.floating-results {
  position: fixed;
  right: 28px;
  top: 28px;
  width: min(720px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(23, 32, 28, 0.25);
  padding: 14px 68px 14px 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.floating-results[hidden] {
  display: none;
}

.floating-results pre {
  margin: 0;
  min-width: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 700 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.floating-results-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf6;
  color: var(--ink);
  padding: 6px 10px;
  font: 800 12px/1.2 inherit;
  cursor: pointer;
}

.floating-results-close:hover {
  background: #eaf4eb;
  border-color: var(--brand);
}

.truth-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(20, 28, 24, 0.42);
  display: grid;
  place-items: center;
  padding: 28px;
}

.truth-detail-modal[hidden] {
  display: none;
}

.truth-detail-dialog {
  width: min(980px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(23, 32, 28, 0.25);
}

.truth-detail-title {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.truth-detail-title button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  cursor: pointer;
}

#truth-detail-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.truth-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.truth-detail-head div {
  display: grid;
  gap: 4px;
}

.truth-detail-head span:not(.status-chip) {
  color: var(--muted);
  font-size: 12px;
}

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

.truth-detail-grid div {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  min-width: 0;
}

.truth-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.truth-detail-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.truth-detail-section {
  display: grid;
  gap: 8px;
}

.md-evidence-detail-section {
  gap: 10px;
}

.truth-detail-section h4 {
  margin: 0;
  font-size: 14px;
}

.truth-detail-section pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8faf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.deliverable-draft-archive {
  display: grid;
  gap: 14px;
}

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

.deliverable-draft-head article,
.deliverable-draft-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  padding: 14px;
  min-width: 0;
}

.deliverable-draft-head span,
.deliverable-card-title span,
.draft-h5-screen-grid b,
.draft-script-list b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.deliverable-draft-head strong {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.deliverable-draft-head p,
.deliverable-draft-card p,
.deliverable-draft-card li,
.draft-h5-screen-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.deliverable-draft-card.is-wide {
  grid-column: 1 / -1;
}

.deliverable-card-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.deliverable-card-title h3 {
  margin: 0;
  font-size: 14px;
}

.deliverable-draft-card ul {
  margin: 0;
  padding-left: 18px;
}

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

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

.draft-analysis-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  min-width: 0;
}

.draft-analysis-grid b {
  display: block;
  color: var(--green);
  font-size: 12px;
  margin-bottom: 5px;
}

.draft-audit-list {
  display: grid;
  gap: 6px;
}

.draft-audit-list span {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 8px;
  overflow-wrap: anywhere;
}

.draft-h5-screen-grid article,
.draft-script-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.draft-h5-screen-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.25;
}

.draft-h5-screen-grid em {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.deliverable-draft-card h4 {
  margin: 10px 0 6px;
  font-size: 13px;
}

.draft-script-list {
  display: grid;
  gap: 8px;
}

.draft-script-list b {
  margin-bottom: 6px;
  color: var(--green);
}

.deliverable-file-links {
  display: grid;
  gap: 8px;
}

.deliverable-file-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.floating-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-group {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.empty {
  color: var(--muted);
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  #app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .kpi-grid,
  .analysis-grid,
  .browser-layout,
  .customer-layout,
  .requirement-audit-items,
  .requirement-toolbar,
  .lifecycle-summary,
  .lifecycle-priority-grid,
  .lifecycle-step-grid,
  .lifecycle-standard-grid,
  .lifecycle-standard-grid.is-demand,
  .lifecycle-task-grid,
  .lifecycle-ops-grid,
  .ai-insight-blocker,
  .ai-insight-workbench,
  .ai-audit-contract,
  .ai-brief-flow-grid,
  .ai-workflow-meta,
  .ai-audit-row-grid.is-compact,
  .deliverable-draft-head,
  .deliverable-draft-grid,
  .draft-analysis-grid,
  .draft-h5-screen-grid,
  .md-summary-tags,
  .md-row-grid,
  .md-evidence-record-head,
  .md-evidence-field-grid,
  .ds-truth-repair-top,
  .ds-extraction-branch-grid,
  .ds-h5-review-layout,
  .ds-h5-hook-board,
  .ds-h5-goal-board,
  .ds-h5-angle-grid,
  .ds-h5-boundary-grid {
    grid-template-columns: 1fr;
  }

  .ds-extraction-phases,
  .ds-truth-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .audit-rule-grid,
  .requirement-meta-grid,
  .user-file-grid,
  .user-requirement-facts,
  .md-completeness-grid,
  .lifecycle-card-metrics,
  .lifecycle-batch20-summary,
  .lifecycle-ops-summary,
  .truth-detail-grid,
  .ai-insight-summary,
  .ai-detail-metrics,
  .ai-score-grid,
  .ds-truth-identity-grid,
  .ds-truth-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-conclusion-card summary,
  .ai-detail-head,
  .ai-insight-title-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ai-detail-badges {
    justify-content: flex-start;
  }

  .ds-h5-summary-grid,
  .ds-h5-task-metric-grid,
  .ds-h5-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-h5-goal-board .ds-h5-action-row {
    grid-column: auto;
  }

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

  .ds-truth-repair-top {
    display: grid;
  }
}
