@font-face {
  font-family: Manrope;
  src: url(/assets/fonts/manrope-latin.woff2)format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url(/assets/fonts/plex-mono-latin.woff2)format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg:   #f4f3ed;
  --text:   #242621;
  --muted:   #6b6e66;
  --border:   #dcded3;
  --accent:   #f15b2a;
  --accent-hover:   #f56b37;
  --green:   #317350;
  --mono:   'IBM Plex Mono',ui-monospace,SFMono-Regular,Consolas,monospace;
  --sans:   Manrope,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,input,textarea,select {
  font: inherit;
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:disabled {
  cursor: default;
  opacity: .45;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: #f8c2a9;
  color: #242621;
}

h1,h2,h3,h4,p {
  margin: 0;
}

code,pre,kbd {
  font-family: var(--mono);
}

.page-width {
  width: min(1232px,calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(244 243 237/.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand img {
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: 33px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.site-header nav a {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}

.site-header nav a:hover,.text-link:hover,.site-footer>a:last-child:hover {
  color: #9e3d1c;
}

.nav-number {
  font: 13px var(--mono);
  color: var(--muted);
  align-self: flex-start;
  margin-top: 12px;
}

.connection {
  font: 13px var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 11px;
  border-radius: 5px;
}

.status-dot,.orange-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.connection.online {
  color: var(--green);
}

.connection.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(49 115 80/.08);
}

.connection.offline {
  color: #b0442b;
}

.connection.offline .status-dot {
  background: #b0442b;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  align-items: center;
  gap: 50px;
  padding-block: 66px 55px;
}

.eyebrow {
  font: 13px/1.6 var(--mono);
  letter-spacing: 1.2px;
  color: var(--muted);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .8px;
}

.cross-mark {
  color: var(--accent);
  font: 24px/1 var(--sans);
}

h1 {
  font-size: clamp(57px,6.9vw,94px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -6px;
  margin: 25px 0;
}

.headline-out {
  white-space: nowrap;
  color: #6e7169;
}

.orange-period {
  color: var(--accent);
}

.hero-description {
  max-width: 360px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-top: 29px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 18px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s,transform .2s;
}

.button.primary {
  color: #20170e;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button.primary:active {
  transform: translateY(0);
}

.button.primary>span:not(.button-label) {
  font-size: 20px;
  line-height: 1;
}

.button.secondary {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}

.hero-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 34px;
  color: var(--muted);
  font: 13px var(--mono);
}

.hero-meta>span+span {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

.hero-meta strong {
  font-weight: 400;
  color: var(--text);
}

.version {
  letter-spacing: .3px;
}

.image-preview {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dcded3;
  border-radius: 16px;
  background: #fcfbf7;
  box-shadow: 0 16px 48px -28px rgb(42 45 35/.3);
}

.preview-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 3px 7px 14px;
}

.preview-heading>span:first-child {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.preview-badge {
  border: 1px solid #e3e5da;
  border-radius: 4px;
  padding: 3px 7px;
  color: #616858;
  background: #f1f3eb;
  font: 13px/1.4 var(--mono);
}

.preview-image {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: #c5b3a9;
}

.preview-image::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent,rgb(20 23 30/.55));
  pointer-events: none;
}

.preview-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
}

.preview-image-note {
  position: absolute;
  z-index: 1;
  bottom: 15px;
  left: 17px;
  right: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 5px rgb(0 0 0/.2);
}

.preview-image-note>span {
  font-size: 22px;
  line-height: 1;
}

.preview-caption {
  padding: 19px 8px 3px;
}

.preview-label {
  display: block;
  margin-bottom: 8px;
  color: #6b6e66;
  font: 13px/1.5 var(--mono);
  letter-spacing: 1px;
}

.preview-caption>p {
  max-width: 44ch;
  color: #393d32;
  font-size: 16px;
  line-height: 1.6;
}

.preview-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-top: 15px;
  padding-top: 9px;
  border-top: 1px solid #e6e7de;
}

.preview-footer>span {
  color: #6b6e66;
  font-size: 13px;
}

.preview-try {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a23817;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}

.preview-try:hover:enabled {
  background: #f8e8dc;
}

.preview-try>span {
  font-size: 20px;
  line-height: 1;
}

.protocol-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  font: 13px var(--mono);
  color: var(--muted);
}

.protocol-strip>span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.strip-label {
  font-size: 13px;
  letter-spacing: .7px;
  color: #3f4437;
}

.strip-icon {
  color: var(--accent);
  font-size: 13px;
}

.protocol-strip .strip-end {
  font-size: 13px;
  letter-spacing: .6px;
  color: #92978b;
}

.catalog-section {
  padding-block: 76px 60px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(34px,3.6vw,48px);
  font-weight: 600;
  letter-spacing: -2.2px;
  line-height: 1.13;
  margin-top: 16px;
}

.section-note {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  padding-bottom: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.project-card {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #faf9f5;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.project-card.selected { border-color: var(--accent); }
#service-select { margin-bottom: 18px; }

.project-card:only-child {
  grid-column: 1/-1;
}

.project-info {
  padding: 29px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(130deg,#ebece4,#f2f1e9);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.project-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #22281e;
  color: #f9f5e8;
  border-radius: 10px;
  font: 26px var(--sans);
  position: relative;
}

.project-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 9px;
  height: 9px;
  border: 3px solid #ebece4;
  border-radius: 50%;
  background: var(--accent);
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.7px;
}

.project-subtitle {
  font: 13px var(--mono);
  color: var(--muted);
  margin-top: 1px;
}

.project-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
  max-width: 250px;
}

.project-model-count {
  margin-top: 21px;
  font: 13px var(--mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-model-count::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.project-model-count.available {
  color: var(--green);
}

.endpoint-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  width: 100%;
  flex: 1;
  min-height: 118px;
  padding: 24px 28px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  color: var(--text);
  transition: background .2s;
}

.endpoint-row+.endpoint-row {
  border-top: 1px solid var(--border);
}

.endpoint-row:hover {
  background: #eeeee5;
}

.endpoint-description {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.endpoint-path {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.endpoint-row code {
  font-size: 13px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.row-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--muted);
  font-size: 18px;
  transition: background .2s,color .2s,transform .2s;
}

.endpoint-row:hover .row-arrow {
  background: var(--text);
  color: var(--bg);
  transform: rotate(45deg);
}

.method {
  font: 13px var(--mono);
  color: var(--green);
  background: #e7eee5;
  border: 1px solid #d1dfcc;
  border-radius: 4px;
  padding: 3px 6px;
  flex-shrink: 0;
}

.method.post {
  color: #a8441e;
  background: #f9e7dc;
  border-color: #efd5c4;
}

.loading-message,.catalog-message {
  padding: 25px 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-footnote {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-footnote>span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-cross {
  color: var(--accent);
  font-size: 17px;
}

.catalog-footnote>a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.catalog-footnote>a:hover {
  color: #9e3d1c;
}

.studio-section {
  padding-block: 64px 36px;
  background: #20231f;
  color-scheme: dark;
  --bg:   #20231f;
  --text:   #efeee6;
  --muted:   #9b9f94;
  --border:   #3b4037;
  --green:   #b0c99d;
  color: var(--text);
}

.studio-heading {
  margin-bottom: 34px;
}

.studio-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orange-dot {
  background: var(--accent);
}

.studio-heading h2 {
  font-size: clamp(36px,4.3vw,56px);
  line-height: 1.08;
}

.studio-heading h2>span {
  color: #b8bfae;
}

.studio-heading .section-note {
  color: #b2b7aa;
}

.studio-shell {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #262a24;
  overflow: hidden;
  box-shadow: 0 16px 50px rgb(0 0 0/.08);
}

.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  background: #30352c;
  border-bottom: 1px solid var(--border);
}

.studio-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
}

.toolbar-mark {
  font-size: 20px;
  line-height: 1;
  color: #deedca;
}

.toolbar-divider {
  color: #69715f;
  margin: 0 3px;
}

.studio-service {
  color: #b7c0ab;
  font: 13px var(--mono);
}

.studio-hint {
  color: #a2ad95;
  font: 13px var(--mono);
  letter-spacing: .7px;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.request-panel {
  border-right: 1px solid var(--border);
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  font: 13px var(--mono);
  color: #9ea992;
  border: 1px solid #444c3c;
  border-radius: 4px;
  padding: 3px 5px;
}

.panel-tag {
  font: 13px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}

#request-form {
  padding: 22px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #c1c7b7;
}

select,input[type=password],input[type=url],input[type=number] {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #484f40;
  border-radius: 5px;
  color: var(--text);
  background: #2d3229;
  font-size: 16px;
  outline-offset: 2px;
}

select {
  cursor: pointer;
}

input::placeholder,textarea::placeholder {
  color: #8c9481;
  opacity: 1;
}

.request-address {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #22261f;
  padding: 11px;
  margin: 11px 0 20px;
}

.request-address code {
  font-size: 13px;
  color: #b6c0a9;
  overflow-wrap: anywhere;
  min-width: 0;
}

.studio-section .method {
  color: #bdcfb0;
  background: #33432c;
  border-color: #485b3f;
}

.studio-section .method.post {
  color: #f4b18f;
  background: #413226;
  border-color: #624536;
}

.editor-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.editor-tabs {
  display: flex;
  gap: 2px;
  background: #1e221c;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px;
}

.editor-tab {
  min-height: 32px;
  padding: 4px 13px;
  border: 0;
  border-radius: 3px;
  font-size: 14px;
  background: transparent;
  color: var(--muted);
}

.editor-tab.active {
  color: var(--text);
  background: #3d4435;
  box-shadow: 0 1px 4px rgb(0 0 0/.15);
}

.inline-button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #c6ceb9;
  padding: 4px 0;
  font-size: 14px;
}

.inline-button:hover {
  color: #fff;
}

textarea {
  resize: vertical;
  width: 100%;
  padding: 12px;
  border: 1px solid #484f40;
  border-radius: 5px;
  background: #22271f;
  color: var(--text);
  font: 16px/1.75 var(--sans);
  min-height: 98px;
}

#request-body {
  min-height: 240px;
  font: 13px/1.85 var(--mono);
  color: #d3ddc5;
}

.prompt-presets {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 19px;
}

.prompt-presets>span {
  font: 13px var(--mono);
  color: #8e9881;
  margin-right: 2px;
}

.prompt-presets>button {
  min-height: 32px;
  border: 1px solid #424a39;
  border-radius: 4px;
  background: transparent;
  padding: 5px 8px;
  font-size: 13px;
  color: #adb79d;
}

.prompt-presets>button:hover {
  background: #3d4534;
  color: #edf4e3;
  border-color: #697658;
}

.compose-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 12px;
}

.extra-options {
  border-block: 1px solid var(--border);
  margin-top: 20px;
}

.extra-options summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: #c1c7b7;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.extra-options summary::-webkit-details-marker {
  display: none;
}

