:root {
  --cursor-x: 50vw;
  --cursor-y: 220px;
  --ground: #090a09;
  --ground-raised: #0d0f0d;
  --surface-1: #111310;
  --surface-2: #171a16;
  --surface-3: #1d211c;
  --text: #f4f6f3;
  --text-soft: #c6ccc6;
  --muted: #98a098;
  --muted-dark: #697169;
  --line: rgba(244, 246, 243, 0.09);
  --line-strong: rgba(244, 246, 243, 0.16);
  --header-bg: rgba(9, 10, 9, 0.94);
  --ambient-glow: rgba(61, 220, 132, 0.09);
  --ambient-glow-soft: rgba(61, 220, 132, 0.025);
  --ambient-grid: rgba(244, 246, 243, 0.045);
  --control-hover: rgba(244, 246, 243, 0.08);
  --accent: #3ddc84;
  --accent-strong: #65e59d;
  --accent-ink: #06130b;
  --accent-soft: rgba(61, 220, 132, 0.1);
  --signal-warm: #e1c870;
  --danger: #f47b63;
  --danger-soft: rgba(244, 123, 99, 0.1);
  --font-sans: "Geist", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --content: 1180px;
  --dashboard: 1440px;
  --header-height: 64px;
}

html[data-theme="light"] {
  color-scheme: light;
  --ground: #f5f7f2;
  --ground-raised: #fbfcf8;
  --surface-1: #ffffff;
  --surface-2: #eef3ec;
  --surface-3: #e6ede3;
  --text: #09110d;
  --text-soft: #2d3a32;
  --muted: #5a665e;
  --muted-dark: #7b857e;
  --line: rgba(9, 17, 13, 0.1);
  --line-strong: rgba(9, 17, 13, 0.18);
  --header-bg: rgba(251, 252, 248, 0.92);
  --ambient-glow: rgba(20, 153, 87, 0.13);
  --ambient-glow-soft: rgba(20, 153, 87, 0.04);
  --ambient-grid: rgba(9, 17, 13, 0.045);
  --control-hover: rgba(9, 17, 13, 0.06);
  --accent: #137a45;
  --accent-strong: #0f9a54;
  --accent-ink: #f4fff8;
  --accent-soft: rgba(19, 122, 69, 0.12);
  --signal-warm: #9b7514;
  --danger: #bf3f2a;
  --danger-soft: rgba(191, 63, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ground);
  color-scheme: dark;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ground);
  font: 400 15px/1.6 var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ambient-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--cursor-x) var(--cursor-y), var(--ambient-glow), var(--ambient-glow-soft) 34%, transparent 72%);
}

.ambient-field::before {
  position: absolute;
  inset: -96px;
  content: "";
  opacity: 0.1;
  background-image:
    linear-gradient(var(--ambient-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ambient-grid) 1px, transparent 1px);
  background-size: 96px 96px;
  animation: ambient-drift 42s linear infinite;
  mask-image: radial-gradient(circle at 50% 18%, #000 0, transparent 72%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

body,
button,
input {
  font-family: var(--font-sans);
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
pre {
  margin-top: 0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
strong {
  font-weight: 600;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 72px;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

code,
pre {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

code {
  overflow-wrap: anywhere;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: var(--ground-raised);
  outline: none;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}

input:hover {
  border-color: rgba(244, 246, 243, 0.25);
}

input:focus {
  border-color: var(--accent);
  background: var(--surface-1);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.content-frame {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--dashboard), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-soft);
}

.brand-mark-icon {
  width: 21px;
  height: 21px;
  overflow: visible;
}

.brand-mark-icon .route-soft {
  stroke: rgba(244, 246, 243, 0.52);
}

.brand-mark-icon .route-main,
.brand-mark-icon .route-main-ring {
  stroke: var(--accent);
}

.brand-mark-icon .route-main-fill {
  fill: var(--accent);
}

.brand-mark-icon .route-warm-fill {
  fill: var(--signal-warm);
}

.brand-mark-icon .route-cool-ring {
  stroke: #8ce8f7;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 56px;
}

.public-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.public-nav a:hover {
  color: var(--text);
}

.public-menu {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.public-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-soft);
  background: var(--surface-1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

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

.public-menu summary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--control-hover);
}

.public-menu-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 224px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--ground-raised);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.public-menu-panel a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.public-menu-panel a:hover,
.public-menu-panel a:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}

.public-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.guest-actions,
.member-actions,
.public-header-guest,
.public-member-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 0;
}

.member-actions,
.public-member-actions {
  gap: 12px;
}

.public-header-guest {
  gap: 12px;
}

.account-avatar img {
  width: 21px;
  height: 21px;
}

.header-sign-in {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.header-sign-in:hover,
.header-sign-in:focus-visible {
  color: var(--text);
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: color 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.public-header-actions .theme-toggle {
  margin-left: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--control-hover);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: block;
}

.theme-icon-moon {
  display: none;
  fill: currentColor;
  stroke-width: 1.4;
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

.header-account {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.header-account-link {
  text-decoration: none;
  transition: color 150ms ease-out;
}

.header-account-link:hover .header-account-email,
.header-account-link:focus-visible .header-account-email {
  color: var(--accent);
}

.header-account-email {
  max-width: 230px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button,
.compact-button,
.primary-action,
.secondary-action,
.package-action,
.copy-button,
.dialog-close,
.danger-button {
  min-height: 42px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out, transform 150ms ease-out;
}

.text-button {
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--text);
}

.compact-button,
.primary-action,
.package-action {
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.compact-button {
  min-height: 38px;
  padding: 8px 13px;
}

.compact-button:hover,
.primary-action:hover,
.package-action:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.compact-button:active,
.primary-action:active,
.package-action:active,
.secondary-action:active,
.copy-button:active {
  transform: translateY(1px);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  background: transparent;
  text-decoration: none;
}

.secondary-action:hover {
  border-color: rgba(244, 246, 243, 0.3);
  color: var(--text);
  background: var(--surface-1);
}

.environment-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-1);
  font: 500 11px/1 var(--font-mono);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.32);
}

.routing-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  padding-top: 30px;
  padding-bottom: 14px;
}

.hero-copy {
  max-width: 820px;
}

.hero-title {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-word {
  display: block;
  max-width: 100%;
  text-wrap: balance;
  text-shadow: 0 0 36px rgba(61, 220, 132, 0.06);
}

.hero-word > span {
  display: inline-block;
  animation: letter-signal 7.2s cubic-bezier(.22, 1, .36, 1) infinite;
  animation-delay: calc(var(--letter) * 65ms);
}

.hero-title-live {
  display: block;
  min-height: 1.2em;
  color: var(--accent);
  font-size: 34px;
  line-height: 1.15;
}

.kicker,
.section-index,
.sidebar-label {
  color: var(--muted);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.1);
  animation: signal-pulse 2.4s ease-out infinite;
}

.live-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(244, 123, 99, 0.1);
  animation: none;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 25px;
  line-height: 1.3;
}

