:root {
  --site-bg: #f4f7f8;
  --site-surface: #ffffff;
  --site-ink: #172027;
  --site-text: #28343d;
  --site-muted: #667580;
  --site-line: #d6e0e4;
  --site-line-strong: #b9c8cf;
  --site-dark: #111920;
  --site-dark-soft: #1b252d;
  --site-blue: #1769aa;
  --site-blue-dark: #105187;
  --site-green: #16815b;
  --site-green-soft: #e7f5ee;
  --site-red: #b13a32;
  --site-amber: #a36012;
  --site-code: #0d161d;
  --site-shadow: 0 8px 24px rgba(19, 31, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

button,
input,
select { font: inherit; }

button,
.site-button {
  min-height: 38px;
  border: 1px solid var(--site-line-strong);
  border-radius: 6px;
  background: var(--site-surface);
  color: var(--site-ink);
  cursor: pointer;
  padding: 0 14px;
  text-decoration: none;
}

button:hover,
.site-button:hover { border-color: var(--site-blue); color: var(--site-blue); }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.2);
  outline-offset: 2px;
}

.is-hidden { display: none !important; }

.site-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #26333c;
  background: var(--site-dark);
  color: #ffffff;
  padding: 10px 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #42515d;
  border-radius: 7px;
  background: #202b33;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.site-brand > span:last-child { display: grid; gap: 1px; }
