.ads-report-root {
  --ads-navy: #163551;
  --ads-navy-2: #244b6a;
  --ads-ink: #172536;
  --ads-muted: #586b7f;
  --ads-line: #d8e2eb;
  --ads-blue-soft: #edf5fa;
  --ads-teal: #0f8077;
  --ads-teal-soft: #e6f5f2;
  --ads-orange: #df6f2b;
  --ads-orange-soft: #fff0e7;
  --ads-red: #b83c3c;
  --ads-red-soft: #fdeaea;
  --ads-green: #19704d;
  --ads-green-soft: #e7f5ed;
  color: var(--ads-ink);
  font-variant-numeric: tabular-nums;
}

.ads-report-root * { box-sizing: border-box; }
.ads-report-hero { display: flex; justify-content: space-between; gap: 28px; padding: 28px 30px; border-radius: 14px; background: var(--ads-navy); color: #fff; }
.ads-report-hero-copy { max-width: 850px; }
.ads-report-brand { display: flex; align-items: center; gap: 8px; color: #b8d8ec; font-size: 12px; font-weight: 800; }
.ads-report-brand-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: var(--ads-navy); font-size: 11px; }
.ads-report-hero h2 { margin: 9px 0 6px; color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.ads-report-hero p { max-width: 72ch; margin: 0; color: #d3e1eb; }
.ads-report-meta { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 13px 22px; min-width: 360px; margin: 0; }
.ads-report-meta div { display: grid; gap: 2px; }
.ads-report-meta dt { color: #9eb7ca; font-size: 12px; }
.ads-report-meta dd { margin: 0; font-weight: 750; }
.ads-report-evidence { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 12px 0 16px; padding: 12px 15px; border: 1px solid #e7ce78; border-radius: 10px; background: #fff5cf; color: #624f08; }
.ads-report-evidence p { margin: 0; }
.ads-report-evidence small { color: #74621d; white-space: nowrap; }
.ads-report-evidence-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; background: #fff4b8; font-size: 12px; font-weight: 800; }
.ads-report-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--ads-line); border-radius: 12px; background: var(--ads-line); }
.ads-report-metric { min-width: 0; padding: 17px 18px; background: #fff; }
.ads-report-metric span { display: block; color: var(--ads-muted); font-size: 12px; }
.ads-report-metric strong { display: block; margin: 5px 0 2px; font-size: 21px; line-height: 1.2; }
.ads-report-metric small { color: #718297; font-size: 11px; }
.ads-report-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 14px; margin-top: 16px; }
.ads-report-chart-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); margin-top: 14px; }
.ads-report-panel { overflow: hidden; border: 1px solid var(--ads-line); border-radius: 12px; background: #fff; }
.ads-report-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--ads-line); }
.ads-report-panel-head h2, .ads-report-panel-head h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.ads-report-panel-head p { margin: 4px 0 0; color: var(--ads-muted); font-size: 12px; }
.ads-report-decisions { margin: 0; padding: 0; list-style: none; }
.ads-report-decisions li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 15px 20px; border-bottom: 1px solid #e7edf2; }
.ads-report-decisions li:last-child { border-bottom: 0; }
.ads-report-decision-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ads-blue-soft); color: #175f8d; font-weight: 800; }
.ads-report-decisions strong { display: block; margin-bottom: 3px; }
.ads-report-decisions p { margin: 0; color: #46596d; }
.ads-report-impact, .ads-report-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 999px; background: #e6edf2; color: #3f566b; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ads-report-impact.danger, .ads-report-tag.bad { background: var(--ads-red-soft); color: var(--ads-red); }
.ads-report-impact.warning, .ads-report-tag.warn { background: var(--ads-orange-soft); color: #9d4718; }
.ads-report-impact.good, .ads-report-tag.good { background: var(--ads-green-soft); color: var(--ads-green); }
.ads-report-scope { display: grid; grid-template-columns: repeat(2, 1fr); padding: 7px 20px 16px; }
.ads-report-scope div { padding: 12px 0; border-bottom: 1px solid #e7edf2; }
.ads-report-scope div:nth-child(odd) { padding-right: 16px; }
.ads-report-scope div:nth-child(even) { padding-left: 16px; border-left: 1px solid #e7edf2; }
.ads-report-scope span { display: block; color: var(--ads-muted); font-size: 12px; }
.ads-report-scope strong { display: block; margin-top: 3px; font-size: 18px; }
.ads-report-scope-note { margin: 0 20px 18px; padding: 11px 12px; border-radius: 8px; background: #f1f5f8; color: #43566a; font-size: 12px; }
.ads-report-quick-review { grid-column: 1 / -1; }
.ads-report-quick-row { display: grid; grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr) auto; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #e7edf2; }
.ads-report-quick-row:last-child { border-bottom: 0; }
.ads-report-quick-row p { margin: 0; color: var(--ads-muted); }
.ads-report-chart-body { padding: 17px 20px; }
.ads-report-trend-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(300px, 1.2fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid #e8eef3; }
.ads-report-trend-row:last-child { border-bottom: 0; }
.ads-report-trend-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-report-trend-name span { color: var(--ads-muted); font-size: 11px; }
.ads-report-trend-bars { display: grid; gap: 7px; }
.ads-report-trend-bars div { display: grid; grid-template-columns: 24px minmax(80px, 1fr) 62px; align-items: center; gap: 8px; }
.ads-report-trend-bars span, .ads-report-trend-bars em { color: var(--ads-muted); font-size: 11px; font-style: normal; }
.ads-report-trend-bars i { height: 8px; overflow: hidden; border-radius: 999px; background: #e4ebf0; }
.ads-report-trend-bars b { display: block; height: 100%; border-radius: inherit; background: #77a9c7; }
.ads-report-trend-bars b.current { background: var(--ads-orange); }
.ads-report-cpc-chart { display: grid; gap: 9px; }
.ads-report-cpc-row { display: grid; grid-template-columns: 94px minmax(90px, 1fr) 75px 88px; align-items: center; gap: 9px; padding: 6px 7px; border-radius: 8px; }
.ads-report-cpc-row.best { background: var(--ads-teal-soft); }
.ads-report-cpc-row strong { font-size: 12px; }
.ads-report-cpc-row span { color: var(--ads-muted); font-size: 11px; }
.ads-report-cpc-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e5edf1; }
.ads-report-cpc-track i { display: block; height: 100%; border-radius: inherit; background: var(--ads-teal); }
.ads-report-table-area { margin-top: 16px; }
.ads-report-tabs { position: sticky; top: 8px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; padding: 7px; border: 1px solid var(--ads-line); border-radius: 11px; background: rgba(255,255,255,.98); }
.ads-report-tab { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 38px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #40556a; font-weight: 750; cursor: pointer; }
.ads-report-tab:hover, .ads-report-tab[aria-selected="true"] { background: #e5f1f7; color: #155f8b; }
.ads-report-tab b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #dbe6ed; color: #52687b; font-size: 10px; }
.ads-report-tab[aria-selected="true"] b { background: #fff; color: #155f8b; }
.ads-report-table-panel { margin-top: 10px; }
.ads-report-toolbar { display: flex; align-items: center; gap: 10px; }
.ads-report-toolbar input { width: min(320px, 42vw); min-height: 40px; padding: 8px 11px; border: 1px solid #b9cad8; border-radius: 8px; color: var(--ads-ink); }
.ads-report-count { color: var(--ads-muted); font-size: 12px; white-space: nowrap; }
.ads-report-table-wrap { max-height: 720px; overflow: auto; }
.ads-report-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ads-report-table th { position: sticky; top: 0; z-index: 2; padding: 11px 12px; background: var(--ads-navy-2); color: #fff; text-align: left; white-space: nowrap; }
.ads-report-table td { padding: 10px 12px; border-bottom: 1px solid #e3ebf1; vertical-align: top; white-space: nowrap; }
.ads-report-table tbody tr:nth-child(even) { background: #f4f8fb; }
.ads-report-table tbody tr:hover { background: #fff7dc; }
.ads-report-table td.wrap { min-width: 240px; max-width: 440px; white-space: normal; }
.ads-report-decision-buttons { display: flex; gap: 6px; min-width: 190px; }
.ads-report-decision-buttons button { min-height: 30px; padding: 0 8px; border: 1px solid #b9cad8; border-radius: 6px; background: #fff; color: #29445d; cursor: pointer; }
.ads-report-decision-buttons button:disabled { opacity: .45; cursor: not-allowed; }
.ads-report-empty { padding: 30px !important; color: var(--ads-muted); text-align: center; }
.ads-report-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 16px; background: #f7f9fb; }
.ads-report-pager button { min-height: 36px; padding: 0 11px; border: 1px solid #b9cad8; border-radius: 7px; background: #fff; color: #29445d; cursor: pointer; }
.ads-report-pager button:disabled { opacity: .45; cursor: not-allowed; }
.ads-report-limitations { margin-top: 16px; padding: 17px 20px; border: 1px solid var(--ads-line); border-radius: 12px; background: #eaf1f6; }
.ads-report-limitations h3 { margin: 0 0 7px; font-size: 14px; }
.ads-report-limitations p { max-width: 105ch; margin: 0; color: #40556a; font-size: 12px; }
.ads-report-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 13px; color: #708195; font-size: 11px; }

@media (max-width: 1100px) {
  .ads-report-metrics { grid-template-columns: repeat(3, 1fr); }
  .ads-report-grid { grid-template-columns: 1fr; }
  .ads-report-hero { flex-direction: column; }
  .ads-report-meta { min-width: 0; }
}

@media (max-width: 680px) {
  .ads-report-hero { padding: 22px 20px; }
  .ads-report-hero h2 { font-size: 24px; }
  .ads-report-meta { grid-template-columns: 1fr 1fr; }
  .ads-report-evidence { grid-template-columns: 1fr; }
  .ads-report-evidence small { white-space: normal; }
  .ads-report-metrics { grid-template-columns: repeat(2, 1fr); }
  .ads-report-decisions li { grid-template-columns: 30px minmax(0, 1fr); }
  .ads-report-impact { grid-column: 2; justify-self: start; }
  .ads-report-scope { grid-template-columns: 1fr; }
  .ads-report-scope div:nth-child(odd), .ads-report-scope div:nth-child(even) { padding: 11px 0; border-left: 0; }
  .ads-report-trend-row { grid-template-columns: 1fr; }
  .ads-report-cpc-row { grid-template-columns: 82px minmax(80px, 1fr) 70px; }
  .ads-report-cpc-row span:last-child { display: none; }
  .ads-report-panel-head { flex-direction: column; }
  .ads-report-toolbar { width: 100%; justify-content: space-between; }
  .ads-report-toolbar input { width: min(70vw, 320px); }
  .ads-report-foot { flex-direction: column; }
  .ads-report-quick-row { grid-template-columns: 1fr; }
}
