.report-compare {
  margin: .9rem 0 1rem;
  border: 1px solid var(--stone-edge);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}
.report-compare > summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: .55rem .9rem;
  list-style: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}
.report-compare > summary::-webkit-details-marker { display: none; }
.report-compare > summary::after { content: '⌄'; margin-left: .3rem; font-size: 1.1rem; color: var(--text-muted); }
.report-compare[open] > summary::after { transform: rotate(180deg); }
.report-compare-glyph { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 7px; color: var(--ink); background: var(--gold-tint); font-size: 1rem; }
.report-compare-summary { margin-left: auto; color: var(--text-muted); font-size: .7rem; font-weight: 500; text-align: right; }
.report-compare-form { padding: .25rem .9rem .9rem; border-top: 1px solid var(--stone-edge); }
.report-compare-dimensions { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 .75rem; }
.report-compare-dimensions label, .report-compare-values label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: var(--text); font-size: .75rem; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.report-compare-dimensions label input, .report-compare-values label input { accent-color: var(--gold-tint); width: 16px; height: 16px; min-height: 0; margin: 0; }
.report-compare-dimensions label { position: relative; }
.report-compare-dimensions label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.report-compare-dimensions label span { display: inline-block; padding: .45rem .7rem; border: 1px solid var(--stone-edge); border-radius: 7px; }
.report-compare-dimensions label:has(input:checked) span { border-color: var(--gold-tint); background: var(--gold-tint); color: var(--ink); }
.report-compare-dimensions label:has(input:focus-visible) span { outline: 2px solid var(--teal); outline-offset: 2px; }
.report-compare-fixed-scope { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin: 0 0 .8rem; padding: .7rem; border: 1px solid var(--stone-edge); border-radius: 8px; background: var(--bg); }
.report-compare-fixed-scope > .help { grid-column: 1 / -1; margin: 0 0 .05rem; font-size: .68rem; }
.report-compare-fixed-scope label { display: grid; gap: .3rem; min-width: 0; color: var(--text-muted); font-size: .65rem; font-weight: 700; }
.report-compare-fixed-scope input, .report-compare-fixed-scope select { width: 100%; min-width: 0; min-height: 38px; padding: .4rem .5rem; border: 1px solid var(--stone-edge); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: .72rem; }
.report-compare-fixed-scope input:focus-visible, .report-compare-fixed-scope select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.report-compare-choice-group { display: none; }
.ads-callbacks .report-compare-fixed-scope { grid-template-columns: repeat(2, minmax(0, 210px)); }
.ads-callbacks .ads-callback-choices { display: block; }
.report-compare-form:has(input[data-dimension="version"]:checked) .choices-version,
.report-compare-form:has(input[data-dimension="platform"]:checked) .choices-platform,
.report-compare-form:has(input[data-dimension="country"]:checked) .choices-country { display: block; }
.report-compare-choice-group .help { margin: 0 0 .5rem; line-height: 1.45; }
.report-compare-values { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 190px; padding: .15rem 0 .45rem; overflow: auto; }
.report-compare-values label { min-height: 36px; padding: .35rem .55rem; border: 1px solid var(--stone-edge); border-radius: 7px; background: var(--bg); }
.report-compare-values label:has(input:checked) { border-color: var(--teal); }
.report-compare-values label[hidden], .report-compare-empty[hidden] { display: none; }
.report-compare-empty, .report-compare-error { margin: .55rem 0; color: var(--text-muted); font-size: .75rem; line-height: 1.45; }
.report-compare-error { color: #f8a592; }
.report-compare-apply { min-height: 38px; margin-top: .5rem; padding: .45rem .8rem; border: 1px solid var(--gold-tint); border-radius: 7px; background: var(--gold-tint); color: var(--ink); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.report-compare-result { margin: .8rem 0 1.15rem; padding: .8rem; border: 1px solid var(--stone-edge); border-radius: 10px; background: var(--panel); }
.report-compare-result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin: 0 0 .35rem; }
.report-compare-result h3 { margin: .15rem 0 0; font-size: 1rem; color: var(--text); line-height: 1.3; }
.report-compare-kicker { color: var(--text-muted); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.report-compare-count { color: var(--text-muted); font-size: .68rem; white-space: nowrap; }
.report-compare-result > .help { margin: .4rem 0 .7rem; font-size: .72rem; line-height: 1.55; }
.report-compare-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--stone-edge); border-radius: 8px; }
.report-compare-table { width: 100%; min-width: max(620px, calc(190px + 154px * var(--series-count, 3))); border-collapse: collapse; margin: 0; }
.report-compare-table th, .report-compare-table td { min-width: 142px; padding: .6rem .7rem; vertical-align: top; border-bottom: 1px solid var(--stone-edge); color: var(--text); font-family: var(--font-text); font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }
.report-compare-table th:first-child { min-width: 170px; width: 190px; text-align: left; }
.report-compare-result table.report-compare-table thead th { background: var(--bg); color: var(--text); font-family: var(--font-text); font-size: .7rem; text-transform: none; letter-spacing: 0; white-space: normal; }
.report-compare-result table.report-compare-table tbody th { background: var(--bg); color: var(--text); font-family: var(--font-text); font-size: .72rem; font-weight: 700; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--stone-edge); }
.report-compare-table tbody th strong, .report-compare-table tbody td strong { display: block; font-size: .78rem; line-height: 1.35; }
.report-compare-table tbody th small, .report-compare-table tbody td small { display: block; margin-top: .2rem; color: var(--text-muted); font-size: .63rem; font-weight: 500; line-height: 1.4; white-space: normal; }
.report-compare-table tbody td { color: var(--text); font-size: .78rem; }
.report-compare-track { display: block; height: 4px; margin-top: .42rem; border-radius: 3px; background: var(--stone-edge); overflow: hidden; }
.report-compare-track > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.report-daily-trend { margin: .8rem 0 1rem; padding: .65rem .75rem; border: 1px solid var(--stone-edge); border-radius: 8px; background: var(--bg); }
.report-daily-trend h4, .report-compare-daily h4 { margin: 0 0 .45rem; color: var(--text); font-family: var(--font-text); font-size: .75rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.report-daily-trend svg { display: block; width: 100%; height: auto; max-height: 260px; overflow: visible; }
.report-trend-axis { stroke: var(--text-muted); stroke-width: 1; }
.report-trend-guide { stroke: var(--stone-edge); stroke-width: 1; stroke-dasharray: 4 4; }
.report-trend-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.report-trend-label { fill: var(--text-muted); font-family: var(--font-text); font-size: 11px; }
.report-trend-mobile-meta { display: none; }
.report-trend-legend { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .25rem; font-size: .66rem; color: var(--text); }
.report-trend-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.report-trend-legend i { width: 13px; height: 3px; border-radius: 3px; }
.report-compare-daily { margin-top: .65rem; }
.report-compare-daily > summary { padding: .45rem 0; color: var(--text); font-size: .75rem; font-weight: 700; cursor: pointer; }
.report-compare-daily > .help { margin: .3rem 0 .6rem; font-size: .7rem; }
.report-compare-daily h4 { margin-top: .8rem; }
@media (max-width: 700px) {
  .report-compare > summary { gap: .45rem; padding: .55rem .7rem; }
  .report-compare-summary { font-size: .64rem; }
  .report-compare-form { padding: .35rem .7rem .7rem; }
  .report-compare-fixed-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .55rem; }
  .report-compare-result { padding: .65rem; }
  .report-compare-table { display: block; width: 100%; min-width: 0; }
  .report-compare-table thead { display: none; }
  .report-compare-table tbody { display: block; }
  .report-compare-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--stone-edge); }
  .report-compare-table tbody th:first-child { display: block; grid-column: 1 / -1; width: auto; min-width: 0; padding: .55rem .65rem .35rem; border: 0; background: var(--bg); }
  .report-compare-table tbody td { display: block; min-width: 0; padding: .48rem .65rem .65rem; border-bottom: 0; overflow-wrap: anywhere; }
  .report-compare-table tbody td::before { content: attr(data-series); display: block; margin-bottom: .28rem; color: var(--text-muted); font-size: .64rem; font-weight: 700; line-height: 1.2; }
  .report-daily-trend { padding: .55rem .45rem; }
  .report-daily-trend svg { min-height: 150px; }
  .report-daily-trend svg text { display: none; }
  .report-trend-mobile-meta { display: flex; justify-content: space-between; gap: .3rem; color: var(--text-muted); font-size: .62rem; }
}
