@scope (.hp-claude-comparator) {
  [data-hp-base-fee] dd.num {
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
  }

  .offer-foot .offer-why {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.35;
  }

  .offer-details-body {
    gap: 1rem 1.4rem;
    padding-block: .85rem .35rem;
  }

  .offer-details-body.has-history {
    grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.35fr);
    align-items: start;
  }

  .offer-detail-copy {
    display: grid;
    gap: .9rem;
    min-width: 0;
  }

  .offer-detail-summary,
  .offer-detail-terms {
    margin: 0;
  }

  .offer-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
  }

  .offer-detail-summary dt,
  .offer-detail-terms dt {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .offer-detail-summary dd,
  .offer-detail-terms dd {
    margin: .12rem 0 0;
    color: var(--head);
  }

  .offer-detail-summary dd {
    font-weight: 700;
  }

  .offer-detail-block {
    display: grid;
    gap: .55rem;
    min-width: 0;
  }

  .offer-detail-block + .offer-detail-block {
    padding-top: .9rem;
    border-top: 1px solid var(--line);
  }

  .offer-detail-block h4,
  .offer-history h4 {
    font-size: 1rem;
  }

  .offer-detail-block .formula {
    max-width: 68ch;
    line-height: 1.45;
  }

  .offer-detail-terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1rem;
  }

  .offer-detail-costs {
    padding-top: .1rem;
  }

  .offer-product-description {
    margin-top: .15rem;
    border-top: 1px solid var(--line);
  }

  .offer-product-description summary {
    color: var(--muted);
    font-size: .8125rem;
  }

  .offer-details .offer-product-description:not([open]) > summary::before {
    content: "+";
  }

  .offer-details .offer-product-description[open] > summary::before {
    content: "–";
  }

  .offer-product-description p {
    max-width: 68ch;
    padding: .1rem 0 .4rem 1.65rem;
    color: var(--muted);
    line-height: 1.55;
  }

  .offer-history {
    min-width: 0;
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
  }

  .offer-history-head {
    display: grid;
    gap: .2rem;
    margin-bottom: .6rem;
  }

  .offer-history-head p:first-of-type {
    color: var(--head);
    font-weight: 700;
  }

  .offer-history-head p:last-child {
    max-width: 70ch;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.45;
  }

  [data-hp-history] {
    display: grid;
    gap: .4rem;
    min-width: 0;
  }

  [data-hp-history-readout] {
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .55rem;
    padding: .5rem .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--head);
    font-variant-numeric: tabular-nums;
  }

  [data-hp-history-readout] span {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  [data-hp-history-readout] strong {
    font-size: .9375rem;
  }

  [data-hp-history-chart] {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    touch-action: pan-y;
  }

  [data-hp-history-chart]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  [data-hp-history-chart] [data-hp-history-point] {
    cursor: crosshair;
  }

  .offer-detail-meta {
    grid-column: 1 / -1;
    padding-top: .15rem;
  }

  @media (max-width: 900px) {
    .offer-details-body.has-history {
      grid-template-columns: 1fr;
    }

    .offer-history {
      padding: 1rem 0 0;
      border-top: 1px solid var(--line);
      border-left: 0;
    }
  }

  @media (max-width: 520px) {
    .offer-detail-summary,
    .offer-detail-terms {
      grid-template-columns: 1fr;
    }

  }
}