.hero-detail {
  max-width: 670px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.hero-detail strong {
  color: var(--accent);
}

.hero-savings-badge,
.red-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--danger);
  border-radius: 999px;
  color: var(--danger);
  background: var(--danger-soft);
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
}

.hero-savings-badge {
  margin-inline: 3px;
  font-size: 20px;
  font-weight: 700;
}

.hero-savings-badge:hover {
  background: rgba(244, 123, 99, 0.16);
}

.red-badge {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-console {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--ground-raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: console-signal 6s ease-in-out infinite;
}

.console-bar,
.console-result {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 11px/1 var(--font-mono);
}

.console-title {
  color: var(--text-soft);
}

.console-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.console-state .live-dot {
  width: 6px;
  height: 6px;
}

.hero-console .copy-button {
  margin-left: auto;
}

.hero-console pre {
  min-height: 138px;
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  color: #d8ded8;
  background: var(--surface-1);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
}

.hero-console[data-active-language="python"] pre,
.hero-console[data-active-language="javascript"] pre {
  min-height: 250px;
}

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

.code-accent {
  color: var(--accent);
}

.code-string {
  color: #d5dbd5;
}

.console-result {
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.response-code {
  color: var(--accent);
}

.console-latency {
  margin-left: auto;
  color: var(--muted-dark);
}

.console-latency::after {
  display: inline-block;
  width: 5px;
  height: 9px;
  margin-left: 7px;
  content: "";
  background: var(--accent);
  vertical-align: -1px;
  animation: terminal-cursor 1.2s steps(1, end) infinite;
}

.proof-band {
  border-bottom: 1px solid var(--line);
  background: var(--ground-raised);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid > div {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 3px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.proof-grid > div:first-child {
  padding-left: 0;
}

.proof-grid > div:last-child {
  border-right: 0;
}

.proof-grid strong {
  color: var(--text);
  font: 600 24px/1.2 var(--font-mono);
}

.proof-grid span {
  color: var(--muted);
  font-size: 13px;
}

.model-rail {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 13, 0.86);
}

.model-rail-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 24px;
}

.model-rail-label {
  color: var(--muted-dark);
  font: 500 10px/1 var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.model-marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.model-marquee-track {
  display: flex;
  width: max-content;
  animation: model-flow var(--marquee-duration, 38s) linear infinite;
}

.model-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.model-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  white-space: nowrap;
}

.model-marquee-item strong {
  font-size: 12px;
  font-weight: 500;
}

.model-marquee-item code {
  color: var(--muted-dark);
  font-size: 10px;
}

.model-route-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.34);
}

.model-marquee-item.unavailable .model-route-dot {
  background: var(--muted-dark);
  box-shadow: none;
}

.model-rail a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease-out;
}

.model-rail a span {
  color: var(--accent);
  font: 500 16px/1 var(--font-mono);
}

.model-rail a:hover {
  color: var(--text);
}

.model-marquee:hover .model-marquee-track,
.model-marquee:focus-within .model-marquee-track {
  animation-play-state: paused;
}

.section-band {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: 90px;
  align-items: start;
}

.section-intro .section-index {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

.section-intro h2 {
  max-width: 520px;
}

.section-intro > p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.process-list {
  margin-top: 64px;
  border-top: 1px solid var(--line-strong);
}

.process-list article {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 240ms ease-out;
}

.process-list article > span {
  color: var(--accent);
  font: 500 12px/1.5 var(--font-mono);
  transition: color 240ms ease-out, transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.process-list article > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 30px;
}

.process-list h3,
.process-list p {
  margin-bottom: 0;
}

.process-list p {
  max-width: 660px;
  color: var(--muted);
  transition: color 240ms ease-out;
}

.process-list article.is-active {
  border-color: rgba(61, 220, 132, 0.25);
}

.process-list article.is-active > span {
  color: var(--accent-strong);
  transform: translateX(6px);
}

.process-list article.is-active p {
  color: var(--text-soft);
}

.section-heading-row,
.dashboard-section-heading,
.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading-row {
  margin-bottom: 42px;
}

.section-heading-row .section-index,
.dashboard-section-heading .section-index,
.workspace-heading .section-index {
  margin-bottom: 12px;
}

.section-heading-row h2,
.dashboard-section-heading h2,
.workspace-heading h2 {
  margin-bottom: 0;
}

.section-subcopy {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 24px;
  line-height: 1.25;
}

.section-heading-row > p {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--muted);
}

.pricing-section {
  background: var(--ground-raised);
}

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

