/* Security + analytics sit as equal-height paired cards with scrollable tables */
.cloud-card--paired {
  display: flex;
  flex-direction: column;
  min-height: 24rem;
}

.cloud-card--paired > .cloud-card__body,
.cloud-card--paired > [data-load-hide].cloud-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.75rem;
}

.cloud-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.cloud-card__head .cloud-actions {
  margin: 0;
  flex-shrink: 0;
}

.cloud-table-wrap.cloud-keys-table-wrap,
.cloud-table-wrap.cloud-usage-table-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 12rem;
  max-height: min(28rem, 55vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 0.75rem;
  background: transparent;
}

table.cloud-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.8rem;
  background: transparent;
}

table.cloud-table th,
table.cloud-table td {
  padding: 0.45rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  vertical-align: middle;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.cloud-table tbody tr:last-child td {
  border-bottom: 0;
}

table.cloud-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

table.cloud-table td {
  color: rgba(255, 255, 255, 0.88);
}

table.cloud-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

table.cloud-table .cloud-table__empty td {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  text-align: center;
  padding: 1.25rem 0.75rem;
  overflow: visible;
  text-overflow: clip;
}

/* Keys: Name (+ limits) | Key | ⋯ — content-sized, not stretched */
.cloud-keys-table .cloud-keys-table__col-name,
.cloud-keys-table td.cloud-keys-table__name {
  width: 42%;
}

.cloud-keys-table .cloud-keys-table__col-key,
.cloud-keys-table td.cloud-keys-table__key {
  width: auto;
}

.cloud-keys-table .cloud-keys-table__col-actions,
.cloud-keys-table td.cloud-keys-table__actions-cell {
  width: 3.25rem;
  padding-left: 0.25rem;
  padding-right: 0.45rem;
  text-align: right;
  overflow: visible;
}

.cloud-keys-table__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.cloud-keys-table__limits {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.48);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-keys-table__masked,
.cloud-keys-table__secret-code {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.cloud-keys-table__secret-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.cloud-keys-table__secret-code {
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.92);
  white-space: normal;
  word-break: break-all;
  line-height: 1.35;
  text-overflow: clip;
}

.cloud-keys-table__secret-row .cloud-keys-table__copy {
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.cloud-keys-table__actions-cell {
  text-align: right;
}

.cloud-keys-table__actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.cloud-keys-table__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.cloud-keys-table__copy:hover,
.cloud-keys-table__copy:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.cloud-keys-table__menu {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.cloud-keys-table__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.cloud-keys-table__menu-toggle:hover,
.cloud-keys-table__menu.is-open .cloud-keys-table__menu-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.cloud-keys-table__menu-dots {
  width: 0.85rem;
  height: 0.2rem;
  background:
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) left center / 0.28rem 100% no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) center / 0.28rem 100% no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) right center / 0.28rem 100% no-repeat;
}

.cloud-keys-table__menu-panel {
  position: absolute;
  top: calc(100% + 0.15rem);
  right: 0;
  z-index: 8;
  min-width: 7.5rem;
  padding: 0.2rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 0.45rem;
  background: rgba(18, 20, 26, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cloud-keys-table__menu-panel[data-menu-portaled='1'] {
  position: fixed;
  right: auto;
}

.cloud-keys-table__menu-panel[hidden] {
  display: none !important;
}

.cloud-keys-table__menu-panel button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.cloud-keys-table__menu-panel button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cloud-keys-table__menu-panel button.is-danger {
  color: #f87171;
}

.cloud-keys-table tbody tr:has(.cloud-keys-table__menu.is-open) {
  position: relative;
  z-index: 6;
}

.cloud-keys-table tr.cloud-key-item--new td {
  background: rgba(99, 179, 237, 0.05);
}

.cloud-usage-table th:nth-child(1),
.cloud-usage-table td:nth-child(1) {
  width: 40%;
}

.cloud-usage-table th:not(:first-child),
.cloud-usage-table td:not(:first-child) {
  width: 15%;
  white-space: nowrap;
}

.cloud-usage-table__model {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.cloud-usage-table__num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

#acct-mgmt-keys-card .cloud-card__head {
  margin-bottom: 0.75rem;
}

#acct-mgmt-keys-card .cloud-keys-table-wrap {
  flex: none;
  margin-top: 0.75rem;
  min-height: 0;
  max-height: min(28rem, 55vh);
  overflow: auto;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 0.75rem;
  background: transparent;
}

#acct-mgmt-keys-card .cloud-keys-table .cloud-keys-table__col-name,
#acct-mgmt-keys-card .cloud-keys-table td.cloud-keys-table__name {
  width: 36%;
}

