/* Inner pages use the homepage materials; layouts and artwork remain page-owned. */
body :is(.model-market, .compute-product-body, .ag-page, .ag-body) {
  position: relative;
  isolation: isolate;
  background: var(--surface-field);
}
body :is(.model-market, .compute-product-body, .ag-body)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--surface-grain);
  opacity: 0.45;
}
body :is(.compute-product, .model-market, .ag-page) > .page-content-sheet > .ecosystem {
  background: linear-gradient(110deg, #fffffff0, #f5fcf9e6 65%, #fffffff0);
  border-block: 1px solid #ffffffb3;
  box-shadow: inset 0 1px 0 #ffffffcc;
}

/* Reading and input surfaces stay still when hovered, to keep text stable. */
body
  :is(
    .ag-page .ag-setup,
    .ag-setup .ag-connection,
    .ag-page .ag-generic,
    .ag-page .ag-article,
    .ag-empty,
    .docs-article,
    .playground-shell,
    .modal,
    .compute-showcase .compute-service-panel,
    .compute-price-table-scroll,
    .table-scroll
  ) {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--card-edge);
  border-radius: var(--card-radius);
  background: var(--card-corner), var(--card-glass);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: var(--surface-frost);
  backdrop-filter: var(--surface-frost);
}
.docs-article {
  padding: 32px;
}
.price-explanation {
  padding: 32px;
}
.ag-page .ag-setup {
  --surface-frost: none;
}
body .ag-setup::before {
  content: none;
}
body .ag-tool-grid .ag-tool-card:nth-child(3n + 2),
body .compute-sku:nth-child(2n) {
  --card-corner: radial-gradient(ellipse at 100% 0%, #c4dafa70, #dbd6f333 32%, transparent 65%);
  background: var(--card-corner), var(--card-glass);
}
body .ag-tool-grid .ag-tool-card {
  transform: none;
}
body .model-market .model-card {
  transform: none;
}
body .ag-tool-grid .ag-tool-card:hover {
  background: var(--card-corner), var(--card-glass);
}

/* Quiet translucent controls, using the same green focus and selected state. */
body
  :is(
    .ag-page .ag-search,
    .catalog-toolbar .search-input,
    .provider-filter-trigger,
    .compute-billing-switch,
    .chat-form,
    .inline-code,
    .info-note,
    .playground-notice
  ) {
  background: #ffffff80;
  border: 1px solid #ffffffed;
  box-shadow: inset 0 1px 0 #fff;
  border-radius: 8px;
}
body :is(.ag-search, .search-input, .chat-form):focus-within {
  outline: 2px solid #087c5070;
  outline-offset: 3px;
  box-shadow: none;
}
body :is(.ag-code, .code-block) {
  border-color: #dce8e2;
  background: #ffffffa6;
}
body
  :is(.ag-code-top, .code-top, .code-foot, .playground-toolbar, .price-table th, .compute-price-table thead) {
  background: #edf6f099;
  border-color: #dce8e2;
  color: var(--text);
}
body :is(.price-table tr:hover td, .compute-price-table tbody tr:hover) {
  background: #e3f4eb80;
}
body :is(.ag-sidebar nav a[aria-current], .docs-sidebar nav a.active) {
  color: var(--accent);
  background: linear-gradient(120deg, #ffffffc9, #d7f0e780);
  box-shadow: inset 0 0 0 1px #ffffffed;
}
.compute-service-action {
  color: var(--brand-mint);
}
@media (max-width: 760px) {
  .docs-article,
  .price-explanation {
    padding: 24px 18px;
  }
}
