/* components/brain-outcomes/brain-outcomes.css — PR: Outcome Loop (trust engine) */

/* Panel container (injected into Brain modal workspace) */
.bo-panel {
  min-height: 0;
}

/* Summary header */
.bo-summary {
  padding: 1rem 0 0.25rem;
}
.bo-summary__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tx, #1e293b);
}
.bo-summary__count {
  font-size: 0.78rem;
  color: var(--mr-text-secondary, #64748b);
  margin-top: 0.15rem;
}

/* Outcome card */
.bo-card {
  background: var(--mr-surface, #fff);
  border: 1px solid var(--mr-border, #e2e8f0);
  border-radius: var(--mr-radius-lg, 12px);
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  box-shadow: var(--mr-shadow-sm, 0 1px 2px rgba(0,0,0,0.04));
}
.bo-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.bo-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tx, #1e293b);
  line-height: 1.35;
}
.bo-card__date {
  font-size: 0.72rem;
  color: var(--mr-text-secondary, #64748b);
  white-space: nowrap;
}
.bo-card__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.bo-metric__value {
  font-size: 0.95rem;
  font-weight: 700;
}
.bo-metric__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mr-text-secondary, #64748b);
}
.bo-delta--up   { color: var(--mr-success, #10b981); }
.bo-delta--down { color: var(--mr-danger, #ef4444); }
.bo-delta--flat { color: var(--mr-text-secondary, #64748b); }

.bo-card__empty {
  font-size: 0.78rem;
  color: var(--mr-text-secondary, #64748b);
  font-style: italic;
}
.bo-card__foot {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.bo-card__type,
.bo-card__prio {
  font-size: 0.65rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--mr-bg, #f1f5f9);
  color: var(--mr-text-secondary, #64748b);
  text-transform: capitalize;
}
.bo-card__prio {
  background: color-mix(in srgb, var(--mr-warning, #f59e0b) 15%, transparent);
  color: var(--mr-warning, #b45309);
}

/* Empty state */
.bo-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.bo-empty__icon { font-size: 2rem; }
.bo-empty__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tx, #1e293b);
  margin: 0.4rem 0 0.2rem;
}
.bo-empty__text {
  font-size: 0.78rem;
  color: var(--mr-text-secondary, #64748b);
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Honesty footer */
.bo-honesty {
  margin: 0.8rem 0 1rem;
  font-size: 0.7rem;
  color: var(--mr-text-secondary, #64748b);
  text-align: center;
  font-style: italic;
}

/* Tab button active state (shared with Activity tab pattern) */
.bo-tab-btn--active,
.beh-tab-btn--active {
  background: var(--mr-primary, #2563eb);
  color: #fff;
  border-color: var(--mr-primary, #2563eb);
}
