:root {
  --bg: #000000;
  --bg-soft: #0a0c10;
  --panel: #161823;
  --panel-2: #1f2230;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.48);
  --brand: #ffffff;
  --accent: #fe2c55;
  --accent-2: #25f4ee;
  --blue: #25f4ee;
  --danger: #ff6b8a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-body {
  min-height: 100vh;
  background: var(--bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--content), calc(100vw - 48px));
  min-height: 68px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #161823;
  color: var(--accent);
  font-weight: 950;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent), #e62548);
  color: #ffffff;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.28);
}

.button:hover,
.nav-cta:hover {
  background: linear-gradient(135deg, #ff456b, var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.36);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-light {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.button-light:hover {
  border-color: var(--accent);
  background: rgba(254, 44, 85, 0.08);
  color: var(--accent);
  box-shadow: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: min(var(--content), calc(100vw - 48px));
  margin: 0 auto;
  padding: 74px 0 54px;
}

.hero-kicker,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(254, 44, 85, 0.1);
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(254, 44, 85, 0.55);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  margin: 0 0 8px;
}

.hero-copy h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--brand);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
}

.lead {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  text-align: center;
}

.hero-actions,
.stats-row,
.button-row,
.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 34px auto 0;
}

.stats-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #080a0f;
  text-align: center;
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  color: var(--brand);
  font-size: 21px;
}

.stats-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.api-service-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  width: min(var(--content), 100%);
  margin: 14px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(254, 44, 85, 0.18), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(37, 244, 238, 0.12), transparent 30%),
    #161823;
  box-shadow: var(--shadow);
}

.service-board-head {
  display: grid;
  align-content: space-between;
  gap: 22px;
  max-width: 720px;
  text-align: left;
}

.service-board-head h2 {
  margin: 14px 0 0;
  color: var(--brand);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.service-board-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.service-board-head::after {
  content: "OpenAI-compatible · Stripe billing · Team-ready";
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(37, 244, 238, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(37, 244, 238, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

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

.api-service-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.api-service-grid article:hover {
  border-color: rgba(254, 44, 85, 0.46);
  background: rgba(254, 44, 85, 0.07);
  transform: translateY(-2px);
}

.api-service-grid article:nth-child(1),
.api-service-grid article:nth-child(4) {
  border-color: rgba(37, 244, 238, 0.24);
}

.api-service-grid article:nth-child(2),
.api-service-grid article:nth-child(3) {
  border-color: rgba(254, 44, 85, 0.24);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(254, 44, 85, 0.34);
  border-radius: 999px;
  background: rgba(254, 44, 85, 0.11);
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.api-service-grid h3 {
  margin: 2px 0 0;
  color: var(--brand);
  font-size: 20px;
}

.api-service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05070b;
  color: #dce7f7;
}

.build-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.build-steps article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 16, 23, 0.7);
}

.build-steps span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.build-steps h3 {
  margin: 4px 0 0;
  color: var(--brand);
  font-size: 18px;
}

.build-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  width: min(var(--content), calc(100vw - 48px));
  margin: 0 auto;
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.feature-grid,
.security-grid,
.price-row {
  display: grid;
  gap: 14px;
}

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

.security-grid,
.price-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.security-grid article,
.price-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 24, 35, 0.86);
}

.feature-grid article,
.security-grid article,
.price-card {
  min-height: 168px;
  padding: 18px;
}

.feature-grid span,
.price-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid h3,
.security-grid h3,
.price-card strong,
.panel h2 {
  margin: 6px 0 0;
  color: var(--brand);
}

.feature-grid p,
.security-grid p,
.price-card p,
.split-section p,
.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
}

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

.capability-grid span {
  display: grid;
  min-height: 82px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--brand);
  font-weight: 850;
}

.security-band {
  background: linear-gradient(180deg, rgba(37, 244, 238, 0.06), transparent);
}

