:root {
  --aeiapp-cc-bg: var(--bg, #121212);
  --aeiapp-cc-surface: rgba(255, 255, 255, 0.03);
  --aeiapp-cc-border: rgba(255, 255, 255, 0.1);
  --aeiapp-cc-text: var(--text, #E0E0E0);
  --aeiapp-cc-text-subtle: var(--text-subtle, #A0A0A0);
  --aeiapp-cc-accent: var(--accent, #88c0ff);
  --aeiapp-cc-danger: #ff5c5c;
  --aeiapp-cc-success: #5cff9d;
  --aeiapp-cc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --aeiapp-cc-iac-deployment: #e8943c;
  --aeiapp-cc-iac-env-prod: #5fd38d;
  --aeiapp-cc-iac-env-staging: #6eb5ff;
  --aeiapp-cc-iac-pipeline: #5ee7e7;
}

#aeiapp-dashboard.aeiapp-cc {
  margin-top: 2rem;
}

.aeiapp-cc-banner {
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(136, 192, 255, 0.08);
  color: var(--aeiapp-cc-text);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.aeiapp-cc-grid {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.aeiapp-cc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.aeiapp-cc-card {
  background: var(--aeiapp-cc-surface);
  border: 1px solid var(--aeiapp-cc-border);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.aeiapp-cc-label {
  color: var(--aeiapp-cc-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Standard metric-card tooltip affordance (Command Center) — matches progress / gauge accent */
.aeiapp-cc-metric-label-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.aeiapp-cc-metric-tooltip-trigger {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px;
  border: none;
  background: transparent;
  color: var(--aeiapp-cc-accent);
  cursor: help;
  border-radius: 50%;
  line-height: 0;
  vertical-align: middle;
  transition: color 0.15s ease, transform 0.15s ease;
}

.aeiapp-cc-metric-tooltip-trigger:hover {
  color: #b3d9ff;
}

.aeiapp-cc-metric-tooltip-trigger:focus-visible {
  color: #b3d9ff;
  outline: 2px solid rgba(136, 192, 255, 0.5);
  outline-offset: 2px;
}

.aeiapp-cc-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 10px;
  color: #fff;
}

.aeiapp-cc-subvalue {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--aeiapp-cc-text-subtle);
  font-family: var(--aeiapp-cc-mono);
}

.aeiapp-cc-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
}

.aeiapp-cc-panel {
  background: var(--aeiapp-cc-surface);
  border: 1px solid var(--aeiapp-cc-border);
  border-radius: 16px;
  overflow: hidden;
}

.aeiapp-cc-graph-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 520px;
  height: 100%;
}

.aeiapp-cc-graph-panel > .aeiapp-cc-panel-header {
  flex-shrink: 0;
}

.aeiapp-cc-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--aeiapp-cc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aeiapp-cc-panel-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.aeiapp-cc-chip {
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.75rem;
  color: var(--aeiapp-cc-text-subtle);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.aeiapp-cc-panel-body {
  padding: 14px 16px;
}

.aeiapp-cc-feed {
  max-height: 560px;
  overflow: auto;
  padding-right: 8px;
}

.aeiapp-cc-feed-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.82rem;
}

.aeiapp-cc-feed-ts {
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-feed-msg {
  color: #fff;
}

.aeiapp-cc-feed-critical .aeiapp-cc-feed-msg {
  color: var(--aeiapp-cc-danger);
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 92, 92, 0.25);
}

.aeiapp-cc-progress {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  margin-top: 12px;
}

.aeiapp-cc-progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--aeiapp-cc-accent), rgba(136, 192, 255, 0.35));
  width: 0%;
}

/* Gate 3.1 — graph controls + Scalpel (muting / labels / filters) */
.aeiapp-cc-graph-panel .aeiapp-cc-graph-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--aeiapp-cc-border);
  flex-shrink: 0;
}

.aeiapp-cc-filters-disclosure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aeiapp-cc-filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--aeiapp-cc-text);
  cursor: pointer;
}

.aeiapp-cc-filters-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--aeiapp-cc-text);
}

.aeiapp-cc-filters-toggle-chevron {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.55rem;
  line-height: 1;
  color: var(--aeiapp-cc-text-subtle);
  transition: transform 0.2s ease;
}

.aeiapp-cc-filters-disclosure.is-collapsed .aeiapp-cc-filters-toggle-chevron {
  transform: rotate(-90deg);
}

.aeiapp-cc-filters-toggle-text {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-filters-toggle-summary {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--aeiapp-cc-accent);
}

