@font-face{font-family:'Inter Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('/_a/inter-latin-wght-normal.3100e775e8.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('/_a/plus-jakarta-sans-latin-wght-normal.153fc85b70.woff2') format('woff2')}
/* The engine supplies the document shell. The app normally gets these resets from Tailwind. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
dl,
dd,
pre {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: inline-block;
  vertical-align: middle;
}
.nsfw-brand .gf-site-icon {
  width: 28px;
  height: 28px;
}
.policy-page {
  max-width: 72ch;
  min-height: 56vh;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 68px) 0;
}
.policy-page h1 {
  margin: 8px 0 22px;
  font: 680 clamp(32px, 4vw, 46px)/1.15 var(--display);
  letter-spacing: -0.035em;
}
.policy-page h2 {
  margin: 30px 0 8px;
  font: 650 21px/1.35 var(--display);
}
.policy-page p,
.policy-page li {
  color: var(--muted);
  line-height: 1.8;
}
.policy-page p + p {
  margin-top: 12px;
}
.policy-page a {
  color: var(--action);
  text-decoration: underline;
}
.policy-page time {
  color: var(--muted);
  font-size: 13px;
}

.nsfw-public {
  --page: oklch(0.98 0.006 253);
  --surface: oklch(1 0 0);
  --ink: oklch(0.265 0.052 258);
  --muted: oklch(0.46 0.034 258);
  --line: oklch(0.875 0.023 255);
  --action: oklch(0.49 0.183 264);
  --subtle: #eef2f7;
  --action-hover: #244bb9;
  --action-soft: #e6eeff;
  --danger: #963826;
  --danger-soft: #fff4f1;
  --positive: #197047;
  --positive-soft: #edf7f0;
  --code-bg: #20324e;
  --code-control: #425470;
  --code-muted: #c3ccdc;
  --syntax-blue: #b3cafa;
  --syntax-green: #b3d6a5;
  --syntax-orange: #efc08d;
  --syntax-violet: #c4b2ed;
  --syntax-cyan: #96d7e1;
  --display: 'Plus Jakarta Sans Variable', sans-serif;
  background: var(--page);
  color: var(--ink);
  --body: 'Inter Variable', Inter, system-ui, sans-serif;
  font-family: var(--body);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  color-scheme: light;
}
.nsfw-public * {
  box-sizing: border-box;
}
.nsfw-public ::selection {
  background: var(--action-soft);
  color: var(--ink);
}
.nsfw-public :focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 4px;
}
.nsfw-public input,
.nsfw-public textarea {
  caret-color: var(--action);
}
.nsfw-public button {
  font-family: inherit;
}
.nsfw-public a {
  text-underline-offset: 4px;
}
.nsfw-wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.nsfw-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.nsfw-brand,
.nsfw-wordmark {
  font:
    720 18px/1.4 'Plus Jakarta Sans Variable',
    sans-serif;
  letter-spacing: -0.035em;
}
.nsfw-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nsfw-brand img {
  flex-shrink: 0;
  object-fit: contain;
}
.nsfw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--action);
  color: white;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.nsfw-button:hover {
  background: var(--action-hover);
}
.nsfw-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 700px) {
  .nsfw-wrap {
    width: calc(100% - 32px);
  }
}

.nsfw-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nsfw-nav nav,
.nsfw-footer nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nsfw-nav nav a,
.nsfw-footer nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nsfw-nav nav a:hover,
.nsfw-footer nav a:hover {
  color: var(--ink);
}
.nsfw-nav-account {
  order: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  min-width: 72px;
  min-height: 38px;
}
.nsfw-nav nav {
  margin-left: auto;
}
.nsfw-nav-account .nsfw-button {
  background: var(--ink);
  color: white;
  padding: 9px 14px;
}
.nsfw-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(36px, 4vw, 60px) 0;
}
.nsfw-intro h1 {
  margin: 0;
  font: 710 clamp(36px, 4.2vw, 60px)/1.06 var(--display);
  letter-spacing: -0.045em;
}
.nsfw-intro h1 span {
  display: block;
  color: var(--action);
}
.nsfw-intro p {
  max-width: 49ch;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.hero-docs-link,
.sample-caption strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 13px;
}
.hero-docs-link:hover {
  color: var(--action);
}
.hero-sample {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.hero-sample:hover {
  border-color: var(--action);
}
.sample-frame {
  position: relative;
  display: block;
}
.sample-frame img {
  width: 100%;
  height: clamp(144px, 12vw, 182px);
  object-fit: cover;
  object-position: 50% 48%;
}
.sample-frame::before,
.sample-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: solid var(--surface);
}
.sample-frame::before {
  inset: 14px auto auto 14px;
  border-width: 2px 0 0 2px;
}
.sample-frame::after {
  inset: auto 14px 14px auto;
  border-width: 0 2px 2px 0;
}
.sample-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 15px;
}
.sample-caption code {
  font-size: 12px;
  color: var(--muted);
}
.sample-caption strong {
  color: var(--action);
}
.playground {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: 16px;
}
.playground-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  padding: 8px 24px;
  background: var(--code-bg);
  color: var(--surface);
}
.playground-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 630 16px/1.4 var(--display);
  letter-spacing: -0.025em;
  scroll-margin-top: 32px;
}
.playground-heading h2 svg {
  color: var(--syntax-blue);
}
.playground-heading code {
  color: var(--code-muted);
  font-size: 12px;
}
.play-side {
  min-width: 0;
}
.play-side + .play-side {
  border-left: 1px solid var(--line);
  background: var(--page);
}
.play-tabs {
  height: 58px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--line);
}
.play-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.play-tabs button.active {
  color: var(--action);
  font-weight: 600;
}
.play-tabs button.active:after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--action);
  bottom: -1px;
  left: 0;
  right: 0;
}
.play-tabs button:disabled {
  opacity: 0.5;
  cursor: default;
}
.result-tabs {
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.result-tabs button {
  align-self: stretch;
  min-height: 42px;
}
.result-tabs button.active {
  color: var(--ink);
}
.result-tabs > div {
  display: flex;
  gap: 24px;
}
.result-tabs button.active:after {
  display: none;
}
.play-body {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 24px;
}
.media-input-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
  gap: 12px;
  margin-bottom: 16px;
}
.input-cost {
  color: var(--muted);
  font-size: 12px;
}
.input-label {
  font-size: 13px;
  font-weight: 600;
}
.input-source {
  display: flex;
  gap: 3px;
  border-radius: 5px;
  padding: 3px;
  background: var(--subtle);
}
.input-source button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 3px;
  padding: 3px 11px;
  font-size: 12px;
  cursor: pointer;
}
.input-source button[aria-pressed='true'] {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.upload-area {
  flex: 1;
  min-height: 168px;
  width: 100%;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  cursor: pointer;
  padding: 16px;
  color: var(--muted);
}
.upload-area:hover:not(:disabled) {
  background: var(--page);
  border-color: var(--action);
}
.upload-area:disabled {
  cursor: default;
}
.upload-area strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview {
  height: 110px;
  width: 100%;
  object-fit: contain;
  border-radius: 3px;
}
.upload-area:has(.upload-preview) {
  gap: 8px;
  padding: 10px;
}
.play-body textarea,
.media-url-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font:
    14px/1.7 Inter,
    sans-serif;
}
.play-body textarea {
  flex: 1;
  min-height: 168px;
  resize: vertical;
}
.play-body textarea::placeholder,
.media-url-input::placeholder {
  color: var(--muted);
}
.media-url-input {
  margin-top: 4px;
}
.play-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}
.url-field {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.url-field > span,
.upload-area small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.url-field > span {
  margin-top: 5px;
}
.result-body {
  height: calc(100% - 58px);
}
.result-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.result-empty svg {
  color: var(--muted);
  margin-bottom: 6px;
}
.result-empty strong {
  color: var(--ink);
  font: 650 17px/1.4 var(--display);
}
.result-empty span {
  max-width: 36ch;
}
.score-label {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px;
}
.score-list {
  display: grid;
  gap: 12px;
}
.score {
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.score > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score-track {
  height: 4px;
  background: var(--subtle);
  border-radius: 2px;
  overflow: hidden;
}
.score-track div {
  height: 100%;
  background: var(--action);
}
.result-bottom {
  font-size: 12px;
  color: var(--muted);
}
.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--action);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.result-json {
  white-space: pre-wrap;
  overflow: auto;
  font:
    12px/1.7 ui-monospace,
    monospace;
  padding: 12px;
  max-height: 330px;
  margin: 0;
  background: var(--page);
  border-radius: 6px;
}
.home-error {
  border: 1px solid color-mix(in srgb, var(--danger), white 72%);
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-top: 12px;
}
.home-error a {
  text-decoration: underline;
}
.checker-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
}
.checker-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.nsfw-footer {
  border-top: 1px solid var(--line);
}
.nsfw-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
}

/* API reference: parameter reference and code share one focused workspace. */
.api-docs {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  scroll-margin-top: 24px;
}
.api-docs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.api-docs-heading h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 730;
  margin: 0;
}
.api-key-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--action);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.api-key-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.api-method {
  color: var(--positive);
  background: var(--positive-soft);
  border-radius: 4px;
  padding: 3px 7px;
  font:
    650 12px/1.5 ui-monospace,
    monospace;
}
.api-endpoint code {
  font:
    13px/1.6 ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.api-endpoint code span {
  color: var(--muted);
}
.api-endpoint button {
  margin-left: auto;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
}
.api-endpoint button:hover {
  background: var(--subtle);
  color: var(--ink);
}
.api-copy-error {
  color: var(--danger);
  font-size: 13px;
}
.api-docs-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
}
.api-docs-tabs button {
  position: relative;
  border: 0;
  padding: 14px 2px;
  background: transparent;
  color: var(--muted);
  font: 600 14px/1.5 var(--body);
  cursor: pointer;
}
.api-docs-tabs button[aria-selected='true'] {
  color: var(--action-hover);
}
.api-docs-tabs button[aria-selected='true']:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--action);
}
.api-docs-tabs button:hover {
  color: var(--action-hover);
}
.api-docs-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}
.api-docs-intro p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.api-docs-intro > span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.api-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: start;
}
.api-spec {
  min-width: 0;
  padding-top: 2px;
}
.api-spec-heading {
  margin: 0 0 16px;
}
.api-spec-heading h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.api-spec-heading > span {
  color: var(--muted);
  font:
    12px/1.6 ui-monospace,
    monospace;
}
.api-fields {
  margin: 0;
}
.api-field {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.api-field dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 3px;
}
.api-field dt code {
  font:
    600 12px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.api-field dt > span {
  font:
    12px/1.6 ui-monospace,
    monospace;
  color: var(--muted);
}
.api-field dd {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.api-more-fields {
  margin-top: 8px;
}
.api-more-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--action);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
  list-style: none;
}
.api-more-fields summary::-webkit-details-marker {
  display: none;
}
.api-more-fields .api-fields {
  margin-top: 8px;
}
.api-code-panel {
  min-width: 0;
  background: var(--code-bg);
  color: var(--code-muted);
  border-radius: 8px;
  overflow: hidden;
}
.api-code-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  min-height: 49px;
  padding: 0 16px;
  border-bottom: 1px solid var(--code-control);
}
.api-code-views {
  display: flex;
  align-items: stretch;
  gap: 22px;
}
.api-code-views button {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  color: var(--code-muted);
  font: 500 13px/1.5 var(--body);
  cursor: pointer;
}
.api-code-views button[aria-selected='true'] {
  color: var(--page);
}
.api-code-views button[aria-selected='true']:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--syntax-blue);
}
.api-code-views button:hover {
  color: var(--surface);
}
.api-copy {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--code-muted);
  font: 500 12px/1.5 var(--body);
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 65px;
}
.api-copy:hover {
  color: var(--surface);
  background: var(--code-control);
}
.api-code-panel pre {
  max-height: 350px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  tab-size: 2;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  scrollbar-width: thin;
  scrollbar-color: var(--code-control) var(--code-bg);
}
.api-code-panel pre code {
  color: inherit;
  font: inherit;
}
.api-token-key {
  color: var(--syntax-blue);
}
.api-token-string {
  color: var(--syntax-green);
}
.api-token-number {
  color: var(--syntax-orange);
}
.api-token-literal {
  color: var(--syntax-violet);
}
.api-token-command {
  color: var(--syntax-cyan);
}
.api-code-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  border-top: 1px solid var(--code-control);
  padding: 9px 16px;
  color: var(--code-muted);
  font-size: 12px;
  line-height: 1.5;
}
.api-code-footer span:last-child {
  color: var(--syntax-green);
}
.api-guides {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.api-guides > details {
  border-bottom: 1px solid var(--line);
}
.api-guides summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.api-guides summary::-webkit-details-marker {
  display: none;
}
.api-guides summary:hover {
  color: var(--action);
}
.api-guides summary svg,
.api-more-fields summary svg {
  transition: transform 150ms ease;
}
.api-guides details[open] > summary svg,
.api-more-fields[open] > summary svg {
  transform: rotate(180deg);
}
.api-guide-content {
  max-width: 780px;
  padding: 0 0 18px;
}
.api-guide-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.api-header-example {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 5px;
  background: var(--subtle);
  overflow: auto;
}
.api-header-example code,
.api-error-example code {
  font:
    12px/1.8 ui-monospace,
    monospace;
  color: var(--ink);
}
.api-status-list {
  margin: 0;
}
.api-status-list > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 16px;
  padding: 10px 0;
}
.api-status-list dt {
  font-size: 12px;
  color: var(--ink);
}
.api-status-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.api-error-example {
  overflow: auto;
  padding: 12px 16px;
  background: var(--subtle);
  border-radius: 5px;
}
@media (max-width: 850px) {
  .api-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .api-endpoint code span {
    display: none;
  }
}
@media (max-width: 640px) {
  .api-docs {
    padding: 36px 0 44px;
  }
  .api-docs-heading h2 {
    font-size: 27px;
  }
  .api-key-link {
    font-size: 12px;
  }
  .api-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .api-code-panel {
    width: 100%;
    order: -1;
  }
  .api-spec {
    width: 100%;
  }
  .api-code-panel pre {
    max-height: 310px;
    padding: 16px;
  }
  .api-docs-intro {
    align-items: flex-start;
  }
  .api-docs-intro p {
    font-size: 14px;
  }
  .api-docs-intro > span {
    font-size: 12px;
  }
  .api-endpoint {
    gap: 9px;
    padding: 9px 12px;
  }
  .api-endpoint code {
    font-size: 12px;
  }
  .api-status-list > div {
    grid-template-columns: 105px 1fr;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .api-guides summary svg,
  .api-more-fields summary svg {
    transition: none;
  }
}

/* One shared grid for documentation and supporting reading. */
#api {
  margin-top: 40px;
}
.api-docs {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}
.api-docs-heading h2 {
  font: 650 26px/1.3 var(--display);
  letter-spacing: -0.03em;
}
.api-workspace {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
}
.api-code-panel {
  border-radius: 8px;
}
.api-code-toolbar {
  gap: 8px;
}
.api-code-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.api-source-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 5px;
}
.api-source-toggle button {
  padding: 4px 9px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--code-muted);
  font-size: 12px;
  cursor: pointer;
}
.api-source-toggle button[aria-pressed='true'] {
  background: var(--action-soft);
  color: var(--action-hover);
}
.api-source-toggle button:hover:not([aria-pressed='true']) {
  background: var(--code-control);
}
.api-code-panel ::selection {
  background: var(--code-control);
  color: white;
}
.api-code-panel pre {
  scrollbar-color: var(--code-control) var(--code-bg);
}
.nsfw-guide,
.faq-section {
  max-width: none;
  margin: 0;
}
.reading-section,
.faq-section,
.pricing-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.nsfw-guide h2,
.pricing-section h2,
.faq-section h2 {
  font: 620 23px/1.4 var(--display);
  letter-spacing: -0.025em;
  margin: 0;
}
.section-copy {
  min-width: 0;
}
.guide-topic {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.guide-topic summary,
.faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
}
.guide-topic summary::-webkit-details-marker,
.faq-section summary::-webkit-details-marker {
  display: none;
}
.guide-topic summary:hover,
.faq-section summary:hover {
  color: var(--action);
}
.guide-topic summary svg,
.faq-section summary svg {
  flex-shrink: 0;
  color: var(--muted);
}
.guide-topic[open] summary svg,
.faq-section details[open] summary svg {
  transform: rotate(180deg);
}
.guide-topic h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.topic-content {
  display: grid;
  grid-template-columns: minmax(118px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 0 0 20px;
}
.topic-content img {
  width: 100%;
  height: auto;
  border-radius: 7px;
}
.section-copy .policy-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.section-copy p,
.pricing-copy p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 14px;
}
.section-copy > :last-child,
.pricing-copy > :last-child {
  margin-bottom: 0;
}
.section-copy a {
  color: var(--action);
  text-decoration: underline;
}
.pricing-copy h2 {
  margin: 0 0 14px;
}
.credit-unit-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  border-top: 1px solid var(--line);
  margin: 12px 0 18px;
  padding-top: 14px;
}
.credit-unit-prices dt {
  font-size: 12px;
  color: var(--muted);
}
.credit-unit-prices dd {
  margin: 2px 0 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.credit-pack {
  --credit-thumb: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.credit-pack-summary {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.credit-pack-summary label,
.credit-pack-total {
  display: grid;
  gap: 3px;
}
.credit-pack-total {
  text-align: right;
}
.credit-pack-summary span {
  color: var(--muted);
  font-size: 12px;
}
.credit-pack-summary strong,
.credit-pack-total output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.credit-pack-summary .amount-field {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font: 650 23px/1.3 var(--display);
  color: var(--ink);
}
.amount-field input {
  width: 4.8ch;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  appearance: textfield;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.amount-field input::-webkit-inner-spin-button {
  appearance: none;
}
.amount-field:focus-within {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
.nsfw-public .amount-field input:focus-visible {
  outline: none;
}
.credit-pack-summary strong {
  font: 660 30px/1.15 var(--display);
  letter-spacing: -0.035em;
}
.credit-pack-total output {
  font: 650 clamp(14px, 2.4vw, 19px)/1.3 var(--display);
  letter-spacing: -0.025em;
}
.credit-pack-range {
  display: block;
  width: 100%;
  height: 32px;
  margin: 12px 0 0;
  appearance: none;
  border: 0;
  background: linear-gradient(
      to right,
      var(--action) var(--credit-progress),
      var(--line) var(--credit-progress)
    )
    center / calc(100% - var(--credit-thumb)) 6px no-repeat;
  cursor: pointer;
}
.credit-pack-range::-webkit-slider-thumb {
  appearance: none;
  width: var(--credit-thumb);
  height: var(--credit-thumb);
  border: 2px solid var(--action);
  border-radius: 50%;
  background: var(--surface);
}
.credit-pack-range::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--credit-thumb);
  height: var(--credit-thumb);
  border: 2px solid var(--action);
  border-radius: 50%;
  background: var(--surface);
}
.credit-pack-stops {
  position: relative;
  height: 56px;
  margin-inline: calc(var(--credit-thumb) / 2);
}
.credit-pack-stops button {
  position: absolute;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 24px;
  min-height: 24px;
  transform: translateX(-50%);
  border-radius: 4px;
  padding: 6px 2px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.credit-pack-stops button::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--muted);
  content: '';
}
.credit-pack-stops button:first-child {
  transform: none;
}
.credit-pack-stops button:last-child {
  transform: translateX(-100%);
}
.credit-pack-stops button:first-child::before {
  left: 0;
}
.credit-pack-stops button:last-child::before {
  left: auto;
  right: 0;
}
.credit-pack-stops button span {
  color: var(--action);
  font-size: 12px;
  font-weight: 650;
}
.credit-pack-stops button:hover:not(:disabled) {
  color: var(--action);
}
.credit-pack-range:disabled,
.credit-pack-stops button:disabled {
  cursor: default;
  opacity: 0.65;
}
.credit-pack > .nsfw-button {
  display: flex;
  width: 100%;
  margin-top: 12px;
}
.credit-pack-error {
  color: var(--danger);
  font-size: 13px;
  margin: 12px 0 0;
}
.faq-section details {
  border-bottom: 1px solid var(--line);
}
.faq-section details:first-child summary {
  padding-top: 0;
}
.faq-section summary {
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  padding: 17px 0;
  color: var(--ink);
}
.faq-section details p {
  padding-bottom: 18px;
  margin: 0;
}
@media (max-width: 900px) {
  .nsfw-nav nav {
    gap: 22px;
  }
  .api-workspace,
  .reading-section,
  .faq-section,
  .pricing-section {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }
  .api-code-toolbar {
    flex-wrap: wrap;
  }
  .api-code-views {
    min-height: 48px;
  }
  .api-code-actions {
    min-height: 48px;
  }
}
@media (max-width: 700px) {
  .nsfw-nav {
    min-height: 64px;
    height: auto;
    padding-block: 9px;
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .nsfw-nav nav {
    width: 100%;
    gap: 26px;
  }
  .nsfw-nav-account .nsfw-button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .nsfw-nav-account {
    order: 0;
  }
  .nsfw-nav nav a {
    font-size: 12px;
  }
  .nsfw-nav nav a:first-child {
    display: none;
  }
  .nsfw-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 26px 0 22px;
  }
  .nsfw-intro h1 {
    font-size: clamp(34px, 7vw, 42px);
  }
  .nsfw-intro p {
    margin-top: 10px;
    font-size: 14px;
  }
  .hero-actions {
    margin-top: 16px;
  }
  .hero-sample {
    display: flex;
    align-items: stretch;
    min-height: 58px;
  }
  .sample-frame {
    width: 100px;
    flex-shrink: 0;
  }
  .sample-frame img {
    height: 100%;
    position: absolute;
  }
  .sample-frame::before,
  .sample-frame::after {
    display: none;
  }
  .sample-caption {
    flex: 1;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1px;
  }
  .playground-heading {
    min-height: 44px;
    padding: 8px 16px;
  }
  .playground-heading code {
    font-size: 12px;
  }
  .result-empty svg {
    display: none;
  }
  .result-empty {
    align-items: flex-start;
    text-align: left;
  }
  .playground {
    grid-template-columns: 1fr;
  }
  .play-side + .play-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .play-tabs {
    padding-inline: 20px;
    height: 54px;
  }
  .play-body {
    padding: 20px;
    min-height: 220px;
  }
  .result-body {
    min-height: 110px;
    height: auto;
  }
  .result-tabs {
    height: 48px;
  }
  .result-empty {
    gap: 12px;
  }
  .checker-note {
    font-size: 12px;
    gap: 10px;
  }
  .checker-note a {
    text-align: right;
  }
  .checker-note a svg {
    display: none;
  }
  #api {
    margin-top: 40px;
  }
  .api-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .api-code-panel {
    order: -1;
    width: 100%;
  }
  .api-spec {
    width: 100%;
  }
  .api-code-toolbar {
    padding: 0 12px;
  }
  .api-code-views {
    gap: 16px;
  }
  .api-code-actions {
    gap: 4px;
  }
  .api-copy {
    min-width: auto;
    padding: 7px 4px;
  }
  .api-copy span {
    display: none;
  }
  .api-source-toggle button {
    padding: 4px 7px;
  }
  .reading-section,
  .faq-section,
  .pricing-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .nsfw-guide h2,
  .pricing-section h2,
  .faq-section h2 {
    font-size: 21px;
  }
  .topic-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .topic-content img {
    max-width: 240px;
  }
  .nsfw-footer > div {
    flex-wrap: wrap;
    padding-block: 24px;
  }
  .nsfw-footer nav {
    gap: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nsfw-home *,
  .nsfw-home *:before,
  .nsfw-home *:after {
    scroll-behavior: auto;
  }
}

