#reporting {
  --reporting-tuck: clamp(22px, 3vw, 38px);
  padding-block: clamp(28px, 3.8vw, 53px) 0;
  margin-block-end: calc(-1 * var(--reporting-tuck));
}

.reporting-inner {
  width: min(100%, 1180px);
  margin-inline: auto;
}

#reporting-title {
  font-size: clamp(37px, 5.75vw, 76px);
  line-height: .96;
  text-align: center;
  text-wrap: balance;
}

#reporting-title::after { content: none; }

.reporting-intro {
  max-width: 86ch;
  margin: 10px auto clamp(17px, 2vw, 26px);
  text-align: center;
  text-wrap: pretty;
}

.reporting-dashboard {
  --report-panel: #19121a;
  --report-rule: #463043;
  --report-pad: clamp(10px, 1.55vw, 20px);
  display: grid;
  gap: clamp(9px, 1vw, 13px);
  min-width: 0;
  padding: var(--report-pad);
  padding-block-end: calc(var(--report-pad) + var(--reporting-tuck));
  border-radius: clamp(15px, 2vw, 26px);
  background:
    radial-gradient(ellipse at 1% 0%, #3b2036 0%, transparent 59%),
    radial-gradient(ellipse at 97% 1%, #2e2730 0%, transparent 42%),
    #211721;
  font-family: var(--button-font);
}

.reporting-header,
.reporting-identity {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.35vw, 16px);
  min-width: 0;
}

.reporting-header {
  flex-wrap: wrap;
  padding: 1px 3px 3px;
}

.reporting-identity { flex: 1 1 auto; }

.reporting-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.reporting-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(44px, 3.9vw, 52px);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 11px;
  background: #2a1426;
}

.reporting-mark img { width: 100%; object-fit: contain; }

#reporting-campaign {
  color: var(--ink);
  font: 900 clamp(1.4rem, 2.6vw, 2.25rem)/.98 var(--display);
  letter-spacing: -.015em;
  text-transform: none;
  text-wrap: balance;
}

#reporting-campaign span { color: var(--rose-light); }

.reporting-header .reporting-period {
  color: var(--muted);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reporting-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1vw, 12px);
}

.reporting-stat {
  --report-stat-color: var(--ink);
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 9px clamp(9px, 1.15vw, 14px);
  border-radius: 11px;
  background: #211722;
}

.reporting-stat--views {
  --report-stat-color: var(--accent-lime);
  background: linear-gradient(120deg, #394029, #24241d 80%);
}

.reporting-stat--geo {
  --report-stat-color: var(--accent-hover);
  background: linear-gradient(120deg, #3d1d34, #261724 85%);
}

.reporting-stat dt {
  color: var(--rose-light);
  font-size: clamp(.69rem, .9vw, .81rem);
  font-weight: 710;
  line-height: 1.3;
}

.reporting-stat dd { line-height: 1; }

.reporting-stat strong {
  color: var(--report-stat-color);
  font: 900 clamp(1.77rem, 3.6vw, 3.05rem)/.96 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reporting-stat .reporting-stat-note {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.38;
  text-wrap: pretty;
}

.reporting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(9px, 1vw, 13px);
}

.reporting-panel {
  min-width: 0;
  padding: clamp(9px, 1.2vw, 16px);
  border-radius: 13px;
  background: var(--report-panel);
}

.reporting-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: clamp(6px, .75vw, 10px);
}

.reporting-panel-head h4 {
  margin: 0;
  color: var(--ink);
  font: 900 clamp(1.35rem, 1.9vw, 1.85rem)/1 var(--display);
  text-transform: uppercase;
}

.reporting-panel-head p,
.reporting-dashboard .reporting-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.reporting-dashboard .reporting-note { margin-top: 12px; }

.reporting-range {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--report-rule);
  border-radius: 8px;
  background: #120e14;
}

.reporting-range button,
.reporting-sort {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reporting-range button {
  min-width: 44px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
}

.reporting-range button:is(:hover, :focus-visible),
.reporting-sort:is(:hover, :focus-visible) {
  background: #352335;
  color: var(--ink);
}

.reporting-range button[aria-pressed='true'] {
  background: var(--accent-lime);
  color: #222919;
}

.reporting-range button:active,
.reporting-sort:active { box-shadow: inset 0 0 0 2px currentColor; }

.reporting-range button:focus-visible,
.reporting-sort:focus-visible { outline-offset: -3px; }

.reporting-chart-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.25;
}