.package {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 322px;
  overflow: hidden;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
  transition: border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.package::after {
  position: absolute;
  top: -1px;
  left: 20px;
  width: 36px;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.package:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.package.out-of-stock {
  border-color: var(--line);
  background: rgba(17, 19, 16, 0.62);
}

.package.out-of-stock:hover {
  border-color: var(--line);
  background: rgba(17, 19, 16, 0.62);
  box-shadow: none;
  transform: none;
}

.package:hover::after,
.package:focus-within::after {
  transform: scaleX(1);
}

.package.out-of-stock::after {
  background: var(--muted-dark);
}

.package-topline {
  display: flex;
  min-height: 42px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 28px;
}

.package-credit {
  color: var(--accent);
  font: 600 12px/1.4 var(--font-mono);
}

.savings-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(61, 220, 132, 0.24);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 500 10px/1 var(--font-mono);
}

.stock-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(244, 123, 99, 0.28);
  border-radius: 999px;
  color: var(--danger);
  background: var(--danger-soft);
  font: 500 10px/1 var(--font-mono);
}

.package-copy p {
  min-height: 48px;
  margin-bottom: 22px;
  color: var(--muted);
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 18px;
}

.package-price strong {
  font-size: 25px;
  line-height: 1;
}

.package-price span {
  color: var(--muted-dark);
  font: 500 11px/1.4 var(--font-mono);
}

.package-action {
  width: 100%;
}

.package-action-disabled {
  display: block;
  border-color: var(--border);
  color: var(--muted-dark);
  background: var(--panel);
  cursor: not-allowed;
  text-align: center;
}

a.package-action {
  display: block;
  text-align: center;
  text-decoration: none;
}

.pricing-note {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted-dark);
  font-size: 12px;
}

.referral-earnings-section {
  background: var(--ground);
}

.referral-earnings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.referral-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 1px;
  border-radius: 6px;
  background: var(--line);
}

.referral-benefits > div {
  min-height: 118px;
  padding: 18px;
  background: var(--surface-1);
}

.referral-benefits strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.referral-benefits span {
  color: var(--muted);
  font-size: 13px;
}

.referral-earning-card {
  display: grid;
  min-height: 190px;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
  transition: border-color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}

.referral-earning-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.referral-earning-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.referral-earning-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--line);
}

.referral-earning-card dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: var(--ground-raised);
}

.referral-earning-card dt {
  color: var(--muted);
  font-size: 12px;
}

.referral-earning-card dd {
  color: var(--accent);
  font: 600 13px/1.3 var(--font-mono);
  white-space: nowrap;
}

.referral-earning-card > small {
  align-self: end;
  color: var(--muted-dark);
  font-size: 12px;
  line-height: 1.5;
}

.connection-layout,
.reliability-layout,
.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.connection-copy > p:not(.section-index) {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
}

.endpoint-facts {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.endpoint-facts > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.endpoint-facts dt {
  color: var(--muted-dark);
  font: 500 11px/1.6 var(--font-mono);
  text-transform: uppercase;
}

.endpoint-facts dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.connection-box {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.code-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--line);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.code-tabs button {
  min-height: 32px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  color: var(--muted-dark);
  background: transparent;
  font: 500 11px/1 var(--font-mono);
}

.code-tabs button:hover {
  color: var(--text-soft);
}

.code-tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-3);
}

.copy-button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--ground-raised);
  font: 500 11px/1 var(--font-mono);
}

.copy-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
}

.code-toolbar .copy-button {
  margin-left: auto;
}

.connection-box pre {
  min-height: 390px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #d8ded8;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
  word-break: normal;
}

.reliability-section {
  background: var(--surface-1);
}

.reliability-copy p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
}

.reliability-copy p:last-child {
  margin-bottom: 0;
}

.reliability-copy strong,
.reliability-copy code {
  color: var(--text);
}

.model-section {
  padding: 40px 0;
  scroll-margin-top: var(--header-height);
}

.model-disclosure {
  width: 100%;
}

.model-disclosure summary {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

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

.model-disclosure summary > span:first-child {
  display: grid;
  gap: 8px;
}

.model-disclosure summary strong {
  font-size: 20px;
}

.summary-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font: 500 12px/1 var(--font-mono);
}

.summary-meta > span:last-child {
  color: var(--accent);
  font-size: 20px;
  transition: transform 150ms ease-out;
}

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

.model-disclosure[open] .rate-table {
  animation: disclose-rates 220ms ease-out both;
}

.rate-table {
  border-top: 1px solid var(--line-strong);
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(100px, 0.6fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rate-model {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rate-model strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.rate-model code {
  color: var(--muted-dark);
  font-size: 11px;
}

.route-chip {
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-1);
  font: 500 10px/1.4 var(--font-mono);
}

.route-chip.unavailable {
  border-color: rgba(244, 123, 99, 0.24);
  color: var(--danger);
  background: var(--danger-soft);
}

.rate-value {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 5px;
}

.rate-value span {
  grid-column: 1 / -1;
  color: var(--muted-dark);
  font: 500 9px/1.4 var(--font-mono);
  text-transform: uppercase;
}

.rate-value strong {
  color: var(--text-soft);
  font: 600 15px/1.4 var(--font-mono);
}

.rate-value small {
  color: var(--muted-dark);
  font-size: 10px;
}

.closing-band {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  background: var(--ground-raised);
}

.closing-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.closing-layout h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.closing-layout p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  min-height: 190px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  color: var(--muted-dark);
  font-size: 12px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(360px, 2fr) minmax(190px, auto);
  min-height: 190px;
  align-items: start;
  gap: 44px;
  padding-block: 34px;
}

.footer-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1.25fr;
  gap: 28px;
}

.footer-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-group strong {
  margin-bottom: 2px;
  color: var(--muted-dark);
  font: 600 9px/1.4 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
}

.footer-inner code {
  color: var(--muted);
}

