:root {
  color-scheme: dark;
  --ds-primary: #ece4ff;
  --ds-secondary: #8f85b8;
  --ds-tertiary: #9b5cf6;
  --ds-neutral: #120a24;
  --ds-surface: #1a1138;
  --ds-on-primary: #120a24;
  --ds-primary-rgb: 236, 228, 255;
  --ds-secondary-rgb: 143, 133, 184;
  --ds-tertiary-rgb: 155, 92, 246;
  --ds-neutral-rgb: 18, 10, 36;
  --ds-surface-rgb: 26, 17, 56;
  --bg: #090612;
  --surface: #0f0a1c;
  --surface-2: #130d25;
  --surface-3: #1b1233;
  --text: var(--ds-primary);
  --muted: var(--ds-secondary);
  --faint: #6f6595;
  --line: rgba(var(--ds-secondary-rgb), 0.13);
  --line-strong: rgba(var(--ds-primary-rgb), 0.18);
  --table-line: rgba(var(--ds-secondary-rgb), 0.3);
  --table-line-soft: rgba(var(--ds-secondary-rgb), 0.21);
  --violet: var(--ds-tertiary);
  --coral: #c9b8ff;
  --rose: #b98cff;
  --mint: #d7ccff;
  --green: #b9f2dc;
  --amber: #d8c5ff;
  --blue: #b6a2ff;
  --glow-soft: rgba(var(--ds-tertiary-rgb), 0.14);
  --glow-strong: rgba(var(--ds-tertiary-rgb), 0.24);
  --accent-gradient: linear-gradient(135deg, var(--ds-primary) 0%, #c9b8ff 34%, var(--ds-tertiary) 100%);
  --surface-gradient: linear-gradient(135deg, rgba(var(--ds-tertiary-rgb), 0.18), rgba(var(--ds-primary-rgb), 0.055));
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-card: 8px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -8%, rgba(var(--ds-tertiary-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(var(--ds-primary-rgb), 0.055), transparent 28%),
    linear-gradient(180deg, rgba(var(--ds-surface-rgb), 0.24) 0, transparent 360px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
.brand,
.firm-name,
.section-heading h2,
.screen-hero h1,
.offer-detail-copy h1,
.profile-main h1 {
  font-family: var(--display);
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1920px, calc(100% - 32px));
  margin: 0 auto;
}

.ticker {
  background: rgba(9, 6, 18, 0.96);
  border-bottom: 1px solid var(--line);
}

.ticker__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--ds-on-primary);
  font-weight: 800;
}

.live-pill::before,
.status-dot {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ds-primary);
  box-shadow: 0 0 0 5px rgba(var(--ds-tertiary-rgb), 0.18);
  flex: 0 0 auto;
}

.ticker__divider {
  width: 1px;
  height: 24px;
  background: rgba(var(--ds-secondary-rgb), 0.32);
}

.ticker__button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.72);
  background: rgba(var(--ds-tertiary-rgb), 0.08);
  color: var(--text);
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 6, 18, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav__main {
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
}

.brand__mark {
  width: 42px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: var(--ds-on-primary);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 34px var(--glow-strong);
}

.brand__accent {
  color: var(--ds-tertiary);
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.icon-grid {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-auto-rows: 5px;
  justify-content: center;
  align-content: center;
  gap: 4px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.icon-grid span {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 2px;
}

.search {
  height: 42px;
  width: min(330px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--ds-primary-rgb), 0.045);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--muted);
}

.search input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 4px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.8);
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.04);
}

.segmented button {
  border: 0;
  border-radius: 999px;
  height: 32px;
  padding: 0 15px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.segmented .is-active {
  background: var(--accent-gradient);
  color: var(--ds-on-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.solid-button {
  border: 0;
  color: var(--ds-on-primary);
  background: var(--accent-gradient);
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(var(--ds-primary-rgb), 0.05);
  color: var(--text);
  border-radius: 8px;
}

.subnav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
}

.subnav a {
  color: var(--faint);
  padding: 0 0 12px;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.subnav .is-active {
  color: var(--text);
  border-color: var(--ds-tertiary);
}

.hero {
  padding: 34px 0 22px;
  text-align: center;
}

.hero h1 {
  max-width: 940px;
  margin: 0 auto 12px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.stat-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.24);
  background:
    linear-gradient(90deg, rgba(var(--ds-tertiary-rgb), 0.09), rgba(var(--ds-primary-rgb), 0.035)),
    rgba(15, 10, 28, 0.86);
  color: var(--muted);
  font-weight: 700;
}

.stat-pill strong {
  color: var(--text);
}

.visual-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--ds-on-primary);
  background: var(--accent-gradient);
}

