:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #f5f5f5;
  line-height: 1.65;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #050505; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% -5%, rgba(255, 255, 255, .12), transparent 27rem),
    radial-gradient(circle at 100% 15%, rgba(255, 255, 255, .07), transparent 30rem),
    #050505;
  color: #f5f5f5;
}

a {
  color: #fff;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: .18em;
}
a:hover { text-decoration-color: #fff; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1240px, calc(100% - 2rem));
  min-height: 4.5rem;
  margin: 1rem auto 0;
  padding: .65rem .85rem .65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 780;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand span { margin-left: .25rem; color: #bfbfbf; font-weight: 500; }
.site-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: .2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.site-nav a {
  flex: 0 0 auto;
  padding: .45rem .6rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: #d2d2d2;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(255, 255, 255, .23);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  outline: none;
}

.page-shell {
  width: min(940px, calc(100% - 2rem));
  min-height: calc(100vh - 12rem);
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.markdown-content { min-width: 0; }
.markdown-content > :first-child { margin-top: 0; }
.markdown-content > :last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  line-height: 1.16;
  letter-spacing: -.035em;
  scroll-margin-top: 6rem;
}
h1 { margin: 0 0 1.2rem; font-size: clamp(2rem, 5.3vw, 3.5rem); font-weight: 780; }
h2 { margin: 3.25rem 0 1rem; padding-top: .25rem; font-size: clamp(1.45rem, 3.4vw, 2.15rem); }
h3 { margin: 2.25rem 0 .75rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4, h5, h6 { margin: 1.75rem 0 .65rem; font-size: 1.05rem; }
p, li { color: #e1e1e1; }
p { margin: 1rem 0; }
ul, ol { margin: 1rem 0; padding-left: 1.45rem; }
li + li { margin-top: .35rem; }
hr { height: 1px; margin: 2.4rem 0; border: 0; background: rgba(255, 255, 255, .17); }

blockquote,
.custom-container,
.notice {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-left: 3px solid rgba(255, 255, 255, .7);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .08);
  color: #e6e6e6;
}
blockquote > :first-child, .custom-container > :first-child, .notice > :first-child { margin-top: 0; }
blockquote > :last-child, .custom-container > :last-child, .notice > :last-child { margin-bottom: 0; }
.custom-container.tip { border-left-color: #fff; }
.custom-container.warning, .custom-container.danger { border-left-color: #a8a8a8; }

code, kbd, samp {
  padding: .12em .35em;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: .35rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .9em;
}
pre {
  max-width: 100%;
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: .85rem;
  background: rgba(0, 0, 0, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f1f1f1;
  font-size: .86rem;
  line-height: 1.65;
}
.language-bash, .language-shell, .language-json, .language-yaml, .language-yml,
.language-javascript, .language-js, .language-python, .language-py,
.vp-code-group, .vp-code-tabs { max-width: 100%; }

table {
  width: 100%;
  margin: 1.2rem 0;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .045);
  font-size: .94rem;
}
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 760px; margin: 0; border-radius: 0; }
th, td {
  padding: .75rem .85rem;
  border-right: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #e6e6e6;
  text-align: left;
  vertical-align: top;
}
th {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }

details {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .055);
}
summary { color: #fff; cursor: pointer; font-weight: 700; }
.header-anchor { margin-left: .3rem; color: #898989; text-decoration: none; }
.header-anchor:hover { color: #fff; }

.back-link {
  display: inline-block;
  margin-bottom: 1.7rem;
  color: #d7d7d7;
  font-weight: 650;
  text-decoration: none;
}
.back-link:hover { color: #fff; }
.eyebrow {
  margin: 0 0 .55rem;
  color: #bdbdbd;
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.prices-page h1 { margin-bottom: .8rem; }
.lead {
  max-width: 50rem;
  margin: 0;
  color: #d3d3d3;
  font-size: clamp(1rem, 2vw, 1.15rem);
}
.prices-page td:first-child {
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 650;
}
.status { margin-top: 1rem; color: #ababab; font-size: .9rem; }

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.65rem 0 2.1rem;
}

.setup-card {
  display: grid;
  gap: .15rem;
  min-height: 5.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .065);
  color: #fff;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.setup-card:hover,
.setup-card:focus-visible {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
  transform: translateY(-1px);
}

.setup-card strong { font-size: 1.03rem; }
.setup-card span { color: #c7c7c7; font-size: .9rem; }

.setup-dashboard { background: #080808; }
.setup-shell { padding-top: 3.25rem; }
.setup-shell .setup-doc { max-width: none; }
.setup-dashboard .setup-doc > h1 {
  margin: .25rem 0 .7rem;
  padding-bottom: 2.15rem;
  border-bottom: 1px solid #1c1c1c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 780;
  letter-spacing: -.07em;
}
.setup-dashboard .lead { max-width: 52rem; color: #aaa; font-size: 1.04rem; }
.setup-dashboard .notice {
  max-width: 64rem;
  margin: 1.8rem 0 2.3rem;
  border-color: #252525;
  border-left-color: #dedede;
  background: #111;
  color: #d7d7d7;
}
.setup-dashboard .setup-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3.7rem;
}
.setup-dashboard .setup-card {
  min-height: 8.5rem;
  padding: 1.45rem 1.55rem;
  border-color: #202020;
  border-radius: 1.15rem;
  background: #0b0b0b;
  box-shadow: none;
}
.setup-dashboard .setup-card:hover,
.setup-dashboard .setup-card:focus-visible {
  border-color: #4a4a4a;
  background: #131313;
  transform: translateY(-2px);
}
.setup-dashboard .setup-card strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.16rem;
}
.setup-dashboard .setup-card span { color: #969696; }
.setup-dashboard .setup-doc > h2 {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #1c1c1c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}
.setup-dashboard .setup-doc > h3 {
  color: #bdbdbd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.setup-dashboard .setup-doc table {
  border-color: #202020;
  border-radius: 1rem;
  background: #0b0b0b;
}
.setup-dashboard .setup-doc th {
  background: #151515;
  border-color: #252525;
  color: #aaa;
}
.setup-dashboard .setup-doc td { border-color: #202020; }
.setup-dashboard .setup-doc pre {
  border-color: #202020;
  border-radius: 1rem;
  background: #0c0c0c;
  box-shadow: none;
}
.setup-dashboard .site-footer { color: #777; }
.site-footer {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 1.7rem;
  color: #9e9e9e;
  font-size: .86rem;
  text-align: center;
}
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
    width: min(100% - 1rem, 1240px);
    margin-top: .5rem;
    border-radius: .8rem;
  }
  .site-nav { justify-content: flex-start; width: 100%; padding-bottom: .1rem; }
  .page-shell { width: calc(100% - 1rem); margin: 0 auto 1rem; border-radius: .95rem; }
  th, td { padding: .65rem .7rem; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-shell { width: calc(100% - 1.25rem); padding-top: 1.5rem; }
  .setup-dashboard .setup-grid { grid-template-columns: 1fr; gap: .85rem; }
  .setup-dashboard .setup-doc > h1 { padding-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.status-body { background: #080808; color: #f5f5f5; }
.status-shell { width: min(1440px, calc(100% - 3.5rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.status-back { display: inline-flex; padding: .65rem 1rem; border: 1px solid #202020; border-radius: 999px; color: #b8b8b8; font-weight: 700; text-decoration: none; }
.status-back:hover { border-color: #4b4b4b; color: #fff; text-decoration: none; }
.status-hero { padding: 3.3rem 0 2.8rem; border-bottom: 1px solid #1c1c1c; }
.status-hero h1 { margin: .2rem 0 .7rem; font-size: clamp(3rem, 7vw, 5.8rem); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-lead { max-width: 50rem; color: #a6a6a6; font-size: 1.04rem; }
.status-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.period-control { display: inline-flex; padding: .25rem; border: 1px solid #252525; border-radius: 999px; background: #101010; }
.period-control button { padding: .5rem .85rem; border: 0; border-radius: 999px; background: transparent; color: #8f8f8f; cursor: pointer; font-size: .8rem; font-weight: 800; }
.period-control button.active { background: #f4f4f4; color: #0b0b0b; }
.proxy-status, .model-state { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid #252525; border-radius: 999px; color: #aaa; font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.proxy-status::before { content: "●"; }.proxy-status.operational::before { color: #1bdb78; }.proxy-status.outage::before { color: #fa4e4e; }
.status-summary { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; font-family: ui-monospace, monospace; font-size: .82rem; font-weight: 700; }
.summary-good { color: #1bdb78; }.summary-warn { color: #f3a426; }.summary-bad { color: #fa4e4e; }.summary-unknown { color: #888; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-top: 2rem; }
.model-status-card { overflow: hidden; border: 1px solid #202020; border-radius: 1.25rem; background: #0b0b0b; }
.model-status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; min-height: 8.5rem; padding: 1.5rem 1.6rem 1.15rem; }
.model-family { margin: 0 0 .35rem; color: #969696; font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.model-status-head h2 { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.05rem, 2.2vw, 1.5rem); overflow-wrap: anywhere; }
.model-state { flex: 0 0 auto; color: #1bdb78; border-color: #134b2a; font-size: .68rem; }.model-state.operational, .model-state.unknown { color: #1bdb78; border-color: #134b2a; }.model-state.degraded, .model-state.outage { color: #fa4e4e; border-color: #5a2020; }
.status-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 0 1.6rem 1.3rem; }
.status-metrics > div, .availability { border-radius: .9rem; background: #151515; }
.status-metrics > div { padding: .85rem 1rem; }.status-metrics span, .availability span, .history > div:first-child { display: block; color: #848484; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-metrics strong { display: block; margin-top: .35rem; color: #eee; font-family: ui-monospace, monospace; font-size: 1.2rem; }
.availability { margin: 0 1.6rem 1.4rem; padding: .8rem 1rem; }.availability > div { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }.availability strong { color: #1bdb78; font-family: ui-monospace, monospace; font-size: 1.15rem; }.availability small { display: block; margin-top: .25rem; color: #939393; }
.history { padding: 1.1rem 1.6rem 1.45rem; border-top: 1px solid #202020; }.history > div:first-child, .history-range { display: flex; justify-content: space-between; gap: 1rem; }.history-bars { display: grid; grid-template-columns: repeat(60, minmax(2px, 1fr)); gap: 2px; height: 2.45rem; margin: 1rem 0 .7rem; align-items: stretch; }
.history-point { min-width: 2px; border-radius: 1px; background: #15c977; }.history-point.operational, .history-point.unknown { background: #15c977; }.history-point.degraded, .history-point.outage { background: #ed4c4c; }
.history-range { color: #626262; font-family: ui-monospace, monospace; font-size: .63rem; letter-spacing: .08em; }
.status-error { padding: 1.5rem; border: 1px solid #5a2020; border-radius: 1rem; color: #fa7777; }
@media (max-width: 1080px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .status-shell { width: calc(100% - 1.25rem); padding-top: 1rem; }.status-hero { padding: 2.4rem 0 1.8rem; }.status-toolbar { align-items: flex-start; flex-direction: column; }.status-grid { grid-template-columns: 1fr; gap: 1rem; }.model-status-head, .history { padding-left: 1rem; padding-right: 1rem; }.status-metrics { padding-left: 1rem; padding-right: 1rem; }.availability { margin-left: 1rem; margin-right: 1rem; } }
