/**
 * ovolve-bento.css — 核心功能四工作面卡片与帕累托前沿图表
 */

/* ═══ 交付三态 / 四工作面舞台预览卡片 ═══ */
.delivery-stage-window {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ast-warn-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.ast-warn-icon svg {
  width: 14px;
  height: 14px;
}

.contract-pass-badge span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contract-pass-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.d-win-body {
  flex: 1;
  min-height: 0;
  padding: 24px;
  background: #FFFFFF;
  display: flex;
}

/* Tab 1: 试错副本拓扑 */
.trial-topo-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.topo-graph-svg {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
}

.topo-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.topo-stat-pill {
  padding: 10px 14px;
  background: #FAFAF9;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topo-stat-pill b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.topo-stat-pill span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Tab 2: AST 语法门禁 */
.ast-gate-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.ast-banner-block {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #FEF2F2;
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ast-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #991B1B;
}

.ast-banner-right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #B91C1C;
}

.ast-code-diff {
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ast-code-line {
  padding: 4px 12px;
  white-space: pre;
}

.ast-line-del {
  background: rgba(239, 68, 68, 0.1);
  color: #991B1B;
}

.ast-line-add {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
}

/* Tab 3: GEPA 帕累托图表 */
.gepa-pareto-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pareto-canvas-container {
  flex: 1;
  min-height: 220px;
  background: #FAFAF9;
  border: 1px solid rgba(231, 229, 228, 0.85);
  border-radius: var(--radius-md);
  padding: 10px;
  position: relative;
}

.pareto-rule-card {
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 16px;
}

.pareto-rule-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #0EA5E9;
  background: #F0F9FF;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.pareto-rule-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.pareto-rule-dest {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .pareto-rule-card { grid-template-columns: 1fr; }
}