.offers-band {
  padding: 0 0 34px;
}

.offers-panel {
  position: relative;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.46);
  background:
    radial-gradient(circle at 50% 100%, rgba(var(--ds-tertiary-rgb), 0.2), transparent 44%),
    linear-gradient(100deg, rgba(var(--ds-tertiary-rgb), 0.08), rgba(var(--ds-primary-rgb), 0.035) 58%, rgba(var(--ds-tertiary-rgb), 0.06)),
    rgba(12, 8, 22, 0.96);
  border-radius: 8px;
  box-shadow:
    0 28px 90px rgba(var(--ds-tertiary-rgb), 0.2),
    0 0 0 1px rgba(var(--ds-tertiary-rgb), 0.08),
    inset 0 1px 0 rgba(var(--ds-primary-rgb), 0.04);
  padding: 20px 22px 22px;
}

.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.carousel-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.32);
}

.dot.is-active {
  width: 18px;
  background: var(--ds-tertiary);
}

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

.offer-card,
.firm-row,
.challenge-row,
.review-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: rgba(11, 7, 20, 0.82);
}

.offer-card {
  border-color: rgba(var(--ds-secondary-rgb), 0.18);
}

.offer-card {
  height: 112px;
  min-height: 112px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 116px;
  align-items: center;
  gap: 18px;
  box-shadow: inset 0 0 0 1px rgba(var(--ds-primary-rgb), 0.02);
  transition: border-color 0.16s, transform 0.16s, background 0.16s;
}

.offer-card:hover {
  border-color: rgba(var(--ds-tertiary-rgb), 0.55);
  background: rgba(16, 10, 29, 0.96);
  transform: translateY(-1px);
}

.offer-logo-wrap {
  position: relative;
  width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-tile {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ds-on-primary);
  font-family: var(--mono);
  font-weight: 800;
  border: 1px solid rgba(var(--ds-primary-rgb), 0.15);
}

.logo-tile.is-small {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.logo-tile.is-offer {
  width: 76px;
  height: 76px;
  font-size: 22px;
  border-radius: 8px;
}

.firm-meta {
  min-width: 0;
}

.offer-title-line,
.firm-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-title-line .firm-name {
  flex: 1 1 auto;
  font-size: 23px;
  line-height: 1.1;
}

.firm-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.firm-description {
  max-width: 260px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stars {
  color: var(--ds-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-icon {
  fill: transparent;
  stroke: rgba(var(--ds-primary-rgb), 0.28);
  stroke-width: 2px;
}

.star-icon.is-filled {
  fill: currentColor;
  stroke: currentColor;
}

.offer-card .star-icon {
  width: 15px;
  height: 15px;
}

.deal {
  width: 116px;
  min-width: 116px;
  overflow: hidden;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.7);
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.deal strong {
  display: block;
  min-height: 45px;
  padding: 11px 9px 8px;
  background: rgba(var(--ds-primary-rgb), 0.045);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal span {
  display: block;
  min-height: 31px;
  padding: 8px 9px 6px;
  background: var(--accent-gradient);
  color: var(--ds-on-primary);
  font-family: var(--mono);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-card.is-official .deal strong {
  color: var(--ds-primary);
}

.offer-card.is-official .deal span {
  background: linear-gradient(135deg, rgba(var(--ds-primary-rgb), 0.84), rgba(var(--ds-primary-rgb), 0.74));
}

.firm-row .deal {
  width: 90px;
  min-width: 90px;
  font-size: 12px;
}

.firm-row .deal strong {
  min-height: 30px;
  padding: 6px 7px 5px;
}

.firm-row .deal span {
  min-height: 22px;
  padding: 4px 7px;
  font-size: 9px;
}

.content-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 16px;
}

.tab-button {
  height: 48px;
  min-width: 132px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.09);
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
}

.tab-button.is-active {
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--ds-primary-rgb), 0.08);
  color: var(--text);
  font-weight: 700;
}

.filter-button.is-active {
  border-color: rgba(var(--ds-primary-rgb), 0.72);
  background: rgba(var(--ds-primary-rgb), 0.12);
}

.data-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ds-primary-rgb), 0.22);
  background: rgba(var(--ds-primary-rgb), 0.1);
  color: var(--ds-primary);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 84px;
}