.extra-options summary>span:last-child {
  margin-left: auto;
  font-size: 15px;
}

.extra-options[open] summary>span:last-child {
  transform: rotate(45deg);
}

.extra-options[open] {
  padding-bottom: 16px;
}

.endpoint-options {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font: 13px/1.8 var(--mono);
  letter-spacing: .5px;
}

.model-hint {
  font: 13px var(--mono);
  color: #9ca88c;
}

.reference-label {
  margin-top: 18px;
}

.optional {
  font: 13px var(--mono);
  color: #8f9a81;
  font-weight: 400;
  letter-spacing: .3px;
}

.field-help {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}

.request-help {
  margin-top: 16px;
}

#key-field {
  margin-top: 17px;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.send-button {
  flex: 1 1 180px;
  min-height: 46px;
}

.request-actions>.button {
  min-width: 0;
  white-space: nowrap;
}

#cancel-request {
  flex: 1 1 140px;
}

.response-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #242820;
}

.response-status {
  font: 13px var(--mono);
  color: var(--muted);
  text-align: right;
}

.response-status.success {
  color: #b2d19b;
}

.response-status.error {
  color: #f5ad91;
}

.response-error {
  font-size: 13px;
  color: #f5c3af;
  background: #3b2d24;
  border-bottom: 1px solid #654b3b;
  padding: 14px 22px;
  overflow-wrap: anywhere;
}