.footer-operator {
  max-width: 210px;
  color: var(--muted-dark);
  line-height: 1.5;
  text-align: right;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.footer-inner a:hover {
  color: var(--text);
}

.footer-link-button {
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer-link-button:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.analytics-consent {
  position: fixed;
  z-index: 220;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(620px, calc(100vw - 40px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.analytics-consent-copy strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.analytics-consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.analytics-consent-copy a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: grid;
  gap: 8px;
}

.analytics-consent-actions button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-soft);
  background: var(--ground-raised);
  font-size: 12px;
  white-space: nowrap;
}

.analytics-consent-actions .analytics-consent-accept {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
}

.dashboard {
  min-height: calc(100vh - var(--header-height));
  background: rgba(9, 10, 9, 0.48);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  width: min(var(--dashboard), 100%);
  min-height: calc(100vh - var(--header-height));
  margin-inline: auto;
}

.dashboard-sidebar {
  position: sticky;
  top: var(--header-height);
  display: flex;
  height: calc(100vh - var(--header-height));
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--ground-raised);
}

.sidebar-label {
  margin-bottom: 14px;
  padding-left: 10px;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 2px;
}

.dashboard-sidebar nav a {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-sidebar nav a:hover {
  color: var(--text-soft);
  background: var(--surface-1);
}

.dashboard-sidebar nav a.active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 2px 0 var(--accent);
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface-1);
}


.workspace {
  min-width: 0;
  padding: 42px 40px 80px;
}

.workspace-heading {
  align-items: center;
  padding-bottom: 30px;
}

.workspace-heading h2 {
  font-size: 32px;
  line-height: 1.1;
}

.account-metrics {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
}

.account-metrics > div {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 4px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.account-metrics > div:last-child {
  border-right: 0;
}

.account-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.account-metrics strong {
  color: var(--text);
  font: 600 27px/1.2 var(--font-mono);
}

.account-metrics .primary-metric strong {
  color: var(--accent);
  font-size: 35px;
}

.account-metrics small {
  color: var(--muted-dark);
  font-size: 11px;
}

.referral-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 1px;
  border-radius: 6px;
  background: var(--line);
}

.referral-metrics > div {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 4px;
  padding: 18px;
  background: var(--surface-1);
}

.referral-metrics span,
.referral-metrics small {
  color: var(--muted-dark);
  font-size: 10px;
}

.referral-metrics strong {
  color: var(--text-soft);
  font: 600 25px/1.2 var(--font-mono);
}

.referral-metrics .primary-metric strong {
  color: var(--accent);
}

.referral-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 14px;
  margin-bottom: 14px;
}

.referral-panel {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
}

.referral-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.referral-panel-heading h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.referral-panel > code {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  background: var(--ground-raised);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.bonus-key-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.bonus-key-panel input {
  min-height: 42px;
}

.referral-tables {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
}

.referral-tables td small,
.admin-nested-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: 10px;
}

.dashboard-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.workspace-heading {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.dashboard-section-heading {
  margin-bottom: 20px;
}

.dashboard-section-heading h2 {
  font-size: 21px;
}

.dashboard-section-heading > p {
  margin-bottom: 2px;
  color: var(--muted-dark);
  font-size: 12px;
}

.quickstart-section {
  padding-top: 34px;
}

.credential-section {
  padding-top: 0;
}

.endpoint-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.endpoint-inline code {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-code pre {
  min-height: 280px;
  max-height: 430px;
}

.key-list {
  display: grid;
  gap: 12px;
}

.api-key-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
}

.api-key-card.revoked {
  opacity: 0.72;
}

.api-key-heading,
.key-secret-row,
.api-key-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
}

.api-key-heading {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.api-key-heading > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.api-key-heading strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-key-heading small {
  flex: 0 0 auto;
  color: var(--muted-dark);
  font: 500 10px/1.4 var(--font-mono);
}

.key-secret-row {
  min-height: 72px;
}

.key-secret {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-secret.revealed {
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  white-space: normal;
}

.key-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.rotate-button {
  min-height: 32px;
  padding: 5px 7px;
  font: 500 11px/1 var(--font-mono);
}

.api-key-meta {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--ground-raised);
}

.api-key-meta .key-balance {
  width: min(240px, 42%);
}

.key-package {
  display: grid;
  min-width: 120px;
  gap: 2px;
}

.key-package span {
  color: var(--muted-dark);
  font: 500 9px/1.3 var(--font-mono);
  text-transform: uppercase;
}

.key-package strong {
  color: var(--text-soft);
  font-size: 12px;
}

.key-package small {
  color: var(--muted-dark);
  font: 500 10px/1.35 var(--font-mono);
}

.key-empty .secondary-action {
  justify-self: center;
  margin-top: 12px;
}

.connect-workbench {
  display: grid;
  grid-template-columns: minmax(230px, 0.6fr) minmax(280px, 0.74fr) minmax(360px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.model-picker-panel,
.model-detail-panel {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-1);
}

.model-picker-panel {
  height: 458px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.model-picker-heading {
  display: flex;
  min-height: 82px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.model-picker-heading > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.model-picker-heading strong,
.model-picker-heading code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-picker-heading strong {
  font-size: 15px;
}

.model-picker-heading code {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  color: var(--muted-dark);
  font-size: 10px;
  line-height: 1.45;
}

.model-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.model-search input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  font: 500 11px/1.4 var(--font-mono);
}

.model-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--surface-3) transparent;
}

.model-option {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text-soft);
  background: transparent;
  text-align: left;
}

.model-option:hover {
  background: var(--surface-2);
}