.firm-table {
  width: 100%;
  min-width: 1660px;
  max-width: none;
  --firm-grid: minmax(410px, 1.55fr) 230px 150px 130px 130px 220px 210px 150px 130px;
}

.table-head,
.firm-row {
  width: 100%;
  display: grid;
  grid-template-columns: var(--firm-grid);
  gap: 0;
  align-items: stretch;
}

.table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.table-head div,
.firm-row > div {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--table-line-soft);
  min-width: 0;
  overflow: hidden;
}

.table-head div:first-child,
.firm-row > div:first-child {
  border-left: 0;
}

.firm-row {
  height: 116px;
  min-height: 116px;
  margin-bottom: 10px;
  border-color: var(--table-line);
  box-shadow:
    0 0 0 1px rgba(var(--ds-tertiary-rgb), 0.08),
    0 16px 42px rgba(var(--ds-tertiary-rgb), 0.07);
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s, transform 0.16s;
}

.firm-row:hover {
  border-color: rgba(var(--ds-tertiary-rgb), 0.48);
  background: rgba(var(--ds-surface-rgb), 0.92);
  box-shadow:
    0 0 0 1px rgba(var(--ds-tertiary-rgb), 0.16),
    0 18px 48px rgba(var(--ds-tertiary-rgb), 0.12);
  transform: translateY(-1px);
}

.firm-cell {
  gap: 14px;
  justify-content: flex-start !important;
}

.firm-cell-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.firm-cell-link .firm-meta {
  display: block;
}

.rank-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--ds-secondary-rgb), 0.16);
  border: 1px solid rgba(var(--ds-secondary-rgb), 0.3);
  color: var(--ds-primary);
  font-weight: 800;
  flex: 0 0 auto;
}

.subtle {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
}

.rating-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(var(--ds-tertiary-rgb), 0.75);
  border-radius: 999px;
  font-weight: 800;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}

.center-stack {
  align-items: center;
  text-align: center;
}

.asset-pill,
.platform-pill,
.coverage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(var(--ds-primary-rgb), 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 178px;
}

.platform-pill {
  min-width: 32px;
  font-family: var(--mono);
  padding: 0 8px;
}

.coverage-pill {
  color: var(--ds-primary);
  background: rgba(var(--ds-primary-rgb), 0.13);
  border: 1px solid rgba(var(--ds-primary-rgb), 0.25);
}

.bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--ds-primary-rgb), 0.1);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
}

.action-link {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.74);
  color: var(--text);
  font-weight: 800;
}

.no-deal {
  display: block;
  max-width: 118px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 84px;
}

.challenge-row,
.review-card {
  padding: 16px;
  min-height: 188px;
}

.challenge-row h3,
.review-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

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

.metric {
  border-radius: 8px;
  background: rgba(var(--ds-primary-rgb), 0.055);
  padding: 10px;
}

.metric span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.floating-action {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.42);
  background: linear-gradient(135deg, var(--surface-3), var(--surface));
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.46);
}

svg {
  display: block;
}

