


.lp-credits {
  /* design tokens (lifted from the app) */
  --lp3-border: #e5e5e5;
  --lp3-foreground: #0a0a0a;
  --lp3-muted-foreground: #737373;
  --lp3-muted: #f5f5f5;
  --lp3-card: #ffffff;
  --lp3-radius: 8px;
  --lp3-radius-sm: 6px;
  --lp3-success-strong: #065f46;
  --lp3-success-soft: #ecfdf5;
  --lp3-info-strong: #1e40af;
  --lp3-info-soft: #eff6ff;
  --color-dark: #171a25;
  --lp3-heading-3-size: 16px;
  --lp3-heading-3-line: 24px;
  box-sizing: border-box;
  background: var(--lp3-card);
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp3-foreground);
  text-align: left;
  -webkit-font-smoothing: antialiased;
    max-height: 500px;
    overflow: auto;
}

.lp-credits *,
.lp-credits *::before,
.lp-credits *::after { box-sizing: border-box; }

.lp-credits p,
.lp-credits h5,
.lp-credits h6 { margin: 0; }

.lp-credits a { color: var(--color-dark); text-decoration: underline; }
.lp-credits a:hover { text-decoration: none; }

/* ---- header ------------------------------------------------------------ */
.lp-credits__header {
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.lp-credits__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 16px;
  color: var(--lp3-foreground);
}

/* ---- intro / body copy -------------------------------------------------- */
.lp-credits .subscription-page__feature-modal { text-align: left; }

.lp-credits .subscription-page__feature-modal-text {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
}

.lp-credits .subscription-page__feature-modal-heading {
  margin: 24px 0 12px;
  font-weight: 600;
  font-size: var(--lp3-heading-3-size);
  line-height: var(--lp3-heading-3-line);
  color: var(--color-dark);
}
.lp-credits .subscription-page__feature-modal-heading:first-of-type { margin-top: 0; }

/* ---- vendor favicon chip ------------------------------------------------ */
.lp-credits .llm-vendor-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--lp3-card);
  border: 1px solid var(--lp3-border);
  border-radius: 5px;
  flex-shrink: 0;
  overflow: hidden;
}
.lp-credits .llm-vendor-mark__img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

/* ---- "what credits buy" 3-up grid --------------------------------------- */
.lp-credits .credits-uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
  margin-bottom: 20px;
}
.lp-credits .credits-uses__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-credits .credits-uses__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-credits .credits-uses__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--lp3-muted-foreground);
}
.lp-credits .credits-uses__icon svg { width: 100%; height: 100%; display: block; }
.lp-credits .credits-uses__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp3-foreground);
}
.lp-credits .credits-uses__text {
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp3-muted-foreground);
}

/* ---- "two ways to run the assistant for free" callout ------------------- */
.lp-credits .free-routes {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--lp3-border);
  border-radius: var(--lp3-radius);
  background: var(--lp3-muted);
}
.lp-credits .free-routes__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp3-foreground);
}
.lp-credits .free-routes__title .lp-credits__ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--lp3-success-strong);
}
.lp-credits .free-routes__title .lp-credits__ico svg { width: 100%; height: 100%; display: block; }
.lp-credits .free-routes__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 24px;
}
.lp-credits .free-routes__option {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-credits .free-routes__option-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp3-foreground);
}
.lp-credits .free-routes__option-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp3-muted-foreground);
}
.lp-credits .free-routes__footnote {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--lp3-border);
  font-size: 12px;
  color: var(--lp3-muted-foreground);
}
.lp-credits .free-routes__client {
  white-space: nowrap;
  color: var(--lp3-foreground);
}
.lp-credits .free-routes__client .llm-vendor-mark {
  width: 14px;
  height: 14px;
  vertical-align: 1px;
  margin-right: 5px;
}

/* ---- rate table --------------------------------------------------------- */
.lp-credits .credit-rate-card {
  margin: 8px 0 12px;
  overflow-x: auto;               /* keeps the table usable on mobile */
  -webkit-overflow-scrolling: touch;
}
.lp-credits .credit-rate-card__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--lp3-muted-foreground);
}
.lp-credits .credit-rate-card__table th {
  padding: 0 8px 6px 0;
  text-align: left;
  vertical-align: bottom;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp3-muted-foreground);
  border-bottom: 1px solid var(--lp3-border);
}
.lp-credits .credit-rate-card__table td {
  padding: 7px 8px 7px 0;
  vertical-align: top;
}
.lp-credits .credit-rate-card__table .credit-rate-card__figure { text-align: right; }
.lp-credits .credit-rate-card__table tr > *:last-child { padding-right: 0; }
.lp-credits .credit-rate-card__new-action td { border-top: 1px solid var(--lp3-border); }

.lp-credits .credit-rate-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp3-foreground);
}
.lp-credits .credit-rate-card__unit {
  margin-left: 6px;
  font-size: 12px;
  color: var(--lp3-muted-foreground);
}
.lp-credits .credit-rate-card__note {
  display: block;
  font-size: 12px;
  color: var(--lp3-muted-foreground);
}
.lp-credits .credit-rate-card__limit {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 200px;
  font-size: 12px;
  color: var(--lp3-muted-foreground);
}
.lp-credits .credit-rate-card__limit-value { font-variant-numeric: tabular-nums; }
.lp-credits .credit-rate-card__units {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.lp-credits .credit-rate-card__source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.lp-credits .credit-rate-card__source + .credit-rate-card__source { margin-top: 6px; }
.lp-credits .credit-rate-card__source-name { white-space: nowrap; }
.lp-credits .credit-rate-card__source-desc {
  font-size: 12px;
  color: var(--lp3-muted-foreground);
}
.lp-credits .credit-rate-card__freshness {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.lp-credits .credit-rate-card__freshness--cached {
  background: var(--lp3-success-soft);
  color: var(--lp3-success-strong);
}
.lp-credits .credit-rate-card__freshness--live {
  background: var(--lp3-info-soft);
  color: var(--lp3-info-strong);
}
.lp-credits .credit-rate-card__logo {
  width: 18px;
  height: 18px;
  border-radius: var(--lp3-radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}
.lp-credits .credit-rate-card__figure {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lp-credits .credit-rate-card__free { color: var(--lp3-success-strong); }
.lp-credits .credit-rate-card__muted { color: var(--lp3-muted-foreground); }

/* ---- collapsible AI pricing table --------------------------------------- */
.lp-credits .credit-rate-card__models {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--lp3-border);
}
.lp-credits .credit-rate-card__models summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #335dff;
    list-style: revert;
    text-decoration: underline;
}
.lp-credits .credit-rate-card__models .credit-rate-card__note { margin-top: 8px; }
.lp-credits .credit-rate-card__models .lp-credits__scroll {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- small screens ------------------------------------------------------ */
@media (max-width: 640px) {
  .lp-credits { padding: 14px; }
  .lp-credits .subscription-page__feature-modal-text { font-size: 13px; }
}