.response-content {
  flex: 1;
  min-height: 360px;
  max-height: 670px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #57614b transparent;
}

.response-empty,.response-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 360px;
  padding: 35px 20px;
  text-align: center;
  height: 100%;
}

.response-empty h4,.response-loading h4 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.4px;
  margin-top: 26px;
}

.response-empty p,.response-loading p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 10px;
  max-width: 300px;
}

.empty-art {
  position: relative;
  width: 124px;
  height: 103px;
  margin-top: 25px;
}

.empty-frame {
  position: absolute;
  display: grid;
  place-items: center;
  width: 67px;
  height: 75px;
  border: 1px solid #5e6b4e;
  border-radius: 7px;
  transform: rotate(-15deg);
}

.frame-back {
  left: 19px;
  top: 0;
  background: #2d3527;
}

.frame-front {
  left: 37px;
  top: 12px;
  color: #b1be9c;
  font-size: 36px;
  background: #333c2b;
  transform: rotate(9deg);
}

.empty-orbit {
  position: absolute;
  left: 1px;
  top: 33px;
  width: 126px;
  height: 42px;
  border: 1px solid #5f6d50;
  transform: rotate(-30deg);
  border-radius: 50%;
  border-top-color: transparent;
}

.empty-caption {
  color: #8c987d;
  letter-spacing: 1px;
  font: 13px var(--mono);
  margin-top: 28px;
}