.aeiapp-cc-filters-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aeiapp-cc-filters-panel[hidden] {
  display: none !important;
}

.aeiapp-cc-graph-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aeiapp-cc-graph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.aeiapp-cc-search {
  flex: 1 1 200px;
  min-width: 160px;
  background: var(--aeiapp-cc-surface);
  border: 1px solid var(--aeiapp-cc-border);
  color: var(--aeiapp-cc-text);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.8rem;
}

.aeiapp-cc-search::placeholder {
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-graph-btn {
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--aeiapp-cc-border);
  background: var(--aeiapp-cc-surface);
  color: var(--aeiapp-cc-text-subtle);
  cursor: pointer;
}

.aeiapp-cc-graph-btn:hover {
  color: var(--aeiapp-cc-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.aeiapp-cc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aeiapp-cc-filter-group-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aeiapp-cc-filter-chip {
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--aeiapp-cc-text-subtle);
  cursor: pointer;
}

.aeiapp-cc-filter-chip:hover {
  color: var(--aeiapp-cc-text);
}

.aeiapp-cc-filter-chip.active {
  border-color: var(--aeiapp-cc-accent);
  color: var(--aeiapp-cc-accent);
  box-shadow: 0 0 12px rgba(136, 192, 255, 0.2);
}

.aeiapp-cc-graph-panel-body {
  padding: 0 !important;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 280px;
}

.aeiapp-cc-graph-panel .zoom-container {
  will-change: transform;
}

.aeiapp-cc-graph-panel .node-group {
  will-change: opacity, transform;
  cursor: grab;
}

.aeiapp-cc-graph-panel .node-group:active {
  cursor: grabbing;
}

.aeiapp-cc-graph-panel .link-path {
  will-change: opacity;
}

.aeiapp-cc-graph-panel .node-label {
  fill: var(--aeiapp-cc-text-subtle);
  font-size: 9px;
  font-family: var(--aeiapp-cc-mono);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.aeiapp-cc-graph-panel.aeiapp-cc-labels-on .node-label {
  opacity: 1;
}

.aeiapp-cc-graph-panel .node-group:hover .node-label {
  opacity: 1 !important;
}

.aeiapp-cc-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-family: var(--aeiapp-cc-mono);
  max-width: 320px;
  display: none;
  white-space: pre-line;
}

/* Main stage: Deterministic View Dispatcher — all direct children respect [hidden] uniformly */
.aeiapp-cc-main-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ATOMIC REQUIREMENT: Universal Main Stage View Masking */
.aeiapp-cc-main-stage > div[hidden],
.aeiapp-cc-main-stage > section[hidden],
.aeiapp-cc-main-stage > main[hidden] {
  display: none !important;
}

.aeiapp-cc-graph-view-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.aeiapp-cc-alerts-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Gate 3.5 — Pattern Matrix alert strip */
.aeiapp-cc-pm-strip {
  border-bottom: 1px solid var(--aeiapp-cc-border);
  padding: 10px 14px 12px;
  flex-shrink: 0;
}

.aeiapp-cc-pm-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aeiapp-cc-pm-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aeiapp-cc-pm-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--aeiapp-cc-border);
}

.aeiapp-cc-pm-badge-red {
  color: #fff;
  background: rgba(255, 92, 92, 0.18);
  border-color: var(--aeiapp-cc-danger);
}

.aeiapp-cc-pm-badge-yellow {
  color: #fff;
  background: rgba(240, 192, 64, 0.12);
  border-color: #f0c040;
}

.aeiapp-cc-pm-view-alerts-btn {
  flex-shrink: 0;
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(136, 192, 255, 0.1);
  border: 1px solid var(--aeiapp-cc-accent);
  color: var(--aeiapp-cc-accent);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.aeiapp-cc-pm-view-alerts-btn:hover {
  background: rgba(136, 192, 255, 0.18);
  color: #fff;
}

.aeiapp-cc-pm-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aeiapp-cc-pm-finding {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(0, 0, 0, 0.2);
}

.aeiapp-cc-pm-finding-msg {
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.45;
}

.aeiapp-cc-pm-action-chip {
  display: inline-block;
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-pm-sev-red {
  border-color: var(--aeiapp-cc-danger);
  animation: aeiapp-cc-pm-pulse 1.8s ease-in-out infinite;
}

.aeiapp-cc-pm-sev-yellow {
  border-color: #f0c040;
}

@keyframes aeiapp-cc-pm-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.35);
  }
  50% {
    box-shadow: 0 0 14px 5px rgba(255, 92, 92, 0.5);
  }
}

