:root {
  --bp-green: #007f3f;
  --bp-green-2: #1f9b57;
  --bp-lime: #7ac143;
  --bp-yellow: #ffd200;

  --ink-900: #1f1f1f;
  --ink-700: #3c3c3c;
  --ink-500: #6b7280;

  --surface-0: #ffffff;
  --surface-1: #f6f8fb;
  --surface-2: #eef3f0;

  --border: #e5e7eb;

  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.06);

  --bg-surface: var(--surface-1);
  --card-border: var(--border);
  --text-muted: var(--ink-500);
  --accent: var(--ink-900);
}

body {
  background: var(--surface-1);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink-900);
}

h1 {
  font-weight: 600;
}

.bp-page {
  min-height: 100vh;
}

.bp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px;
}

/* Consolidated Overview */
.overview-page {
  --overview-ink: #101927;
  --overview-muted: #64748b;
  --overview-line: #dfe7e2;
  --overview-soft: #f4f7f5;
  background:
    radial-gradient(circle at 92% 2%, rgba(122, 193, 67, 0.14), transparent 25rem),
    linear-gradient(180deg, #f7faf8 0, #eef4f0 22rem, #f7f9f8 100%);
  color: var(--overview-ink);
}

.overview-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 25, 39, 0.08);
  backdrop-filter: blur(18px);
}

.overview-topbar__brand,
.overview-actions,
.overview-nav {
  display: flex;
  align-items: center;
}

.overview-topbar__brand {
  gap: 12px;
}

.overview-topbar__brand img {
  width: 45px;
  height: 56px;
  object-fit: contain;
}

.overview-eyebrow,
.overview-kicker,
.overview-section-heading p,
.overview-card-heading span {
  color: var(--bp-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overview-topbar__brand h1 {
  margin: 1px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.overview-nav {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #edf2ef;
}

.overview-nav a {
  padding: 8px 18px;
  color: #536071;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.overview-nav a.active {
  color: #fff;
  background: var(--bp-green);
  box-shadow: 0 6px 18px rgba(0, 127, 63, 0.2);
}

.overview-actions {
  justify-content: flex-end;
  gap: 8px;
}

.overview-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  background: var(--overview-ink);
}

.overview-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-button--quiet {
  color: #64748b;
  background: transparent;
}

.overview-button:disabled {
  opacity: 0.5;
}

.overview-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.overview-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  gap: 48px;
  align-items: end;
  padding: clamp(30px, 5vw, 66px);
  color: #fff;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(4, 65, 38, 0.96), rgba(0, 127, 63, 0.9)),
    radial-gradient(circle at 80% 10%, var(--bp-lime), transparent 24rem);
  box-shadow: 0 24px 70px rgba(12, 54, 34, 0.2);
}

.overview-hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: -10rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.04), 0 0 0 9rem rgba(255, 255, 255, 0.03);
}

.overview-hero > * {
  position: relative;
  z-index: 1;
}

.overview-kicker {
  color: #d9f99d;
}

.overview-hero h2 {
  max-width: 780px;
  margin: 12px 0 14px;
  font-size: clamp(2rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.overview-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
}

.overview-filter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.overview-filter-card label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-filter-card input {
  min-width: 0;
  padding: 10px 11px;
  color: #fff;
  color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.overview-filter-card button {
  grid-column: 1 / -1;
  padding: 11px;
  color: #164329;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  background: #d9f99d;
}

.overview-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px 0;
  color: var(--overview-muted);
  font-size: 0.78rem;
}

.overview-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.12);
  animation: overviewPulse 1.25s infinite;
}

.overview-status--ready .overview-status__dot {
  background: var(--bp-green);
  box-shadow: 0 0 0 5px rgba(0, 127, 63, 0.1);
  animation: none;
}

.overview-status--error {
  color: #b42318;
}

.overview-status--error .overview-status__dot {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.1);
  animation: none;
}

@keyframes overviewPulse {
  50% { opacity: 0.35; transform: scale(0.8); }
}

.overview-section {
  margin: 0 !important;
  padding: 78px 0 0;
}

.overview-section + .overview-section::before {
  display: none;
}

.overview-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.overview-section-heading > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--bp-green);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #bed5c7;
  border-radius: 50%;
  background: #fff;
}

.overview-section-heading p {
  margin: 2px 0 5px;
}

.overview-section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.overview-platform-grid,
.overview-chart-grid,
.overview-creative-grid,
.overview-retention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-platform-card,
.overview-engagement-card,
.overview-efficiency-card,
.overview-chart-card,
.overview-table-card,
.overview-creative-card,
.overview-retention-card,
.overview-kpi-strip {
  border: 1px solid rgba(16, 25, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(26, 48, 37, 0.07);
}

.overview-platform-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
}

.overview-platform-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: var(--platform);
}

.overview-platform-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview-platform-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #fff;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 700;
  border-radius: 12px;
  background: var(--platform);
}