.response-panel[aria-busy=true] .response-status {
  color: #f7b38f;
}

.loading-orbit {
  width: 64px;
  height: 64px;
  border: 1px solid #586449;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  animation: orbit-spin 1.2s linear infinite;
}

.loading-orbit::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #71805e;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.loading-time {
  margin-top: 24px;
  font: 13px var(--mono);
  color: #b8c4a7;
}

.response-json {
  margin-top: 10px;
}

.response-json summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  color: #c1cbb5;
  font: 13px var(--mono);
  list-style: none;
}

.response-json summary::-webkit-details-marker {
  display: none;
}

.response-json summary::before {
  content: "▸";
  color: #91a07e;
}

.response-json[open] summary::before {
  content: "▾";
}

.response-json summary>span {
  margin-left: auto;
  color: #879578;
}

.response-code {
  margin: 0;
  padding: 3px 22px 22px;
  color: #bdcbb0;
  font: 13px/1.8 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.response-footer {
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: #909c82;
  font: 13px var(--mono);
  margin-top: auto;
}

.image-results {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 12px;
  padding: 20px;
}

.image-results a {
  display: block;
  color: #c3d4b1;
  font-size: 13px;
}

.image-results img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 5px;
  background: #303829;
  margin-bottom: 8px;
}

.code-panel {
  border-top: 1px solid var(--border);
  background: #20251d;
}

.code-header {
  padding: 0 22px;
  min-height: 49px;
}

.code-tabs {
  display: flex;
  gap: 23px;
}

.code-tab {
  min-height: 49px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 11px 0;
  background: transparent;
  color: #929e84;
  font: 14px var(--mono);
}

.code-tab.active {
  color: #dfebd2;
  border-bottom-color: var(--accent);
}

.example-code {
  margin: 0;
  padding: 21px 22px;
  color: #c3d1b5;
  font: 13px/1.85 var(--mono);
  white-space: pre;
  overflow: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: #526246 transparent;
}

.parameter-details {
  margin-top: 20px;
  border-block: 1px solid var(--border);
}

.parameter-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 20px 1px;
  font-size: 13px;
  list-style: none;
}

