/* One cropped arc frames the introduction. Reading panels remain clear. */
.ace-workspace.theme-ledger {
  --report-positive-surface: #EAF5EE;
  --report-cautious-surface: #FCECEF;
  --report-positive-tag: #B8DFC8;
  --report-cautious-tag: #F0C0CA;
  --report-positive-ink: #176B4A;
  --report-cautious-ink: #8B3C51;
  --report-mixed-surface: linear-gradient(110deg, #EAF5EE, #FCECEF);
  --ace-caution: var(--report-cautious-ink);
  --ace-caution-ink: var(--report-cautious-ink);
}
.ace-workspace .decision-heading {
  position: relative;
  isolation: isolate;
}
.ace-workspace .decision-heading::before {
  content: "";
  position: absolute;
  right: -32px;
  top: -66px;
  width: clamp(300px, 36vw, 440px);
  height: 300px;
  z-index: -1;
  pointer-events: none;
  background: url("report-arc-frame.svg") right top / contain no-repeat;
  clip-path: inset(0);
}
.ace-workspace .decision-heading > div > p:first-child {
  color: var(--brand-violet);
}
.ace-workspace .findings-panel > div:first-child,
.ace-workspace .action-panel > div:first-child {
  background: linear-gradient(105deg, #F1ECFE, #FFFFFF 68%);
}
.ace-workspace .findings-panel > div:first-child .meta-label,
.ace-workspace .action-panel > div:first-child .meta-label {
  color: var(--brand-violet);
}
.ace-workspace .findings-panel > div:first-child::after {
  background: var(--brand-violet);
}
.ace-workspace :is(.status-support, .status-caution, .status-mixed,
  .relevance-support, .relevance-caution, .relevance-mixed) {
  color: var(--brand-ink);
  border-color: transparent;
  border-style: solid;
}
.ace-workspace :is(.status-support, .relevance-support) {
  background: var(--report-positive-tag);
}
.ace-workspace :is(.status-caution, .relevance-caution) {
  background: var(--report-cautious-tag);
}
.ace-workspace :is(.status-mixed, .relevance-mixed) {
  background: linear-gradient(110deg, var(--report-positive-tag), var(--report-cautious-tag));
}
.ace-workspace .perspective-support {
  background: var(--report-positive-surface);
}
.ace-workspace .perspective-caution {
  background: var(--report-cautious-surface);
}
.ace-workspace .perspective-mixed {
  background: var(--report-mixed-surface);
}
.ace-workspace .action-path,
.ace-workspace .decision-card .brief-side {
  background: var(--report-positive-surface);
}
.ace-workspace .action-path + .action-path,
.ace-workspace .decision-card .brief-side + .brief-side {
  background: var(--report-cautious-surface);
}
.ace-workspace .action-path > div > svg {
  color: var(--report-positive-ink);
  background: #B8DFC855;
  border-color: #B8DFC8;
}
.ace-workspace .action-path + .action-path > div > svg {
  color: var(--report-cautious-ink);
  background: #F0C0CA55;
  border-color: #F0C0CA;
}
.ace-workspace .brief-side svg { color: var(--report-positive-ink); }
.ace-workspace .brief-side + .brief-side svg { color: var(--report-cautious-ink); }
.ace-workspace .decision-tension {
  background: var(--brand-ink);
  color: #FBFBFD;
  border-color: #514B68;
  --foreground: #FBFBFD;
  --muted-foreground: #C4C0D4;
}
.ace-workspace .decision-tension h2,
.ace-workspace .decision-tension .font-serif,
.ace-workspace .decision-tension .text-foreground {
  color: #FBFBFD;
}
.ace-workspace .decision-tension .meta-label {
  color: var(--brand-lime);
}
.ace-workspace .decision-tension .text-muted-foreground,
.ace-workspace .decision-tension svg:not(.dot-flow) {
  color: #C4C0D4;
}
.ace-workspace .decision-tension button[data-source-id] {
  color: #D4C8FF;
  background: #302D4A;
  border-color: #746B8C;
}
.ace-workspace .decision-tension .missing-card {
  border-color: #514B68;
}
.ace-workspace .decision-tension .conflict-card p.mt-4,
.ace-workspace .decision-tension .conflict-card p.mt-4 .text-foreground {
  color: #FBFBFD;
}
.ace-workspace .research-expand,
.ace-workspace .proof-summary-pass {
  background: var(--brand-ink);
  color: #FBFBFD;
  border-color: #514B68;
}
.ace-workspace .research-expand .text-muted-foreground,
.ace-workspace .proof-summary .text-muted-foreground {
  color: #C4C0D4;
}
.ace-workspace .research-expand .text-primary,
.ace-workspace .proof-summary .meta-label,
.ace-workspace .proof-summary-pass > div > svg {
  color: var(--brand-lime);
}
.ace-workspace .proof-summary-pass h3 {
  color: #FBFBFD;
}
.ace-workspace .research-expand button[data-report-action="full_analysis"] {
  color: var(--brand-ink);
  background: #FFFFFF;
  border-color: #FFFFFF;
}
.ace-workspace .research-expand button[data-report-action="full_analysis"]:hover {
  background: #EEE8FD;
  border-color: #EEE8FD;
}
.ace-workspace .research-expand button[data-report-action="full_analysis"]:focus-visible {
  outline: 2px solid #FBFBFD;
  outline-offset: 3px;
}
.ace-workspace .proof-boundary-prevents {
  background: var(--report-positive-surface);
  border-color: #B8DFC8;
}
.ace-workspace .proof-boundary-limits {
  background: var(--report-cautious-surface);
  border-color: #F0C0CA;
}
.ace-workspace .proof-boundary-prevents .meta-label {
  color: var(--report-positive-ink);
}
.ace-workspace .proof-boundary-limits .meta-label {
  color: var(--report-cautious-ink);
}
@media (max-width: 640px) {
  .ace-workspace .decision-heading::before {
    right: -20px;
    top: -42px;
    width: 200px;
    height: 150px;
    opacity: .7;
  }
}