.overview-platform-card__top span:not(.overview-platform-icon) {
  color: var(--overview-muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.overview-platform-card__top h3 {
  margin: 2px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.overview-platform-card__hero {
  margin: 22px 0 16px;
  padding: 18px;
  border-radius: 16px;
  background: var(--platform-tint);
}

.overview-platform-card__hero span,
.overview-metric-list dt,
.overview-engagement-stats span,
.overview-efficiency-card span,
.overview-creative-card__metrics span,
.overview-retention-card__meta span,
.overview-kpi-strip span {
  color: var(--overview-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.overview-platform-card__hero strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.overview-metric-list {
  margin: 0;
}

.overview-metric-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ef;
}

.overview-metric-list dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.overview-platform-reading {
  margin: 16px 0 0;
  color: var(--overview-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.overview-engagement-card {
  overflow: hidden;
  border-radius: 22px;
}

.overview-engagement-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid #edf1ef;
}

.overview-engagement-card__title > div span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.overview-engagement-card__title > div strong {
  font-size: 1.5rem;
}

.overview-engagement-card__title em {
  margin-left: auto;
  padding: 5px 8px;
  color: var(--platform);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  border-radius: 999px;
  background: color-mix(in srgb, var(--platform) 10%, white);
}

.overview-engagement-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.overview-engagement-stats > div {
  padding: 16px 20px;
  border-right: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
}

.overview-engagement-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.overview-interaction-radar-card {
  margin-top: 18px;
}

.overview-module-header,
.overview-retention-toolbar,
.overview-community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.overview-module-header h3 {
  margin: 4px 0 3px;
  font-size: 1.35rem;
  font-weight: 700;
}

.overview-module-header p,
.overview-retention-toolbar p,
.overview-community-toolbar p {
  margin: 0;
  color: var(--overview-muted);
  font-size: 0.76rem;
}

.overview-inline-filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.overview-inline-filters label,
.overview-retention-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 145px;
  color: var(--overview-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-inline-filters select,
.overview-retention-toolbar select {
  padding: 9px 34px 9px 11px;
  color: var(--overview-ink);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #fff;
}

.overview-chart-wrap--radar-dynamic {
  width: min(100%, 720px);
  height: 390px;
  margin: 8px auto 0;
}

.overview-efficiency-grid {
  display: grid;
  gap: 14px;
}

.overview-efficiency-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(240px, 0.7fr) minmax(540px, 1.7fr);
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 18px;
}

.overview-efficiency-card > div:first-child strong {
  display: block;
  margin-top: 3px;
  font-size: 1.65rem;
}

.overview-efficiency-card > p {
  margin: 0;
  color: var(--overview-muted);
  font-size: 0.8rem;
}

.overview-efficiency-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.overview-efficiency-platforms div {
  padding: 12px 14px;
  border: 1px solid #e6ebe8;
  border-radius: 12px;
  background: #f8faf9;
}

.overview-efficiency-platforms div.is-best {
  border-color: color-mix(in srgb, var(--platform) 40%, white);
  background: color-mix(in srgb, var(--platform) 8%, white);
}

.overview-efficiency-platforms strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.overview-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-chart-card,
.overview-table-card {
  padding: 24px;
  border-radius: 22px;
}

.overview-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.overview-card-heading h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.overview-card-heading p {
  max-width: 260px;
  margin: 0;
  color: var(--overview-muted);
  font-size: 0.76rem;
  text-align: right;
}

.overview-chart-wrap {
  position: relative;
  height: 330px;
}

.overview-plotly-chart,
.overview-plotly-chart .js-plotly-plot,
.overview-plotly-chart .plot-container,
.overview-plotly-chart .svg-container {
  width: 100% !important;
  height: 100% !important;
}

.overview-chart-wrap--wide {
  height: 420px;
}

.overview-chart-wrap--funnel {
  height: 380px;
}

.overview-table-card {
  padding: 8px;
}

.overview-table-scroll {
  overflow-x: auto;
}

.overview-table-card table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.overview-table-card th,
.overview-table-card td {
  padding: 15px 14px;
  font-size: 0.78rem;
  text-align: right;
  border-bottom: 1px solid #e8eeea;
  white-space: nowrap;
}

.overview-table-card thead th {
  color: var(--overview-muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: #f5f8f6;
}

.overview-table-card th:first-child,
.overview-table-card td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  text-align: left;
  background: #fff;
}

.overview-table-card thead th:first-child {
  background: #f5f8f6;
}

.overview-placement-platform {
  display: inline-flex;
  align-items: center;
  color: #152033;
  font-weight: 700;
}

.overview-creative-card,
.overview-retention-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 24px;
  border-radius: 22px;
}

.overview-creative-platforms {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.overview-creative-platform-block {
  padding: 20px;
  border: 1px solid #dfe7e2;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(12, 54, 34, 0.08);
}

.overview-creative-platform-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.overview-creative-platform-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--platform);
  font-weight: 700;
}

.overview-creative-platform-heading p {
  margin: 0;
  color: var(--platform);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-creative-platform-heading h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.overview-creative-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--platform);
}

.overview-creative-card__rank {
  position: absolute;
  right: 18px;
  top: 10px;
  color: #edf1ef;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.overview-creative-card__platform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--platform);
  font-size: 0.72rem;
  font-weight: 700;
}

.overview-creative-card__platform span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #fff;
  border-radius: 8px;
  background: var(--platform);
}

.overview-creative-card h3,
.overview-retention-card h3 {
  position: relative;
  display: -webkit-box;
  overflow: hidden;
  margin: 22px 0;
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 700;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.overview-creative-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.overview-creative-card__metrics div {
  padding: 12px;
  border-radius: 12px;
  background: #f5f8f6;
}

.overview-creative-card__metrics strong {
  display: block;
  margin-top: 2px;
}

.overview-creative-card a,
.overview-retention-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--bp-green);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.overview-section--community {
  margin-top: 78px !important;
  padding: 48px 42px 42px;
  border-radius: 28px;
  background: #0d3323;
}

.overview-section--community .overview-section-heading h2 {
  color: #fff;
}

.overview-section--community .overview-section-heading p {
  color: #a7f3d0;
}

.overview-community-toolbar {
  margin: -4px 0 20px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.overview-community-toolbar > div:first-child > span {
  color: #d9f99d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-community-toolbar p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
}

.overview-inline-filters--dark label {
  color: rgba(255, 255, 255, 0.68);
}

.overview-inline-filters--dark select {
  color: #fff;
  color-scheme: dark;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.overview-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border-radius: 18px;
}

.overview-kpi-strip > div {
  padding: 22px;
  border-right: 1px solid #e7ece9;
}

.overview-kpi-strip strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.overview-community-visuals {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
  margin-top: 16px;
}

.overview-community-visuals article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.overview-community-visuals .overview-card-heading h3,
.overview-community-visuals .overview-card-heading span {
  color: #fff;
}

.overview-chart-wrap--community {
  height: 270px;
}

.overview-retention-toolbar {
  margin: -8px 0 16px;
  padding: 14px 16px;
  border: 1px solid #dfe7e2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.overview-retention-milestones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.overview-retention-milestones > div {
  padding: 15px;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 48, 37, 0.05);
}

.overview-retention-milestones span {
  color: var(--bp-green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.overview-retention-milestones strong {
  display: block;
  margin: 4px 0;
  font-size: 1.22rem;
}

.overview-retention-milestones em {
  display: block;
  color: var(--overview-muted);
  font-size: 0.62rem;
  font-style: normal;
  line-height: 1.45;
}

.overview-retention-card__rank {
  display: inline-flex;
  padding: 5px 9px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--platform, var(--bp-green));
}

.overview-retention-card__platform {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: var(--platform, var(--bp-green));
  font-size: 0.72rem;
  font-weight: 700;
}

.overview-retention-card__platform span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #fff;
  border-radius: 8px;
  background: var(--platform, var(--bp-green));
}

.overview-retention-card h3 {
  margin: 16px 0 12px;
  display: block;
  overflow: visible;
  min-height: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.overview-retention-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 10px 15px;
  align-items: start;
}

.overview-retention-card__meta strong {
  display: block;
  margin-top: 2px;
  color: var(--overview-ink);
}

@media (max-width: 1280px) {
  .overview-retention-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.overview-retention-card__chart {
  position: relative;
  height: 220px;
  margin-top: 14px;
}

.overview-platform-select-toolbar,
.overview-retention-top-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: -4px 0 18px;
  padding: 16px 18px;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 32px rgba(26, 48, 37, 0.06);
}

.overview-platform-select-toolbar p,
.overview-retention-top-toolbar p {
  margin: 4px 0 0;
  color: var(--overview-muted);
  font-size: 0.76rem;
}

.overview-platform-select-toolbar label,
.overview-retention-top-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 210px;
  color: var(--overview-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-platform-select-toolbar select,
.overview-retention-top-toolbar select {
  padding: 9px 34px 9px 11px;
  color: var(--overview-ink);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #fff;
}

.overview-empty {
  padding: 34px !important;
  color: var(--overview-muted);
  text-align: center !important;
}

@media (max-width: 1100px) {
  .overview-topbar {
    grid-template-columns: 1fr auto;
  }

  .overview-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .overview-hero {
    grid-template-columns: 1fr;
  }

  .overview-platform-grid,
  .overview-creative-grid,
  .overview-retention-grid {
    grid-template-columns: 1fr;
  }

  .overview-efficiency-card {
    grid-template-columns: 1fr;
  }

  .overview-kpi-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .overview-retention-milestones {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .overview-topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .overview-nav,
  .overview-actions {
    justify-self: stretch;
    justify-content: center;
  }

  .overview-nav {
    order: initial;
    grid-column: auto;
  }

  .overview-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 20px;
  }

  .overview-hero {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .overview-filter-card,
  .overview-chart-grid {
    grid-template-columns: 1fr;
  }

  .overview-filter-card button {
    grid-column: auto;
  }

  .overview-section {
    padding-top: 56px;
  }

  .overview-chart-card {
    padding: 16px;
  }

  .overview-chart-wrap,
  .overview-chart-wrap--wide,
  .overview-chart-wrap--funnel {
    height: 320px;
  }

  .overview-card-heading {
    display: block;
  }

  .overview-card-heading p {
    margin-top: 6px;
    text-align: left;
  }

  .overview-module-header,
  .overview-community-toolbar,
  .overview-retention-toolbar,
  .overview-platform-select-toolbar,
  .overview-retention-top-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-inline-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-inline-filters label,
  .overview-platform-select-toolbar label,
  .overview-retention-toolbar label,
  .overview-retention-top-toolbar label {
    min-width: 0;
  }

  .overview-community-visuals {
    grid-template-columns: 1fr;
  }

  .overview-retention-milestones {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-section--community {
    margin-top: 56px !important;
    padding: 28px 18px;
  }

  .overview-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bp-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}

.bp-header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1 1 520px;
}

.bp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
}

.bp-logo img {
  width: auto;
  object-fit: contain;
}

.bp-logo-bp {
  height: 96px;
}

@media (max-width: 768px) {
  .bp-header {
    justify-content: center;
  }

  .bp-header-main {
    order: 2;
  }

  .bp-logo-left {
    order: 1;
  }

  .bp-logo-right {
    order: 3;
    width: 100%;
    margin-top: 10px;
    align-items: center;
  }
}

.bp-logo-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-width: 180px;
}

.tekne-logo-header {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.bp-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bp-btn-white {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bp-btn-white:hover {
  background: #f9fafb;
  border-color: var(--ink-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bp-btn-white svg {
  color: var(--bp-green);
}

.bp-filters {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-1);
  min-width: 360px;
}

.bp-filter-field {
  width: 100%;
}

.date-compare-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-700);
  margin-top: 6px;
}

.comparison-controls {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 6px;
}

.comparison-manual-fields {
  display: grid;
  gap: 8px;
}

.comparison-hint {
  font-size: 0.82rem;
  color: var(--ink-500);
}

section {
  position: relative;
  margin-bottom: 30px !important;
}

.bp-container > section + section {
  padding-top: 28px;
}

.bp-container > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #d8dde6;
}

.bp-section {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 18px;
}

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--bp-green);
  border-radius: 2px;
}