/* Quick test examples on developers dashboard */

.cloud-quick-test {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.cloud-snippet-block {
  position: relative;
  margin: 0;
  width: 100%;
}

.cloud-snippet-block pre {
  margin: 0;
  width: 100%;
  padding: 0.85rem 1rem;
  padding-right: 4.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111114;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.cloud-snippet-block .docs-copy,
.cloud-snippet-block .cloud-snippet-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6875rem;
  cursor: pointer;
}

.cloud-snippet-block .docs-copy:hover,
.cloud-snippet-block .cloud-snippet-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cloud-quick-test__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cloud-quick-test__tab {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  cursor: pointer;
}

.cloud-quick-test__tab.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cloud-quick-test__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
}

.cloud-quick-test__hint a {
  color: #8ec8f0;
  text-decoration: none;
}

.cloud-quick-test__hint a:hover {
  text-decoration: underline;
}

.site-footer-links {
  grid-template-columns: repeat(3, minmax(0, 8rem));
  gap: 2.5rem;
}

.offers-page {
  overflow: clip;
}

.offers-page--cinema {
  padding-top: calc(var(--cloud-header-offset) + 0.35rem);
}

.offers-page--cinema .offers-stage {
  gap: clamp(2rem, 5vw, 3.25rem);
}

.offers-page--cinema .offers-showcase {
  margin-inline: calc(var(--layout-gutter) * -0.35);
}

.offers-page--cinema .offers-showcase__viewport {
  min-height: clamp(32rem, calc(100vh - var(--cloud-header-offset) - 2.5rem), 46rem);
  border-radius: clamp(1.25rem, 2.5vw, 1.75rem);
}

.offers-page--cinema .offers-showcase__viewport::after {
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 18px 6px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  /* Offers: mobile-first promo stack (full-bleed hero, not desktop cinema) */
  .offers-page.offers-page--cinema {
    max-width: none;
    padding:
      calc(var(--cloud-header-offset) + 0.1rem)
      0
      calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .offers-page--cinema .offers-stage {
    gap: 1.75rem;
  }

  .offers-page--cinema .offers-showcase {
    margin-inline: 0;
    padding-inline: var(--layout-gutter);
  }

  .offers-page--cinema .offers-showcase__viewport {
    min-height: 0;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 1rem;
  }

  .offers-page--cinema .offers-showcase__viewport::after {
    border-radius: inherit;
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.55),
      inset 0 0 12px 4px rgba(0, 0, 0, 0.28);
  }

  .offers-account-credits,
  .offers-catalog,
  .offers-blog {
    padding-inline: var(--layout-gutter);
  }

  .offers-blog__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .offers-blog__track {
    margin-inline: calc(var(--layout-gutter) * -1);
    padding-inline: var(--layout-gutter);
    scroll-padding-inline: var(--layout-gutter);
  }

  .offers-blog__card {
    flex-basis: min(16.5rem, 82vw);
  }

  .offers-blog__card:hover {
    transform: none;
  }

  .offers-account-credits__summary {
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    padding: 0.95rem 1rem;
  }

  .offers-account-credits__summary-balance {
    margin-left: 0;
    width: 100%;
    font-size: 1.2rem;
  }

  .offers-account-credits__body {
    padding: 0.85rem 1rem 1.1rem;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cloud-snippet-block pre {
    padding-right: 1rem;
    padding-bottom: 3rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .cloud-snippet-block .docs-copy,
  .cloud-snippet-block .cloud-snippet-copy {
    top: auto;
    bottom: 0.65rem;
    right: 0.65rem;
  }

  .cloud-quick-test__tabs {
    flex-wrap: wrap;
  }

  .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 420px) {
  .site-footer-links {
    grid-template-columns: 1fr;
  }
}

.offers-page__header {
  max-width: 36rem;
}

.offers-stage {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.offers-account-credits {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.offers-account-credits__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.offers-account-credits__summary::-webkit-details-marker {
  display: none;
}

.offers-account-credits__summary::after {
  content: '▾';
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.42);
  transition: transform 0.15s ease;
}

.offers-account-credits[open] .offers-account-credits__summary::after {
  transform: rotate(180deg);
}

.offers-account-credits__summary-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.offers-account-credits__summary-label {
  font-family: var(--font-meta);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.offers-account-credits__summary-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.offers-account-credits__summary-balance {
  margin-left: auto;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(143, 232, 178, 0.92);
}

.offers-account-credits__body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
}

.offers-account-credits__subtitle {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.offers-account-credits__grants {
  margin-top: 0.5rem;
}

.offers-account-credits__actions {
  margin-top: 0.85rem;
}

.offers-meta__you {
  color: rgba(143, 232, 178, 0.88);
}

.offers-your-credit {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(143, 232, 178, 0.22);
  background: rgba(72, 187, 120, 0.08);
}

.offers-your-credit__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-meta);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143, 232, 178, 0.82);
}

.offers-your-credit__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.offers-your-credit__list li + li {
  margin-top: 0.35rem;
}

.offers-your-credit__note {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.62);
}