.parameter-details summary::-webkit-details-marker {
  display: none;
}

.parameter-caption {
  margin-left: 9px;
  color: var(--muted);
  font: 13px var(--mono);
}

.details-plus {
  font: 22px var(--sans);
  color: #a2b28f;
  transition: transform .2s;
}

.parameter-details[open] .details-plus {
  transform: rotate(45deg);
}

.parameter-content {
  overflow-x: auto;
  padding-bottom: 22px;
}

.parameter-content>p {
  font-size: 13px;
  color: var(--muted);
}

.parameter-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 520px;
}

.parameter-table th {
  font: 13px var(--mono);
  color: var(--muted);
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

.parameter-table td {
  padding: 13px 12px;
  vertical-align: top;
  border-bottom: 1px solid #333b2c;
  color: #b6c1a9;
}

.parameter-table td:first-child {
  font: 13px var(--mono);
  color: #e3ecd8;
  white-space: nowrap;
}

.required {
  display: block;
  margin-top: 5px;
  font: 13px var(--mono);
  color: #99a889;
}

.studio-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 13px/1.8 var(--mono);
  color: #9da78f;
  margin-top: 20px;
}

.studio-footnote .orange-dot {
  width: 4px;
  height: 4px;
}

.closing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-block: 80px 75px;
}

.closing-section h2 {
  font-size: clamp(36px,3.9vw,52px);
  line-height: 1.12;
}

.closing-copy>p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.closing-copy .text-link {
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer .brand {
  font-size: 18px;
}

.footer-note {
  font: 13px var(--mono);
  letter-spacing: .8px;
  color: #777d6c;
}

.site-footer>a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  min-height: 36px;
}

.noscript {
  padding: 25px;
  text-align: center;
  background: #eaece2;
  color: var(--text);
}

.noscript a {
  text-decoration: underline;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width:1450px) {
  .hero {
    gap: 76px;
    padding-block: 78px 66px;
  }
  h1 {
    font-size: 100px;
  }
  .hero-description {
    font-size: 18px;
    max-width: 390px;
  }
}

@media (max-width:1100px) {
  .page-width {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 30px;
    padding-top: 52px;
  }
  h1 {
    font-size: clamp(55px,7.3vw,80px);
    letter-spacing: -4.5px;
  }
  .hero-eyebrow {
    font-size: 13px;
  }
  .hero-description {
    font-size: 18px;
    max-width: 315px;
  }
  .hero-actions {
    gap: 18px;
  }
  .protocol-strip {
    font-size: 13px;
    gap: 12px;
  }
  .protocol-strip .strip-end {
    display: none;
  }
  .project-card {
    grid-template-columns: 280px 1fr;
  }
  .project-info {
    padding: 26px;
  }
  .endpoint-row {
    padding: 21px;
  }
  .studio-hint {
    font-size: 13px;
  }
  .prompt-presets {
    gap: 4px;
  }
  .prompt-presets>button {
    font-size: 13px;
    padding: 5px 6px;
  }
  .response-status {
    font-size: 13px;
  }
}