.fb-subsection + .fb-subsection {
  margin-top: 22px;
}

.fb-subsection-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.fb-section-divider {
  height: 1px;
  margin: 26px -18px;
  background: #d8dde6;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.card.shadow-sm {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1) !important;
  position: relative;
  overflow: hidden;
}

.card.shadow-sm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bp-green);
}

.card-body {
  padding: 18px !important;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.chart-notes {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.chart-notes-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.chart-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.chart-note {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border);
}

.chart-note-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.chart-note-body {
  font-size: 0.85rem;
  color: #1f2937;
}

.wasted-reach-note {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid rgba(239, 68, 68, 0.5);
}

.kpi-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 14px 14px 12px;
  height: 100%;
  position: relative;
  min-height: 96px;
}

.kpi-comparison-meta,
.paid-summary-comparison,
.funnel-comparison-meta,
.mei-comparison-meta,
.ads-comparison-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.community-draft-intro {
  color: var(--ink-500);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.community-draft-warnings {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.community-draft-warning-item {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.community-draft-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  padding: 14px;
  min-height: 92px;
}

.community-draft-card-label {
  color: var(--ink-500);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.community-draft-card-value {
  color: var(--ink-900);
  font-size: 1.35rem;
  font-weight: 600;
}

.community-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.community-draft-grid--highlight {
  gap: 16px;
}

.community-draft-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfd;
}

.community-draft-grid--highlight .community-draft-panel {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  border-color: #e4ebe7;
}

.community-draft-panel-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.community-draft-list {
  display: grid;
  gap: 8px;
}

.community-draft-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.community-draft-list-row span {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.community-draft-list-row strong {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eef6ef;
  color: #166534;
  font-size: 0.83rem;
  font-weight: 900;
}

.community-draft-empty {
  color: var(--ink-500);
  font-size: 0.88rem;
}

.community-draft-table td,
.community-draft-table th {
  font-size: 0.9rem;
  vertical-align: top;
}

.community-draft-table a {
  color: var(--bp-green);
  text-decoration: none;
}

.community-draft-table a:hover {
  text-decoration: underline;
}

.community-response-row {
  background: linear-gradient(90deg, rgba(46, 125, 50, 0.035), transparent 55%);
}

.community-response-label {
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.community-volume-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
  height: 2.1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.community-volume-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(46, 125, 50, 0.18), rgba(46, 125, 50, 0.58));
}

.community-volume-bar strong {
  position: relative;
  z-index: 1;
  padding: 0 0.85rem;
  color: #14532d;
  font-weight: 900;
}

.community-time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-weight: 800;
  white-space: nowrap;
}

.community-time-chip--main {
  background: #e8f5eb;
  color: #166534;
}

.community-draft-sentiment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.community-draft-sentiment--negative {
  background: #fee2e2;
  color: #b91c1c;
}

.community-draft-sentiment--positive {
  background: #dcfce7;
  color: #166534;
}

.community-draft-sentiment--neutral,
.community-draft-sentiment--no_sentiment {
  background: #e5e7eb;
  color: #374151;
}

.community-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.community-platform-badge--label {
  min-width: 2.5rem;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.community-label-row {
  transition: background 0.18s ease;
}

.community-label-row:hover {
  background: #f8fafc;
}

.community-label-name {
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
}

.label-volume-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #eef6ef;
  color: #166534;
  font-weight: 800;
  font-size: 0.95rem;
}

.label-sentiment-mix {
  display: grid;
  gap: 0.45rem;
  min-width: 230px;
}

.label-sentiment-bar {
  display: flex;
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.label-sentiment-bar__segment {
  display: block;
  min-width: 0;
}

.label-sentiment-bar__segment--positive {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.label-sentiment-bar__segment--negative {
  background: linear-gradient(90deg, #ef4444, #fecaca);
}

.label-sentiment-bar__segment--neutral {
  background: linear-gradient(90deg, #9ca3af, #e5e7eb);
}

.label-sentiment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.label-sentiment-legend__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 1.45rem;
  padding: 0 0.6rem;
  border-radius: 999px;
}

.label-sentiment-legend__item--positive {
  background: #dcfce7;
  color: #166534;
}

.label-sentiment-legend__item--negative {
  background: #fee2e2;
  color: #991b1b;
}

.label-sentiment-legend__item--neutral {
  background: #e5e7eb;
  color: #374151;
}

.label-sentiment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.7rem;
  height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label-sentiment-chip--positive {
  background: #dcfce7;
  color: #166534;
}

.label-sentiment-chip--negative {
  background: #fee2e2;
  color: #991b1b;
}

.label-sentiment-chip--neutral {
  background: #e5e7eb;
  color: #374151;
}

.community-label-chart-wrap {
  position: relative;
  min-height: 520px;
  padding: 0.75rem 0 1rem;
  overflow: hidden;
}

.community-label-chart-wrap canvas {
  width: 100% !important;
  height: 500px !important;
}

.community-daily-chart-wrap {
  position: relative;
  min-height: 360px;
  padding: 0.35rem 0 0.25rem;
}

.community-daily-chart-wrap canvas {
  width: 100% !important;
  height: 340px !important;
}

.community-mosaic-card {
  display: grid;
  gap: 1rem;
}

.community-daily-chart-wrap--compact {
  min-height: 325px;
}

.community-daily-chart-wrap--compact canvas {
  height: 300px !important;
}

.community-mosaic-secondary {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid #edf1f6;
}

.community-mosaic-secondary__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.community-mosaic-secondary__title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.community-mosaic-secondary__subtitle {
  color: #64748b;
  font-size: 0.83rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.community-sentiment-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.community-sentiment-toggle__btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.community-sentiment-toggle__btn:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.community-sentiment-toggle__btn.is-active[data-sentiment="positive"] {
  background: #43a047;
  border-color: #43a047;
  color: #ffffff;
}

.community-sentiment-toggle__btn.is-active[data-sentiment="neutral"] {
  background: #9ca3af;
  border-color: #9ca3af;
  color: #111827;
}

.community-sentiment-toggle__btn.is-active[data-sentiment="negative"] {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.community-sentiment-toggle__btn:not(.is-active) {
  opacity: 0.56;
}

.community-mosaic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.community-mosaic-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}

.community-mosaic-legend__dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.community-mosaic-legend__dot--positive {
  background: #22c55e;
}

.community-mosaic-legend__dot--neutral {
  background: #9ca3af;
}

.community-mosaic-legend__dot--negative {
  background: #ef4444;
}

.community-mosaic-chart {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 330px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.community-mosaic-column {
  display: flex;
  flex-direction: column;
  min-width: 90px;
  border-right: 4px solid #ffffff;
}

.community-mosaic-column:last-child {
  border-right: 0;
}

.community-mosaic-column__header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.15rem;
  min-height: 118px;
  padding: 0.75rem 0.55rem;
  text-align: center;
  background: #ffffff;
  border-bottom: 2px solid #eef2f7;
}

.community-mosaic-column__header strong {
  display: block;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
  min-height: 3.5em;
}

.community-mosaic-column__header span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.community-mosaic-column__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 240px;
  gap: 4px;
  padding: 0 3px 3px;
  background: #ffffff;
}

.community-mosaic-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  position: relative;
  cursor: default;
  transition: filter 0.16s ease, transform 0.16s ease;
  min-height: 6px;
}

.community-mosaic-segment span {
  white-space: nowrap;
}

.community-mosaic-segment:hover,
.community-mosaic-segment:focus-visible {
  filter: brightness(0.96);
  transform: scale(0.995);
  outline: 2px solid rgba(15, 23, 42, 0.14);
  outline-offset: -2px;
  z-index: 1;
}

.community-mosaic-segment--positive {
  background: #43a047;
  color: #ffffff;
}

.community-mosaic-segment--neutral {
  background: #b0b4bc;
  color: #111827;
}

.community-mosaic-segment--negative {
  background: #ef4444;
  color: #ffffff;
}

.community-mosaic-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
  max-width: 260px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.community-mosaic-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.community-mosaic-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px dashed #d7dde7;
  border-radius: 16px;
  color: #64748b;
  font-weight: 700;
}

.community-text-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.community-text-filters {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.community-text-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
}

.community-text-filters .form-control,
.community-text-filters .form-select,
.community-multiselect__summary {
  border-radius: 999px;
  border-color: #dbe3ea;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.community-multiselect {
  position: relative;
}

.community-multiselect[open] {
  z-index: 30;
}

.community-multiselect__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 38px;
  padding: 0.375rem 0.9rem;
  background: #ffffff;
  border: 1px solid #dbe3ea;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.community-multiselect__summary::-webkit-details-marker {
  display: none;
}

.community-multiselect__summary::after {
  content: "▾";
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.78rem;
}

.community-multiselect__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-multiselect__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid #dbe3ea;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

.community-multiselect__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eef2f7;
}