@media (max-width: 1040px) {
  .nav__main {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 14px 0;
  }

  .nav__center {
    grid-column: 1 / -1;
    order: 3;
  }

  .search {
    width: 100%;
  }

  .offer-grid,
  .challenge-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 22px, 1260px);
  }

  .ticker__inner {
    justify-content: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
  }

  .ticker__source,
  .ticker__divider,
  .ticker__button {
    display: none;
  }

  .brand {
    font-size: 17px;
  }

  .nav__actions .text-button,
  .nav__actions .solid-button,
  .icon-grid {
    display: none;
  }

  .nav__center {
    flex-wrap: wrap;
  }

  .segmented,
  .search {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .subnav {
    gap: 18px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .offer-grid,
  .challenge-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    justify-content: space-between;
  }

  .section-heading h2 {
    text-align: left;
    font-size: 18px;
  }

  .carousel-actions {
    position: static;
    transform: none;
    flex: 0 0 auto;
  }

  .offer-card {
    grid-template-columns: 74px minmax(0, 1fr) 96px;
    height: 96px;
    min-height: 96px;
    gap: 12px;
  }

  .offer-logo-wrap {
    width: 74px;
  }

  .logo-tile.is-offer {
    width: 64px;
    height: 64px;
    font-size: 19px;
  }

  .offer-title-line .firm-name {
    font-size: 20px;
  }

  .offer-card .star-icon {
    width: 13px;
    height: 13px;
  }

  .offer-card .deal {
    width: 96px;
    min-width: 96px;
    font-size: 13px;
  }

  .content-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tab-button {
    min-width: 118px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-status {
    width: 100%;
    justify-content: center;
  }

  .floating-action {
    right: 14px;
    bottom: 14px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.back-link:hover {
  color: var(--text);
}

.screen-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(var(--ds-tertiary-rgb), 0.18), rgba(var(--ds-tertiary-rgb), 0.1) 42%, rgba(var(--ds-primary-rgb), 0.08)),
    rgba(var(--ds-neutral-rgb), 0.84);
}

.screen-hero--challenges {
  background:
    linear-gradient(115deg, rgba(var(--ds-primary-rgb), 0.18), rgba(var(--ds-tertiary-rgb), 0.1) 42%, rgba(var(--ds-tertiary-rgb), 0.12)),
    rgba(var(--ds-neutral-rgb), 0.84);
}

.screen-hero--offers {
  border-color: rgba(var(--ds-tertiary-rgb), 0.46);
  background:
    radial-gradient(circle at 16% 22%, rgba(var(--ds-tertiary-rgb), 0.22), transparent 34%),
    linear-gradient(115deg, rgba(var(--ds-tertiary-rgb), 0.18), rgba(var(--ds-tertiary-rgb), 0.12) 45%, rgba(var(--ds-tertiary-rgb), 0.1)),
    rgba(var(--ds-neutral-rgb), 0.84);
}

.screen-hero--rules {
  border-color: rgba(var(--ds-primary-rgb), 0.28);
  background:
    linear-gradient(115deg, rgba(var(--ds-primary-rgb), 0.12), rgba(var(--ds-primary-rgb), 0.1) 42%, rgba(var(--ds-tertiary-rgb), 0.1)),
    rgba(var(--ds-neutral-rgb), 0.84);
}

.screen-hero--reviews,
.screen-hero--payouts {
  background:
    linear-gradient(115deg, rgba(var(--ds-tertiary-rgb), 0.16), rgba(var(--ds-tertiary-rgb), 0.1) 42%, rgba(var(--ds-primary-rgb), 0.08)),
    rgba(var(--ds-neutral-rgb), 0.84);
}

.screen-kicker {
  display: block;
  margin-top: 16px;
}

.eyebrow.screen-kicker {
  display: block;
  margin-top: 10px;
}

.screen-hero h1 {
  margin: 12px 0 10px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.screen-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.screen-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(128px, 1fr));
  gap: 10px;
}

.mini-stat {
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-primary-rgb), 0.055);
}

.mini-stat span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-stat strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 20px;
}

.inner-screen-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
}

.inner-screen-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(var(--ds-primary-rgb), 0.06);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.inner-screen-nav a.is-active {
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  border-color: var(--ds-primary);
}

.challenge-workspace,
.rules-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 84px;
}

.workspace-rail {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 12px;
}

.rail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.9);
}

.rail-card.is-accent {
  border-color: rgba(var(--ds-tertiary-rgb), 0.34);
  background:
    linear-gradient(135deg, rgba(var(--ds-tertiary-rgb), 0.14), rgba(var(--ds-tertiary-rgb), 0.14)),
    rgba(var(--ds-neutral-rgb), 0.9);
}

.rail-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.rail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail-chip-list button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.07);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.rail-chip-list button.is-active,
.toggle-button.is-active {
  border-color: rgba(var(--ds-primary-rgb), 0.7);
  background: rgba(var(--ds-primary-rgb), 0.14);
}

.workspace-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.workspace-main > .toolbar.shell {
  width: 100%;
  margin: 0;
}

.workspace-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.9);
}

.workspace-panel-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.workspace-metrics,
.review-scoreboard,
.payout-board {
  display: grid;
  gap: 10px;
}

.workspace-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-scoreboard,
.payout-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-metric {
  min-width: 128px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-primary-rgb), 0.055);
}

