/* Insights page — plain-language view (TASK-014C). Uses the theme tokens from style.css. */
.iv-section { margin-bottom: 16px; }
.iv-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iv-section-date { font-size: 13px; color: var(--text-sub); }

.iv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.iv-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.iv-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
.iv-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.iv-chip {
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
}
.iv-chip-typical { background: var(--ok-bg); color: var(--green); }
.iv-chip-above, .iv-chip-below { background: var(--accent-soft); color: var(--accent); }
.iv-chip-muted { background: var(--neutral-bg); color: var(--text-sub); font-weight: 500; }

.iv-today { font-size: 14px; color: var(--text-sub); }
.iv-today .iv-value { font-size: 20px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.iv-today .iv-value-missing { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.iv-usual { font-size: 13px; color: var(--text-sub); line-height: 1.45; }
.iv-note { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.iv-source { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.iv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.iv-insight {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
}
.iv-insight-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.iv-insight-meta { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.iv-empty { font-size: 13.5px; color: var(--text-sub); line-height: 1.5; }

.iv-details .details-body .card { box-shadow: none; }
.iv-tech-note { font-size: 12.5px; line-height: 1.6; color: var(--text-sub); margin: 0 0 14px; }

@media (max-width: 480px) {
  .iv-grid { grid-template-columns: 1fr; }
  .iv-today .iv-value { font-size: 18px; }
}