.pricing-band {
  background: transparent;
}

.price-card.featured {
  border-color: rgba(254, 44, 85, 0.5);
  background: rgba(254, 44, 85, 0.08);
}

.price-card strong {
  display: block;
  font-size: 24px;
}

.final-cta {
  display: grid;
  gap: 22px;
  justify-items: center;
  margin-bottom: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(254, 44, 85, 0.18), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(37, 244, 238, 0.1), transparent 30%),
    #161823;
  text-align: center;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 820px;
}

.final-cta p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.app-body {
  background: #000000;
}

.console-body {
  min-height: 100vh;
  color: var(--text);
}

.app-top-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.console-top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
}

.console-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.console-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-pill {
  border-radius: 999px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--accent), #e62548);
  color: #ffffff;
  font-weight: 850;
}

.avatar-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.app-top-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.customer-shell,
.console-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 65px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0a0a0a;
  overflow: hidden;
}

.console-body:not(.is-authenticated) .console-shell {
  display: block;
  min-height: calc(100vh - 65px);
  background:
    radial-gradient(circle at 78% 6%, rgba(254, 44, 85, 0.18), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(37, 244, 238, 0.12), transparent 32%),
    #000000;
}

.console-body:not(.is-authenticated) .console-sidebar,
.console-body:not(.is-authenticated) .console-page-head,
.console-body:not(.is-authenticated) .summary-strip,
.console-body:not(.is-authenticated) .app-panel {
  display: none;
}

.account-console {
  min-height: 760px;
}

.customer-sidebar,
.console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  background: #0a0a0a;
}

.customer-sidebar .brand {
  color: var(--brand);
}

.customer-nav {
  display: grid;
  gap: 18px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 12px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 850;
}

.customer-nav button,
.customer-nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}

.customer-nav button span {
  color: var(--muted-2);
  font-size: 13px;
}

.customer-nav button.active,
.customer-nav button:hover,
.customer-nav a:hover {
  border-color: var(--line);
  background: #161823;
  color: var(--text);
}

.customer-main,
.console-main {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  overflow-x: hidden;
  padding: 22px 28px 44px;
  background: #000000;
}

.console-body:not(.is-authenticated) .console-main {
  display: grid;
  min-height: calc(100vh - 65px);
  place-items: center;
  padding: 56px 24px;
}

.customer-topbar,
.console-page-head,
.customer-grid,
.summary-grid,
.summary-strip,
.playground-grid {
  display: grid;
  gap: 18px;
}

.customer-topbar,
.console-page-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.customer-topbar h1,
.console-page-head h1 {
  margin: 0;
  color: var(--brand);
  font-size: 30px;
}

.breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.topbar-actions .button {
  min-height: 34px;
}

.workspace-switcher {
  display: grid;
  grid-template-columns: auto minmax(180px, 260px);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.workspace-switcher select {
  min-height: 34px;
  padding: 7px 34px 7px 10px;
  border-radius: 999px;
  background: #090c12;
  font-size: 13px;
  font-weight: 760;
}

.session-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.session-pill.ok {
  border-color: rgba(37, 244, 238, 0.35);
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent-2);
}

.status-banner {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #090c12;
  color: var(--muted);
  font-weight: 720;
}

.status-banner.show {
  display: block;
}

.status-banner.success {
  border-color: rgba(37, 244, 238, 0.35);
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent-2);
}

.status-banner.error {
  border-color: rgba(255, 140, 140, 0.36);
  background: rgba(255, 140, 140, 0.07);
  color: var(--danger);
}

.customer-grid,
.playground-grid,
.playground-workbench {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.login-panel {
  display: none;
  width: min(760px, 100%);
}

.show-auth .login-panel {
  display: block;
}

.login-panel .auth-panel {
  grid-template-columns: 1fr;
}

.console-body:not(.is-authenticated) .login-panel {
  width: min(760px, calc(100vw - 40px));
}

.console-body:not(.is-authenticated) .auth-panel {
  gap: 18px;
  border-radius: 20px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(254, 44, 85, 0.12), rgba(37, 244, 238, 0.06) 52%, transparent 78%),
    #161823;
  box-shadow: var(--shadow);
}