.model-option[aria-selected="true"] {
  box-shadow: inset 2px 0 var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.model-option > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.model-option strong,
.model-option code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-option strong {
  font-size: 12px;
}

.model-option code,
.model-option small {
  color: var(--muted-dark);
  font: 500 9px/1.35 var(--font-mono);
}

.model-option small {
  flex: 0 0 auto;
  text-align: right;
}

.model-list-empty {
  display: grid;
  min-height: 100%;
  place-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.model-catalog-note {
  min-height: 38px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font: 500 9px/1.4 var(--font-mono);
}

.model-detail-panel {
  height: 458px;
  min-height: 458px;
  padding: 16px;
  align-content: start;
  gap: 11px;
}

.model-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-detail-panel h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  letter-spacing: 0;
}

.model-detail-panel > code {
  color: var(--muted-dark);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.model-detail-panel .selected-rate {
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--ground-raised);
}

.model-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.model-detail-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ground-raised);
}

.model-detail-grid dt {
  color: var(--muted-dark);
  font: 600 9px/1.3 var(--font-mono);
  text-transform: uppercase;
}

.model-detail-grid dd {
  margin: 0;
  color: var(--text-soft);
  font: 650 11px/1.35 var(--font-mono);
  overflow-wrap: anywhere;
}

.model-detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.connection-stack {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr);
}

.selected-rate {
  min-height: 44px;
  padding: 10px 2px;
  color: var(--muted);
  font: 500 11px/1.5 var(--font-mono);
}

.connect-workbench .dashboard-code pre {
  min-height: 411px;
  max-height: 411px;
}

.admin-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  border-radius: 6px;
  background: var(--line);
}

.admin-metrics > div {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 4px;
  padding: 16px;
  background: var(--surface-1);
}

.admin-metrics span,
.admin-metrics small {
  color: var(--muted-dark);
  font-size: 10px;
}

.admin-metrics strong {
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font: 600 22px/1.2 var(--font-mono);
}

.admin-metrics .vault-metric strong {
  color: var(--accent);
}

.admin-block,
.admin-account-detail {
  margin-top: 34px;
}

.admin-account-detail {
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.admin-block-heading,
.admin-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.admin-block-heading h3,
.admin-detail-heading h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.admin-block-heading > p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 11px;
}

.admin-detail-heading > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-detail-heading code {
  color: var(--muted-dark);
  font-size: 10px;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-search input {
  width: min(280px, 34vw);
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.admin-pagination {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-dark);
  font: 500 10px/1.4 var(--font-mono);
}

.admin-pagination > div {
  display: flex;
  gap: 7px;
}

.admin-email {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 8px;
}

.admin-email strong {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-email .environment-badge {
  min-height: 20px;
  font-size: 8px;
}

.admin-row-actions {
  display: flex;
  min-width: 112px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-detail-block {
  margin-top: 30px;
}

.admin-nested-table {
  margin-top: 12px;
}

.admin-balance {
  display: grid;
  min-width: 100px;
  gap: 2px;
}

.admin-balance strong {
  font: 600 12px/1.3 var(--font-mono);
}

.admin-balance small {
  color: var(--muted-dark);
  font: 500 9px/1.3 var(--font-mono);
}

.admin-revoke-button {
  min-width: 104px;
  border: 1px solid rgba(244, 123, 99, 0.22);
}

.admin-audit-block td:nth-child(3) {
  color: var(--muted);
}

.dashboard-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topup-target-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  background: var(--surface-1);
}

.auth-alert.checkout-alert {
  margin-bottom: 14px;
  font-size: 13px;
}

.topup-target-panel[hidden] {
  display: none;
}

.topup-target-panel > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.topup-target-panel strong {
  color: var(--text);
}

.topup-target-panel code {
  overflow: hidden;
  color: var(--accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--muted-dark);
  background: var(--ground-raised);
  font: 500 10px/1.4 var(--font-mono);
  text-transform: uppercase;
}

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

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.012);
}

td code {
  color: var(--text-soft);
  font-size: 12px;
}

.usage-table {
  min-width: 900px;
}

.usage-table:not(.admin-usage-table) {
  table-layout: fixed;
}

.usage-table:not(.admin-usage-table) th,
.usage-table:not(.admin-usage-table) td {
  padding-inline: 10px;
}

.usage-table:not(.admin-usage-table) th:nth-child(1) { width: 13%; }
.usage-table:not(.admin-usage-table) th:nth-child(2) { width: 19%; }
.usage-table:not(.admin-usage-table) th:nth-child(3) { width: 17%; }
.usage-table:not(.admin-usage-table) th:nth-child(4) { width: 15%; }
.usage-table:not(.admin-usage-table) th:nth-child(5) { width: 10%; }
.usage-table:not(.admin-usage-table) th:nth-child(6) { width: 7%; }
.usage-table:not(.admin-usage-table) th:nth-child(7) { width: 11%; }
.usage-table:not(.admin-usage-table) th:nth-child(8) { width: 8%; }

.usage-table:not(.admin-usage-table) th:last-child,
.usage-table:not(.admin-usage-table) td:last-child {
  padding-inline: 4px;
  text-align: center;
}

.admin-usage-table {
  min-width: 1350px;
}

.usage-summary-row td {
  vertical-align: top;
}

.usage-summary-row time {
  display: block;
  width: 112px;
  color: var(--text-soft);
  font: 500 11px/1.45 var(--font-mono);
}

.usage-request,
.usage-model,
.usage-latency {
  display: grid;
  gap: 4px;
}

.usage-request {
  min-width: 190px;
}

.usage-request code,
.usage-model strong {
  color: var(--text-soft);
  font: 600 11px/1.45 var(--font-mono);
}

.usage-request small,
.usage-model small,
.usage-latency small {
  color: var(--muted-dark);
  font: 500 9px/1.4 var(--font-mono);
}

.usage-model {
  min-width: 170px;
}