@media (max-width:800px) {
  .page-width {
    width: calc(100% - 44px);
  }
  .header-inner {
    height: 72px;
    gap: 14px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .site-header nav {
    gap: 19px;
    font-size: 13px;
  }
  .nav-number {
    display: none;
  }
  .connection {
    font-size: 13px;
    padding: 7px 9px;
  }
  .hero {
    gap: 24px;
    padding-block: 43px 34px;
  }
  h1 {
    font-size: clamp(45px,7.3vw,62px);
    letter-spacing: -3.5px;
    margin: 21px 0 20px;
  }
  .hero-description {
    font-size: 18px;
  }
  .hero-eyebrow {
    font-size: 13px;
    letter-spacing: .4px;
    gap: 7px;
  }
  .cross-mark {
    font-size: 20px;
  }
  .hero-actions {
    gap: 15px;
    margin-top: 21px;
  }
  .hero-actions .button {
    font-size: 16px;
    gap: 15px;
    min-height: 43px;
    padding: 10px 13px;
  }
  .hero-actions .text-link {
    font-size: 13px;
    gap: 7px;
  }
  .hero-meta {
    font-size: 13px;
    gap: 13px;
    margin-top: 23px;
  }
  .hero-meta>span+span {
    padding-left: 13px;
  }
  .protocol-strip {
    font-size: 13px;
    gap: 9px;
    padding-block: 15px;
  }
  .strip-label {
    font-size: 13px;
  }
  .strip-icon {
    font-size: 13px;
  }
  .protocol-strip>span {
    gap: 5px;
  }
  .catalog-section {
    padding-block: 53px 40px;
  }
  .section-heading {
    gap: 22px;
    margin-bottom: 26px;
  }
  h2 {
    font-size: 36px;
    letter-spacing: -1.8px;
  }
  .section-note {
    font-size: 16px;
  }
  .project-card {
    grid-template-columns: 225px 1fr;
  }
  .project-info {
    padding: 23px;
  }
  .project-title {
    font-size: 22px;
  }
  .project-icon {
    width: 37px;
    height: 37px;
    font-size: 22px;
  }
  .project-description {
    font-size: 16px;
  }
  .endpoint-row {
    padding: 21px 18px;
  }
  .endpoint-row code {
    font-size: 13px;
  }
  .endpoint-description {
    font-size: 15px;
  }
  .row-arrow {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }
  .studio-section {
    padding-top: 47px;
  }
  .studio-heading h2 {
    font-size: 42px;
  }
  .panel-header {
    padding: 16px;
  }
  .panel-header h3 {
    font-size: 15px;
    gap: 7px;
  }
  #request-form {
    padding: 17px;
  }
  .studio-toolbar {
    padding: 14px 16px;
  }
  .studio-title {
    font-size: 13px;
    gap: 8px;
  }
  .studio-hint {
    font-size: 13px;
  }
  .response-status {
    font-size: 13px;
    max-width: 115px;
  }
  .field-label {
    font-size: 15px;
  }
  .compose-grid {
    gap: 12px 10px;
  }
  .code-header {
    padding: 0 17px;
  }
  .closing-section {
    gap: 36px;
    padding-block: 59px;
  }
  .closing-section h2 {
    font-size: 40px;
  }
  .footer-note {
    font-size: 13px;
    letter-spacing: .3px;
  }
}