.console-body:not(.is-authenticated) .auth-panel h2 {
  margin-top: 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.console-body:not(.is-authenticated) .auth-panel p {
  max-width: 620px;
  font-size: 16px;
}

.is-authenticated #authGrid {
  display: none;
}

.is-authenticated .summary-strip {
  display: none;
}

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

.panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1080px;
  align-items: stretch;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(13, 16, 23, 0.82);
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.resource-card:hover {
  border-color: var(--line-strong);
  background: #11151f;
}

.resource-card strong {
  color: var(--brand);
  font-size: 17px;
}

.resource-card small {
  color: var(--muted);
  line-height: 1.5;
}

.module-hero {
  position: relative;
  min-height: 230px;
  align-content: space-between;
  margin-bottom: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(254, 44, 85, 0.12), rgba(37, 244, 238, 0.05) 48%, transparent 72%),
    rgba(22, 24, 35, 0.88);
}

.module-hero > .status-chip {
  justify-self: start;
}

.module-hero h2 {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--brand);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

.module-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.feature-board,
.plugin-grid,
.template-grid,
.workflow-preview {
  display: grid;
  gap: 14px;
}

.feature-board,
.plugin-grid,
.template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-board article,
.plugin-grid article,
.template-grid article,
.workflow-preview article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(22, 24, 35, 0.86);
}

.feature-board strong,
.plugin-grid strong,
.template-grid strong,
.workflow-preview strong {
  color: var(--brand);
  font-size: 17px;
}

.feature-board span,
.plugin-grid small,
.template-grid span,
.workflow-preview small {
  color: var(--muted);
  line-height: 1.55;
}

.template-grid article {
  min-height: 190px;
}

.template-grid .button {
  align-self: end;
  justify-self: start;
}

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

.workflow-preview article {
  min-height: 176px;
}

.workflow-preview article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(37, 244, 238, 0.28);
  border-radius: 999px;
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent-2);
  font-weight: 950;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(340px, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
}

.overview-hero {
  min-height: 260px;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(254, 44, 85, 0.12), rgba(37, 244, 238, 0.06) 52%, transparent 78%),
    rgba(22, 24, 35, 0.88);
}

.overview-hero h2 {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--brand);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.overview-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.launch-panel {
  align-content: start;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #090c12;
}

.checklist div span {
  grid-row: span 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.checklist div strong {
  color: var(--brand);
}

.checklist div small {
  color: var(--muted);
  line-height: 1.4;
}

.checklist div.complete {
  border-color: rgba(37, 244, 238, 0.28);
  background: rgba(37, 244, 238, 0.06);
}

.checklist div.complete span {
  border-color: rgba(37, 244, 238, 0.4);
  background: rgba(37, 244, 238, 0.12);
  color: var(--accent-2);
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #090c12;
}

.activity-row strong,
.activity-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-row strong {
  color: var(--brand);
  text-transform: capitalize;
}

.activity-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.activity-row > div:last-child {
  text-align: right;
}

.activity-row .credit {
  color: var(--accent);
}

.activity-row .debit {
  color: var(--danger);
}

.create-card {
  cursor: pointer;
}

.plus-box {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: rgba(254, 44, 85, 0.13);
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.plus-box.muted {
  background: #11151f;
  color: var(--muted);
  font-size: 12px;
}

.muted-card {
  opacity: 0.8;
}

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

.compact-metrics {
  margin-bottom: 14px;
}

.metrics-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(13, 16, 23, 0.82);
}

.metrics-grid span,
.metrics-grid strong {
  display: block;
}

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

.metrics-grid strong {
  margin-top: 8px;
  color: var(--brand);
  font-size: 24px;
  overflow-wrap: anywhere;
}

.tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.tabs button.active {
  border-color: rgba(254, 44, 85, 0.45);
  background: rgba(254, 44, 85, 0.1);
  color: var(--accent);
}

.portal-checklist {
  display: grid;
  gap: 10px;
}

.portal-checklist span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #090c12;
  color: var(--brand);
  font-weight: 780;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) repeat(2, minmax(280px, 0.62fr));
  gap: 14px;
  margin-bottom: 14px;
}

