.visual-reports { display: grid; grid-template-columns: 240px minmax(0,1fr); overflow: hidden; }
.report-browser { border-right: 1px solid var(--border); padding: 18px 12px; overflow: auto; min-height: 0; }
.report-browser > header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.report-browser h2 { font-size: 14px; margin: 0; }
.report-group-picker { margin-bottom: 18px; }
.report-group-picker summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 8px; }
.report-browser .report-groups { width: auto; padding: 4px; border: 0; }
.report-browser .report-row { position: relative; display: block; padding: 10px 32px 12px 8px; border: 0; margin-bottom: 5px; border-radius: 6px; }
.report-browser .report-row.active { background: var(--accent-soft); }
.report-browser .report-row > button:first-child { width: 100%; padding: 0; min-height: 26px; color: var(--text); }
.report-browser .report-row > button:first-child svg { display: none; }
.report-browser .report-row p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
.report-browser .report-row > .icon-button { position: absolute; top: 9px; right: 2px; width: 28px; min-height: 28px; padding: 6px; }
.visual-reports > .report-result { overflow: auto; min-height: 0; margin: 0; padding: 24px; }
.report-answer-heading { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-answer-heading > div:first-child { flex: 1; min-width: 200px; }
.report-answer-heading h2 { font-size: 23px; letter-spacing: -.02em; margin: 0 0 6px; }
.report-answer-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.report-answer-heading > div:last-child { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.report-answer-heading button { min-height: 32px; font-size: 12px; }
.report-example { color: var(--muted); font-size: 11px; padding-top: 14px; }
.report-visual-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 24px 0 12px; }
.report-visual-controls label { margin: 0; font-size: 11px; width: 150px; }
.report-visual-controls select { min-height: 34px; font-size: 12px; }
.report-visual-controls > span { font-size: 11px; color: var(--muted); margin-left: auto; padding-bottom: 8px; }
.report-chart-scroll { width: 100%; overflow: auto; }
.report-chart { display: block; width: 100%; height: auto; min-width: 650px; }
.report-mark { cursor: pointer; outline: none; }
.report-mark:hover > rect:first-of-type,.report-mark:focus-visible > rect:first-of-type { stroke: var(--chart-text); stroke-width: 2; }
.report-mark:hover text:first-of-type,.report-mark:focus-visible text:first-of-type { text-decoration: underline; }
.report-data { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.report-data summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.report-filter-strip { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--accent-soft); padding: 8px 12px; margin-top: 12px; font-size: 12px; }
.report-no-data { padding: 32px 0; }
.report-no-data h3 { font-size: 20px; }
.report-welcome { grid-column: 1 / -1; padding: 36px; max-width: 800px; }
.report-welcome h2 { font-size: 26px; margin: 0 0 12px; }
.report-welcome p { color: var(--muted); line-height: 1.6; }
.report-welcome ul { list-style: none; padding: 0; margin: 30px 0; }
.report-welcome li { padding: 10px 0; border-bottom: 1px solid var(--border); }
@media(max-width:1100px) { .visual-reports { grid-template-columns: 210px minmax(0,1fr); } .visual-reports > .report-result { padding: 18px; } }
@media(max-width:700px) {
  .report-chart { min-width: 960px; }
  .report-chart-scroll::before { content: 'Scroll horizontally to explore the chart'; display: block; font-size: 12px; color: var(--muted); padding-bottom: 12px; }
  .visual-reports { display: flex; flex-direction: column; overflow: auto; }
  .report-browser { flex: none; overflow: visible; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 12px; }
  .report-browser > header { padding-bottom: 0; } .report-group-picker { margin-bottom: 5px; }
  .report-browser .report-list { display: flex; overflow-x: auto; gap: 8px; }
  .report-browser .report-row { flex: 0 0 200px; padding-block: 6px; margin: 0; }
  .report-browser .report-row p,.report-browser > .wide-button { display: none; }
  .report-browser .report-groups { display: flex; overflow: auto; } .report-browser .report-groups button { white-space: nowrap; width: auto; flex: none; }
  .visual-reports > .report-result { overflow: visible; flex: 1; padding: 18px 12px; }
  .report-answer-heading h2 { font-size: 21px; } .report-visual-controls { gap: 8px; } .report-visual-controls > span { width: 100%; margin: 0; }
}
@media print { .visual-reports { display: block; overflow: visible; } .report-browser,.report-answer-heading button,.report-visual-controls { display: none !important; } .visual-reports > .report-result { overflow: visible; } .report-chart { min-width: 0; } }