.usage-model small {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-token-summary {
  display: flex;
  min-width: 130px;
  align-items: flex-start;
  gap: 12px;
}

.usage-token-summary span {
  display: grid;
  gap: 2px;
  color: var(--text-soft);
  font: 600 11px/1.3 var(--font-mono);
}

.usage-token-summary small {
  color: var(--muted-dark);
  font: 500 8px/1.2 var(--font-mono);
  text-transform: uppercase;
}

.usage-spend {
  display: grid;
  min-width: 82px;
  gap: 2px;
}

.usage-spend strong {
  color: var(--text-soft);
  font: 600 11px/1.3 var(--font-mono);
}

.usage-spend small {
  color: var(--muted-dark);
  font: 500 8px/1.2 var(--font-mono);
  text-transform: uppercase;
}

.usage-latency {
  min-width: 92px;
}

.usage-latency strong {
  color: var(--text-soft);
  font: 600 11px/1.4 var(--font-mono);
}

.usage-detail-toggle {
  min-width: 60px;
}

.usage-table:not(.admin-usage-table) .usage-summary-row time {
  width: auto;
}

.usage-table:not(.admin-usage-table) .usage-request,
.usage-table:not(.admin-usage-table) .usage-model,
.usage-table:not(.admin-usage-table) .usage-token-summary,
.usage-table:not(.admin-usage-table) .usage-spend,
.usage-table:not(.admin-usage-table) .usage-latency {
  min-width: 0;
}

.usage-table:not(.admin-usage-table) .usage-token-summary {
  gap: 8px;
}

.usage-table:not(.admin-usage-table) .usage-request code,
.usage-table:not(.admin-usage-table) .usage-model strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-table:not(.admin-usage-table) .usage-model small {
  max-width: 100%;
}

.usage-table:not(.admin-usage-table) .usage-detail-toggle {
  width: 100%;
  min-width: 0;
}

.usage-detail-row td {
  padding: 0;
  background: var(--ground-raised);
}

.usage-detail-row:hover td {
  background: var(--ground-raised);
}

.usage-detail-panel {
  display: grid;
  gap: 18px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line-strong);
}

.usage-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 22px;
}

.usage-detail-grid > div,
.usage-trace-grid > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.usage-detail-grid span,
.usage-trace-grid > div > span,
.usage-error-detail > span,
.usage-header-detail > span {
  color: var(--muted-dark);
  font: 500 9px/1.35 var(--font-mono);
  text-transform: uppercase;
}

.usage-detail-grid strong {
  overflow: hidden;
  color: var(--text-soft);
  font: 500 11px/1.45 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-trace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
}

.usage-copy-value {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.usage-copy-value code {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-copy-button {
  min-height: 26px;
  padding: 3px 7px;
  flex: 0 0 auto;
}

.usage-empty-value {
  color: var(--muted-dark);
  font: 500 11px/1.45 var(--font-mono);
}

.usage-error-detail,
.usage-header-detail {
  display: grid;
  gap: 7px;
}

.usage-error-detail code {
  padding: 10px 12px;
  border-left: 2px solid var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
}

.usage-header-list {
  display: grid;
  max-height: 150px;
  overflow: auto;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.usage-header-list code {
  color: var(--muted);
  font-size: 10px;
  white-space: pre-wrap;
  word-break: break-all;
}

.key-balance {
  display: grid;
  width: 148px;
  gap: 5px;
}

.key-balance > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.key-balance strong {
  color: var(--text-soft);
  font: 600 13px/1.2 var(--font-mono);
}

.key-balance small {
  color: var(--muted-dark);
  font: 500 9px/1.3 var(--font-mono);
}

.balance-track {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.balance-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.empty {
  height: 86px;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  display: grid;
  min-height: 130px;
  grid-column: 1 / -1;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-1);
  text-align: center;
}

.empty-state strong {
  color: var(--text-soft);
}

.status,
.http-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font: 500 10px/1 var(--font-mono);
}

.status.active,
.http-status {
  color: var(--accent);
  background: var(--accent-soft);
}

.status.pending {
  color: var(--signal-warm);
  background: rgba(238, 194, 103, 0.12);
}

.status.revoked,
.http-status.failed {
  color: var(--danger);
  background: var(--danger-soft);
}

.danger-button {
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 11px;
}

.danger-button:hover {
  background: var(--danger-soft);
}

.compact-models {
  padding: 22px 0;
}

.auth-dialog,
.key-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

.auth-dialog[open],
.key-dialog[open] {
  animation: dialog-enter 260ms cubic-bezier(.22, 1, .36, 1) both;
}

.key-dialog {
  width: min(560px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  animation: backdrop-enter 200ms ease-out both;
}

.dialog-body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-heading .section-index {
  margin-bottom: 9px;
}

.dialog-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.dialog-close {
  display: grid;
  width: 36px;
  min-height: 36px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--ground-raised);
  font-size: 22px;
  font-weight: 400;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.auth-intro,
.dialog-body > p {
  margin-bottom: 0;
  color: var(--muted);
}

.dialog-body label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.dialog-body label small {
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 400;
}

.legal-confirmations {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground-raised);
}

.dialog-body .legal-check,
.legal-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.legal-check input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.legal-check a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.payment-consent-error {
  margin: 0;
}

.auth-field,
#reset-password-fields {
  display: grid;
  gap: 7px;
}

#reset-password-fields {
  gap: 16px;
}

#reset-password-fields[hidden] {
  display: none;
}

.auth-field-heading {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-field-heading label {
  display: block;
}

.auth-field small {
  color: var(--muted-dark);
  font-size: 10px;
}

.forgot-password-trigger {
  min-height: 0;
  padding: 0;
  color: var(--accent);
  font-size: 12px;
}

.dialog-body .primary-action {
  width: 100%;
}

.switch {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.switch .text-button {
  color: var(--accent);
}

.dialog-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground-raised);
}

.auth-alert {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border: 1px solid rgba(244, 123, 99, 0.42);
  border-left-width: 3px;
  border-radius: 4px;
  color: #ffd7cf;
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px rgba(244, 123, 99, 0.08);
  filter: none;
  font-size: 12px;
  line-height: 1.5;
  opacity: 1;
  transform: none;
}