@media (max-width:620px) {
  html {
    scroll-padding-top: 89px;
  }
  .page-width {
    width: calc(100% - 36px);
  }
  .header-inner {
    height: 67px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .site-header nav {
    gap: 15px;
    font-size: 13px;
  }
  .connection {
    font-size: 13px;
    border: 0;
    padding: 0;
    gap: 6px;
  }
  .status-dot {
    width: 5px;
    height: 5px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 29px;
    padding-block: 38px 25px;
  }
  .hero-eyebrow {
    font-size: 13px;
    gap: 9px;
    letter-spacing: .6px;
  }
  .cross-mark {
    font-size: 22px;
  }
  h1 {
    font-size: clamp(49px,12.9vw,76px);
    letter-spacing: -3.5px;
    line-height: 1.04;
    margin: 21px 0 19px;
  }
  .hero-description {
    font-size: 18px;
    max-width: 330px;
  }
  .hero-actions {
    margin-top: 22px;
    gap: 23px;
  }
  .hero-actions .button {
    font-size: 16px;
    gap: 31px;
    min-height: 46px;
    padding: 12px 16px;
  }
  .hero-actions .text-link {
    font-size: 13px;
    gap: 12px;
  }
  .hero-meta {
    font-size: 13px;
    margin-top: 26px;
    gap: 18px;
  }
  .hero-meta>span+span {
    padding-left: 18px;
  }
  .protocol-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 15px;
    padding-block: 17px;
    font-size: 13px;
  }
  .strip-label {
    font-size: 13px;
    letter-spacing: .5px;
  }
  .strip-icon {
    font-size: 13px;
  }
  .protocol-strip>span {
    gap: 7px;
  }
  .catalog-section {
    padding-block: 42px 32px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 25px;
  }
  .section-heading .eyebrow {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 33px;
    letter-spacing: -1.8px;
    margin-top: 13px;
  }
  .catalog-section .section-note {
    max-width: 134px;
    font-size: 16px;
    line-height: 1.8;
    padding-top: 32px;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-info {
    padding: 23px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .project-top {
    gap: 12px;
  }
  .project-icon {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }
  .project-title {
    font-size: 22px;
  }
  .project-description {
    font-size: 16px;
    max-width: 290px;
    margin-top: 16px;
  }
  .project-model-count {
    font-size: 13px;
    margin-top: 16px;
  }
  .endpoint-row {
    padding: 21px;
    min-height: 99px;
    gap: 10px;
  }
  .endpoint-description {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .endpoint-row code {
    font-size: 13px;
  }
  .endpoint-path {
    gap: 8px;
  }
  .row-arrow {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
  .catalog-footnote {
    font-size: 13px;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
  }
  .catalog-footnote>span {
    max-width: 180px;
    gap: 7px;
  }
  .catalog-footnote>a {
    font-size: 13px;
    gap: 7px;
    flex-shrink: 0;
  }
  .studio-section {
    padding-block: 39px 26px;
  }
  .studio-heading {
    display: block;
    margin-bottom: 25px;
  }
  .studio-heading h2 {
    font-size: 43px;
    letter-spacing: -2px;
    margin-top: 15px;
  }
  .studio-heading .section-note {
    font-size: 16px;
    margin-top: 17px;
  }
  .studio-heading .section-note br {
    display: none;
  }
  .studio-toolbar {
    padding: 13px 15px;
  }
  .studio-title {
    font-size: 13px;
    gap: 8px;
  }
  .studio-hint {
    display: none;
  }
  .playground-grid {
    grid-template-columns: 1fr;
  }
  .request-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .panel-header {
    padding: 16px 18px;
  }
  .panel-header h3 {
    font-size: 15px;
    gap: 10px;
  }
  .response-status {
    font-size: 13px;
    max-width: none;
  }
  #request-form {
    padding: 18px;
  }
  .field-label {
    font-size: 15px;
  }
  .request-address code {
    font-size: 13px;
  }
  select,input[type=password],input[type=url],input[type=number] {
    font-size: 16px;
    min-height: 44px;
  }
  textarea {
    font-size: 16px;
    min-height: 106px;
  }
  .prompt-presets {
    gap: 5px;
    margin-bottom: 20px;
  }
  .prompt-presets>span {
    display: block;
    font-size: 13px;
  }
  .prompt-presets>button {
    font-size: 13px;
    padding: 5px 7px;
    min-height: 33px;
  }
  .compose-grid {
    gap: 14px 12px;
  }
  .model-hint {
    font-size: 13px;
  }
  .field-help {
    font-size: 14px;
  }
  .request-actions {
    margin-top: 17px;
  }
  .send-button {
    min-height: 47px;
  }
  .response-content {
    min-height: 285px;
    max-height: 570px;
  }
  .response-empty,.response-loading {
    min-height: 285px;
    padding: 26px 20px;
  }
  .empty-art {
    margin-top: 0;
    width: 116px;
    height: 91px;
  }
  .response-empty h4,.response-loading h4 {
    font-size: 20px;
    margin-top: 21px;
  }
  .empty-caption {
    margin-top: 20px;
  }
  .response-footer {
    padding-inline: 18px;
  }
  .image-results {
    padding: 16px;
  }
  .code-header {
    padding: 0 18px;
  }
  .code-tabs {
    gap: 20px;
  }
  .code-tab {
    font-size: 14px;
  }
  .code-header>.inline-button {
    font-size: 14px;
  }
  .example-code {
    padding: 18px;
    font-size: 13px;
    line-height: 1.9;
    max-height: 360px;
  }
  .parameter-details {
    margin-top: 17px;
  }
  .parameter-details summary {
    padding-block: 17px;
    font-size: 13px;
  }
  .parameter-caption {
    font-size: 13px;
    margin-left: 5px;
  }
  .studio-footnote {
    font-size: 13px;
    align-items: flex-start;
    line-height: 1.9;
    margin-top: 16px;
  }
  .studio-footnote .orange-dot {
    margin-top: 5px;
  }
  .closing-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 43px 39px;
  }
  .closing-section .eyebrow {
    font-size: 13px;
  }
  .closing-section h2 {
    font-size: 39px;
    margin-top: 14px;
  }
  .closing-copy>p {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .closing-copy .text-link {
    font-size: 13px;
  }
  .site-footer {
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 13px;
  }
  .site-footer .brand {
    font-size: 17px;
  }
  .site-footer .brand img {
    width: 25px;
    height: 25px;
  }
  .footer-note {
    order: 3;
    flex-basis: 100%;
    font-size: 13px;
    letter-spacing: .7px;
  }
  .site-footer>a:last-child {
    font-size: 13px;
    gap: 9px;
  }
}

@media (max-width:360px) {
  .page-width {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .site-header nav {
    gap: 12px;
    font-size: 13px;
  }
  .connection {
    font-size: 13px;
    gap: 4px;
  }
  h1 {
    font-size: 47px;
    letter-spacing: -3px;
  }
  .hero-eyebrow {
    font-size: 13px;
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-actions .button {
    gap: 22px;
  }
  .endpoint-row {
    padding: 18px;
  }
  .endpoint-row code {
    font-size: 13px;
  }
  .catalog-footnote {
    font-size: 13px;
  }
  .catalog-footnote>a {
    font-size: 13px;
  }
  .prompt-presets>span {
    display: none;
  }
  .prompt-presets>button {
    font-size: 13px;
  }
  .parameter-caption {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
  }
  /* Keep essential loading feedback visible with less continuous motion. */
  .loading-orbit {
    animation: orbit-spin 2.4s steps(12,end) infinite !important;
  }
}

/* Keep the image form readable and comfortable on phone screens. */
.hero-actions, .hero-meta, .protocol-strip, .panel-header, .site-footer { flex-wrap: wrap; }
.hero-meta { gap: 12px; }
.hero-meta>span+span { padding-left: 12px; }
.compose-grid>div { min-width: 0; }
select, input[type=password], input[type=url], input[type=number] { min-height: 48px; font-size: 16px; }
.button { min-height: 50px; }
.prompt-presets>button { min-height: 42px; padding: 8px 10px; font-size: 13px; }
.editor-tab, .inline-button { min-height: 40px; }
.code-tab { min-height: 50px; }
.request-address code, .endpoint-row code { font-size: 14px; }
.closing-copy>.button { margin-top: 6px; }
.integration-details { border-top: 1px solid var(--border); }
.integration-details>summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 14px 22px; cursor: pointer; list-style: none; color: #c6ceb9; font-size: 15px; }
.integration-details>summary::-webkit-details-marker { display: none; }
.integration-details>summary>span { font-size: 22px; }
.integration-details[open]>summary>span { transform: rotate(45deg); }
@media (max-width: 800px) {
  .hero-description { font-size: 16px; }
  .header-inner { gap: 12px; }
  .site-header nav { gap: 16px; }
  .connection { border: 0; padding: 8px; flex-shrink: 0; }
  #connection-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .status-dot { width: 8px; height: 8px; }
}
@media (max-width: 620px) {
  .hero-meta { gap: 12px; }
  .hero-meta>span+span { padding-left: 12px; }
  .catalog-section .section-heading { display: block; }
  .catalog-section .section-note { max-width: none; margin-top: 16px; padding-top: 0; font-size: 15px; }
  .hero-actions { gap: 12px 22px; }
  .request-address code, .endpoint-row code { font-size: 13px; }
  .hero-description { font-size: 16px; }
  .closing-copy>p { font-size: 16px; }
  .studio-hint { display: none; }
}