/* Gate 3.6 — TRI-mode right rail (history + diff) */
.aeiapp-cc-feed-header {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.aeiapp-cc-feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aeiapp-cc-feed-toolbar[hidden] {
  display: none !important;
}

.aeiapp-cc-feed-action {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--aeiapp-cc-text);
  cursor: pointer;
}

.aeiapp-cc-feed-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.aeiapp-cc-feed-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.aeiapp-cc-history-empty {
  font-size: 0.85rem;
  color: var(--aeiapp-cc-text-subtle);
  padding: 8px 0;
}

.aeiapp-cc-history-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aeiapp-cc-text-subtle);
  margin-top: 10px;
  margin-bottom: 4px;
}

.aeiapp-cc-history-row {
  border: 1px solid var(--aeiapp-cc-border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.aeiapp-cc-history-row-cols {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.aeiapp-cc-history-main {
  flex: 1;
  min-width: 0;
}

.aeiapp-cc-history-subject {
  font-size: 0.85rem;
  line-height: 1.35;
  word-break: break-word;
}

.aeiapp-cc-history-meta {
  font-size: 0.72rem;
  color: var(--aeiapp-cc-text-subtle);
  margin-top: 4px;
}

.aeiapp-cc-history-sha {
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.72rem;
  color: var(--aeiapp-cc-accent);
  flex-shrink: 0;
}

.aeiapp-cc-diff-stat {
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--aeiapp-cc-surface-2, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--aeiapp-cc-border);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* IP-045 — PR lifecycle bubble chart */
.aeiapp-cc-pr-chart-view {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--aeiapp-cc-surface, rgba(0, 0, 0, 0.12));
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.aeiapp-cc-pr-chart-head {
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--aeiapp-cc-border);
}

.aeiapp-cc-pr-chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aeiapp-cc-text);
}

.aeiapp-cc-pr-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--aeiapp-cc-border);
}

.aeiapp-cc-pr-filter-group-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aeiapp-cc-pr-filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aeiapp-cc-text-subtle);
  margin-right: 4px;
}

.aeiapp-cc-pr-cb-label {
  font-size: 0.8rem;
  color: var(--aeiapp-cc-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.aeiapp-cc-pr-search {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: 280px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--aeiapp-cc-text);
  font-size: 0.8rem;
}

.aeiapp-cc-pr-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
}

.aeiapp-cc-pr-date-wrap input[type="range"] {
  flex: 1;
  min-width: 60px;
}

.aeiapp-cc-pr-label-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.aeiapp-cc-pr-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--aeiapp-cc-text-subtle);
  padding: 6px 16px;
  border-bottom: 1px solid var(--aeiapp-cc-border);
}

.aeiapp-cc-pr-chart-svg-wrap {
  flex: 1;
  min-height: 380px;
  position: relative;
}

.aeiapp-cc-pr-chart-empty {
  padding: 24px 16px;
  color: var(--aeiapp-cc-text-subtle);
  font-size: 0.85rem;
}

.aeiapp-cc-pr-tooltip {
  position: fixed;
  z-index: 10050;
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--aeiapp-cc-surface-2, rgba(18, 18, 18, 0.96));
  border: 1px solid var(--aeiapp-cc-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  line-height: 1.4;
}

.aeiapp-cc-pr-tooltip-title {
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-word;
}

.aeiapp-cc-pr-tooltip-line {
  color: var(--aeiapp-cc-text-subtle);
  margin-bottom: 4px;
  word-break: break-word;
}

.aeiapp-cc-pr-tooltip-btn {
  margin-top: 8px;
  pointer-events: auto;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--aeiapp-cc-accent);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  line-height: 1.25;
  width: 100%;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.aeiapp-cc-pr-tooltip-btn-line {
  display: block;
  width: 100%;
}

.aeiapp-cc-pr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 16px 12px;
  font-size: 0.75rem;
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-pr-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aeiapp-cc-pr-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.aeiapp-cc-pr-legend-open {
  background: #22c55e;
}

.aeiapp-cc-pr-legend-closed {
  background: #3b82f6;
}

.aeiapp-cc-pr-bubble {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.5px;
  cursor: pointer;
}

/* Gate 3.7 — IaC / Deployment Intel */
/* MVP: hide header control only; Deployment Intel mode remains wired (e.g. graph / programmatic setFeedMode). */
.aeiapp-cc-deployment-intel-header-btn {
  display: none !important;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(232, 148, 60, 0.45);
  background: rgba(232, 148, 60, 0.12);
  color: var(--aeiapp-cc-text);
  cursor: pointer;
  align-self: flex-start;
}