.auth-alert[hidden] {
  display: none;
}

.auth-alert.success {
  border-color: rgba(64, 220, 140, 0.42);
  color: #c9ffe2;
  background: var(--accent-soft);
}

.dialog-body > code {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  background: var(--ground-raised);
  font-size: 12px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-actions .primary-action,
.dialog-actions .secondary-action {
  width: auto;
}

.payment-order-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground-raised);
}

.payment-order-summary span {
  color: var(--muted);
  font: 500 11px/1.4 var(--font-mono);
  text-align: right;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-options button {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: var(--ground-raised);
  text-align: left;
  transition: border-color 150ms ease-out, background 150ms ease-out, transform 150ms ease-out;
}

.payment-options button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.payment-options button:active {
  transform: translateY(1px);
}

.payment-options button span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notice {
  position: fixed;
  z-index: 100;
  right: 20px;
  top: calc(var(--header-height) + 16px);
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 13px;
  border: 1px solid rgba(61, 220, 132, 0.62);
  border-radius: 4px;
  color: #eafff3;
  background: #101914;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  animation: notice-enter 220ms cubic-bezier(.22, 1, .36, 1) both;
}

.notice.error {
  border-color: rgba(244, 123, 99, 0.78);
  color: #fff1ee;
  background: #2a1514;
}

html[data-theme="light"] .brand-mark-icon .route-soft {
  stroke: rgba(9, 17, 13, 0.45);
}

html[data-theme="light"] .brand-mark-icon .route-cool-ring {
  stroke: #0c8599;
}

html[data-theme="light"] input:hover,
html[data-theme="light"] .secondary-action:hover {
  border-color: rgba(9, 17, 13, 0.26);
}

html[data-theme="light"] .hero {
  background: rgba(245, 247, 242, 0.42);
}

html[data-theme="light"] .hero-word {
  text-shadow: 0 0 24px rgba(19, 122, 69, 0.08);
}

html[data-theme="light"] .hero-console,
html[data-theme="light"] .connection-box {
  box-shadow: 0 1px 2px rgba(9, 17, 13, 0.08), 0 24px 60px rgba(9, 17, 13, 0.06);
}

html[data-theme="light"] .code-string,
html[data-theme="light"] .hero-console pre,
html[data-theme="light"] .connection-box pre {
  color: #25342b;
}

html[data-theme="light"] .model-rail {
  background: rgba(238, 243, 236, 0.86);
}

html[data-theme="light"] .package:hover {
  box-shadow: 0 18px 40px rgba(9, 17, 13, 0.1);
}

html[data-theme="light"] .package.out-of-stock,
html[data-theme="light"] .package.out-of-stock:hover {
  background: rgba(238, 243, 236, 0.76);
}

html[data-theme="light"] .dashboard {
  background: rgba(245, 247, 242, 0.64);
}

html[data-theme="light"] tbody tr:hover td {
  background: rgba(9, 17, 13, 0.025);
}

html[data-theme="light"] .auth-dialog,
html[data-theme="light"] .key-dialog {
  box-shadow: 0 24px 80px rgba(9, 17, 13, 0.2);
}

html[data-theme="light"] dialog::backdrop {
  background: rgba(9, 17, 13, 0.48);
}

html[data-theme="light"] .notice {
  color: #0b613a;
  background: #effcf5;
  box-shadow: 0 12px 38px rgba(9, 17, 13, 0.15);
}

html[data-theme="light"] .notice.error {
  color: var(--danger);
  background: #fff2ef;
}

html[data-theme="light"] .auth-alert {
  color: var(--danger);
}

html[data-theme="light"] .auth-alert.success {
  color: #087544;
}

@keyframes ambient-drift {
  to { transform: translate3d(96px, 96px, 0); }
}

@keyframes letter-signal {
  0%, 12%, 100% {
    color: var(--text);
    text-shadow: 0 0 36px rgba(61, 220, 132, 0.06);
    transform: translateY(0);
  }
  4% {
    color: #fff;
    text-shadow: 0 0 24px rgba(61, 220, 132, 0.23);
    transform: translateY(-1px);
  }
}

@keyframes model-flow {
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes notice-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes console-signal {
  0%, 100% {
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  50% {
    border-color: rgba(61, 220, 132, 0.28);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.34), 0 0 34px rgba(61, 220, 132, 0.055);
  }
}

@keyframes terminal-cursor {
  0%, 54% { opacity: 1; }
  55%, 100% { opacity: 0.18; }
}

@keyframes signal-pulse {
  0%, 45% { box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.1); }
  80%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
}

@keyframes disclose-rates {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .package-grid,
  .dashboard-packages,
  .referral-earnings-grid,
  .referral-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-layout {
    gap: 42px;
  }

  .dashboard-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: 30px;
  }
}

@media (max-width: 1040px) {
  .public-nav {
    gap: 22px;
    margin-left: 36px;
  }
}