.community-multiselect__action {
  border: 0;
  background: transparent;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0;
}

.community-multiselect__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.community-multiselect__option input {
  accent-color: #15803d;
}

.community-text-filters input[type="search"] {
  grid-column: span 2;
}

.community-text-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 999px;
  background: #e8f5eb;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 900;
}

.community-text-message {
  min-width: 0;
  max-width: none;
  white-space: pre-wrap;
  line-height: 1.38;
  color: var(--ink-800);
  font-size: 0.93rem;
}

.community-text-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.community-text-meta__id {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.community-text-meta__link {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f766e;
  text-decoration: none;
}

.community-text-meta__link:hover {
  text-decoration: underline;
}

.community-draft-texts-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.94rem;
}

.community-draft-texts-table th:nth-child(1),
.community-draft-texts-table td:nth-child(1) {
  width: 10%;
}

.community-draft-texts-table th:nth-child(2),
.community-draft-texts-table td:nth-child(2) {
  width: 6%;
}

.community-draft-texts-table th:nth-child(3),
.community-draft-texts-table td:nth-child(3) {
  width: 9%;
}

.community-draft-texts-table th:nth-child(4),
.community-draft-texts-table td:nth-child(4) {
  width: 11%;
}

.community-draft-texts-table th:nth-child(5),
.community-draft-texts-table td:nth-child(5) {
  width: 39%;
}