.section-head.compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  max-width: none;
  margin-bottom: 4px;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.profile-list span,
.billing-card span,
.usage-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--brand);
}

.balance-panel {
  align-content: start;
}

.balance-hero {
  color: var(--brand);
  font-size: 42px;
  line-height: 1.05;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #07090d;
  color: var(--text);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.secret-input {
  border-color: rgba(37, 244, 238, 0.45);
  background: rgba(37, 244, 238, 0.06);
}

.key-create-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
}

.notice-card {
  border: 1px solid rgba(37, 244, 238, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(37, 244, 238, 0.06);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 760;
}

.amount-pills,
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.amount-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.amount-pill.active,
.amount-pill:hover {
  border-color: rgba(254, 44, 85, 0.45);
  background: rgba(254, 44, 85, 0.1);
  color: var(--accent);
}

.filter-bar {
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #090c12;
}

.filter-bar label {
  min-width: 220px;
}

.playground-workbench {
  display: grid;
  gap: 18px;
}

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

.response-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.assistant-output {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #090c12;
  color: var(--brand);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.raw-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080a0f;
}

.raw-details summary {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.raw-details pre {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.endpoint-card,
.endpoint-grid div,
.model-item,
.error-guide div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #090c12;
}

.endpoint-card {
  display: grid;
  gap: 8px;
}

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

.endpoint-card span,
.endpoint-grid span,
.error-guide span,
.model-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.endpoint-card code,
.endpoint-grid code {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  overflow-wrap: anywhere;
}

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

.code-tabs button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.code-tabs button.active,
.code-tabs button:hover {
  border-color: rgba(254, 44, 85, 0.45);
  background: rgba(254, 44, 85, 0.1);
  color: var(--accent);
}

.code-sample {
  position: relative;
  display: none;
}

.code-sample.active {
  display: block;
}

.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 5px 10px;
  background: #11151f;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.copy-code:hover {
  background: #171d28;
}

.model-list,
.error-guide,
.member-list {
  display: grid;
  gap: 10px;
}

.member-row,
.invitation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.44fr) minmax(110px, 0.32fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #090c12;
}

.invitation-row {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.38fr) minmax(110px, 0.34fr) auto;
}

.member-row strong,
.invitation-row strong,
.member-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.invitation-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-row strong,
.invitation-row strong {
  color: var(--brand);
  text-transform: capitalize;
}

.member-row span,
.invitation-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.invite-form {
  display: grid;
  gap: 12px;
}

.inline-select {
  margin-top: 4px;
  min-height: 34px;
  padding: 7px 9px;
}

.notice-card code {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  overflow-wrap: anywhere;
  text-transform: none;
}

.model-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.model-item strong,
.error-guide strong {
  color: var(--brand);
}

.error-guide div {
  display: grid;
  grid-template-columns: 58px minmax(140px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.error-guide code {
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue);
}

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

.summary-grid div,
.summary-strip div,
.dashboard-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #090c12;
}

.summary-grid span,
.summary-strip span,
.dashboard-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.summary-grid strong,
.summary-strip strong,
.dashboard-item strong {
  display: block;
  margin-top: 7px;
  color: var(--brand);
}

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

.data-table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(120px, 0.65fr) minmax(100px, 0.45fr) minmax(190px, 0.75fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #090c12;
}

