html {
  font-size: 18px;
}

.ic-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ic-hero .hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #64748b;
}

.ic-hero .hero-title {
  margin: 0.35rem 0 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
}

.ic-hero .hero-sub {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.ic-hero .hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.ic-chip i {
  color: #0d6efd;
}

.ic-chip-compact {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.ic-leaderboard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.ic-summary-card {
  flex: 1;
  min-width: 240px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.75rem 1rem;
  position: relative;
  overflow: hidden;
}

.ic-summary-card > * {
  position: relative;
  z-index: 1;
}

.ic-summary-card-feature {
  border-color: #dbeafe;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.06);
}

.ic-summary-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.ic-summary-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.3rem 0;
  word-break: break-word;
}

.ic-summary-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.ic-leaderboard-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
  position: relative;
  overflow: hidden;
}

.ic-leaderboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd 0%, #38bdf8 100%);
}

.ic-leaderboard-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ic-leaderboard-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ic-leaderboard-desktop {
  display: block;
}

.ic-leaderboard-mobile {
  display: none;
}

.ic-dropdown-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.2rem 0.75rem;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.05);
}

.ic-dropdown {
  width: 100%;
}

.ic-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.1rem;
  cursor: pointer;
  list-style: none;
}

.ic-dropdown-summary-static {
  cursor: default;
}

.ic-dropdown-summary::-webkit-details-marker {
  display: none;
}

.ic-dropdown-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ic-dropdown-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.ic-dropdown-layout {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.ic-dropdown-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ic-dropdown-metric {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d6efd;
  white-space: nowrap;
}

.ic-dropdown-caret::before {
  content: "+";
  font-weight: 700;
  color: #94a3b8;
}

.ic-dropdown[open] .ic-dropdown-caret::before {
  content: "-";
}

.ic-dropdown-body {
  border-top: 1px solid #e2e8f0;
  padding: 0.7rem 0.1rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.ic-dropdown-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ic-dropdown-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.ic-dropdown-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.ic-dropdown-empty {
  font-size: 0.85rem;
  color: #94a3b8;
}

.ic-dropdown-note {
  margin-top: 0.75rem;
  text-align: center;
}

.ic-footer-actions {
  margin-top: 1.25rem;
  text-align: center;
}

.ic-footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.ic-footer-link:hover,
.ic-footer-link:focus {
  color: #0d6efd;
  text-decoration: underline;
}

.ic-leaderboard-table tbody td[data-label="Layout"] {
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.ic-leaderboard-table tbody td[data-label="Layout"]::before {
  content: "Layout";
}

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

.ic-cohort-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.75rem 1rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.ic-treatment-card {
  border-top: 3px solid #0d6efd;
}

.ic-holdout-card {
  border-top: 3px solid #0d6efd;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ic-holdout-layout {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.ic-holdout-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ic-holdout-metric {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.6rem 0.75rem;
}

.ic-holdout-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.ic-holdout-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

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

.ic-cohort-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.ic-cohort-title i {
  margin-right: 0.35rem;
  color: #0d6efd;
}

.ic-holdout-card .ic-cohort-title i {
  color: #0d6efd;
}

.ic-cohort-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.ic-break {
  display: inline-block;
  word-break: break-all;
  white-space: normal;
}

.ic-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ic-action-muted {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  opacity: 0.7;
}

.ic-action-muted:hover,
.ic-action-muted:focus {
  opacity: 0.95;
}

.ic-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.ic-kpi-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #64748b;
}

.ic-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.ic-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ic-page-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ic-page-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.ic-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ic-page-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d6efd;
  text-decoration: none;
}

.ic-page-title:hover,
.ic-page-title:focus {
  color: #0b5ed7;
}

.ic-page-sub {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #64748b;
}

.ic-status-pill {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.ic-page-metrics {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.ic-page-metric {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.6rem 0.75rem;
}

.ic-page-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.ic-page-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.ic-page-value-muted {
  color: #94a3b8;
}

@media (max-width: 992px) {
  .ic-page-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ic-chart-card {
    display: none;
  }

  .ic-leaderboard-card::before {
    height: 3px;
  }

  .ic-leaderboard-desktop {
    display: none;
  }

  .ic-leaderboard-mobile {
    display: block;
  }

  .ic-leaderboard-chips {
    display: none;
  }

  .ic-dropdown-summary {
    flex-wrap: wrap;
  }

  .ic-summary-card {
    min-width: 100%;
  }

  .ic-table-responsive {
    overflow-x: visible;
  }

  .ic-mobile-table thead {
    display: none;
  }

  .ic-mobile-table tbody tr {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  }

  .ic-mobile-table tbody td {
    display: block;
    padding: 0.4rem 0;
    border: none;
    word-break: break-word;
  }

  .ic-mobile-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
  }

  .ic-mobile-table tbody td.text-end {
    text-align: left;
  }

  .ic-leaderboard-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
  }

  .ic-leaderboard-table tbody td {
    padding: 0.2rem 0;
  }

  .ic-leaderboard-table tbody td[data-label="Layout"] {
    grid-column: 1 / -1;
    font-size: 1rem;
  }

  .ic-page-card {
    padding: 0.9rem 1rem;
  }

  .ic-page-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .ic-hero {
    padding: 1rem;
  }

  .ic-hero .hero-title {
    font-size: 1.5rem;
  }

  .ic-hero .hero-sub {
    font-size: 0.9rem;
  }

  .ic-hero .hero-actions {
    width: 100%;
    align-items: flex-start;
  }

  .ic-hero .hero-actions form {
    width: 100%;
  }

  .ic-hero .hero-actions .ic-action-btn {
    width: 100%;
    justify-content: center;
  }

  .ic-chip {
    width: 100%;
    justify-content: space-between;
  }

  .ic-kpi-value {
    font-size: 1.4rem;
  }

  .ic-kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .ic-kpi-card .card-body {
    padding: 0.85rem;
  }

  .kpi-label {
    font-size: 0.7rem;
  }

  .ic-cohort-card {
    padding: 0.75rem;
  }

  .ic-cohort-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ic-dropdown-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .ic-dropdown-meta {
    width: 100%;
    justify-content: space-between;
  }

  .ic-dropdown-body {
    grid-template-columns: 1fr;
  }

  .ic-page-metrics {
    grid-template-columns: 1fr;
  }
}
}
