/* ═══ Brain Score + Insights Styles ═══ */

/* ─── Brain Score Card ─── */
#brainScoreCard { display: none; }
.bs-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 12px 0 16px;
}
.bs-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--bs-color, var(--pri));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card, var(--card));
}
.bs-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--bs-color, var(--pri));
  line-height: 1;
}
.bs-of {
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}
.bs-label-main {
  font-size: 13px;
  font-weight: 600;
}
.bs-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bs-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bs-row .bs-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 110px;
  white-space: nowrap;
}
.bs-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.bs-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.bs-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 24px;
  text-align: right;
}

/* ─── Insights Block in Analytics ─── */
#insightsBlock { display: none; }
.ins-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pri);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.ins-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ins-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ins-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--border);
  background: var(--bg);
  transition: opacity 0.3s, transform 0.3s;
}
.ins-card.severity-high { border-left-color: var(--err); }
.ins-card.severity-medium { border-left-color: var(--warn); }
.ins-card.severity-info { border-left-color: var(--pri); }
.ins-emoji {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}
.ins-body { flex: 1; min-width: 0; }
.ins-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.ins-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.ins-dismiss {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--ok);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s;
}
.ins-dismiss:hover,
.ins-dismiss:active {
  background: var(--ok);
  color: #fff;
}

/* ─── AI Summary card ─── */
#aiSummaryContent.ai-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-line;
}

/* ─── Insight notification icon/title tweaks ─── */
#insightTitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
#insightIcon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #9cd67d, #7fc95f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
/* ═══ End Brain + Insights Styles ═══ */