.reporting-chart-readout output {
  color: var(--accent-lime);
  font: 900 clamp(1.35rem, 2.5vw, 2rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.reporting-chart-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  margin-inline-end: 3px;
  color: var(--muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.reporting-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-block: -.5em;
  text-align: right;
}

.reporting-chart-stage { min-width: 0; }

.reporting-chart-plot {
  display: block;
  width: 100%;
  height: clamp(106px, 15svh, 155px);
  overflow: visible;
}

.reporting-chart-gridlines,
.reporting-chart-goal,
.reporting-chart-crosshair,
.reporting-chart-line { fill: none; vector-effect: non-scaling-stroke; }

.reporting-chart-gridlines { stroke: var(--report-rule); }

.reporting-chart-goal {
  stroke: var(--accent-hover);
  stroke-dasharray: 5 5;
  stroke-opacity: .82;
}

.reporting-chart-crosshair { stroke: var(--accent-lime); stroke-opacity: .5; }

.reporting-chart-line {
  stroke: var(--accent-lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #c1fa3850);
}

.reporting-chart-dot {
  fill: var(--accent-lime);
  stroke: var(--report-panel);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.reporting-chart-x {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
  gap: 3px;
  position: relative;
  white-space: nowrap;
}

.reporting-chart-x span:nth-child(2),
.reporting-chart-x span:nth-child(3) {
  position: absolute;
  left: var(--label-position, var(--label-fallback));
  transform: translateX(-50%);
}

.reporting-chart-x span:nth-child(2) { --label-fallback: 34.483%; }
.reporting-chart-x span:nth-child(3) { --label-fallback: 65.517%; }

.reporting-scrub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 3px;
  color: var(--muted);
  font-size: .71rem;
}

.reporting-scrub input {
  display: block;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  accent-color: var(--accent-lime);
  cursor: pointer;
}

.reporting-scrub input:focus-visible { outline-offset: -3px; }

.reporting-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.25;
}

.reporting-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

.reporting-chart-legend span::before {
  content: '';
  flex: none;
  width: 14px;
  border-top: 2px solid var(--accent-lime);
}

.reporting-chart-legend .reporting-legend-goal::before {
  border-color: var(--accent-hover);
  border-top-style: dashed;
}

.reporting-geo-table,
.reporting-post-table { min-width: 0; }

.reporting-panel table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: clamp(.69rem, 1vw, .81rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.reporting-panel thead { color: var(--muted); }

.reporting-panel th,
.reporting-panel td {
  padding: 6px 5px;
  border-bottom: 1px solid var(--report-rule);
  text-align: left;
}

.reporting-panel th:first-child,
.reporting-panel td:first-child { padding-inline-start: 0; }

.reporting-panel th:last-child,
.reporting-panel td:last-child { padding-inline-end: 0; }

.reporting-panel tbody tr:last-child > * { border-bottom: 0; }
.reporting-panel tbody th { font-weight: 680; }

.reporting-geo th:nth-child(n + 2),
.reporting-geo td,
.reporting-posts th:nth-child(n + 3),
.reporting-posts td:nth-child(n + 3) { text-align: right; white-space: nowrap; }

.reporting-geo th,
.reporting-geo td { padding-block: 5px; }

.reporting-country-code {
  display: inline-grid;
  place-items: center;
  width: 25px;
  min-height: 21px;
  margin-inline-end: 5px;
  border-radius: 4px;
  background: #332233;
  color: var(--rose-light);
  font-size: .62rem;
  font-weight: 750;
  vertical-align: .05em;
}

.reporting-country-target {
  margin-inline-start: 5px;
  color: var(--accent-hover);
  font-size: .67rem;
  white-space: nowrap;
}

.reporting-geo-target :is(th, td) { background: #ff4eaf0c; }
.reporting-geo-target .reporting-country-code { color: #321127; background: var(--accent-hover); }
.reporting-geo-target .reporting-geo-share { color: var(--accent-hover); }

.reporting-geo-share {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: min(14vw, 62px);
  color: var(--ink);
  line-height: 1;
}

.reporting-meter {
  --report-meter-color: var(--accent-hover);
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #3a2b3b;
}

.reporting-meter > i {
  display: block;
  width: var(--share, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--report-meter-color);
  transform-origin: 0 50%;
}

.reporting-geo tr:not(.reporting-geo-target) .reporting-meter { --report-meter-color: #ad7297; }

.reporting-posts td:nth-child(3) { color: var(--accent-lime); font-weight: 730; }
.reporting-posts td:last-child { color: var(--muted); }
.reporting-posts tbody tr:hover > * { background: #ffffff05; }

.reporting-posts :is(thead th, tbody th, tbody td) { padding-block: 1px; }

.reporting-reel,
.reporting-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 4px;
  font-size: inherit;
  line-height: 1.15;
  white-space: nowrap;
}

.reporting-reel {
  color: var(--accent-hover);
  font-weight: 660;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.reporting-reel svg {
  flex: none;
  width: 12px;
  height: 12px;
  transition: transform .18s ease;
}

.reporting-reel:is(:hover, :focus-visible) { color: var(--ink); }
.reporting-reel:hover svg { transform: translate(2px, -2px); }
.reporting-reel:focus-visible { outline-offset: 1px; }

.reporting-sort { justify-content: flex-end; padding: 0 2px; font-weight: 700; }

.reporting-sort::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-1px) rotate(45deg);
}

.reporting-posts th[aria-sort='ascending'] .reporting-sort::after {
  transform: translateY(1px) rotate(225deg);
}

.reporting-posts th:is([aria-sort='ascending'], [aria-sort='descending']) .reporting-sort { color: var(--accent-lime); }

.reporting-funnel {
  display: grid;
  gap: 9px;
}

.reporting-funnel li {
  display: grid;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--report-rule);
}

.reporting-funnel li:last-child { padding-bottom: 0; border-bottom: 0; }

.reporting-funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--rose-light);
  font-size: .77rem;
  font-weight: 650;
}

.reporting-funnel-row strong {
  color: var(--ink);
  font: 900 clamp(1.32rem, 2vw, 1.8rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reporting-funnel li:first-child .reporting-meter { --report-meter-color: var(--accent-lime); }
.reporting-funnel-rate { color: var(--muted); font-size: .69rem; line-height: 1.4; }

@media (prefers-reduced-motion: no-preference) {
  .reporting-dashboard.is-visible .reporting-stat,
  .reporting-panel.is-visible {
    animation: reporting-arrive .46s cubic-bezier(.2, .65, .3, 1) both;
  }

  .reporting-dashboard.is-visible .reporting-stat:nth-child(2) { animation-delay: .05s; }
  .reporting-dashboard.is-visible .reporting-stat:nth-child(3) { animation-delay: .1s; }
  .reporting-dashboard.is-visible .reporting-stat:nth-child(4) { animation-delay: .15s; }
  .reporting-dashboard.is-visible .reporting-stat:nth-child(5) { animation-delay: .2s; }
  .reporting-panel.is-visible .reporting-chart-line { animation: reporting-draw .95s .13s ease-out both; }
  .reporting-panel.is-visible .reporting-chart-fill { animation: reporting-fill .55s .34s ease-out both; }
  .reporting-panel.is-visible .reporting-meter > i { animation: reporting-meter .7s .14s cubic-bezier(.2, .65, .3, 1) both; }
}

@keyframes reporting-arrive {
  from { opacity: .38; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reporting-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes reporting-fill { from { opacity: 0; } to { opacity: 1; } }

@keyframes reporting-meter { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 860px) {
  .reporting-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .reporting-stat strong { font-size: clamp(1.65rem, 4.25vw, 2.3rem); }
}

@media (max-width: 740px) {
  .reporting-grid { grid-template-columns: minmax(0, 1fr); }
  .reporting-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reporting-stat--views { grid-column: 1 / -1; }
  .reporting-stat--views strong { font-size: clamp(2.6rem, 8vw, 3.4rem); }
  .reporting-chart-plot { height: clamp(116px, 27vw, 165px); }
}

@media (max-width: 530px) {
  #reporting-campaign span {
    display: block;
    margin-top: 5px;
    font: 675 .74rem/1.3 var(--button-font);
  }

  .reporting-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reporting-stat:not(.reporting-stat--views) strong { font-size: clamp(2rem, 7vw, 2.65rem); }
  .reporting-header .reporting-identity { flex-basis: 100%; }
  .reporting-header { column-gap: 9px; }
  .reporting-header-meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
}

@media (max-width: 360px) {
  .reporting-panel th,
  .reporting-panel td { padding-inline: 3px; }
  .reporting-country-code { width: 21px; margin-inline-end: 3px; }
  .reporting-header .reporting-period { font-size: .7rem; }
  .reporting-reel svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reporting-reel svg { transition: none; }
}