.community-draft-texts-table th:nth-child(6),
.community-draft-texts-table td:nth-child(6) {
  width: 9%;
}

.community-draft-texts-table th:nth-child(7),
.community-draft-texts-table td:nth-child(7) {
  width: 16%;
}

.community-draft-texts-table td,
.community-draft-texts-table th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.community-draft-texts-table th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.community-draft-texts-table td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  vertical-align: top;
}

.community-thread-details {
  margin-top: 6px;
}

.community-thread-details summary {
  cursor: pointer;
  color: var(--bp-green);
  font-size: 0.78rem;
  font-weight: 600;
  user-select: none;
}

.community-thread-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.community-thread-item {
  border: 1px solid #d9e5de;
  border-radius: 10px;
  background: #f7fbf8;
  padding: 10px 12px;
}

.community-thread-meta {
  color: var(--ink-500);
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.community-thread-text {
  white-space: pre-wrap;
  line-height: 1.38;
  font-size: 0.88rem;
  color: var(--ink-800);
}

.community-thread-extra-labels {
  color: var(--ink-500);
  font-size: 0.72rem;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .community-draft-grid {
    grid-template-columns: 1fr;
  }

  .community-text-filters {
    grid-template-columns: 1fr;
  }

  .community-text-filters input[type="search"] {
    grid-column: auto;
  }

  .community-mosaic-chart {
    flex-direction: column;
  }

  .community-mosaic-column {
    width: 100% !important;
    min-width: 0;
    border-right: 0;
    border-bottom: 4px solid #ffffff;
  }

  .community-mosaic-column__header {
    min-height: 126px;
  }

  .community-mosaic-secondary__header {
    flex-direction: column;
    align-items: stretch;
  }

  .community-text-message {
    min-width: 0;
    max-width: none;
  }

  .community-draft-texts-table {
    table-layout: auto;
  }
}

.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

.delta-chip.is-good {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.delta-chip.is-bad {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.delta-chip.is-neutral {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.comparison-chart-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comparison-chart-toolbar label {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin: 0;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bp-green);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.kpi-card.is-reach::before {
  background: var(--bp-green);
}

.kpi-card.is-engagement::before {
  background: var(--bp-lime);
}

.kpi-card.is-efficiency::before {
  background: #008542; /* BP Emerald Green */
  height: 6px; /* Un poco más gruesa para destacar */
}

.kpi-card.is-cost::before {
  background: var(--bp-yellow);
}

.kpi-label,
.kpi-title {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-sub,
.kpi-definition {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.4;
}

.platform-breakdown {
  margin-top: 8px;
}

.platform-breakdown-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}

.platform-breakdown-segment {
  height: 100%;
  display: block;
}

.platform-breakdown-segment--facebook {
  background: #1877f2;
}

.platform-breakdown-segment--instagram {
  background: #e1306c;
}

.platform-breakdown-segment--tiktok {
  background: #111827;
}

.platform-breakdown-legend {
  margin-top: 7px;
  display: grid;
  gap: 4px;
}

.platform-breakdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.platform-breakdown-dot--facebook {
  background: #1877f2;
}

.platform-breakdown-dot--instagram {
  background: #e1306c;
}

.platform-breakdown-dot--tiktok {
  background: #111827;
}

.platform-breakdown-text {
  font-size: 11px;
  color: #374151;
  line-height: 1.3;
  font-weight: 500;
}

.paid-metric-breakdown {
  margin-top: 8px;
}

.paid-metric-breakdown .platform-breakdown-text {
  font-size: 10px;
}

.fb-organic-subtitle {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.fb-organic-row-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
}

.funnel {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}

.funnel-step {
  position: relative;
  flex: 1;
  min-width: 220px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.04));
  border: 1px solid var(--card-border);
}

.funnel-step:first-child {
  flex: 1.2;
}

.funnel-step:nth-child(2) {
  flex: 1;
}

.funnel-step:nth-child(3) {
  flex: 0.9;
}

.funnel-step:nth-child(2) {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
}

.funnel-step:nth-child(3) {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
}

.funnel-step-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.funnel-step strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.5rem;
  color: #111827;
}

.funnel-step small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #374151;
}

.funnel-step .platform-breakdown {
  margin-top: 10px;
}

.funnel-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0.7;
}

