.product-reporting { min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.product-reporting .cockpit-heading { align-items: center; gap: 8px; margin-bottom: 10px; }
.product-reporting .cockpit-heading h1 { min-width: 0; flex: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-reporting .cockpit-heading > .row { gap: 6px; flex-wrap: nowrap; }
.product-reporting .cockpit-breadcrumbs { gap: 6px; }
.product-reporting .cockpit-breadcrumbs > * + *::before { margin-right: 6px; }
.product-report-selected-product { display: inline-block; min-width: 0; max-width: min(320px, 50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.product-report-tools { min-inline-size: 0; inline-size: 100%; max-inline-size: 100%; contain: inline-size; }
.product-report-tools > summary { display: none; min-inline-size: 0; inline-size: 100%; max-inline-size: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-report-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.product-report-controls .field { margin: 0; min-width: 0; }
.product-report-controls select { max-width: 240px; }
.product-report-search { display: flex; gap: 6px; align-items: end; margin: 0; }
.product-report-search input { width: min(240px, 100%); }
.product-report-filters { position: relative; }
.product-report-filters > summary, .product-report-tools > summary { cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 42px; }
.product-report-filter-controls { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
.product-report-filters[open] { flex-basis: 100%; }
.product-report-freshness { margin: 0; min-height: 21px; }
.product-report-content { min-width: 0; }
.product-report-grid { overflow: auto; max-height: min(var(--report-grid-max-height, 65vh), var(--product-grid-available, 85vh)); border: 1px solid var(--line); border-radius: 8px; scrollbar-gutter: stable; }
.product-report-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 990px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.product-report-table th, .product-report-table td { padding: 8px 12px; vertical-align: middle; border-bottom: 1px solid var(--line); text-align: left; }
.product-report-table th:first-child { width: 30%; }
.product-report-table thead th { position: sticky; top: 0; z-index: 4; background: var(--surface); font-weight: 600; height: 64px; box-sizing: border-box; }
.product-report-table thead small, .product-report-table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.product-report-table tbody tr { background: var(--bg); }
.product-report-table tbody tr:nth-child(even) { background: var(--surface); }
.product-report-table .product-report-total { position: sticky; top: var(--product-heading-height, 64px); z-index: 3; background: var(--surface); font-weight: 600; }
.product-report-table .product-report-total + .product-report-total,
.product-report-table .product-report-account { position: sticky; top: calc(var(--product-heading-height, 64px) + var(--product-total-height, 64px)); z-index: 2; }
.product-report-table .product-report-total th, .product-report-table .product-report-total td { border-bottom: 2px solid var(--line); }
.product-report-name { overflow-wrap: anywhere; white-space: normal; line-height: 1.4; font-size: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-report-pair { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; font-size: 18px; }
.product-report-roas { font-weight: 650; }
.product-report-metrics small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; font-size: 14px; }
.product-report-metrics + .product-report-metrics { margin-top: 5px; border-top: 1px solid var(--line); padding-top: 5px; }
.product-account-toggle { float: left; margin: 0 8px 2px 0; min-width: 36px; min-height: 36px; }
.product-report-campaign th:first-child { padding-left: 28px; }
.product-report-pager { display: flex; gap: 10px; align-items: center; justify-content: end; padding: 8px 0; flex-wrap: wrap; }
.product-report-filter-note { margin: 0 0 6px; color: var(--muted); }
.product-report-empty { padding: 24px 12px !important; }
.product-report-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; }
.product-report-dialog::backdrop { background: #0009; }
.product-report-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; font-size: inherit; }
.product-report-dialog .field > :is(span, label), .product-report-dialog .hint { color: var(--muted); font-size: 14px; }
.product-report-dialog .error { color: var(--text); background: var(--raised); border-color: var(--line-strong); }
.product-report-dialog :is(input:not([type="checkbox"]), select, textarea) { background: var(--surface); color: var(--text); border-color: var(--control-line); color-scheme: inherit; }
.product-report-dialog :is(input, textarea)::placeholder { color: var(--disabled-text); }
.product-report-dialog .btn { min-height: 36px; color: var(--text); background: var(--surface); border-color: var(--line); font-size: 14px; }
.product-report-dialog .btn:hover:not(:disabled) { color: var(--text); background: var(--hover); border-color: var(--line-strong); }
.product-report-dialog .btn.primary { background: var(--soft); color: var(--accent-ink); border-color: var(--line-strong); }
.product-report-dialog .btn.primary:hover:not(:disabled) { background: var(--soft-strong); color: var(--accent-ink); }
.product-report-dialog .btn:disabled { opacity: 1; color: var(--disabled-text); background: var(--raised); }
.product-report-dialog :is(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.product-report-evidence { padding: 10px 0; border-top: 1px solid var(--line); }
.product-report-evidence summary { overflow-wrap: anywhere; cursor: pointer; }
.product-report-correction { margin: 16px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.product-report-footnote { margin: 0; }
@media (max-width: 700px) {
  .product-reporting .cockpit-heading { display: block; }
  .product-reporting .cockpit-heading > .row { margin-top: 8px; flex-wrap: wrap; }
  .product-report-controls { gap: 8px; }
  .product-report-controls > .field { flex: 1 1 180px; }
  .product-report-controls > .field > span, .product-report-search .field > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .product-report-controls select { max-width: 100%; width: 100%; }
  .product-report-search { flex: 1 1 100%; }
  .product-report-search .field { flex: 1; }
  .product-report-search input { width: 100%; }
  .product-report-filter-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .product-report-table { min-width: 838px; }
  .product-report-table th:first-child { width: 132px; }
  .product-report-table th, .product-report-table td { padding: 8px; width: 176px; }
  .product-report-table .product-report-campaign th:first-child { padding-left: 12px; }
  .product-report-table thead th { height: 72px; }
  .product-report-table .product-report-total { top: var(--product-heading-height, 72px); }
  .product-report-pair { gap: 8px; }
  .product-reporting .cockpit-breadcrumbs { flex-wrap: wrap; overflow-wrap: anywhere; }
}
@media (max-height: 600px) {
  .product-report-tools > summary { display: list-item; }
  .product-report-tools[open] > summary { margin-bottom: 8px; }
}
