.core-reports { --report-ink: var(--rz-text-color); --report-muted: var(--rz-text-secondary-color); --report-line: var(--rz-border-color, var(--rz-base-300)); color: var(--report-ink); max-width: 100%; }
.core-reports :is(h1, h2) { color: var(--report-ink); }
.core-reports .report-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.25rem; }
.core-reports .report-heading h1 { margin: 0 0 .4rem; }
.core-reports .report-heading p { color: var(--report-muted); max-width: 70ch; }
.core-reports .report-eyebrow { color: var(--report-muted); margin-bottom: .35rem; }
.core-reports button, .core-reports input, .core-reports select { font: inherit; border: 1px solid var(--report-line); border-radius: var(--rz-border-radius); min-height: 2.65rem; padding: .5rem .7rem; }
.core-reports button { color: var(--rz-on-primary); background: var(--rz-primary); cursor: pointer; white-space: nowrap; }
.core-reports button:disabled { opacity: .6; cursor: default; }
.core-reports :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--rz-primary); outline-offset: 3px; }
.core-reports .report-tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--report-line); margin-bottom: 1.25rem; }
.core-reports .report-tabs a { color: var(--report-muted); padding: .7rem .8rem; text-decoration: none; border-bottom: 3px solid transparent; }
.core-reports .report-tabs a.active { color: var(--rz-primary); font-weight: 700; border-bottom-color: var(--rz-primary); }
.core-reports .report-filters { display: flex; flex-wrap: wrap; gap: .85rem; align-items: flex-end; background: var(--rz-panel-background-color); padding: 1rem; border: 1px solid var(--report-line); border-radius: var(--rz-border-radius); }
.core-reports .report-filters label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; min-width: 9.5rem; }
.core-reports .report-filters input, .core-reports .report-filters select { background: var(--rz-input-background-color); color: var(--report-ink); max-width: 18rem; }
.core-reports .report-notice, .core-reports .report-error { padding: .85rem 1rem; border-left: 4px solid var(--rz-warning); background: var(--rz-panel-background-color); margin: 1rem 0; }
.core-reports .report-error { border-color: var(--rz-danger); color: var(--rz-danger); }
.core-reports .report-metrics { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.25rem 0; }
.core-reports .report-metrics article { flex: 1 1 12rem; min-width: 0; border: 1px solid var(--report-line); border-radius: var(--rz-border-radius); padding: 1rem 1.25rem; background: var(--rz-panel-background-color); }
.core-reports .report-metrics span { display: block; color: var(--report-muted); margin-bottom: .35rem; }
.core-reports .report-metrics strong { font-size: 1.6rem; }
.core-reports .report-metrics article p { color: var(--report-muted); font-size: .8rem; margin: .6rem 0 0; line-height: 1.5; }
.core-reports .report-metrics:empty, .core-reports .report-charts:empty { display: none; }
.core-reports .report-freshness { font-size: .8rem; color: var(--report-muted); margin: 1rem 0; }
.core-reports .report-definitions { background: var(--rz-panel-background-color); border-radius: var(--rz-border-radius); padding: .8rem 1rem; margin-bottom: 1.25rem; font-size: .85rem; }
.core-reports summary { cursor: pointer; font-weight: 600; }
.core-reports .report-definitions li { margin-top: .5rem; max-width: 120ch; }
.core-reports .report-table-section { margin: 1.5rem 0; min-width: 0; }
.core-reports .report-table-section h2 { font-size: 1.1rem; margin-bottom: .7rem; }
.core-reports .report-table-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.core-reports .report-table-heading h2 { margin: 0; }
.core-reports .report-secondary { background: var(--rz-panel-background-color); color: var(--rz-primary); }
.core-reports .report-sort { background: transparent; color: inherit; border: 0; border-radius: 0; padding: 0; min-height: 0; font-weight: inherit; text-align: inherit; }
.core-reports .report-table-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: .75rem 0; }
.core-reports .report-table-tools label, .core-reports .report-downloads label { display: grid; gap: .3rem; font-size: .8rem; }
.core-reports .report-table-tools :is(input, select), .core-reports .report-downloads select, .core-reports .report-pagination select { color: var(--report-ink); background: var(--rz-input-background-color); min-width: 0; max-width: 100%; }
.core-reports .report-row-count { color: var(--report-muted); font-weight: normal; font-size: .85rem; }
.core-reports .report-table-scroll { overflow: auto; border: 1px solid var(--report-line); border-radius: var(--rz-border-radius); max-height: 40rem; }
.core-reports .report-table { width: 100%; border-collapse: collapse; background: var(--rz-base-background-color); font-size: .85rem; }
.core-reports .report-table th { background: var(--rz-grid-header-background-color); color: var(--report-ink); text-align: left; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.core-reports .report-table :is(td, th) { padding: .7rem .85rem; border-bottom: 1px solid var(--report-line); vertical-align: top; }
.core-reports .report-table tbody tr:hover { background: var(--rz-grid-hover-background-color); }
.core-reports .report-table a { color: var(--rz-link-color); text-underline-offset: .15em; }
.core-reports .report-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.core-reports .report-empty { color: var(--report-muted); padding: 1rem; border: 1px dashed var(--report-line); }
.core-reports .report-pagination { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; justify-content: flex-end; margin-top: .65rem; font-size: .85rem; }
.core-reports .report-drilldown { min-width: 7rem; }
.core-reports .report-drilldown[open] { min-width: min(60rem, 80vw); }
.core-reports .report-drilldown .report-table-scroll { max-height: 25rem; }
.core-reports .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.core-reports .report-sections { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .75rem; }
.core-reports .report-sections .view-pill { color: var(--report-ink); background: var(--rz-panel-background-color); border-color: var(--report-line); white-space: normal; }
.core-reports .report-sections .view-pill-selected { color: var(--rz-on-primary); background: var(--rz-primary); border-color: var(--rz-primary); }
.core-reports .report-section-description { color: var(--report-muted); font-size: .85rem; margin: .6rem 0 1rem; }
.core-reports .report-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.core-reports .report-chart { min-width: 0; padding: 1rem; background: var(--rz-panel-background-color); border: 1px solid var(--report-line); border-radius: var(--rz-border-radius); }
.core-reports .report-chart h2, .core-reports .report-downloads h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.core-reports .report-chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .75rem; color: var(--report-muted); margin-bottom: 1rem; }
.core-reports .report-chart-legend span { display: inline-flex; gap: .4rem; align-items: center; }
.core-reports .report-chart-legend i { width: .65rem; height: .65rem; border-radius: 2px; }
.core-reports .report-series-0 { background: var(--rz-primary); }
.core-reports .report-series-1 { background: var(--rz-warning); }
.core-reports .report-series-2 { background: var(--rz-info); }
.core-reports .report-series-3 { background: var(--rz-success); }
.core-reports .report-chart-bars { display: grid; gap: .65rem; max-height: 30rem; overflow: auto; }
.core-reports .report-chart-row { display: grid; grid-template-columns: minmax(5rem, 28%) 1fr; align-items: center; gap: .75rem; font-size: .75rem; }
.core-reports .report-chart-label { overflow-wrap: anywhere; }
.core-reports .report-chart-values { min-width: 0; display: grid; gap: .25rem; }
.core-reports .report-chart-value { display: flex; align-items: center; gap: .5rem; }
.core-reports .report-chart-value > span { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.core-reports .report-chart-track { flex: 1; min-width: 1.5rem; background: var(--rz-base-background-color); height: .65rem; border-radius: 2px; }
.core-reports .report-chart-bar { height: 100%; border-radius: 2px; }
.core-reports .report-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.core-reports .report-downloads article { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.25rem; border: 1px solid var(--report-line); border-radius: var(--rz-border-radius); background: var(--rz-panel-background-color); }
.core-reports .report-downloads p { font-size: .85rem; color: var(--report-muted); overflow-wrap: anywhere; }
.core-reports .report-downloads button { margin-top: auto; }
.core-reports .report-downloads details { font-size: .8rem; }
.core-reports .report-cohort-cell { background: color-mix(in srgb, var(--rz-primary) var(--retention-strength), var(--rz-panel-background-color)); }
.core-reports .report-cell-note { display: block; font-size: .72rem; color: var(--report-muted); margin-top: .25rem; }
@media (max-width: 700px) {
    .core-reports .report-heading { flex-direction: column; }
    .core-reports .report-filters label { flex: 1 1 10rem; }
    .core-reports .report-filters :is(input, select) { max-width: 100%; width: 100%; }
    .core-reports .report-metrics article { flex: 1 1 10rem; min-width: 0; }
    .core-reports .report-tabs a { padding: .5rem; font-size: .85rem; }
}