.table thead th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.thumb {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.message-cell {
  max-width: 560px;
  min-width: 320px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.45;
  padding: 12px 8px !important;
}

.top-content-subtitle {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.top-content-id-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: normal;
  min-width: 170px;
  max-width: 230px;
  line-height: 1.2;
  padding-right: 10px !important;
}

.top-content-id-line {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.top-content-date-cell {
  white-space: nowrap;
  min-width: 104px;
}

.top-content-format-cell {
  white-space: nowrap;
  min-width: 92px;
  font-weight: 500;
}

.top-content-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.table-scrollbar-top {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 8px;
  height: 14px;
}

.table-scrollbar-top-inner {
  height: 1px;
}

.dual-scroll-table {
  overflow-x: auto;
}

.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.sentiment-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.sentiment-section--meta-tt .sentiment-card {
  color: #111827;
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-1);
}

.sentiment-section--meta-tt .sentiment-card .sentiment-value,
.sentiment-section--meta-tt .sentiment-card .sentiment-label {
  color: #111827;
}

.sentiment-section--meta-tt .sentiment-green,
.sentiment-section--meta-tt .sentiment-pink,
.sentiment-section--meta-tt .sentiment-red,
.sentiment-section--meta-tt .sentiment-blue,
.sentiment-section--meta-tt .sentiment-yellow,
.sentiment-section--meta-tt .sentiment-gray {
  border-bottom: 1px solid var(--card-border);
  color: #111827;
}

.sentiment-icon {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
}

.sentiment-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sentiment-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sentiment-value {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.sentiment-status {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #eef2ff;
  color: #1e3a8a;
}

.sentiment-breakdown-slot {
  margin-top: 10px;
  text-align: left;
}

.sentiment-comparison-slot {
  margin: 0 0 10px;
  text-align: left;
}

.sentiment-comparison-slot .kpi-comparison-meta {
  margin-top: 0;
}

.sentiment-breakdown-slot .platform-breakdown-bar {
  height: 10px;
}

.sentiment-breakdown-slot .platform-breakdown-legend {
  margin-top: 6px;
  gap: 3px;
}

.sentiment-breakdown-slot .platform-breakdown-text {
  font-size: 10px;
}


.sentiment-green {
  border-bottom: 4px solid #16a34a;
  color: #16a34a;
}

.sentiment-pink {
  border-bottom: 4px solid #e11d48;
  color: #e11d48;
}

.sentiment-red {
  border-bottom: 4px solid #dc2626;
  color: #dc2626;
}

.sentiment-blue {
  border-bottom: 4px solid #3b82f6;
  color: #3b82f6;
}

.sentiment-yellow {
  border-bottom: 4px solid #eab308;
  color: #eab308;
}

.sentiment-gray {
  border-bottom: 4px solid #64748b;
  color: #64748b;
}

.sentiment-ok {
  background: #dcfce7;
  color: #166534;
}

.sentiment-love {
  background: #ffe4e6;
  color: #9f1239;
}

.sentiment-alert {
  background: #fee2e2;
  color: #991b1b;
}

.sentiment-muted {
  background: #e2e8f0;
  color: #475569;
}

.format-subtitle {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.format-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.format-chart h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.format-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.format-chart-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.format-total {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.format-total-definition {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.paid-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.paid-metric-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.9rem 1rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.paid-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--paid-top-tone, var(--bp-green));
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.paid-cards-grid .paid-metric-card:nth-child(6n + 1) {
  --paid-top-tone: var(--bp-green);
}

.paid-cards-grid .paid-metric-card:nth-child(6n + 2) {
  --paid-top-tone: #0e8a49;
}

.paid-cards-grid .paid-metric-card:nth-child(6n + 3) {
  --paid-top-tone: var(--bp-green-2);
}

.paid-cards-grid .paid-metric-card:nth-child(6n + 4) {
  --paid-top-tone: #2ea864;
}

.paid-cards-grid .paid-metric-card:nth-child(6n + 5) {
  --paid-top-tone: #3bb874;
}

.paid-cards-grid .paid-metric-card:nth-child(6n + 6) {
  --paid-top-tone: #57c88a;
}

.paid-metric-title {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.paid-metric-total {
  color: #111827;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.05;
  margin-bottom: 0.6rem;
  word-break: break-word;
}

.paid-metric-desc {
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.35;
}

.paid-summary-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--ink-500);
  background: #fafcfb;
}

.paid-summary-table {
  width: 100%;
}

.paid-summary-table th:nth-child(1),
.paid-summary-table td:nth-child(1) {
  min-width: 220px;
}

.paid-summary-table th:nth-child(2),
.paid-summary-table td:nth-child(2) {
  min-width: 180px;
}

.paid-summary-table th:nth-child(3),
.paid-summary-table td:nth-child(3) {
  min-width: 360px;
}

.paid-summary-row td {
  padding-top: 16px;
  padding-bottom: 16px;
  vertical-align: middle;
}

.paid-summary-metric-name {
  color: #111827;
  font-weight: 700;
  line-height: 1.25;
}

.paid-summary-metric-key {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.paid-summary-value {
  color: #111827;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.paid-summary-breakdown {
  margin-top: 8px;
}

.paid-summary-desc-cell {
  color: #374151;
  line-height: 1.4;
}

.paid-summary-empty-cell {
  padding: 18px !important;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-500);
  background: #fafcfb;
  text-align: center;
}

.paid-video-retention-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.paid-video-retention-kpi {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.paid-video-retention-kpi__label {
  color: var(--ink-500);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.paid-video-retention-kpi__value {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.paid-video-retention-panel {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1rem 1rem 0.9rem;
  background: #fcfefd;
  height: 100%;
}

.paid-video-retention-panel__title {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.paid-video-retention-link {
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 143, 79, 0.25);
}

.paid-video-retention-link:hover {
  color: #0f8f4f;
  border-bottom-color: rgba(15, 143, 79, 0.65);
}

.paid-video-retention-funnel {
  min-height: 460px;
}

.paid-video-retention-funnel .js-plotly-plot,
.paid-video-retention-funnel .plot-container,
.paid-video-retention-funnel .svg-container {
  width: 100% !important;
}

.paid-video-retention-funnel__row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.paid-video-retention-funnel__label {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
}

.paid-video-retention-funnel__metric,
.paid-video-retention-funnel__rate {
  color: var(--ink-500);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.paid-video-retention-funnel__shape-wrap {
  position: relative;
  width: 100%;
  padding: 0.25rem 0 0.45rem;
}

.paid-video-retention-funnel__track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-50%);
}

.paid-video-retention-funnel__shape-bg {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(21, 127, 72, 0.12) 0%, rgba(95, 203, 139, 0.2) 100%);
}

.paid-video-retention-funnel__shape {
  position: relative;
  height: 22px;
  min-width: 0;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #157f48 0%, #5fcb8b 100%);
  box-shadow: 0 10px 24px rgba(21, 127, 72, 0.16);
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  transition: width 180ms ease;
}

.paid-video-retention-table th,
.paid-video-retention-table td {
  vertical-align: middle;
}

.paid-video-retention-warning-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.paid-video-retention-creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.paid-video-retention-creative-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 0.9rem 0.95rem 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.paid-video-retention-creative-card__header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.paid-video-retention-creative-card__title {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.paid-video-retention-creative-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  color: var(--ink-500);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.paid-video-retention-creative-card__chart {
  height: 220px;
}

.paid-video-retention-link--meta {
  font-weight: 700;
}

.paid-video-retention-warning {
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  background: #fff7e8;
  color: #8a5a00;
  border: 1px solid #f7d591;
  font-size: 0.9rem;
}

.format-chart canvas {
  max-height: 120px;
}

.format-section--meta-tt .format-chart canvas {
  max-height: 220px;
}

.format-verdict {
  margin-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
}

.format-verdict-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.format-verdict-text {
  font-size: 0.95rem;
  color: #111827;
}

.ads-subtitle {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.ads-table {
  width: 100%;
}

.ads-table th:first-child,
.ads-table td:first-child {
  min-width: 320px;
}

.ads-table.ads-table--tiktok {
  min-width: 1900px;
}

.ads-table.ads-table--tiktok th:first-child,
.ads-table.ads-table--tiktok td:first-child {
  min-width: 420px;
}

.ads-table tbody tr td {
  vertical-align: middle;
}

.ads-creative-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ads-preview {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #f8fafc;
  display: block;
}

.ads-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ads-creative-content {
  min-width: 0;
}

.ads-creative {
  font-weight: 500;
  color: #111827;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.35;
  max-height: calc(1.35em * 4);
  overflow: hidden;
}

.ads-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ads-id-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ads-link {
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ads-link:hover {
  text-decoration: underline;
}

.ads-comments-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ads-comments-link:hover {
  background: #eef2ff;
  border-color: #94a3b8;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-dark {
  background: #f3e8ff;
  color: #6b21a8;
}

.badge-pub {
  background: #dcfce7;
  color: #166534;
}

.badge-deleted {
  background: #fee2e2;
  color: #991b1b;
}

.ads-glossary {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: #374151;
}

.ads-glossary-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.high-perf {
  color: #166534;
  font-weight: 600;
}

.low-perf {
  color: #dc2626;
  font-weight: 600;
  opacity: 0.8;
}

.filters .form-select,
.filters .form-control,
.date-range-button {
  width: 100%;
}

.date-range {
  min-width: 260px;
}

.date-range-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--card-border);
  background: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.filters .form-select {
  min-width: 170px;
}

.filters .form-select:focus,
.date-range-button:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.date-range-button-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

#dateRangeText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-range-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.date-range-caret {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .ads-preview {
    width: 56px;
    min-width: 56px;
    height: 56px;
  }
}

.date-range-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  width: 360px;
  padding: 1rem;
}

.date-range-panel-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.date-range-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.date-range-presets button {
  border: 1px solid var(--card-border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: #1f2937;
  text-align: left;
}

.date-range-presets button:hover {
  background: #eef2ff;
}

.date-range-inputs label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.date-range-inputs .form-control {
  margin-bottom: 0.6rem;
}

.date-range-apply {
  width: 100%;
  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
}

.date-range-apply:hover {
  background: #0f172a;
}

@media (max-width: 768px) {
  .date-range-panel {
    width: 100%;
    right: auto;
    left: 0;
  }

  .funnel-step:not(:last-child)::after {
    display: none;
  }
}

.status-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 500;
}

.status-loader-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.2);
  border-top-color: #047857;
  animation: status-loader-spin 0.8s linear infinite;
}

@keyframes status-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dashboard experience refresh */
.dashboard-page {
  --dashboard-ink: #101927;
  --dashboard-muted: #64748b;
  --dashboard-line: #dfe7e2;
  --dashboard-soft: #f4f7f5;
  background:
    radial-gradient(circle at 94% 0%, rgba(122, 193, 67, 0.14), transparent 25rem),
    linear-gradient(180deg, #f7faf8 0, #eef4f0 22rem, #f7f9f8 100%);
  color: var(--dashboard-ink);
}

.dashboard-page .bp-container {
  width: min(1480px, calc(100% - 40px));
  max-width: none;
  padding: 0 0 80px;
}

.dashboard-page .bp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(700px, 1.75fr) minmax(340px, auto);
  gap: 22px;
  align-items: center;
  margin: 0 calc(50% - 50vw) 34px;
  padding: 12px clamp(20px, 4vw, 64px);
  min-height: 86px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 25, 39, 0.08);
  backdrop-filter: blur(18px);
}