.site-brand strong { font-size: 14px; }
.site-brand small { color: #91a1ac; font-size: 10px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #c2cdd4; font-size: 13px; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: #ffffff; }

.site-header > .site-button { justify-self: end; }
.site-button { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.site-button-dark { border-color: #475762; background: #202b33; color: #ffffff; }
.site-button-dark:hover { border-color: #6fd0a2; color: #ffffff; }
.site-button-primary { border-color: #2c8b66; background: #2c8b66; color: #ffffff; }
.site-button-primary:hover { border-color: #41aa81; background: #41aa81; color: #ffffff; }
.site-button-ghost { border-color: rgba(255,255,255,0.45); background: rgba(17,25,32,0.64); color: #ffffff; }
.site-button-ghost:hover { border-color: #ffffff; color: #ffffff; }

.product-hero {
  position: relative;
  display: flex;
  height: min(620px, calc(100svh - 96px));
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  background-color: #172129;
  background-image: url('/assets/admin-console.png');
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero-shade { position: absolute; inset: 0; background: rgba(7, 13, 18, 0.76); }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-eyebrow {
  margin: 0 0 8px;
  color: var(--site-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-hero .site-eyebrow { color: #70d1a3; }

.product-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 54px;
  line-height: 1.02;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d2dce2;
  font-size: 18px;
  line-height: 1.65;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 0;
  margin: 42px 0 0;
}

.hero-facts div { border-left: 1px solid rgba(255,255,255,0.25); padding: 2px 18px; }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { color: #8fa1ac; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.hero-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 750; }

.site-band { border-bottom: 1px solid var(--site-line); padding: 82px 0; }
.model-band { background: #ffffff; }
.workflow-band { background: #eaf0f2; }
.quickstart-band { background: #ffffff; }
.status-band { background: #edf3f5; padding: 42px 0; }

.section-intro { max-width: 720px; }
.section-intro h2 { margin: 0; color: var(--site-ink); font-size: 34px; line-height: 1.18; }
.section-intro > p:last-child { color: var(--site-muted); line-height: 1.7; }
.compact-intro { max-width: 500px; }

.model-table { margin-top: 38px; border-top: 2px solid var(--site-ink); }
.model-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr 1.4fr;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--site-line);
  padding: 12px 4px;
}
.model-head { min-height: 42px; color: var(--site-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.model-row strong { color: var(--site-ink); }
.model-row code { overflow-wrap: anywhere; color: var(--site-blue-dark); font-size: 13px; }

.workflow-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 70px; align-items: start; }
.workflow-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--site-line-strong); }
.workflow-steps li { min-height: 150px; border-right: 1px solid var(--site-line-strong); border-bottom: 1px solid var(--site-line-strong); padding: 22px; }
.workflow-steps li:nth-child(even) { border-right: 0; }
.workflow-steps span { display: block; color: var(--site-green); font-size: 11px; font-weight: 800; }
.workflow-steps strong { display: block; margin-top: 18px; color: var(--site-ink); font-size: 17px; }
.workflow-steps p { margin: 7px 0 0; color: var(--site-muted); font-size: 13px; line-height: 1.5; }

.quickstart-layout { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(480px, 1.15fr); gap: 70px; align-items: center; }
.text-link { color: var(--site-blue); font-weight: 750; text-underline-offset: 3px; }

.code-window { min-width: 0; overflow: hidden; border: 1px solid #27343d; border-radius: 8px; background: var(--site-code); box-shadow: var(--site-shadow); color: #d7e3ea; }
.code-window-bar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; border-bottom: 1px solid #27343d; background: #172129; padding: 6px 10px 6px 14px; }
.code-window-bar span { color: #9badb8; font-size: 11px; font-weight: 750; }
.code-window-bar button { min-height: 28px; border-color: #41515c; background: #202c34; color: #dbe5ea; padding: 0 9px; font-size: 11px; }
.code-window pre { max-width: 100%; overflow: auto; margin: 0; padding: 18px; }
.code-window code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.65; }

.status-layout { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 28px; align-items: center; }
.status-layout h2 { margin: 0; color: var(--site-ink); font-size: 25px; }
.live-status { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.live-status strong { color: var(--site-ink); }
.live-status small { grid-column: 2; color: var(--site-muted); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa8b0; }
.live-dot.is-up { background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,0.12); }
.live-dot.is-down { background: var(--site-red); }

.site-footer { background: var(--site-dark); color: #ffffff; padding: 28px 0; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-layout > span { font-weight: 750; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-layout a { color: #9fb0ba; font-size: 12px; text-decoration: none; }

/* Documentation */
.docs-page { background: #ffffff; }
.docs-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 230px minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  border-bottom: 1px solid var(--site-line);
  background: rgba(255,255,255,0.97);
  padding: 9px 24px;
}
.docs-header .site-brand-mark { border-color: #cad6dc; background: var(--site-dark); }
.docs-header .site-brand { color: var(--site-ink); }
.docs-header .site-brand small { color: var(--site-muted); }
.docs-header > .site-button { justify-self: end; }

.docs-search { position: relative; display: block; }
.docs-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.docs-search input { width: 100%; min-height: 40px; border: 1px solid var(--site-line); border-radius: 6px; background: #f5f8f9; color: var(--site-text); padding: 8px 12px; }

.docs-shell { display: grid; grid-template-columns: 248px minmax(0, 850px) 200px; justify-content: center; min-height: calc(100vh - 66px); }
.docs-sidebar { position: sticky; top: 66px; align-self: start; height: calc(100vh - 66px); overflow: auto; border-right: 1px solid var(--site-line); padding: 24px 20px; }
.docs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--site-line); border-radius: 6px; background: #eef2f4; padding: 2px; }
.docs-tabs button { min-height: 32px; border: 0; background: transparent; color: var(--site-muted); padding: 0 7px; font-size: 11px; }
.docs-tabs button[aria-selected="true"] { background: #ffffff; color: var(--site-ink); box-shadow: 0 1px 2px rgba(18,30,38,0.08); }
.docs-sidebar nav { display: grid; gap: 2px; margin-top: 22px; }
.docs-sidebar nav div { display: grid; gap: 2px; }
.docs-sidebar nav span { margin: 17px 9px 5px; color: #89969e; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.docs-sidebar nav a { border-left: 2px solid transparent; color: #53616b; padding: 7px 9px; font-size: 12px; text-decoration: none; }
.docs-sidebar nav a:hover { border-left-color: var(--site-blue); background: #f2f6f8; color: var(--site-ink); }
.docs-version { display: flex; align-items: center; gap: 10px; margin-top: 26px; border-top: 1px solid var(--site-line); padding: 16px 8px 0; }
.docs-version > span:last-child { display: grid; gap: 1px; }
.docs-version strong { font-size: 11px; }
.docs-version small { color: var(--site-muted); font-size: 10px; }
.docs-mobile-jump { display: none; }

.docs-content { min-width: 0; border-right: 1px solid var(--site-line); }
.doc-section { scroll-margin-top: 86px; padding: 62px 56px; border-bottom: 1px solid var(--site-line); }
.doc-section h1 { max-width: 720px; margin: 0; color: var(--site-ink); font-size: 40px; line-height: 1.1; }
.doc-section h2 { margin: 0; color: var(--site-ink); font-size: 27px; line-height: 1.2; }
.doc-section > p:not(.site-eyebrow) { color: var(--site-muted); line-height: 1.7; }
.doc-lead { max-width: 720px; font-size: 17px; }

.base-url { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 26px; border: 1px solid var(--site-line); border-radius: 7px; background: #f6f9fa; padding: 8px 9px 8px 14px; }
.base-url span { color: var(--site-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.base-url code { overflow-wrap: anywhere; color: var(--site-blue-dark); }
.base-url button { min-height: 30px; padding: 0 9px; font-size: 11px; }

.doc-facts { display: grid; grid-template-columns: repeat(3,1fr); margin: 28px 0 0; border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
.doc-facts div { border-right: 1px solid var(--site-line); padding: 16px; }
.doc-facts div:last-child { border-right: 0; }
.doc-facts dt { color: var(--site-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.doc-facts dd { margin: 5px 0 0; color: var(--site-ink); font-size: 13px; font-weight: 700; }

.doc-section .code-window { margin-top: 24px; box-shadow: none; }
.doc-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc-note { display: grid; grid-template-columns: minmax(130px,0.35fr) 1fr; gap: 16px; margin-top: 22px; border-left: 3px solid var(--site-green); background: var(--site-green-soft); padding: 14px 16px; }
.doc-note strong { color: #116243; }
.doc-note span { color: #426657; line-height: 1.55; }

.contract-table { margin-top: 24px; border-top: 1px solid var(--site-line); }
.contract-table div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; border-bottom: 1px solid var(--site-line); padding: 14px 4px; }
.contract-table span { color: var(--site-muted); }

.endpoint-section { border-left: 3px solid transparent; }
.endpoint-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.endpoint-title code { overflow-wrap: anywhere; color: var(--site-ink); font-size: 13px; font-weight: 750; }
.method { display: inline-grid; min-width: 44px; min-height: 22px; place-items: center; border-radius: 4px; font-size: 9px; font-weight: 850; }
.method-post { background: #e7f5ee; color: #116a48; }
.method-get { background: #e8f1f8; color: #155d94; }
.endpoint-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.endpoint-pair > div { border-top: 2px solid var(--site-ink); padding-top: 12px; }
.endpoint-pair p { color: var(--site-muted); font-size: 12px; }

.parameter-table { margin-top: 28px; border-top: 1px solid var(--site-ink); }
.parameter-table > div { display: grid; grid-template-columns: 0.7fr 0.55fr 2fr; gap: 14px; border-bottom: 1px solid var(--site-line); padding: 12px 4px; }
.parameter-table span { color: var(--site-muted); font-size: 12px; }
.parameter-head span { color: var(--site-ink); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.status-sequence { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 22px; border: 1px solid var(--site-line); border-radius: 7px; overflow: hidden; }
.status-sequence span { position: relative; border-right: 1px solid var(--site-line); padding: 14px; text-align: center; font-size: 12px; font-weight: 700; }
.status-sequence span:last-child { border-right: 0; color: var(--site-red); }
.status-sequence span:nth-child(3) { color: var(--site-green); }

.error-table { margin-top: 24px; border-top: 2px solid var(--site-ink); }
.error-table > div { display: grid; grid-template-columns: 52px 0.8fr 1.7fr; gap: 16px; align-items: center; border-bottom: 1px solid var(--site-line); padding: 13px 4px; }
.error-table code { color: var(--site-blue-dark); font-weight: 800; }
.error-table span { color: var(--site-muted); font-size: 12px; }

.docs-rail { position: sticky; top: 66px; align-self: start; height: calc(100vh - 66px); padding: 30px 18px; }
.docs-rail > span { color: #89969e; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.docs-rail nav { display: grid; gap: 8px; margin-top: 12px; }
.docs-rail a { color: var(--site-muted); font-size: 11px; line-height: 1.35; text-decoration: none; }
.docs-rail a:hover { color: var(--site-blue); }
.docs-empty { display: grid; gap: 5px; margin: 60px; border: 1px dashed var(--site-line-strong); border-radius: 8px; padding: 30px; text-align: center; }
.docs-empty span { color: var(--site-muted); }

@media (max-width: 1050px) {
  .docs-shell { grid-template-columns: 220px minmax(0,1fr); }
  .docs-rail { display: none; }
  .docs-content { border-right: 0; }
  .workflow-layout,
  .quickstart-layout { gap: 38px; }
}

@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; padding: 9px 16px; }
  .site-nav { display: none; }
  .site-header > .site-button { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .product-hero { height: min(600px, calc(100svh - 84px)); min-height: 520px; background-position: 64% center; }
  .product-hero h1 { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .hero-facts { grid-template-columns: repeat(3,1fr); }
  .site-band { padding: 62px 0; }
  .section-intro h2 { font-size: 29px; }
  .workflow-layout,
  .quickstart-layout { grid-template-columns: 1fr; }
  .model-row { grid-template-columns: 1fr 1fr; gap: 8px 18px; padding: 16px 4px; }
  .model-head { display: none; }
  .status-layout { grid-template-columns: 1fr; }
  .footer-layout { align-items: flex-start; flex-direction: column; }

  .docs-header { grid-template-columns: 1fr auto; padding: 9px 14px; }
  .docs-search { grid-column: 1 / -1; grid-row: 2; }
  .docs-header > .site-button { grid-column: 2; grid-row: 1; min-height: 34px; font-size: 11px; }
  .docs-shell { display: block; }
  .docs-sidebar { position: sticky; top: 116px; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--site-line); background: #ffffff; padding: 10px 14px; }
  .docs-sidebar > nav,
  .docs-version { display: none; }
  .docs-mobile-jump { display: grid; gap: 3px; color: var(--site-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .docs-mobile-jump select { width: 100%; min-height: 36px; border: 1px solid var(--site-line); border-radius: 5px; background: #ffffff; padding: 5px; color: var(--site-text); font-size: 11px; text-transform: none; }
  .doc-section { scroll-margin-top: 190px; padding: 48px 20px; }
  .doc-section h1 { font-size: 34px; }
  .doc-code-grid,
  .endpoint-pair { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .site-container,
  .hero-inner { width: min(100% - 28px, 1160px); }
  .site-brand small { display: none; }
  .product-hero { min-height: 540px; background-position: 68% center; }
  .product-hero h1 { font-size: 35px; }
  .hero-copy { font-size: 14px; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-facts { margin-top: 30px; }
  .hero-facts div { padding: 2px 9px; }
  .hero-facts dd { font-size: 12px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { min-height: 125px; border-right: 0; }
  .model-row { grid-template-columns: 1fr; }
  .doc-facts,
  .status-sequence { grid-template-columns: 1fr; }
  .doc-facts div,
  .status-sequence span { border-right: 0; border-bottom: 1px solid var(--site-line); }
  .base-url { grid-template-columns: 1fr auto; }
  .base-url span { grid-column: 1 / -1; }
  .doc-note { grid-template-columns: 1fr; }
  .parameter-table > div { grid-template-columns: 0.8fr 0.7fr; }
  .parameter-table > div span:last-child { grid-column: 1 / -1; }
  .error-table > div { grid-template-columns: 46px 1fr; }
  .error-table span { grid-column: 1 / -1; }
}