.aeiapp-cc-deployment-intel-header-btn:hover {
  background: rgba(232, 148, 60, 0.22);
}

.aeiapp-cc-iac-chip-inline {
  font-size: 0.75rem;
  color: var(--aeiapp-cc-text-subtle);
  margin-left: 6px;
}

.aeiapp-cc-iac-zero-intro {
  font-size: 0.85rem;
  color: var(--aeiapp-cc-text-subtle);
  margin: 10px 0 6px;
  line-height: 1.45;
}

.aeiapp-cc-iac-score-bar-outer {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 10px 0 6px;
}

.aeiapp-cc-iac-score-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(232, 148, 60, 0.9), rgba(94, 231, 231, 0.85));
  max-width: 100%;
}

.aeiapp-cc-iac-finding {
  border: 1px solid var(--aeiapp-cc-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.02);
}

.aeiapp-cc-iac-finding-title {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.aeiapp-cc-iac-finding-msg {
  font-size: 0.8rem;
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-iac-finding-snippet {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.72rem;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
}

.aeiapp-cc-deployment-config-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  font-size: 0.82rem;
}

.aeiapp-cc-deployment-config-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.aeiapp-cc-deployment-config-k {
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-blast-radius-bar-wrap {
  margin: 12px 0;
}

.aeiapp-cc-blast-radius-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.aeiapp-cc-blast-radius-fill {
  height: 100%;
  background: rgba(255, 92, 92, 0.65);
  max-width: 100%;
}

.aeiapp-cc-drift-timeline {
  margin-top: 12px;
  font-size: 0.78rem;
}

.aeiapp-cc-drift-item {
  padding: 6px 0;
  border-left: 2px solid var(--aeiapp-cc-accent);
  padding-left: 10px;
  margin-left: 4px;
}

@keyframes iac-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(232, 148, 60, 0.55));
  }
}

/* Gate 3.8 — main-stage change report (PENTA) */
.aeiapp-cc-change-report-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 16px;
  overflow: auto;
  font-size: 0.88rem;
  color: var(--aeiapp-cc-text);
}

.aeiapp-cc-cr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(255, 255, 255, 0.04);
}

.aeiapp-cc-cr-meta-line {
  color: var(--aeiapp-cc-text-subtle);
  font-size: 0.82rem;
  line-height: 1.45;
}

.aeiapp-cc-cr-empty-reason {
  color: var(--aeiapp-cc-accent);
  margin-top: 4px;
}

.aeiapp-cc-cr-banner {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(232, 148, 60, 0.45);
  background: rgba(232, 148, 60, 0.1);
  font-size: 0.82rem;
}

.aeiapp-cc-cr-banner-warn {
  border-color: rgba(255, 180, 72, 0.55);
}

.aeiapp-cc-cr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aeiapp-cc-cr-tool {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--aeiapp-cc-text);
  cursor: pointer;
}

.aeiapp-cc-cr-select,
.aeiapp-cc-cr-search {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--aeiapp-cc-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--aeiapp-cc-text);
  min-width: 140px;
}

.aeiapp-cc-cr-search {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
}

.aeiapp-cc-cr-scroll {
  overflow-x: auto;
  border: 1px solid var(--aeiapp-cc-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.aeiapp-cc-cr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.78rem;
}

.aeiapp-cc-cr-th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--aeiapp-cc-border);
  color: var(--aeiapp-cc-text-subtle);
  font-weight: 600;
  white-space: nowrap;
}

.aeiapp-cc-cr-td-status {
  padding: 6px 10px;
  color: var(--aeiapp-cc-accent);
  white-space: nowrap;
  width: 4.5rem;
}

.aeiapp-cc-cr-td-path,
.aeiapp-cc-cr-td-pathto {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  word-break: break-all;
}

.aeiapp-cc-cr-foot {
  font-size: 0.75rem;
  color: var(--aeiapp-cc-text-subtle);
}

.aeiapp-cc-cr-commits {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--aeiapp-cc-border);
}

.aeiapp-cc-cr-commits-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.aeiapp-cc-cr-commit-line {
  font-family: var(--aeiapp-cc-mono);
  font-size: 0.76rem;
  color: var(--aeiapp-cc-text-subtle);
  padding: 2px 0;
}

.aeiapp-cc-cr-empty {
  padding: 24px;
  text-align: center;
  color: var(--aeiapp-cc-text-subtle);
}

@media (max-width: 1100px) {
  .aeiapp-cc-metrics {
    grid-template-columns: 1fr;
  }
  .aeiapp-cc-main {
    grid-template-columns: 1fr;
  }
}