.workspace-metric.is-hot {
  border-color: rgba(var(--ds-tertiary-rgb), 0.38);
  background: rgba(var(--ds-tertiary-rgb), 0.1);
}

.workspace-metric.is-cool {
  border-color: rgba(var(--ds-primary-rgb), 0.28);
  background: rgba(var(--ds-primary-rgb), 0.08);
}

.workspace-metric span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.challenge-control-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.88);
}

.challenge-control-bar .filter-button {
  height: 36px;
}

.customize-button {
  border-color: rgba(var(--ds-tertiary-rgb), 0.44);
}

.challenge-search {
  height: 36px;
  width: min(260px, 100%);
}

.challenge-control-bar .data-status {
  margin-left: auto;
}

.offers-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 84px;
}

.offer-feature {
  position: sticky;
  top: 132px;
}

.featured-offer-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(var(--ds-tertiary-rgb), 0.18), rgba(var(--ds-tertiary-rgb), 0.12)),
    rgba(var(--ds-neutral-rgb), 0.92);
}

.featured-offer-card h2 {
  margin: 0;
  font-size: 28px;
}

.featured-offer-card .deal {
  width: 100%;
}

.featured-offer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.dual-actions,
.offer-actions,
.profile-offer__actions,
.offer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.offer-actions {
  justify-content: flex-end;
}

.review-scoreboard,
.payout-board {
  padding-bottom: 16px;
}

.payout-card {
  min-height: 132px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.88);
}

.payout-card > strong {
  font-size: 24px;
}

.payout-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.data-section {
  min-width: 0;
  padding-bottom: 84px;
}

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--table-line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.data-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  table-layout: fixed;
}

.challenge-table {
  min-width: 2100px;
}

.reviews-table,
.payouts-table,
.sources-table {
  min-width: 1280px;
}

.data-table th,
.data-table td {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--table-line-soft);
  border-bottom: 1px solid var(--table-line-soft);
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th:first-child,
.data-table td:first-child {
  border-left: 0;
}

.data-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(var(--ds-primary-rgb), 0.045);
}

.data-table td {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.data-table tbody tr:hover {
  background: rgba(var(--ds-tertiary-rgb), 0.055);
}

.sticky-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 280px;
  background: rgba(var(--ds-neutral-rgb), 0.98);
}

.data-table th.sticky-cell,
.data-table thead th:first-child {
  z-index: 3;
}

.data-table thead th:first-child,
.data-table tbody td:first-child {
  position: sticky;
  left: 0;
  background: rgba(var(--ds-neutral-rgb), 0.98);
}

.challenge-table th:nth-child(1),
.challenge-table td:nth-child(1) {
  width: 360px;
}

.challenge-table th:nth-child(2),
.challenge-table td:nth-child(2),
.challenge-table th:nth-child(3),
.challenge-table td:nth-child(3),
.challenge-table th:nth-child(4),
.challenge-table td:nth-child(4),
.challenge-table th:nth-child(5),
.challenge-table td:nth-child(5),
.challenge-table th:nth-child(6),
.challenge-table td:nth-child(6),
.challenge-table th:nth-child(7),
.challenge-table td:nth-child(7),
.challenge-table th:nth-child(8),
.challenge-table td:nth-child(8),
.challenge-table th:nth-child(9),
.challenge-table td:nth-child(9),
.challenge-table th:nth-child(10),
.challenge-table td:nth-child(10),
.challenge-table th:nth-child(11),
.challenge-table td:nth-child(11),
.challenge-table th:nth-child(12),
.challenge-table td:nth-child(12),
.challenge-table th:nth-child(13),
.challenge-table td:nth-child(13) {
  width: 136px;
}

.challenge-table th:nth-child(14),
.challenge-table td:nth-child(14) {
  width: 150px;
}

.challenge-table th:last-child,
.challenge-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: rgba(var(--ds-neutral-rgb), 0.98);
}

.challenge-table thead th:last-child {
  z-index: 3;
}

.challenge-table.is-core .optional-column {
  display: none;
}

.challenge-table.is-core {
  min-width: 860px;
}

