/* BambuFlow owns the report; fonts, colors and controls consume Telaio tokens. */
#bf-outcome {
  width:min(40rem,calc(100% - 1.5rem)); max-width:calc(100% - 1.5rem); max-height:calc(100dvh - 1.5rem);
  padding:clamp(1rem,3vw,1.75rem); border-radius:var(--tc-radius,12px);
  overscroll-behavior:contain; scrollbar-gutter:stable; overflow-x:hidden;
}
#bf-outcome .bf-report-heading {display:flex;align-items:flex-start;gap:1rem;justify-content:space-between;}
#bf-outcome h2 {font-size:clamp(1.35rem,3vw,1.7rem);line-height:1.18;font-weight:650;margin:0;}
#bf-outcome #bf-close {flex:none;min-width:44px;width:44px;height:44px;padding:12px;margin:-.5rem -.5rem 0 0;}
#bf-close svg {display:block;width:18px;height:18px;}
#bf-outcome #bf-reason {margin:.75rem 0 1.25rem;}
#bf-outcome h3 {font-size:1rem;line-height:1.35;font-weight:650;margin:0 0 .5rem;}
#bf-impact {margin:1rem 0 1.35rem;}
#bf-impact-score {font-size:.9rem;font-weight:650;margin:0;}
#bf-impact-meter {position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;}
#bf-impact-scale {padding:2.2rem 14px 0;}
.bf-impact-track {position:relative;height:10px;border-radius:999px;background:linear-gradient(90deg,#b7423d 0%,#d98249 30%,#d8bd64 53%,#91af73 74%,#277a57 100%);}
.bf-impact-marker {position:absolute;left:var(--bf-impact-position);top:-5px;width:3px;height:20px;transform:translateX(-50%);background:#152d24;box-shadow:0 0 0 2px #fff;border-radius:2px;}
#bf-impact-value {position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:1.05rem;font-weight:700;line-height:1.2;color:var(--tc-ink,#15352a);font-variant-numeric:tabular-nums;}
.bf-impact-ticks {display:flex;justify-content:space-between;padding-top:.6rem;font-size:.75rem;line-height:1;color:var(--tc-muted,#52685c);font-variant-numeric:tabular-nums;}
.bf-impact-ticks span {width:0;display:flex;justify-content:center;white-space:nowrap;}
#bf-impact-value {white-space:nowrap;}
#bf-outcome #bf-impact-reason {font-size:.9rem;margin:.85rem 0 0;}
#bf-impact-unavailable {font-size:.9rem;margin:.6rem 0;}
#bf-check-details {border-top:1px solid var(--tc-line,#cfd9d1);border-bottom:1px solid var(--tc-line,#cfd9d1);padding:.8rem 0;margin:0 0 1rem;}
#bf-check-details summary {font-size:.9rem;font-weight:600;cursor:pointer;min-height:24px;}
#bf-check-items {list-style:none;padding:0;margin:.9rem 0 0;}
#bf-check-items li {display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;font-size:.85rem;line-height:1.35;}
#bf-check-items li span:last-child {flex:none;text-align:right;}
.bf-check-done {color:var(--tc-accent,#286044);}
.bf-check-open {font-weight:600;}
#bf-outcome #bf-paths {font-size:.9rem;}
#bf-density-result,#bf-support-reference {padding-top:1rem;margin-top:1rem;border-top:1px solid var(--tc-line,#cfd9d1);}
.bf-density-table {width:100%;border-collapse:collapse;font-size:.88rem;line-height:1.35;font-variant-numeric:tabular-nums;}
.bf-density-table caption {text-align:left;margin-bottom:.7rem;font-size:.88rem;}
.bf-density-table th,.bf-density-table td {padding:.65rem .35rem;border-bottom:1px solid var(--tc-line,#cfd9d1);text-align:right;vertical-align:top;}
.bf-density-table th:first-child {padding-left:0;text-align:left;}
.bf-density-table th:last-child,.bf-density-table td:last-child {padding-right:0;}
.bf-density-table thead th {font-size:.78rem;font-weight:550;color:var(--tc-muted,#52685c);}
.bf-density-table tbody th {font-weight:650;}
#bf-outcome .bf-report-note {font-size:.83rem;color:var(--tc-muted,#52685c);line-height:1.5;margin:.7rem 0 0;}
#bf-outcome #bf-report-commands {display:grid;gap:.65rem;margin-top:1.5rem;}
#bf-outcome #bf-report-primary,#bf-outcome #bf-report-secondary {display:grid;gap:.65rem;}
#bf-outcome #bf-report-secondary {grid-template-columns:repeat(2,minmax(0,1fr));}
#bf-outcome #bf-report-commands button {width:100%;min-width:0;min-height:44px;margin:0;justify-content:center;}
#bf-outcome #bf-delivery-message {font-size:.85rem;margin:.7rem 0 0;}
#bf-outcome .bf-report-footer {margin-top:1rem;}
#bf-outcome #bf-feedback {font-size:.83rem;}
@media(max-width:420px) {
  #bf-outcome {padding:1rem;scrollbar-gutter:auto;}
  #bf-outcome .bf-report-heading {gap:.5rem;}
  .bf-density-table {font-size:.8rem;}
  .bf-density-table thead th {font-size:.7rem;}
  .bf-density-table th,.bf-density-table td {padding:.6rem .2rem;}
  .bf-density-table th:first-child {max-width:5rem;overflow-wrap:anywhere;}
  #bf-check-items li {gap:.5rem;font-size:.8rem;}
  #bf-outcome #bf-report-commands button {font-size:.85rem;padding-inline:.4rem;}
}
@media(forced-colors:active) {
  .bf-impact-track {background:Canvas;border:1px solid CanvasText;}
  .bf-impact-marker {background:CanvasText;box-shadow:0 0 0 2px Canvas;}
}