@media (max-width: 920px) {
  .public-nav {
    display: none;
  }

  .public-menu {
    display: block;
    margin-left: 24px;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 34px;
  }

  .public-nav {
    margin-left: 32px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid > div:nth-child(2) {
    border-right: 0;
  }

  .proof-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .proof-grid > div:nth-child(3) {
    padding-left: 0;
  }

  .section-intro,
  .connection-layout,
  .reliability-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .process-list article > div {
    grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  }

  .connection-box pre {
    min-height: 320px;
  }

  .rate-row {
    grid-template-columns: minmax(180px, 1.3fr) minmax(90px, 0.7fr) repeat(2, minmax(105px, 0.8fr));
    gap: 12px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    display: flex;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-sidebar > div:first-child {
    min-width: 0;
  }

  .sidebar-label {
    display: none;
  }

  .dashboard-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .dashboard-sidebar nav a {
    flex: 0 0 auto;
  }

  .header-account-email {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 58px;
  }

  .content-frame,
  .header-inner {
    width: min(100% - 32px, var(--content));
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    height: var(--header-height);
  }

  .text-button,
  .compact-button,
  .theme-toggle,
  .primary-action,
  .secondary-action,
  .package-action,
  .copy-button,
  .dialog-close,
  .danger-button,
  .code-tabs button {
    min-width: 44px;
    min-height: 44px;
  }

  .dialog-close {
    width: 44px;
  }

  .public-nav {
    display: none;
  }

  .public-menu {
    margin-left: 16px;
  }

  .public-header-actions {
    gap: 8px;
  }

  .model-rail-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .model-rail-label {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .hero-title-live {
    font-size: 26px;
  }

  .hero-console {
    margin-top: 20px;
  }

  .hero-console pre {
    min-height: 152px;
    padding: 18px 16px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.75;
  }

  .hero-console[data-active-language="python"] pre,
  .hero-console[data-active-language="javascript"] pre {
    min-height: 250px;
  }

  .console-bar,
  .console-result {
    padding-inline: 12px;
  }

  .console-result {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .console-latency {
    width: 100%;
    margin-left: 28px;
  }

  .section-band {
    padding: 70px 0;
  }

  .section-heading-row,
  .dashboard-section-heading,
  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-heading-row {
    margin-bottom: 30px;
  }

  .process-list {
    margin-top: 46px;
  }

  .process-list article {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .process-list article > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .package-grid,
  .dashboard-packages,
  .referral-earnings-grid,
  .referral-benefits {
    grid-template-columns: 1fr;
  }

  .package {
    min-height: 300px;
  }

  .connection-box pre {
    min-height: 300px;
    padding: 18px;
    font-size: 11px;
  }

  .rate-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 16px 0;
  }

  .route-chip {
    justify-self: end;
  }

  .rate-value {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .closing-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .closing-layout .primary-action {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 28px;
  }

  .footer-links {
    width: 100%;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-operator {
    max-width: none;
    text-align: left;
  }

  .analytics-consent {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-consent-actions {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-sidebar {
    padding-inline: 16px;
  }

  .workspace {
    padding: 30px 16px 60px;
  }

  .workspace-heading {
    padding-bottom: 22px;
  }

  .account-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .account-metrics > div {
    min-height: 108px;
    padding: 16px;
  }

  .account-metrics > div:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-metrics > div:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .account-metrics > div:last-child {
    border-right: 0;
  }

  .referral-metrics,
  .referral-grid,
  .referral-tables {
    grid-template-columns: 1fr;
  }

  .referral-metrics > div {
    min-height: 94px;
  }

  .referral-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .endpoint-inline {
    width: 100%;
    justify-content: space-between;
  }

  .endpoint-inline code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-section {
    padding: 32px 0;
  }

  .credential-section {
    padding-top: 0;
  }

  .connect-workbench {
    grid-template-columns: 1fr;
  }

  .model-picker-panel {
    height: 420px;
  }

  .model-detail-panel {
    height: auto;
    min-height: 0;
  }

  .connect-workbench .dashboard-code pre {
    min-height: 340px;
    max-height: 420px;
  }

  .api-key-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .key-secret-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .key-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .api-key-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .api-key-meta .key-balance {
    width: 100%;
    grid-column: 1 / -1;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topup-target-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-block-heading,
  .admin-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search {
    width: 100%;
  }

  .admin-search label {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-search input {
    width: 100%;
  }

  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .notice {
    right: 16px;
    left: 16px;
    max-width: none;
  }

  h1 {
    font-size: 42px;
  }

  .guest-actions .compact-button {
    display: none;
  }

  .member-actions .environment-badge,
  .public-member-actions .environment-badge {
    display: none;
  }

  .member-actions,
  .public-member-actions {
    gap: 9px;
  }

  .header-account {
    padding-left: 0;
    border-left: 0;
  }

  .hero-detail {
    font-size: 15px;
  }

  .hero-title-live {
    font-size: 24px;
  }

  .routing-field {
    opacity: 0.76;
  }

  .model-marquee-item code {
    display: none;
  }

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

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .console-state {
    font-size: 0;
  }

  .hero-console pre {
    min-height: 148px;
  }

  .hero-console[data-active-language="python"] pre,
  .hero-console[data-active-language="javascript"] pre {
    min-height: 248px;
  }

  .hero-console .console-result {
    gap: 8px;
  }

  .proof-grid > div {
    min-height: 92px;
    padding-inline: 14px;
  }

  .proof-grid strong {
    font-size: 20px;
  }

  .proof-grid span {
    font-size: 11px;
  }

  .package-topline {
    min-height: auto;
  }

  .code-toolbar {
    padding-left: 6px;
  }

  .code-tabs button {
    padding-inline: 7px;
  }

  .model-disclosure summary {
    gap: 12px;
  }

  .summary-meta > span:first-child {
    display: none;
  }

  .rate-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-chip {
    justify-self: start;
  }

  .rate-value {
    grid-template-columns: auto auto 1fr;
    gap: 5px;
    align-items: baseline;
  }

  .rate-value span {
    grid-column: auto;
  }

  .dialog-body {
    padding: 20px;
  }

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

  .dialog-actions .primary-action,
  .dialog-actions .secondary-action {
    width: 100%;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .header-sign-in {
    display: none;
  }

  .public-menu summary {
    padding-inline: 9px;
  }
}

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

  .footer-group:last-child {
    grid-column: 1 / -1;
  }

  .analytics-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .model-marquee {
    overflow-x: auto;
    mask-image: none;
  }

  .model-marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .model-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

.data-saver .model-marquee {
  overflow-x: auto;
  mask-image: none;
}

.data-saver .model-marquee-track {
  animation: none;
  transform: none;
}

.data-saver .model-marquee-group[aria-hidden="true"] {
  display: none;
}