.table-head {
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.table-row strong,
.table-row code,
.table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-row strong {
  color: var(--brand);
}

.table-row code {
  color: var(--blue);
  font-size: 12px;
}

.table-action {
  min-height: 32px;
  padding: 6px 10px;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: #161823;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}

.status-chip.active {
  border-color: rgba(37, 244, 238, 0.35);
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent-2);
}

.status-chip.revoked {
  border-color: rgba(255, 140, 140, 0.3);
  background: rgba(255, 140, 140, 0.07);
  color: var(--danger);
}

.status-chip.planned {
  border-color: rgba(37, 244, 238, 0.3);
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent-2);
}

.status-chip.preview {
  border-color: rgba(254, 44, 85, 0.35);
  background: rgba(254, 44, 85, 0.08);
  color: var(--accent);
}

.app-panel {
  display: none;
}

.app-panel.active {
  display: block;
}

.register-only {
  display: none;
}

.auth-register .register-only {
  display: grid;
}

.billing-layout,
.records-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
}

.records-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.billing-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #090c12;
}

.billing-card span,
.billing-card small {
  color: var(--muted);
}

.billing-card strong {
  color: var(--brand);
  font-size: 34px;
}

.subhead {
  margin: 6px 0 12px;
  color: var(--brand);
  font-size: 16px;
}

.ledger-list {
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #090c12;
}

.ledger-row strong,
.ledger-row span,
.ledger-amount {
  display: block;
}

.ledger-row strong {
  color: var(--brand);
  text-transform: capitalize;
}

.ledger-row span,
.ledger-amount span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ledger-amount {
  color: var(--brand);
  text-align: right;
  font-weight: 850;
}

.ledger-amount.credit {
  color: var(--accent);
}

.ledger-amount.debit {
  color: var(--danger);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #080a0f;
}

.empty-state.error {
  border-color: rgba(255, 140, 140, 0.36);
  color: var(--danger);
}

.usage-list {
  display: grid;
  gap: 10px;
}

.usage-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(90px, 0.4fr) 0.42fr 0.45fr 0.45fr minmax(190px, 0.75fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #090c12;
}

.usage-row strong,
.usage-row span {
  display: block;
}

.usage-row strong {
  color: var(--brand);
}

.usage-row span {
  margin-bottom: 4px;
}

.status-text.success {
  color: var(--accent);
}

.status-text.error {
  color: var(--danger);
}

.status-text.disabled,
.status-text.revoked,
.status-text.expired {
  color: var(--danger);
}

.status-text.pending {
  color: var(--accent-2);
}

.sr-debug {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  max-height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

pre {
  min-height: 180px;
  max-height: 390px;
  overflow: auto;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1080px) {
  .landing-hero,
  .api-service-board,
  .feature-grid,
  .security-grid,
  .price-row,
  .split-section,
  .customer-shell,
  .console-shell,
  .customer-grid,
  .account-grid,
  .summary-strip,
  .billing-layout,
  .records-grid,
  .key-create-row,
  .filter-bar,
  .integration-grid,
  .endpoint-grid,
  .error-guide div,
  .table-row,
  .usage-row,
  .member-row,
  .invitation-row,
  .team-grid,
  .playground-grid,
  .playground-workbench,
  .playground-controls,
  .overview-grid,
  .feature-board,
  .plugin-grid,
  .template-grid,
  .workflow-preview,
  .resource-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

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

  .api-service-grid {
    grid-template-columns: 1fr;
  }

  .build-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .customer-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    display: block;
  }

  .nav-inner {
    width: calc(100vw - 32px);
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .landing-hero,
  .section,
  .customer-main {
    width: calc(100vw - 32px);
    padding: 16px 0;
  }

  .customer-shell {
    width: calc(100vw - 32px);
    margin-top: 16px;
  }

  .summary-grid,
  .dashboard-list,
  .visual-grid,
  .capability-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }
}