.dashboard-page .bp-logo-left {
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.dashboard-page .bp-logo-bp {
  width: 46px;
  height: 58px;
}

.dashboard-brand-copy {
  display: grid;
  line-height: 1.05;
}

.dashboard-brand-copy span,
.dashboard-kicker {
  color: var(--bp-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-brand-copy strong {
  margin-top: 3px;
  color: var(--dashboard-ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.dashboard-page .bp-header-main {
  align-items: stretch;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.dashboard-page .bp-title {
  margin: 1px 0 0;
  color: var(--dashboard-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.dashboard-nav {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #edf2ef;
}

.dashboard-nav a {
  padding: 8px 18px;
  color: #536071;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.dashboard-nav a.active {
  color: #fff;
  background: var(--bp-green);
  box-shadow: 0 6px 18px rgba(0, 127, 63, 0.2);
}

.dashboard-page .bp-logo-right {
  align-items: flex-end;
  min-width: 0;
}

.dashboard-page .bp-header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-page .bp-btn-white {
  padding: 9px 14px;
  color: var(--dashboard-ink);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(16, 25, 39, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-page .bp-btn-white:hover {
  color: var(--bp-green);
  border-color: rgba(0, 127, 63, 0.2);
  background: #f8fbf9;
  transform: translateY(-1px);
}

.dashboard-page #refreshBtn {
  color: #fff;
  border-color: var(--dashboard-ink);
  background: var(--dashboard-ink);
}

.dashboard-page #refreshBtn svg {
  color: currentColor;
}

.dashboard-page #logoutBtn {
  color: #64748b !important;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.dashboard-page .bp-filters {
  display: grid !important;
  grid-column: 2 / 4;
  grid-row: 2;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.1fr) minmax(380px, 1.35fr);
  gap: 10px !important;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(16, 25, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(26, 48, 37, 0.07);
}

.dashboard-page .bp-filter-field,
.dashboard-page .date-range {
  width: 100%;
  min-width: 0;
}

.dashboard-page .filters .form-select,
.dashboard-page .filters .form-control,
.dashboard-page .date-range-button {
  min-height: 42px;
  color: var(--dashboard-ink);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #dce5df;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: none;
}

.dashboard-page .filters .form-select:focus,
.dashboard-page .date-range-button:focus {
  border-color: rgba(0, 127, 63, 0.35);
  outline: 3px solid rgba(0, 127, 63, 0.12);
}

.dashboard-page .date-range-panel {
  overflow: hidden;
  border-color: rgba(16, 25, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.dashboard-page .date-range-presets button {
  border-color: #dfe7e2;
  background: #f7faf8;
  font-weight: 600;
}

.dashboard-page .date-range-presets button:hover {
  color: var(--bp-green);
  background: #eef7f0;
}

.dashboard-page .date-range-apply {
  background: var(--bp-green);
  box-shadow: 0 10px 20px rgba(0, 127, 63, 0.18);
}

.dashboard-page #statusRow {
  min-height: 0;
  margin: 0 0 8px !important;
}

.dashboard-page .status-loader {
  padding: 10px 14px;
  color: var(--dashboard-muted);
  border: 1px solid rgba(16, 25, 39, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(26, 48, 37, 0.06);
}

.dashboard-page #error {
  padding: 14px 18px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 16px;
  background: rgba(254, 242, 242, 0.92);
}

.dashboard-page section {
  margin: 0 !important;
  padding-top: 48px;
}

.dashboard-page .bp-container > section + section {
  padding-top: 48px;
}

.dashboard-page .bp-container > section + section::before {
  display: none;
}

.dashboard-page .bp-section,
.dashboard-page #executiveSummary {
  border: 1px solid rgba(16, 25, 39, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(26, 48, 37, 0.07);
}

.dashboard-page .bp-section {
  overflow: hidden;
  padding: 24px;
}

.dashboard-page .section-title {
  margin: 0 0 18px;
  color: var(--bp-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.dashboard-page .section-title::before {
  width: 44px;
  height: 2px;
  background: var(--bp-green);
}

.dashboard-page .fb-subsection-title,
.dashboard-page .community-draft-panel-title,
.dashboard-page .paid-video-retention-panel__title,
.dashboard-page .ads-glossary-title,
.dashboard-page .format-total span,
.dashboard-page .kpi-label,
.dashboard-page .kpi-title,
.dashboard-page .paid-metric-title,
.dashboard-page .community-draft-card-label {
  color: var(--dashboard-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-page .fb-section-divider {
  margin: 28px -24px;
  background: #edf1ef;
}

.dashboard-page .card,
.dashboard-page .card.shadow-sm,
.dashboard-page .kpi-card,
.dashboard-page .community-draft-card,
.dashboard-page .community-draft-panel,
.dashboard-page .paid-metric-card,
.dashboard-page .paid-video-retention-panel,
.dashboard-page .sentiment-card,
.dashboard-page .format-chart,
.dashboard-page .format-verdict {
  border: 1px solid rgba(16, 25, 39, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(26, 48, 37, 0.07) !important;
}

.dashboard-page .card.shadow-sm::before,
.dashboard-page .kpi-card::before,
.dashboard-page .paid-metric-card::before {
  height: 5px;
  background: var(--bp-green);
}

.dashboard-page .card-body {
  padding: 22px !important;
}

.dashboard-page .card-title,
.dashboard-page .format-chart-title,
.dashboard-page .paid-video-retention-creative-card__title,
.dashboard-page .community-mosaic-secondary__title {
  color: var(--dashboard-ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.dashboard-page .format-subtitle,
.dashboard-page .fb-organic-subtitle,
.dashboard-page .ads-subtitle,
.dashboard-page .top-content-subtitle,
.dashboard-page .community-mosaic-secondary__subtitle,
.dashboard-page .chart-note-body,
.dashboard-page .kpi-sub,
.dashboard-page .kpi-definition,
.dashboard-page .paid-metric-desc {
  color: var(--dashboard-muted);
}

.dashboard-page .kpi-card,
.dashboard-page .paid-metric-card,
.dashboard-page .community-draft-card {
  min-height: 110px;
  padding: 18px;
}

.dashboard-page .kpi-value,
.dashboard-page .paid-metric-total,
.dashboard-page .community-draft-card-value,
.dashboard-page .format-total strong {
  color: var(--dashboard-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-page .kpi-value {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.dashboard-page .funnel-step,
.dashboard-page .community-draft-grid--highlight .community-draft-panel,
.dashboard-page .community-mosaic-card,
.dashboard-page .ads-glossary,
.dashboard-page .chart-note,
.dashboard-page .paid-summary-empty {
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: #f8fbf9;
}

.dashboard-page .table-responsive,
.dashboard-page .dual-scroll-table {
  border-radius: 18px;
}

.dashboard-page .table {
  margin-bottom: 0;
  color: var(--dashboard-ink);
}

.dashboard-page .table thead th {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f4f7f5;
  border-bottom: 0;
}

.dashboard-page .table tbody td,
.dashboard-page .table tbody th {
  border-color: #edf1ef;
}

.dashboard-page .ads-link,
.dashboard-page .paid-video-retention-link,
.dashboard-page .community-draft-table a {
  color: var(--bp-green);
  font-weight: 800;
}

.dashboard-page .community-text-filters,
.dashboard-page .comparison-chart-toolbar {
  padding: 12px;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: #f8fbf9;
}

.dashboard-page .community-multiselect__summary,
.dashboard-page .community-text-filters .form-control,
.dashboard-page .community-text-filters .form-select {
  border-color: #dce5df;
  border-radius: 12px;
  background: #fff;
}

.dashboard-page .badge,
.dashboard-page .delta-chip,
.dashboard-page .sentiment-status,
.dashboard-page .community-draft-sentiment,
.dashboard-page .community-platform-badge,
.dashboard-page .community-time-chip {
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 1480px) {
  .dashboard-page .bp-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dashboard-page .bp-filters {
    grid-column: 1;
    grid-row: auto;
  }

  .dashboard-page .bp-logo-right,
  .dashboard-page .bp-header-actions {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .dashboard-page .bp-container {
    width: min(100% - 28px, 1480px);
  }

  .dashboard-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page .bp-filters {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    width: 100%;
  }

  .dashboard-nav a {
    flex: 1 1 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .dashboard-page .bp-header {
    margin-bottom: 24px;
    padding: 12px 18px;
  }

  .dashboard-page .bp-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .dashboard-page .bp-btn-white {
    justify-content: center;
  }

  .dashboard-page .bp-section {
    padding: 18px;
    border-radius: 22px;
  }
}

.comments-page-header {
  align-items: center;
}

.comments-page-main {
  align-items: flex-start;
}

.comments-page-actions {
  align-items: flex-end;
}

.comments-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.comments-summary {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.comments-summary-total {
  font-weight: 600;
  color: #111827;
}

.comments-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comments-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #334155;
  background: #f8fafc;
}

.comments-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1e293b;
  background: #e2e8f0;
}

.comments-date {
  white-space: nowrap;
  color: #475569;
  font-size: 0.82rem;
}

.comments-text {
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 300px;
}

@media print {
  .no-print {
    display: none !important;
  }

  .page-break {
    page-break-before: always;
    break-before: page;
  }

  .card,
  .chart-block,
  .table-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body {
    zoom: 0.95;
  }
}

.insights-page .bp-header {
  align-items: flex-start;
}

.insights-page-subtitle {
  margin: 0;
  color: #52606d;
  font-size: 1rem;
}

.insights-filter-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  border: 1px solid #dceae2;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 14px 36px rgba(15, 81, 50, 0.08);
}

.insights-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.insights-comparison-panel {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insights-empty-state {
  margin-top: 12px;
}

.insights-empty-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #dde5e9;
  padding: 28px;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.06);
}

.insights-empty-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.insights-empty-card p {
  margin: 0;
  color: #5b6671;
  line-height: 1.7;
}

.insights-report {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.insights-hero {
  background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
  color: white;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.insights-overline {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.insights-hero h2 {
  margin: 0;
  font-size: 2.1rem;
}

.insights-hero-range {
  margin: 10px 0 0;
  font-size: 1rem;
  opacity: 0.92;
}

.insights-hero-meta {
  display: flex;
  gap: 12px;
}

.insights-meta-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 12px 14px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insights-meta-chip span {
  font-size: 0.8rem;
  opacity: 0.82;
}

.insights-meta-chip strong {
  font-size: 0.95rem;
  word-break: break-all;
}

.insights-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insights-card,
.insights-pillar-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #e0e8eb;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
}

.insights-card-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 10px;
}

.insights-card-copy,
.insights-pillar-card p {
  color: #44515c;
  line-height: 1.7;
  margin: 0;
}

.insights-pillars-section .section-title {
  margin-bottom: 16px;
}

.insights-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insights-pillar-card h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
  color: #17212b;
}

.insights-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: #44515c;
}

.insights-bullet-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .insights-filter-grid,
  .insights-summary-grid,
  .insights-pillars-grid {
    grid-template-columns: 1fr;
  }

  .insights-hero {
    flex-direction: column;
  }

  .insights-meta-chip {
    min-width: 0;
    width: 100%;
  }
}
