@media (prefers-reduced-motion: reduce) {
  .badge.rendering::before {
    animation: none;
  }
}

/* Layered so the third-party API reference widget keeps its own styles. */
@layer site {
  :root {
    --surface-2: #fafaf7;
    --accent-soft: #f0f9d6;
    --danger-soft: #fef3f2;
    --info: #1d4ed8;
    --info-soft: #eef2ff;
    --fill: #ecede6;
    --control-hover: #f1f2ec;
    --line-hover: #a9aaa3;
    --on-ink: #ffffff;
    --accent-line: #d9eda6;
    --ok-soft: #eaf6c9;
    --ok-ink: #3e5a07;
    --danger-line: #e7b4af;
    --danger-line-soft: #f5c6c1;
    --danger-ink: #7a1a12;
    --info-line: #d6defb;
    --shadow: 0 1px 2px rgba(26, 29, 23, 0.04), 0 1px 1px rgba(26, 29, 23, 0.03);
    --ease: 120ms ease;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    min-height: calc(100 * var(--svh));
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font:
      15px/1.6 'IBM Plex Sans',
      'IBM Plex Sans Fallback',
      system-ui,
      -apple-system,
      'Segoe UI',
      sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
  }
  a {
    color: var(--ink);
    text-decoration-color: var(--line-field);
    text-underline-offset: 3px;
    transition:
      color var(--ease),
      text-decoration-color var(--ease);
  }
  a:hover,
  a:focus-visible {
    text-decoration-color: currentColor;
  }
  :focus-visible {
    outline: 2px solid var(--focus-color, var(--ink));
    outline-offset: 2px;
  }
  h1,
  h2,
  h3 {
    letter-spacing: -0.01em;
  }
  code,
  pre {
    font-family: var(--mono);
    font-size: 13px;
  }
  code {
    background: var(--fill);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
  }
  pre {
    background: var(--dark);
    color: var(--dark-code);
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    line-height: 1.55;
    margin: 12px 0;
  }
  pre code {
    background: none;
    padding: 0;
    color: inherit;
  }

  .skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(calc(-100% - 16px));
  }
  .skip-link:focus {
    transform: none;
    outline: 2px solid var(--accent);
    outline-offset: -6px;
  }
  main:focus {
    outline: none;
  }
  main,
  .shell {
    flex: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px var(--gutter) 72px;
  }
  .layout > main {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .layout > * {
    min-width: 0;
  }
  .side {
    position: sticky;
    top: 24px;
    max-height: calc(100 * var(--dvh) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    /* Room inside the scroll box for the focus ring and the current link's shadow, and below the last link so it scrolls clear of the edge. */
    margin: -4px;
    padding: 4px 4px 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .side :is(h4, .side-title) {
    margin: 20px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .side :is(h4, .side-title):first-child {
    margin-top: 0;
  }
  .side .workspace {
    margin: 0 12px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .side .workspace small {
    display: block;
    font-weight: 400;
    color: var(--muted);
  }
  .side-workspace {
    display: none;
  }
  .side a {
    position: relative;
    display: block;
    padding: 7px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink-2);
    font-size: 14px;
    text-wrap: balance;
    transition:
      background var(--ease),
      color var(--ease);
  }
  .side a:hover {
    background: var(--bg-sunken);
    color: var(--ink);
  }
  .side a[aria-current='page'] {
    background: var(--surface);
    color: var(--ink);
    box-shadow:
      var(--shadow),
      inset 0 0 0 1px var(--line);
  }
  .side a[aria-current='page']::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
  }

  .page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
  }
  .page-head > div {
    min-width: 0;
  }
  .back-link {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
  }
  .back-link:hover {
    color: var(--ink);
  }
  h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 6px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  p.lead {
    color: var(--muted);
    margin: 0;
    max-width: 640px;
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 4px;
    font-weight: 600;
  }
  h2 > .button {
    margin-left: 8px;
    vertical-align: middle;
  }
  .card > h2 + p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
  }
  .card > h2 + form {
    margin-top: 16px;
  }
  details.card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
  }
  details.card > summary::-webkit-details-marker {
    display: none;
  }
  details.card > summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }
  details.card[open] > summary::after {
    transform: rotate(-135deg);
  }
  details.card[open] > summary {
    margin-bottom: 12px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px 12px;
  }
  .form-grid label {
    margin-top: 0;
  }
  .form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .form-foot > :last-child {
    margin-left: auto;
  }
  .inline-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .inline-edit select[name] {
    width: 130px;
    flex: none;
  }
  .stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
  }
  .card > :first-child {
    margin-top: 0;
  }
  .card > :last-child {
    margin-bottom: 0;
  }
  .card.danger-zone {
    border-color: var(--danger-line-soft);
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
  }
  .stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow);
  }
  .stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .stat b {
    display: block;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 6px;
  }
  .stat small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
  }
  .meter {
    display: block;
    width: 100%;
    height: 6px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--fill);
    appearance: none;
    -webkit-appearance: none;
  }
  .meter::-webkit-progress-bar {
    background: var(--fill);
    border-radius: 999px;
  }
  .meter::-webkit-progress-value {
    background: var(--accent);
    border-radius: 999px;
  }
  .meter::-moz-progress-bar {
    background: var(--accent);
    border-radius: 999px;
  }

  label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin: 16px 0 6px;
  }
  form > label:first-of-type,
  .row label {
    margin-top: 0;
  }
  input[type='text'],
  input[type='email'],
  input[type='password'],
  input[type='url'],
  input[type='number'],
  input[type='date'],
  input:not([type]),
  select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-field);
    border-radius: var(--radius);
    transition:
      border-color var(--ease),
      box-shadow var(--ease);
  }
  input[aria-invalid='true'],
  select[aria-invalid='true'] {
    border-color: var(--danger);
  }
  .password-field {
    position: relative;
  }
  .password-field input {
    padding-right: 48px;
  }
  .password-field .password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
  }
  .password-field .password-toggle:hover,
  .password-field .password-toggle[aria-pressed='true'] {
    color: var(--ink);
    background: var(--bg-sunken);
  }
  .password-field .password-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  input[type='file'] {
    width: 100%;
    height: 44px;
    font: inherit;
    font-size: 14px;
    color: var(--muted);
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line-field);
    border-radius: var(--radius);
    cursor: pointer;
  }
  input[type='file']::file-selector-button {
    height: 32px;
    margin-right: 10px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: var(--control-hover);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--ease);
  }
  input[type='file']:hover::file-selector-button {
    background: var(--bg-hover);
  }
  textarea {
    width: 100%;
    min-height: 96px;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    resize: vertical;
    background: var(--surface);
    border: 1px solid var(--line-field);
    border-radius: var(--radius);
    transition:
      border-color var(--ease),
      box-shadow var(--ease);
  }
  input:hover,
  select:hover,
  textarea:hover {
    border-color: var(--muted);
  }
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(182, 229, 43, 0.45);
  }
  input[readonly] {
    background: var(--surface-2);
    color: var(--muted);
  }
  /* iOS zooms into any field under 16px when it takes focus. */
  @media (max-width: 900px), (pointer: coarse) {
    input[type='text'],
    input[type='email'],
    input[type='password'],
    input[type='url'],
    input[type='number'],
    input[type='date'],
    input[type='search'],
    input[type='tel'],
    input[type='time'],
    input[type='datetime-local'],
    input:not([type]),
    select,
    textarea {
      font-size: 16px;
    }
  }
  .hint {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 0;
  }
  .row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
  }
  .row.top {
    align-items: flex-start;
  }
  .row > * {
    flex: 1 1 200px;
    min-width: 0;
  }
  .row > button,
  .row > .button,
  .row > .check {
    flex: 0 0 auto;
  }
  @media (max-width: 560px) {
    .row > :has(> input[type='file']) {
      flex-basis: 100%;
    }
  }
  .check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    font-weight: 500;
  }
  .check input {
    width: 16px;
    height: 16px;
    accent-color: var(--ink);
  }
  .actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  form.inline {
    display: inline;
    margin: 0;
  }
  form.inline.resend {
    display: flex;
    flex-basis: 100%;
    justify-content: inherit;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    white-space: nowrap;
  }
  fieldset.events {
    border: 0;
    margin: 16px 0 0;
    padding: 0;
    min-width: 0;
    column-gap: 16px;
    row-gap: 0;
  }
  fieldset.events legend {
    padding: 0;
    font-weight: 500;
    font-size: 14px;
  }
  code.url span {
    white-space: nowrap;
  }

  button,
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    color: var(--on-ink);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    transition:
      background var(--ease),
      border-color var(--ease),
      color var(--ease),
      box-shadow var(--ease),
      transform 60ms ease;
  }
  button:hover,
  .button:hover {
    background: var(--ink-hover);
    border-color: var(--ink-hover);
    color: var(--on-ink);
  }
  button:active,
  .button:active {
    transform: translateY(1px);
  }
  button.secondary,
  .button.secondary {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line-strong);
  }
  button.secondary:hover,
  .button.secondary:hover {
    background: var(--control-hover);
    border-color: var(--line-hover);
    color: var(--ink);
  }
  button.accent,
  .button.accent {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
  }
  button.accent:hover,
  .button.accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-ink);
  }
  button.danger,
  .button.danger {
    color: var(--danger);
    background: var(--surface);
    border-color: var(--danger-line);
  }
  button.danger:hover,
  .button.danger:hover {
    color: var(--on-ink);
    background: var(--danger);
    border-color: var(--danger);
  }
  button.small,
  .button.small {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
  button:disabled {
    opacity: 0.55;
    pointer-events: none;
  }
  .notice[hidden] {
    display: none;
  }
  .notice {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    background: var(--surface);
    font-size: 14px;
  }
  .notice.ok {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent-line);
  }
  .notice.error {
    border-left-color: var(--danger);
    background: var(--danger-soft);
    border-color: var(--danger-line-soft);
    color: var(--danger-ink);
  }
  .notice.info {
    border-left-color: var(--info);
    background: var(--info-soft);
    border-color: var(--info-line);
  }
  .notice form {
    margin: 0;
  }

  .secret {
    display: block;
    font-family: var(--mono);
    font-size: 14px;
    background: var(--dark);
    color: var(--accent);
    padding: 11px 104px 11px 14px;
    border-radius: var(--radius);
    word-break: break-all;
  }
  .secret.recovery-codes {
    margin: 0;
    padding-left: 44px;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    text-decoration: none;
  }
  .project-card:hover {
    border-color: var(--ink);
  }
  .project-card img,
  .project-card .thumb-empty {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 8px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--fill);
  }
  .project-card .thumb-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
  }
  img.thumb {
    width: 96px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--fill);
  }

  /* One column: a command carrying a real key is about 70 characters wide, which half the content column would cut off. */
  .connect-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  /* Radio buttons make the tabs: arrow keys move between them, and no script is needed. */
  .tabs {
    margin-top: 12px;
  }
  .tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
  }
  .tab-list > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .tab-list > label {
    margin: 0;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
  }
  .tab-list > input:checked + label {
    background: var(--fill);
    color: var(--ink);
    font-weight: 600;
  }
  .tab-list > input:focus-visible + label {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
  .tab-panel {
    display: none;
    min-width: 0;
  }
  /* The first child is the tab list, so panel n is child n + 1. */
  .tabs:has(> .tab-list > input:nth-of-type(1):checked) > .tab-panel:nth-child(2),
  .tabs:has(> .tab-list > input:nth-of-type(2):checked) > .tab-panel:nth-child(3),
  .tabs:has(> .tab-list > input:nth-of-type(3):checked) > .tab-panel:nth-child(4),
  .tabs:has(> .tab-list > input:nth-of-type(4):checked) > .tab-panel:nth-child(5),
  .tabs:has(> .tab-list > input:nth-of-type(5):checked) > .tab-panel:nth-child(6),
  .tabs:has(> .tab-list > input:nth-of-type(6):checked) > .tab-panel:nth-child(7),
  .tabs:has(> .tab-list > input:nth-of-type(7):checked) > .tab-panel:nth-child(8),
  .tabs:has(> .tab-list > input:nth-of-type(8):checked) > .tab-panel:nth-child(9) {
    display: block;
  }

  .table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  :is(th, td) {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
  }
  th {
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
  }
  tbody tr {
    transition: background var(--ease);
  }
  tbody tr:hover {
    background: var(--surface-2);
  }
  tbody tr:last-child td {
    border-bottom: 0;
  }
  .card .table-wrap.flush {
    margin: 0 -24px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .card form + .table-wrap.flush {
    margin-top: 20px;
  }
  .card .table-wrap.flush:last-child {
    margin-bottom: -24px;
    border-bottom: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .card .table-wrap.flush th:first-child,
  .card .table-wrap.flush td:first-child {
    padding-left: 24px;
  }
  .card .table-wrap.flush th:last-child,
  .card .table-wrap.flush td:last-child {
    padding-right: 24px;
  }
  td.num,
  th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  td.actions-cell,
  th.actions-cell {
    text-align: right;
    width: 1%;
  }
  th.status-cell {
    width: 34%;
  }
  .cell-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    min-width: 280px;
  }
  /* An actions column is as narrow as its content allows (width: 1%), which would stack wrapping buttons one to a line. */
  td .downloads {
    flex-wrap: nowrap;
  }
  td.empty,
  p.empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted);
  }
  td .sub {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
  }
  td .id {
    display: block;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
  }
  td.nowrap {
    white-space: nowrap;
  }
  td.event {
    min-width: 220px;
  }
  td.row-actions {
    width: 1%;
  }
  td.row-actions form + form {
    margin-top: 6px;
  }
  td.row-actions button {
    width: 100%;
  }
  td.actions-cell > a + details {
    margin-top: 8px;
  }
  td.workspace-cell {
    max-width: 280px;
    overflow-wrap: anywhere;
  }
  /* The address breaks only at the <wbr> before its @ and the domain's dots, keeping the last two labels (example.com) together and never
     breaking at a hyphen; a piece wider than the cell is cut, and the title holds it whole. */
  .email > span {
    white-space: nowrap;
  }
  @media (max-width: 860px) {
    .email > span {
      display: inline-block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: bottom;
    }
  }
  /* A row's Manage panel opens as a full-width row under it, so its forms never squeeze the table's columns. */
  tr:has(+ .manage-row) details > summary {
    white-space: nowrap;
    cursor: pointer;
  }
  .manage-row {
    display: none;
  }
  tr:has(details[open]) + .manage-row {
    display: table-row;
  }
  tr:has(details[open]):has(+ .manage-row) > td {
    border-bottom-color: transparent;
  }
  tr:has(details[open]):has(+ .manage-row),
  tr:has(details[open]) + .manage-row {
    background: var(--surface-2);
  }
  .manage-row > td {
    padding-top: 0;
  }
  .manage-row > td > form + form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .manage-row > td > form > button {
    margin-top: 12px;
  }
  .manage-row ul {
    margin: 4px 0 16px;
    padding-left: 20px;
  }
  td .error-text {
    display: block;
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    max-width: 320px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--fill);
    color: var(--ink-2);
    white-space: nowrap;
  }
  .badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
  }
  .badge.plain::before {
    display: none;
  }
  .badge.succeeded,
  .badge.ok {
    background: var(--ok-soft);
    color: var(--ok-ink);
  }
  .badge.failed {
    background: var(--danger-soft);
    color: var(--danger);
  }
  .badge.rendering {
    background: var(--info-soft);
    color: var(--info);
  }
  .badge.rendering::before {
    animation: pulse 1.2s ease-in-out infinite;
  }
  .badge.cancelled,
  .badge.queued,
  .badge.stopping {
    background: var(--fill);
    color: var(--muted);
  }
  @keyframes pulse {
    50% {
      opacity: 0.2;
    }
  }
  .downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }
  .pager {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
  }
  .variations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .variations .button {
    height: auto;
    min-height: 32px;
    padding-block: 6px;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .confirm {
    width: min(420px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 24px 64px rgba(26, 29, 23, 0.18);
  }
  .confirm::backdrop {
    background: rgba(22, 25, 15, 0.45);
  }
  .confirm p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
  }
  .confirm p .address {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .confirm form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .confirm form button {
    max-width: 100%;
    white-space: normal;
  }

  .tour {
    position: absolute;
    z-index: 60;
    width: min(340px, calc(100% - 16px));
    padding: 16px 18px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(26, 29, 23, 0.2);
  }
  .tour:focus {
    outline: none;
  }
  .tour small {
    color: var(--muted);
  }
  .tour p {
    margin: 4px 0 14px;
    line-height: 1.5;
  }
  .tour div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .tour-target {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
  }
  /* Inside, because the scrolling sidebar and table clip anything drawn outside them. */
  .side a.tour-target,
  tr.tour-target,
  td.tour-target {
    outline-offset: -3px;
  }

  .plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  .plan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
  }
  .plan.current {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
  }
  .plan > .badge {
    align-self: flex-start;
  }
  .plan h3 {
    margin: 0;
    font-size: 16px;
  }
  .plan .price {
    font-size: 26px;
    font-weight: 600;
  }
  .plan .price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
  }
  .plan ul {
    margin: 0 0 8px;
    padding-left: 18px;
    color: var(--ink-2);
    font-size: 14px;
  }
  .plan form,
  .plan > .badge,
  .plan > .button,
  .plan > .hint {
    margin-top: auto;
  }
  .plan > .button {
    justify-content: center;
  }
  .plan form button {
    width: 100%;
  }
  .pricing .plans {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
  }
  @media (max-width: 1100px) {
    .pricing .plans {
      grid-template-columns: repeat(auto-fit, minmax(max(220px, calc(50% - 10px)), 1fr));
    }
  }
  .pricing .plan {
    gap: 0;
    padding: 20px;
    border-radius: var(--radius-xl);
  }
  .pricing .plan.featured {
    border-color: var(--ink);
    box-shadow:
      0 0 0 1px var(--ink),
      var(--shadow-menu);
  }
  .pricing .plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 22px;
  }
  .pricing .plan h2 {
    margin: 0;
    font-size: 16px;
  }
  .pricing .plan .price {
    margin: 10px 0 0;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .pricing .plan .price small {
    letter-spacing: 0;
  }
  .pricing .plan .features {
    display: grid;
    gap: 6px;
    margin: 14px 0 18px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: 14px;
    line-height: 19px;
  }
  .pricing .features li {
    position: relative;
    padding-left: 26px;
    overflow-wrap: anywhere;
  }
  .pricing .features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 1px solid var(--accent-line);
    border-radius: 50%;
    background: var(--accent-soft);
  }
  .pricing .features li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--ok-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .pricing .features strong {
    color: var(--ink);
    font-weight: 600;
  }
  .pricing .plan > .button {
    width: 100%;
  }
  .pricing .plan-note {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: auto 0 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
  }
  /* On the site's address the page opens like the site's own pages (site-page.css), but tighter, so every plan and its button
     fits on the first screen of a laptop. */
  main.pricing.on-site {
    padding-block: 24px var(--section-pad);
  }
  .pricing.on-site .page-head {
    margin-bottom: 22px;
  }
  .pricing.on-site .eyebrow {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .pricing.on-site .eyebrow a {
    color: inherit;
    text-decoration: none;
  }
  .pricing.on-site .eyebrow a:hover {
    color: var(--ink);
  }
  .pricing.on-site h1 {
    margin: 8px 0 0;
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
  .pricing.on-site p.lead {
    max-width: 820px;
    margin-top: 12px;
    color: var(--ink-body);
    font-size: 17px;
  }
  @media (max-width: 560px) {
    .pricing.on-site .page-head {
      margin-bottom: 40px;
    }
  }

  main.auth {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 72px;
  }
  .auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 8px 30px rgba(26, 29, 23, 0.06);
  }
  .auth-card h1 {
    font-size: 24px;
  }
  .auth-card .lead {
    margin-bottom: 20px;
  }
  .auth-card form button[type='submit'] {
    width: 100%;
  }
  .auth-card .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-card .actions :is(button, .button),
  :is(button, .button).wraps {
    height: auto;
    min-height: 44px;
    padding-block: 10px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .auth-card form + form .actions {
    margin-top: 10px;
  }
  button.google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  /* Google's sign-in branding requires its standard multicolour G beside the label. */
  button.google::before {
    content: '';
    flex: none;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
  .auth-card .sent {
    margin: 0;
  }
  .auth-card .sent-to {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .auth-card .workspace-new {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .auth-card.legal {
    max-width: 820px;
  }
  .auth-foot {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
  }
  .auth-foot a {
    white-space: nowrap;
  }
  @media (max-width: 359px) {
    .auth-foot .sep {
      display: none;
    }
    .auth-foot .sep + a {
      display: block;
      width: fit-content;
      margin: 8px auto 0;
    }
  }

  .doc {
    max-width: 820px;
  }
  .doc h1 {
    font-size: 34px;
    margin-bottom: 16px;
  }
  .doc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
    margin-bottom: 16px;
  }
  .doc .doc-head h1 {
    margin: 0;
  }
  .doc-markdown {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
  }
  .doc-markdown:hover,
  .doc-markdown:focus-visible {
    color: var(--ink);
  }
  .doc h2 {
    font-size: 22px;
    margin: 44px 0 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 16px;
  }
  .doc h3 {
    font-size: 17px;
    margin: 28px 0 8px;
    scroll-margin-top: 16px;
  }
  .doc p,
  .doc li {
    color: var(--ink-2);
  }
  .doc li + li {
    margin-top: 4px;
  }
  .doc img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  /* A table the docs render sits in a box that takes the frame and the scrolling, so the table itself fills it. A shadow marks an edge with
     more table past it; the covers scroll with the table, so they hide the shadow at its ends. Each cover is as wide as the shadow, so a
     table that overflows by a few pixels still shows most of it. */
  .doc .doc-table {
    overflow-x: auto;
    margin: 16px 0;
    background:
      linear-gradient(var(--surface), var(--surface)) left / 14px 100% no-repeat local,
      linear-gradient(var(--surface), var(--surface)) right / 14px 100% no-repeat local,
      linear-gradient(90deg, rgba(26, 29, 23, 0.16), transparent) left / 14px 100% no-repeat scroll,
      linear-gradient(270deg, rgba(26, 29, 23, 0.16), transparent) right / 14px 100% no-repeat scroll,
      var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .doc .doc-table table {
    display: table;
    overflow: visible;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }
  .doc .doc-table tbody tr:last-child > * {
    border-bottom: 0;
  }
  .doc code {
    overflow-wrap: anywhere;
  }
  .doc pre code {
    overflow-wrap: normal;
  }
  .doc td code,
  .doc th code {
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .doc th code {
    background: none;
    padding: 0;
    font-size: inherit;
  }
  .doc-foot {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
  }

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

  main.player {
    max-width: 1040px;
  }
  main.player video {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(80 * var(--svh));
    background: black;
    border-radius: var(--radius-xl);
  }

  @media (max-width: 860px) {
    .layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
    }
    .side {
      position: static;
      max-height: none;
      margin: -12px 0 0;
      padding: 4px 0 8px;
    }
    .side.folded:not(.open) {
      display: none;
    }
    .side :is(h4, .side-title):first-child {
      margin-top: 8px;
    }
    .side .workspace {
      display: none;
    }
    .side-workspace {
      display: block;
      margin: 0 0 -12px;
      font-size: 13px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    main,
    .shell {
      padding: 24px var(--gutter) 48px;
    }
    .page-head {
      flex-direction: column;
    }
    /* A table row becomes a card, so a console table fits a phone without scrolling sideways. */
    .table-wrap :is(table, tbody, tr, td) {
      display: block;
      width: 100%;
    }
    .table-wrap thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    .table-wrap tr {
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }
    .table-wrap tbody tr:last-child {
      border-bottom: 0;
    }
    .table-wrap td {
      padding: 4px 16px;
      border-bottom: 0;
      text-align: left;
    }
    .table-wrap td[data-label]::before {
      content: attr(data-label);
      display: block;
      color: var(--muted);
      font-size: 12px;
    }
    /* A cell with nothing in it stays in the row, keeping each later cell under its column for screen readers; console.js gives it no
       name and empties it. */
    .table-wrap td:empty {
      padding: 0;
    }
    .table-wrap td:is(.nowrap, .actions-cell, .row-actions, .workspace-cell) {
      max-width: none;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .table-wrap tr:has(details[open]):has(+ .manage-row) {
      padding-bottom: 0;
      border-bottom: 0;
    }
    .table-wrap tr.manage-row {
      display: none;
    }
    .table-wrap tr:has(details[open]) + .manage-row {
      display: block;
    }
    .table-wrap .manage-row td[data-label]::before {
      content: none;
    }
    .card .table-wrap.flush td:is(:first-child, :last-child) {
      padding-left: 16px;
      padding-right: 16px;
    }
    main.auth {
      padding-top: 32px;
    }
    .auth-card {
      padding: 24px;
    }
    .stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .stat {
      padding: 14px 16px;
    }
    .stat:last-child:nth-child(odd) {
      grid-column: 1 / -1;
    }
    .stat b {
      font-size: 20px;
    }
    td .id {
      display: none;
    }
    td .id.always {
      display: block;
    }
    .downloads,
    .cell-buttons {
      justify-content: flex-start;
    }
    .cell-buttons {
      min-width: 0;
    }
    th,
    td {
      padding: 10px 12px;
    }
    .doc h1 {
      font-size: 28px;
    }
    .doc td:not(:first-child) code {
      white-space: normal;
    }
    .doc :is(th, td) {
      padding-left: 8px;
      padding-right: 8px;
    }
    .doc td:nth-child(2):not(:last-child) {
      min-width: 180px;
    }
  }
  /* A docs table of up to three columns becomes a list: the first cell heads each row, and the cells below it carry their column's name.
     A table of one row has no rows to head, so each of its cells carries its column's name. */
  @media (max-width: 560px) {
    .doc table:not(:has(tr > :nth-child(4))) {
      display: block;
      overflow: visible;
      background: var(--surface);
    }
    .doc table:not(:has(tr > :nth-child(4))) :is(tbody, tr, td) {
      display: block;
    }
    .doc table:not(:has(tr > :nth-child(4))) thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    .doc table:not(:has(tr > :nth-child(4))) tr {
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
    }
    .doc table:not(:has(tr > :nth-child(4))) tr:last-child {
      border-bottom: 0;
    }
    .doc table:not(:has(tr > :nth-child(4))) td {
      min-width: 0;
      padding: 0;
      border: 0;
    }
    .doc table:not(:has(tr > :nth-child(4))) td:first-child {
      font-weight: 600;
      color: var(--ink);
    }
    .doc table:not(:has(tr > :nth-child(4))) td + td {
      margin-top: 6px;
    }
    .doc table:not(:has(tr > :nth-child(4))) td code {
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .doc table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) td + td[data-label]::before,
    .doc table:not(:has(tr > :nth-child(4), tbody tr + tr)) td[data-label]::before {
      content: attr(data-label);
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 400;
    }
    .doc table:not(:has(tr > :nth-child(4), tbody tr + tr)) td:first-child {
      font-weight: inherit;
      color: inherit;
    }
  }
  /* The docs and API reference pages: the header and product bar stay at the top and the side menu stays below them, scrolling apart from the page.
     Only above the header's phone menu, which the bar could not scroll, and in a window tall enough to spare the bar. */
  .shell.docs-shell {
    padding-bottom: 24px;
  }
  @media (min-width: 921px) and (min-height: 600px) {
    /* The bar's height, which docs.js measures, so a heading jumped to or a link focused at the top of the window lands below the bar. */
    :root:has(.docs-top) {
      --docs-top: 132px;
      scroll-padding-top: var(--docs-top);
    }
    .docs-top {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--bg);
    }
    .docs-shell .side {
      top: calc(var(--docs-top) + 24px);
      max-height: calc(100 * var(--dvh) - var(--docs-top) - 48px);
      overscroll-behavior: contain;
    }
    .docs-shell ~ footer {
      position: relative;
    }
  }
  .docs-bar {
    border-bottom: 1px solid var(--line);
  }
  .docs-bar > div {
    display: flex;
    gap: 28px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .docs-bar :is(a, span) {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink-2);
  }
  .docs-bar span {
    color: var(--muted);
  }
  .docs-bar a:hover {
    color: var(--ink);
  }
  .docs-bar a[aria-current='true'] {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  /* A docs page's "On this page" takes a third column only where the text keeps a reading width beside it, and stays in view as the
     page scrolls; docs.js marks the section being read. */
  .docs-shell .toc {
    display: none;
  }
  @media (min-width: 1200px) {
    .docs-shell .layout:has(> .toc) {
      grid-template-columns: 220px minmax(0, 1fr) 200px;
    }
    .docs-shell .toc {
      display: block;
      position: sticky;
      top: calc(var(--docs-top, 0px) + 24px);
      max-height: calc(100 * var(--dvh) - var(--docs-top, 0px) - 48px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      margin: -4px;
      padding: 4px 4px 24px;
    }
  }
  .docs-shell .toc-title {
    margin: 0 0 8px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .docs-shell .toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .docs-shell .toc a {
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--line);
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    text-decoration: none;
  }
  .docs-shell .toc [data-depth='3'] a {
    padding-left: 24px;
  }
  .docs-shell .toc a:hover {
    color: var(--ink);
  }
  .docs-shell .toc a[aria-current='location'] {
    color: var(--ink);
    border-left-color: var(--accent);
  }

  /* The API reference pages: the side menu's groups by tag, method badges, the list of operations and the field lists. */
  .ref .side summary {
    padding: 7px 12px;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  .ref .side summary:hover {
    background: var(--bg-sunken);
  }
  .ref .side details > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
  }
  .ref .side details a {
    padding-left: 20px;
    font-size: 13px;
  }
  .ref-method {
    display: inline-block;
    min-width: 54px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: var(--fill);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
  }
  .ref-method.get {
    background: var(--info-soft);
    color: var(--info);
  }
  .ref-method.post {
    background: var(--ok-soft);
    color: var(--ok-ink);
  }
  .ref-method:is(.put, .patch),
  .ref-flag {
    background: #fdf0d5;
    color: #8a4b08;
  }
  .ref-method.delete {
    background: var(--danger-soft);
    color: var(--danger);
  }
  .ref .side .ref-method {
    min-width: 0;
    margin-right: 6px;
    padding: 0;
    background: none;
    font-size: 10px;
  }
  .doc .ref-crumbs {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
  }
  .ref-endpoint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 16px;
  }
  .ref-endpoint code,
  .ref-ops code,
  .doc .ref-name {
    padding: 0;
    background: none;
    color: var(--ink);
  }
  .ref-endpoint code {
    font-size: 15px;
  }
  .ref-endpoint .button {
    margin-left: auto;
  }
  /* Try it shows only once its script can open the dialog; a button's own display would otherwise outrank the hidden attribute. */
  .ref-endpoint .button[hidden] {
    display: none;
  }
  .ref-try {
    width: min(980px, calc(100% - 32px));
    max-height: calc(100 * var(--dvh) - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 24px 64px rgba(26, 29, 23, 0.18);
  }
  .ref-try::backdrop {
    background: rgba(22, 25, 15, 0.45);
  }
  .ref-try header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .ref-try header h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 17px;
  }
  .ref-try header .ref-endpoint {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .ref-try header .ref-endpoint code {
    overflow-wrap: anywhere;
  }
  .ref-try-panes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ref-try-panes > div {
    min-width: 0;
    padding: 20px;
  }
  .ref-try-request > label:first-child {
    margin-top: 0;
  }
  .ref-try .tabs {
    margin-top: 16px;
  }
  .ref-try .tab-panel > label:first-child {
    margin-top: 8px;
  }
  .ref-try textarea {
    font-family: var(--mono);
    font-size: 13px;
  }
  .ref-try .ref-flag {
    margin-left: 6px;
  }
  .ref-try button[type='submit'] {
    margin-top: 4px;
  }
  .ref-try-response {
    border-left: 1px solid var(--line);
    background: var(--bg);
  }
  .ref-try-response h3 {
    margin: 0 0 8px;
    font-size: 14px;
  }
  .ref-try-response pre {
    max-height: 420px;
    margin: 12px 0 0;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  @media (max-width: 860px) {
    .ref-try-panes {
      grid-template-columns: minmax(0, 1fr);
    }
    .ref-try-response {
      border-left: 0;
      border-top: 1px solid var(--line);
    }
  }
  .ref-ops,
  .ref-fields {
    margin: 12px 0;
    padding: 0;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .ref-ops {
    overflow: hidden;
  }
  .doc :is(.ref-ops, .ref-fields, .ref-statuses) > li {
    margin: 0;
  }
  .doc :is(.ref-ops, .ref-fields) > li + li {
    border-top: 1px solid var(--line);
  }
  .ref-ops a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 12px;
    padding: 10px 14px;
    color: var(--ink-2);
    text-decoration: none;
  }
  .ref-ops a:hover {
    background: var(--surface-2);
  }
  .ref-fields > li {
    padding: 10px 14px;
  }
  .ref-field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
  }
  .doc .ref-name {
    font-size: 14px;
    font-weight: 600;
  }
  .ref-type,
  .doc .ref-note {
    color: var(--muted);
    font-size: 13px;
  }
  .ref-flag {
    padding: 0 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
  }
  .doc .ref-note {
    margin: 6px 0 0;
    line-height: 1.9;
  }
  .ref-text > p {
    margin: 6px 0 0;
    font-size: 14px;
  }
  .ref-fields details {
    margin-top: 8px;
  }
  .ref-fields summary {
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
  }
  .ref-fields .ref-fields {
    margin: 8px 0 0;
    background: var(--surface-2);
  }
  .ref-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
  }
  .ref-models section {
    scroll-margin-top: 16px;
  }
  .ref-models h2 {
    margin-top: 28px;
    padding-top: 20px;
    font-size: 18px;
  }
  @media (max-width: 560px) {
    .ref-ops a {
      grid-template-columns: 54px minmax(0, 1fr);
    }
    .ref-ops a > span:last-child {
      grid-column: 2;
    }
    .ref-endpoint .button {
      margin-left: 0;
    }
  }
}
