.user-insights-boards { min-width: 0; margin-top: 22px; }
.insights-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); margin-bottom: 24px; }
.insights-tabs [role="tab"] { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.insights-tabs [aria-selected="true"] { color: var(--text); background: var(--panel-2); border-color: var(--line); box-shadow: 0 2px 5px rgb(0 0 0 / .08); }
.user-insights-boards button:focus-visible, .user-insights-boards input:focus-visible, .user-insights-boards select:focus-visible, .insights-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.insights-panel[hidden] { display: none; }
.insights-panel { min-width: 0; }
.insights-board-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.insights-board-heading h3 { margin: 0 0 8px; font-size: 22px; }
.insights-board-heading p { max-width: 72ch; margin: 0; line-height: 1.6; }
.insights-board-heading > button { flex-shrink: 0; min-height: 44px; }
.insights-receipt-form { display: flex; align-items: flex-end; gap: 12px; max-width: 740px; }
.insights-receipt-form label, .insights-user-choice { display: grid; gap: 8px; font-weight: 600; min-width: 0; }
.insights-receipt-form label { flex: 1; }
.insights-receipt-form input, .insights-user-choice select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: 10px 12px; font: inherit; }
.insights-receipt-form button { min-height: 46px; }
.insights-user-choice { max-width: 680px; margin: 18px 0; }
.insights-user-choice select { text-overflow: ellipsis; }
.insights-feedback-record { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.insights-state { display: inline-block; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.insights-state[data-state="measured"] { color: var(--accent); background: var(--accent-soft); }
.insights-state[data-state="partial"] { color: var(--warning); }
.insights-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); scrollbar-gutter: stable; }
.insights-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; line-height: 1.4; table-layout: fixed; }
.insights-table caption { padding: 10px 12px; text-align: left; font-weight: 650; color: var(--text); background: var(--panel); }
.insights-table th, .insights-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; white-space: normal; overflow: visible; text-overflow: clip; font-family: var(--font-sans); }
.insights-table thead th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
.insights-table tbody th { font-weight: 600; }
.insights-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); border-right: 1px solid var(--line); }
.insights-table thead th:first-child { background: var(--panel-2); z-index: 2; }
.insights-table-value { display: block; margin-bottom: 4px; font-weight: 650; font-variant-numeric: tabular-nums; }
.insights-table-unit { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.insights-comparison-table { min-width: 1120px; }
.insights-comparison-table th:first-child { width: 174px; }
.insights-comparison-table td { vertical-align: middle; }
.insights-user-button { width: 100%; min-height: 44px; padding: 5px 7px; text-align: left; white-space: normal; overflow-wrap: anywhere; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.insights-user-button:hover { background: var(--panel-2); }
.insights-user-button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.insights-user-button:focus-visible { outline-offset: -2px; }
.insights-user-email { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 3px; }
.insights-coverage-key { margin: 10px 0 20px; }
.insights-coverage-table { min-width: 1020px; }
.insights-coverage-table th:first-child { width: 138px; }
.insights-coverage-table th:nth-child(2) { width: 148px; }
.insights-coverage-table th:nth-child(3) { width: 100px; }
.insights-coverage-table th:nth-child(4) { width: 280px; }
.insights-coverage-table th:nth-child(5), .insights-coverage-table th:nth-child(6) { width: 130px; }
.insights-effectiveness-table { min-width: 1080px; }
.insights-effectiveness-table th:first-child { width: 136px; }
.insights-effectiveness-table td { font-variant-numeric: tabular-nums; }
.insights-cost-drivers h3, .insights-effectiveness h3 { font-size: 18px; margin: 0 0 8px; }
.insights-details dd, .insights-feedback-message, .insights-cohort { overflow-wrap: anywhere; }
.insights-details { display: grid; gap: 10px; margin: 18px 0 0; }
.insights-details > div { display: grid; grid-template-columns: minmax(110px, .4fr) minmax(0, 1fr); gap: 10px; }
.insights-details dt { color: var(--muted); font-size: 12px; }
.insights-details dd { margin: 0; font-size: 12px; }
.insights-empty { padding: 12px; border: 1px dashed var(--line); border-radius: 8px; line-height: 1.6; color: var(--muted); }
.insights-feedback-message { white-space: pre-wrap; line-height: 1.65; }
.insights-effectiveness { margin-top: 24px; }
.insights-effectiveness > .muted { line-height: 1.6; max-width: 90ch; }
.insights-cohort { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 680px) {
  .insights-tabs { gap: 2px; margin-bottom: 20px; }
  .insights-tabs [role="tab"] { padding: 10px 6px; font-size: 12px; }
  .insights-board-heading { flex-direction: column; gap: 14px; }
  .insights-board-heading h3 { font-size: 20px; }
  .insights-receipt-form { align-items: stretch; flex-direction: column; }
  .insights-feedback-record { padding: 16px; }
  .insights-table th, .insights-table td { padding: 8px; }
  .insights-comparison-table th:first-child { width: 112px; }
  .insights-coverage-table th:first-child, .insights-effectiveness-table th:first-child { width: 112px; position: static; }
  .insights-details > div { grid-template-columns: minmax(85px, .4fr) minmax(0, 1fr); }
}