.challenge-table.is-core th:nth-child(4),
.challenge-table.is-core td:nth-child(4),
.challenge-table.is-core th:nth-child(5),
.challenge-table.is-core td:nth-child(5),
.challenge-table.is-core th:nth-child(6),
.challenge-table.is-core td:nth-child(6),
.challenge-table.is-core th:nth-child(7),
.challenge-table.is-core td:nth-child(7),
.challenge-table.is-core th:nth-child(8),
.challenge-table.is-core td:nth-child(8),
.challenge-table.is-core th:nth-child(9),
.challenge-table.is-core td:nth-child(9),
.challenge-table.is-core th:nth-child(10),
.challenge-table.is-core td:nth-child(10),
.challenge-table.is-core th:nth-child(11),
.challenge-table.is-core td:nth-child(11),
.challenge-table.is-core th:nth-child(12),
.challenge-table.is-core td:nth-child(12) {
  display: none;
}

.challenge-table.is-core th:nth-child(13),
.challenge-table.is-core td:nth-child(13) {
  width: 140px;
}

.challenge-table.is-core th:nth-child(14),
.challenge-table.is-core td:nth-child(14) {
  width: 150px;
}

.challenge-firm-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}

.bookmark-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--ds-primary-rgb), 0.05);
  color: var(--muted);
}

.bookmark-button.is-active {
  border-color: rgba(var(--ds-tertiary-rgb), 0.7);
  color: var(--ds-tertiary);
  background: rgba(var(--ds-tertiary-rgb), 0.16);
}

.muted-inline {
  color: var(--faint);
}

.challenge-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 58px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--ds-on-primary);
  font-size: 12px;
  font-weight: 800;
}

.reviews-table th:first-child,
.reviews-table td:first-child,
.payouts-table th:first-child,
.payouts-table td:first-child,
.sources-table th:first-child,
.sources-table td:first-child {
  width: 320px;
}

.mini-firm {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.mini-firm > span {
  min-width: 0;
  display: block;
}

.mini-firm strong,
.mini-firm small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-firm small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.muted-line {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(var(--ds-tertiary-rgb), 0.44);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pending-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ds-secondary-rgb), 0.28);
  background: rgba(var(--ds-secondary-rgb), 0.11);
  color: var(--ds-primary);
  font-size: 11px;
  font-weight: 800;
}

.offer-directory {
  display: grid;
  gap: 12px;
  padding-bottom: 84px;
}

.offer-list-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  min-height: 136px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.offer-list-card__body {
  min-width: 0;
}

.offer-list-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.offer-list-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.offer-list-card__deal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.offer-detail-hero {
  padding: 28px 0 16px;
}

.offer-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

.offer-detail-copy,
.offer-code-panel,
.offer-detail-card,
.offer-firm-card,
.offer-promo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.offer-detail-copy {
  padding: 28px;
  background:
    linear-gradient(115deg, rgba(var(--ds-tertiary-rgb), 0.18), rgba(var(--ds-tertiary-rgb), 0.1) 46%, rgba(var(--ds-primary-rgb), 0.08)),
    rgba(var(--ds-neutral-rgb), 0.9);
}

.offer-detail-copy h1 {
  max-width: 760px;
  margin: 10px 0 10px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.offer-detail-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.offer-code-panel {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 14px;
  padding: 20px;
}

.offer-code-panel .logo-tile {
  justify-self: center;
}

.offer-code-panel .deal {
  width: 100%;
}

.copy-code {
  cursor: pointer;
}

.offer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
}

.offer-detail-card,
.offer-firm-card {
  padding: 20px;
}

.offer-detail-actions {
  margin-top: 18px;
}

.offer-firm-card {
  display: grid;
  gap: 16px;
}

.fact-grid.is-offer-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-detail-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px;
}

.offer-detail-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.offer-detail-tabs a.is-active {
  border-color: rgba(var(--ds-primary-rgb), 0.72);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}

.offer-promos-section {
  padding-bottom: 84px;
}

.offer-promos-grid {
  display: grid;
  gap: 12px;
}

.offer-promo-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  min-height: 126px;
  padding: 16px;
}

.offer-promo-card.is-active {
  border-color: rgba(var(--ds-tertiary-rgb), 0.55);
  box-shadow: inset 0 0 0 1px rgba(var(--ds-tertiary-rgb), 0.16);
}

.offer-promo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.offer-promo-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.offer-promo-card__actions .deal {
  width: 104px;
  min-width: 104px;
}

.rules-directory,
.platform-directory {
  display: grid;
  gap: 12px;
  padding-bottom: 84px;
}

