.insight-feed,
.insight-card,
.insight-channel > div {
  min-width: 0;
}
.results-panel {
  padding: clamp(1rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 1.3rem 0 2rem;
}
.results-header,
.report-periods,
.report-platforms,
.report-axis,
.report-total {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.results-header,
.report-axis {
  justify-content: space-between;
}
.results-header h2 {
  font: 650 1.35rem/1.15 var(--display);
  margin: 0;
}
.report-periods {
  gap: 0.15rem;
}
.report-periods button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  cursor: pointer;
}
.report-periods button[aria-pressed="true"] {
  color: white;
  background: #50429c;
}
.report-total {
  font: 650 clamp(2.9rem, 5vw, 4.4rem)/1 var(--display);
  margin: 1.25rem 0 0.8rem;
}
.report-total span {
  align-self: end;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font: 500 0.91rem/1.2 var(--body, sans-serif);
}
.report-chart {
  height: 7rem;
  display: flex;
  gap: 3px;
  padding-top: 0.5rem;
  border-bottom: 1px solid #b6accf;
  background: repeating-linear-gradient(
    to top,
    transparent 0 2.3rem,
    var(--line) 2.3rem calc(2.3rem + 1px)
  );
}
.report-column {
  position: relative;
  display: flex;
  align-items: end;
  flex: 1;
  min-width: 0;
}
.report-column b {
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.75rem;
}
.report-column i {
  display: block;
  width: 100%;
  background: #7262bb;
  border-radius: 4px 4px 0 0;
}
.report-axis {
  margin: 0.4rem 0 1rem;
}
.report-axis,
.report-table small {
  font-size: 0.77rem;
  color: var(--muted);
}
.report-platforms {
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
}
.report-platforms b {
  margin-left: 0.2rem;
}
.report-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}
.report-table td,
.report-table th {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.report-table small,
.report-top strong {
  display: block;
  margin-top: 0.2rem;
}
.report-top {
  color: inherit;
  text-align: left;
  background: none;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.report-top span {
  color: #524697;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.report-top strong {
  font-size: 1rem;
}
.report-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.report-history {
  margin: 0.75rem 0;
}
.report-history summary {
  cursor: pointer;
  font-weight: 650;
}
.report-history table {
  margin-top: 0.4rem;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
}
.report-history td:last-child {
  width: 24%;
}
.report-history i {
  display: block;
  height: 0.45rem;
  background: #7262bb;
}
@media (max-width: 600px) {
  .insight-views {
    flex-wrap: wrap;
  }
  .report-table thead {
    clip-path: inset(50%);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .report-table tbody,
  .report-table tr {
    display: block;
    width: 100%;
  }
  .report-table tr {
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
  }
  .report-table th,
  .report-table td {
    border: 0;
    display: block;
    padding: 0.15rem 0;
  }
  .report-table td:nth-child(2),
  .report-table td:nth-child(3) {
    display: inline-block;
    margin: 0.25rem 1rem 0.3rem 0;
  }
  .report-table td:nth-child(2)::before {
    content: "Posts ";
    color: var(--muted);
  }
  .report-table td:nth-child(3)::before {
    content: "Coverage ";
    color: var(--muted);
  }
  .report-periods button {
    padding-inline: 0.45rem;
  }
}
.insight-list-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.insight-toolbar,
.insight-top,
.insight-channel,
.insight-filter,
.insight-ref,
.insight-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.insight-toolbar,
.insight-top {
  justify-content: space-between;
}
.insight-toolbar {
  flex-wrap: wrap;
  margin: 1.4rem 0 1rem;
}
.insight-toolbar h2 {
  margin: 0;
  font: 650 1.42rem/1.2 var(--display);
}
.insight-toolbar p,
.insight-reading p,
.insight-detail {
  color: var(--muted);
}
.insight-toolbar p {
  margin: 0.2rem 0 0;
}
.insight-filter {
  font-size: 0.85rem;
  font-weight: 650;
}
.insight-filter select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1rem;
  align-items: start;
}
.insight-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  padding: clamp(1rem, 2vw, 1.35rem);
  overflow-wrap: anywhere;
}
.insight-top {
  gap: 0.5rem;
  align-items: start;
}
.insight-channel {
  align-items: start;
}
.insight-channel .platform-icon {
  width: 35px;
  height: 35px;
  align-self: center;
}
.insight-channel strong,
.insight-channel > div > span {
  display: block;
}
.insight-channel strong {
  font-size: 0.92rem;
}
.insight-channel > div > span,
.insight-check,
.insight-ref,
.insight-source {
  font-size: 0.78rem;
  color: var(--muted);
}
.insight-status {
  flex-shrink: 0;
  max-width: 48%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.19rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 650;
}
.insight-status.observed {
  color: #245641;
  background: #edf5f1;
  border-color: #cadecf;
}
.insight-status.attention {
  color: #714719;
  background: #fbf2e7;
  border-color: #ecdac4;
}
.insight-card h3 {
  margin: 1.05rem 0 0.22rem;
  font: 670 1.22rem/1.25 var(--display);
}
.insight-ref {
  flex-wrap: wrap;
  gap: 0.3rem;
}
.insight-ref a {
  font-weight: 600;
  text-underline-offset: 3px;
}
.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.35rem;
}
.insight-detail {
  margin: 1rem 0 0.3rem;
}
.insight-reading {
  border-top: 1px solid var(--line);
  margin-top: 1.1rem;
  padding-top: 0.85rem;
}
.insight-source {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.insight-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.3rem;
  margin: 0.65rem 0;
}
.insight-numbers div {
  display: flex;
  flex-direction: column-reverse;
  max-width: 100%;
}
.insight-numbers dt {
  color: var(--muted);
  font-size: 0.76rem;
}
.insight-numbers dd {
  font: 650 1.7rem/1.15 var(--display);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.insight-reading p,
.insight-history,
.insight-tracking {
  font-size: 0.82rem;
}
.insight-reading p {
  margin: 0.6rem 0;
}
.insight-history {
  padding: 0.35rem 0;
}
.insight-history summary {
  cursor: pointer;
  font-weight: 600;
}
.insight-scroll {
  overflow-x: auto;
}
.insight-history table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.78rem;
}
.insight-history caption {
  text-align: left;
  margin-top: 0.6rem;
  color: var(--muted);
}
.insight-history th,
.insight-history td {
  padding: 0.42rem 0.55rem 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.insight-history tbody th {
  font-weight: 450;
}
.insight-export {
  display: inline-block;
  margin-top: 0.5rem;
  text-underline-offset: 0.15rem;
}
.insight-controls {
  margin-top: 0.9rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.insight-tracking {
  display: block;
  margin-top: 0.7rem;
  color: #305545;
}
.insight-check,
.insight-error {
  margin-top: 0.55rem;
}
.insight-error {
  color: #8b332f;
}
.insight-more {
  margin-top: 1rem;
}
.insight-views {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
}
.insight-views button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 620;
  font-size: 0.85rem;
}
.insight-views [aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.compare-panel {
  margin: 1.4rem 0;
  min-width: 0;
}
.compare-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.compare-heading h2 {
  margin: 0;
  font: 650 1.42rem/1.2 var(--display);
}

.compare-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1rem 0;
}
.compare-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
  min-width: 0;
}
.compare-filter label,
.compare-table-head {
  font-weight: 620;
  color: var(--muted);
  font-size: 0.77rem;
}
.compare-filter select {
  padding: 0.48rem 0.66rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  max-width: 100%;
}
.compare-coverage {
  color: var(--muted);
  margin: 0.85rem 0;
}
.compare-coverage strong {
  color: var(--ink);
}
.compare-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.compare-table-head,
.compare-row {
  display: grid;
  grid-template-columns:
    minmax(13rem, 2.6fr) minmax(6rem, 1.1fr) minmax(5.2rem, 0.8fr)
    minmax(6.5rem, 1fr) 7.8rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
}
.compare-table-head {
  background: var(--soft);
}
.compare-row {
  min-width: 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.compare-creative {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.compare-creative > div {
  min-width: 0;
}
.compare-creative h3 {
  margin: 0;
  font: 650 1rem/1.25 var(--display);
}
.compare-creative h3 button {
  padding: 0;
  text-align: left;
  font: inherit;
}
.compare-creative a {
  font-size: 0.78rem;
  text-underline-offset: 2px;
}
.compare-row small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}
.compare-poster {
  width: 48px;
  height: 58px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 5px;
  overflow: hidden;
}
.compare-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-value strong {
  font: 650 1.32rem/1.2 var(--display);
  font-variant-numeric: tabular-nums;
}
.compare-observed,
.compare-preview-meta {
  font-size: 0.81rem;
  color: var(--muted);
}
.compare-player {
  width: 100%;
  max-height: min(47vh, 30rem);
  display: block;
  background: #1c1b20;
  border-radius: 8px;
}
.compare-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.compare-copy dt {
  color: var(--muted);
}
.compare-copy dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.compare-preview-title {
  margin: 1rem 0 0.2rem;
  font-family: var(--display);
}
.compare-preview-meta {
  margin: 0.2rem 0 0.8rem;
}
@media (max-width: 1100px) {
  .compare-table-head {
    display: none;
  }
  .compare-row {
    grid-template-columns: minmax(9rem, 1.6fr) minmax(6rem, 1fr) minmax(
        5rem,
        0.8fr
      );
  }
  .compare-row:first-of-type {
    border-top: 0;
  }
  .compare-observed {
    grid-column: 1 / 3;
  }
  .compare-observed::before {
    content: "Observed ";
  }
}
@media (max-width: 600px) {
  .compare-row {
    grid-template-columns: minmax(0, 1fr) minmax(5rem, auto);
    gap: 0.55rem 0.5rem;
    padding: 0.85rem;
  }
  .compare-creative {
    grid-column: 1 / -1;
  }
  .compare-observed {
    grid-column: auto;
  }
  .compare-copy {
    display: block;
  }
  .compare-copy dd {
    margin: 0.2rem 0 0.6rem;
  }
  .compare-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .insight-channel,
  .insight-top {
    gap: 0.4rem;
  }
  .insight-channel .platform-icon {
    width: 30px;
    height: 30px;
  }
}
.notice-list { list-style:none; margin:1rem 0; padding:0; }
.notice-list li { padding:.6rem 0; border-block-start:1px solid var(--line); }
[data-delivery-notices] { position:relative; }
[data-delivery-notices] small:not(:empty) { position:absolute; top:0; right:0; padding:0 .15rem; border-radius:.35rem; background:var(--text,#292927); color:var(--surface,#fff); font-size:.6rem; }