.cloud-row__meta--offer {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(143, 211, 255, 0.78);
}

.offers-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.offers-meta {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.offers-meta span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-meta);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.offers-meta code {
  font-size: 0.75rem;
}

/* -- Featured showcase carousel -- */
.offers-showcase {
  position: relative;
  margin-inline: calc(var(--layout-gutter) * -0.35);
}

.offers-showcase__viewport {
  position: relative;
  min-height: clamp(18rem, 48vw, 28rem);
  border-radius: clamp(1.25rem, 2.5vw, 1.75rem);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}


/* Developer catalog — identical to scalattice.com pricing tiles */

.pricing-model-catalog .dev-model-catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 0;
}

.pricing-model-catalog .dev-model-catalog__heading {
  min-width: 0;
}

.pricing-model-catalog .dev-model-catalog__heading h2 {
  margin-bottom: 0.35rem;
}

.pricing-model-catalog .dev-model-catalog__heading .cloud-card__hint {
  margin-bottom: 0;
}

.pricing-model-catalog .dev-model-catalog__tools {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.pricing-model-catalog .dev-model-catalog__sort {
  position: relative;
  flex: 0 0 auto;
  display: flex;
}

.pricing-model-catalog .dev-model-catalog__sort-btn {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  aspect-ratio: 1;
  width: auto;
  height: auto;
  min-width: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out-expo, ease), background 200ms var(--ease-out-expo, ease), color 200ms var(--ease-out-expo, ease);
}

.pricing-model-catalog .dev-model-catalog__sort-btn:hover,
.pricing-model-catalog .dev-model-catalog__sort.is-open .dev-model-catalog__sort-btn {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.pricing-model-catalog .dev-model-catalog__sort-icon {
  display: block;
  flex: none;
}

.pricing-model-catalog .dev-model-catalog__sort-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  min-width: 15.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0b1214;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.pricing-model-catalog .dev-model-catalog__sort-menu[hidden] {
  display: none;
}

.pricing-model-catalog .dev-model-catalog__sort-menu li {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body, inherit);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 160ms var(--ease-out-expo, ease), color 160ms var(--ease-out-expo, ease);
}

.pricing-model-catalog .dev-model-catalog__sort-menu li:hover,
.pricing-model-catalog .dev-model-catalog__sort-menu li:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.pricing-model-catalog .dev-model-catalog__sort-menu li.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pricing-model-catalog .dev-model-catalog__search {
  flex: 0 1 16rem;
  width: min(100%, 16rem);
  margin: 0;
  display: flex;
}

.pricing-model-catalog .dev-model-catalog__search .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing-model-catalog .dev-model-catalog__search input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-body, inherit);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 200ms var(--ease-out-expo, ease), background 200ms var(--ease-out-expo, ease);
}

.pricing-model-catalog .dev-model-catalog__search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.pricing-model-catalog .dev-model-catalog__search input:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.pricing-model-catalog .dev-model-catalog__search input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.5);
}

.pricing-model-catalog .dev-model-catalog__search input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 0.85rem;
  width: 0.85rem;
  background: rgba(255, 255, 255, 0.45);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M2.1 2.1l7.8 7.8M9.9 2.1L2.1 9.9'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}

.pricing-model-catalog .pricing-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: clamp(0.4rem, 0.9vw, 0.55rem);
  align-items: stretch;
  margin-top: 1rem;
}

.pricing-model-catalog .pricing-catalog__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.55);
}

.pricing-model-catalog .pricing-model-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  height: 100%;
}

.pricing-model-catalog .pricing-model-tile__actions {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0b1214;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out-expo, ease);
}

.pricing-model-catalog .pricing-model-tile:hover,
.pricing-model-catalog .pricing-model-tile:focus-within {
  z-index: 6;
}

.pricing-model-catalog .pricing-model-tile:hover .pricing-model-tile__actions,
.pricing-model-catalog .pricing-model-tile:focus-within .pricing-model-tile__actions {
  opacity: 1;
  pointer-events: auto;
}

