#screen-insights {
  padding-bottom: 16px;
}

#screen-insights .insights-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

#screen-insights .insights-stat-card,
#screen-insights .insights-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

#screen-insights .insights-stat-label,
#screen-insights .insights-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

#screen-insights .insights-stat-value {
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

#screen-insights .is-green { color: var(--reading-green); }
#screen-insights .is-amber { color: var(--reading-amber); }
#screen-insights .is-red { color: var(--reading-red); }

#screen-insights .insights-section-label {
  margin: 12px 0 8px;
}

#screen-insights .insights-section-subtitle {
  margin: -2px 0 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

#screen-insights .insights-card {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

#screen-insights .insights-chart-wrap {
  position: relative;
  height: 180px;
}

#screen-insights .insights-hba1c-value {
  font-family: 'DM Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

#screen-insights .insights-hba1c-meta {
  margin-top: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

#screen-insights .insights-hba1c-note {
  margin-top: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  color: var(--text-muted);
}

#screen-insights .insights-spike-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

#screen-insights .insights-spike-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-insights .insights-spike-track {
  height: 6px;
  border-radius: 4px;
  background: var(--bg-raised);
  overflow: hidden;
}

#screen-insights .insights-spike-fill {
  height: 100%;
  background: var(--reading-red);
  border-radius: 4px;
}

#screen-insights .insights-spike-delta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--reading-red);
}

#screen-insights .insights-empty {
  padding: 10px 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

#screen-insights .insights-streak-card {
  border-color: var(--accent);
}

#screen-insights .insights-streak-value {
  font-family: 'DM Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

#screen-insights .insights-streak-sub {
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

#screen-insights .insights-streak-note {
  margin-top: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}