.rule-firm-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.rule-firm-card__identity {
  display: grid;
  gap: 14px;
}

.source-meter {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--ds-primary-rgb), 0.24);
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.1);
  color: var(--ds-primary);
  font-size: 12px;
  font-weight: 800;
}

.source-meter span {
  color: var(--muted);
}

.rule-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rule-chip-grid.is-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rule-chip {
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-primary-rgb), 0.045);
}

.rule-chip span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rule-chip strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}

.platform-directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.platform-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.platform-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-gradient);
  font-family: var(--mono);
  font-weight: 800;
}

.platform-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.platform-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.platform-card__firms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-card__firms a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.firm-profile {
  padding: 28px 0 18px;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-actions__right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 260px;
  gap: 14px;
  align-items: stretch;
}

.profile-main,
.profile-score,
.profile-offer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.profile-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.logo-tile.is-profile {
  width: 82px;
  height: 82px;
  font-size: 24px;
  flex: 0 0 auto;
}

.eyebrow {
  display: inline-flex;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-main h1 {
  margin: 6px 0 8px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-main p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-meta-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.profile-score,
.profile-offer {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.profile-offer {
  justify-items: stretch;
  text-align: left;
}

.profile-offer .deal {
  width: 100%;
  min-width: 0;
}

.profile-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 4px;
}

.profile-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-tabs a.is-active {
  border-color: rgba(var(--ds-primary-rgb), 0.72);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}

.detail-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 84px;
}

.detail-sidebar {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.detail-sidebar a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-sidebar a.is-active {
  background: linear-gradient(135deg, rgba(var(--ds-tertiary-rgb), 0.22), rgba(var(--ds-tertiary-rgb), 0.18));
  color: var(--text);
}

.detail-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ds-neutral-rgb), 0.86);
}

.detail-panel .data-section {
  padding-bottom: 0;
}

.detail-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-panel__head h2 {
  margin: 0;
  font-size: 20px;
}

.detail-panel__head span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.detail-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.fact-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fact-grid > div,
.category-grid > div {
  min-height: 76px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(var(--ds-primary-rgb), 0.05);
}

.fact-grid span,
.category-grid span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-grid strong,
.category-grid strong {
  display: block;
  margin-top: 7px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-cloud,
.gap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.gap-list span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(var(--ds-primary-rgb), 0.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.gap-list span {
  border: 1px solid rgba(var(--ds-secondary-rgb), 0.28);
  color: var(--ds-primary);
  background: rgba(var(--ds-secondary-rgb), 0.1);
}

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

.mini-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(var(--ds-primary-rgb), 0.05);
}

.mini-list strong,
.mini-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.offer-summary {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.offer-summary .deal {
  width: 130px;
  min-width: 130px;
}

.offer-summary h3 {
  margin: 0 0 8px;
}

.offer-summary p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.review-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-profile p {
  margin: 8px 0 0;
  color: var(--muted);
}

.inline-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1180px) {
  .screen-hero,
  .profile-hero-grid,
  .detail-shell,
  .offer-detail-hero__grid,
  .offer-detail-grid,
  .challenge-workspace,
  .rules-workspace,
  .offers-layout {
    grid-template-columns: 1fr;
  }

  .screen-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .workspace-rail,
  .offer-feature {
    position: static;
  }

  .detail-sidebar a {
    white-space: nowrap;
  }

  .profile-score,
  .profile-offer {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .screen-hero__stats,
  .workspace-panel-head,
  .workspace-metrics,
  .review-scoreboard,
  .payout-board,
  .offer-promo-card,
  .rule-firm-card,
  .platform-directory,
  .offer-list-card,
  .rule-chip-grid,
  .rule-chip-grid.is-detail,
  .fact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .screen-hero h1 {
    font-size: 34px;
  }

  .screen-hero {
    padding: 20px;
  }

  .profile-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-actions__right {
    justify-content: flex-start;
  }

  .offer-list-card__deal {
    justify-content: flex-start;
  }

  .offer-actions,
  .offer-promo-card__actions {
    justify-content: flex-start;
  }

  .offer-detail-copy {
    padding: 20px;
  }

  .offer-detail-copy h1 {
    font-size: 34px;
  }

  .fact-grid.is-offer-facts {
    grid-template-columns: 1fr;
  }

  .mini-list a {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-summary {
    grid-template-columns: 1fr;
  }
}