.pricing-model-catalog .pricing-model-tile__copy {
  appearance: none;
  flex: 1 1 50%;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease-out-expo, ease), color 200ms var(--ease-out-expo, ease);
}

.pricing-model-catalog .pricing-model-tile__copy:last-child {
  border-right: 0;
}

.pricing-model-catalog .pricing-model-tile__copy:hover,
.pricing-model-catalog .pricing-model-tile__copy:focus-visible {
  background: #161d20;
  color: #fff;
  outline: none;
}

.pricing-model-catalog .pricing-model-tile__copy.is-copied {
  color: #7dffb3;
}

.pricing-model-catalog .pricing-model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 0.8rem 0.8rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition:
    border-color 280ms var(--ease-out-expo, ease),
    background 280ms var(--ease-out-expo, ease),
    transform 280ms var(--ease-out-expo, ease);
}

.pricing-model-catalog .pricing-model-tile:hover .pricing-model-card,
.pricing-model-catalog .pricing-model-tile:focus-within .pricing-model-card {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.pricing-model-catalog .pricing-model-card__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 1.15rem;
  margin-bottom: 0.55rem;
}

.pricing-model-catalog .pricing-model-card__logo {
  height: 0.95rem;
  width: auto;
  max-width: 4.75rem;
  object-fit: contain;
  opacity: 0.95;
}

/* Dual light/dark stack: must beat the old single-img `display: block` rule. */
.pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img {
  display: none;
}

.pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img--dark {
  display: block;
}

.pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img--light {
  display: none;
}

[data-theme='light'] .pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img--light,
.pricing-model-catalog.family-logo-surface--light .family-logo > img.pricing-model-card__logo.family-logo__img--light,
.family-logo-surface--light .pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img--light {
  display: block;
}

[data-theme='light'] .pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img--dark,
.pricing-model-catalog.family-logo-surface--light .family-logo > img.pricing-model-card__logo.family-logo__img--dark,
.family-logo-surface--light .pricing-model-catalog .family-logo > img.pricing-model-card__logo.family-logo__img--dark {
  display: none;
}

.pricing-model-catalog .pricing-model-card__logo--mono {
  filter: brightness(0) invert(1);
}

.pricing-model-catalog .pricing-model-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.pricing-model-catalog .pricing-model-card__name {
  margin: 0;
  min-width: 0;
  min-height: calc(1.15em * 2);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.pricing-model-catalog .pricing-model-card__id {
  margin: 0.2rem 0 0;
  min-width: 0;
  font-size: 0.625rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-model-catalog .pricing-model-card__id code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: inherit;
  background: none;
  color: inherit;
}

.pricing-model-catalog .pricing-model-card__meta {
  margin: 0.4rem 0 0;
  min-width: 0;
  min-height: 1.35em;
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.pricing-model-catalog .pricing-model-card__usage {
  margin: 0.25rem 0 0;
  min-width: 0;
  font-size: 0.6875rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-model-catalog .pricing-model-card__rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-model-catalog .pricing-model-card__rates:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-model-catalog .pricing-model-card__rate-label {
  display: block;
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.15rem;
}

.pricing-model-catalog .pricing-model-card__rate-value {
  display: block;
  font-size: clamp(0.82rem, 1.7vw, 1.05rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.pricing-model-catalog .pricing-model-card__rate-unit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 720px) {
  .pricing-model-catalog .dev-model-catalog__header {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-model-catalog .dev-model-catalog__tools {
    justify-content: stretch;
  }

  .pricing-model-catalog .dev-model-catalog__search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .pricing-model-catalog .dev-model-catalog__sort-menu {
    right: auto;
    left: 0;
  }

  .pricing-model-catalog .pricing-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-model-catalog .pricing-model-tile__actions {
    display: none;
  }
}

@media (max-width: 420px) {
  .pricing-model-catalog .pricing-catalog__grid {
    grid-template-columns: 1fr;
  }
}

.dev-desired-model {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

#slt-desired-model-card {
  position: relative;
  overflow: visible;
}

#slt-desired-model-card.is-suggesting {
  z-index: 80;
}

.dev-desired-model__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.dev-desired-model__field {
  position: relative;
  z-index: 2;
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
}

.dev-desired-model__field .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dev-desired-model__suggestions {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.25rem;
  background: #121317;
}

.dev-desired-model__suggestion {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.dev-desired-model__suggestion:hover,
.dev-desired-model__suggestion.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.dev-desired-model__suggestion-id {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
}

.pricing-model-tile.is-desired-hit {
  outline: 1px solid rgba(142, 200, 240, 0.7);
  outline-offset: 2px;
}
