* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #18312d;
  --dim: #546960;
  --muted: #74827b;
  --paper: #f4f6f2;
  --line: #dce3dc;
  --card: #fff;
  --pine: #12332e;
  --accent: #d1ec86;
  --green: #13674e;
  --red: #a24235;
  --radius: 10px;
  font-family: 'Instrument Sans', 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid #52894b;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.18;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 15px;
}
.mono,
code,
.count {
  font-family: Consolas, 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.skip {
  position: fixed;
  top: -80px;
  left: 4px;
  z-index: 99;
  background: white;
  padding: 8px;
}
.skip:focus {
  top: 4px;
}
.boot {
  max-width: 480px;
  margin: 16vh auto;
  padding: 24px;
}
.mark {
  width: 35px;
  height: 35px;
  display: block;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #b1c7bb;
  display: block;
  margin-top: 3px;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  background: var(--pine);
  color: #e5eee7;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 16px 18px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sidebar .brand {
  padding: 0 10px 28px;
}
.nav-section {
  font-size: 11px;
  color: #a4b8ac;
  letter-spacing: 0.09em;
  padding: 18px 11px 6px;
  font-weight: 600;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #d4e2d8;
  font-size: 13px;
  font-weight: 500;
  margin: 2px 0;
}
.nav-link:hover {
  background: #21443c;
}
.nav-link.current {
  background: var(--accent);
  color: #1c392c;
  font-weight: 650;
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}
.userbox {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 5px 0;
  border-top: 1px solid #385447;
}
.userbox > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.userbox strong,
.userbox small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.userbox small {
  font-size: 11px;
  color: #acbfb3;
}
.avatar {
  font-size: 13px;
  color: #25412e;
  background: #d8e6cd;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: bold;
}
.logout {
  border: 0;
  color: #cadbd0;
  background: transparent;
  padding: 6px;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topline {
  height: 62px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3.2vw, 48px);
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 11px;
}
.crumb b {
  color: var(--ink);
  font-weight: 600;
}
.topline time {
  font-family: Consolas, monospace;
  letter-spacing: 0.03em;
}
.container {
  max-width: 1710px;
  margin: auto;
  padding: clamp(22px, 3vw, 44px);
}
.pagehead {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 25px;
}
.pagehead p,
.intro {
  color: var(--dim);
  margin-top: 8px;
  font-size: 13px;
}
.actions,
.tools,
.wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 13px;
  background: #fff;
  border: 1px solid #cfd9d0;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
  font-size: 13px;
}
.button:hover {
  border-color: #708d7d;
}
.button.primary {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}
.button.primary:hover {
  background: #24513f;
}
.button.alert {
  color: var(--red);
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--green);
  padding: 5px 7px;
}
.button.sm {
  min-height: 29px;
  font-size: 12px;
  padding: 4px 9px;
}
.mobile-toggle {
  display: none;
}
.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}
.metric,
.block,
.empty,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.metric {
  padding: 17px 18px;
}
.metric:first-child {
  background: #e7edd7;
  border-color: #d9e3c5;
}
.metric label {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 12px;
}
.count {
  font-size: clamp(23px, 3vw, 36px);
  letter-spacing: -0.055em;
  font-weight: 600;
  line-height: 1.05;
}
.block {
  overflow: hidden;
  margin-bottom: 18px;
}
.bhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.bhead small,
.tiny,
.subtext {
  font-size: 12px;
  color: var(--dim);
}
.tablewrap {
  overflow: auto;
}
.page-list {
  min-width: 0;
  scroll-margin-top: 12px;
}
.page-list:focus {
  outline: none;
}
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}
.page-range {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}
.page-size,
.page-navigation,
.page-jump,
.page-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-navigation {
  flex-wrap: wrap;
}
.page-size,
.page-jump label {
  white-space: nowrap;
}
.page-size select,
.page-jump input {
  min-height: 32px;
  padding: 4px 6px;
  font-size: inherit;
  width: auto;
}
.page-jump input {
  width: 4.6rem;
}
.pagination .button {
  white-space: nowrap;
}
.dcontent .pagination {
  padding-inline: 0;
}
@media (max-width: 540px) {
  .page-navigation {
    flex-basis: 100%;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f8faf6;
  color: #617064;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
td,
th {
  padding: 12px 15px;
  border-bottom: 1px solid #e7ece6;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  font-size: 13px;
}
td.long {
  max-width: 340px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.clip {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.platform-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-cell strong {
  font-size: 14px;
}
.platform-cell small {
  display: block;
  font-size: 11px;
  color: var(--dim);
}
.platform-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: #e8efe8;
  color: #36594b;
  font-family: Consolas, monospace;
  font-weight: bold;
}
.p-qwen,
.p-wenxin {
  background: #eae9f4;
  color: #675d82;
}
.p-deepseek,
.p-spark {
  background: #e5edf8;
  color: #3d6390;
}
.p-kimi {
  background: #efede6;
  color: #765e35;
}
.p-yuanbao {
  background: #e2efe6;
  color: #347157;
}
.status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  vertical-align: middle;
  border-radius: 12px;
  background: #edf0eb;
  color: #59665c;
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.good {
  background: #ddf1e4;
  color: #1c6b49;
}
.status.warn {
  background: #faf0d4;
  color: #826017;
}
.status.bad {
  color: var(--red);
  background: #f8e5dd;
}
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.strip select,
.strip input {
  width: auto;
  min-width: 130px;
}
.strip label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
}
.empty {
  padding: 28px;
  color: var(--dim);
  text-align: center;
  font-size: 13px;
}
.block .empty {
  border: 0;
}
.pad {
  padding: 18px;
}
.statstrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 9px;
}
.platform-card {
  border: 1px solid var(--line);
  padding: 13px 10px;
  border-radius: 7px;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.platform-card:hover {
  border-color: #86a08e;
}
.platform-card strong {
  font-size: 14px;
}
.details {
  padding: 14px 17px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fafbf8;
}
.details summary {
  cursor: pointer;
  font-weight: 600;
}
.model-price {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f9f5;
  padding: 12px 14px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.price-heading, .price-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.price-heading {
  margin-bottom: 8px;
  font-size: 13px;
}
.price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 3px 0;
}
.price-line b { text-align: right; font-variant-numeric: tabular-nums; }
.price-tokens { margin: 7px 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.price-tokens small, .tariff-group small, .catalog-entry summary small {
  color: var(--dim);
  display: block;
}
.price-details { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.price-details summary, .catalog-entry summary { color: var(--pine); cursor: pointer; }
.price-details h4 { font-size: 12px; margin: 14px 0 5px; }
.tariff-group { padding: 7px 0; }
.tariff-group + .tariff-group { border-top: 1px solid var(--line); }
.price-sources a { overflow-wrap: anywhere; }
.catalog-list { border-top: 1px solid var(--line); }
.catalog-entry { border-bottom: 1px solid var(--line); padding: 10px 0; }
.catalog-entry summary { overflow-wrap: anywhere; }
.catalog-entry summary > .status { margin-left: 6px; }
.catalog-token-prices { display: block; color: var(--pine); font-weight: 600; font-variant-numeric: tabular-nums; }
.catalog-entry summary > span:last-child { font-size: 12px; }
.catalog-entry .model-price { margin-top: 8px; }
.provider-links, .catalog-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.provider-links a { font-size: 12px; text-underline-offset: 3px; }
td .provider-links { margin-top: 6px; }
.catalog-filters input[type="search"] { flex: 1 1 210px; min-width: 0; }
.directory-controls .directory-error { color: var(--red); }
.pricing-table table { min-width: 760px; white-space: normal; }
.pricing-table th, .pricing-table td { padding: 12px; }
.pricing-table td:nth-child(2) { overflow-wrap: anywhere; }
.pricing-table td:last-child { min-width: 155px; }
.pricing-token-rates { display: grid; gap: 3px; font-variant-numeric: tabular-nums; }
.pricing-token-rates b { margin-left: 4px; }
.pricing-modes, .pricing-pane {
  border: 0;
  padding: 0;
  min-width: 0;
  margin-inline: 0;
}
.pricing-modes legend {
  padding: 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 5px;
}
.pricing-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pricing-mode-options label {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.pricing-mode-options label:has(input:checked) {
  border-color: #88a372;
  background: #f3f6e9;
}
.pricing-rate-head {
  display: flex;
  gap: 8px 12px;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pricing-rate-head > div { flex: 1 1 250px; }
.pricing-inputs small { display: block; margin-top: 4px; }
.pricing-inputs input { font-variant-numeric: tabular-nums; }
.field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.details p,
.details ul {
  margin: 0.7em 0;
}
.details dl,
dl.kv {
  display: grid;
  grid-template-columns: minmax(95px, 0.5fr) 1fr;
  gap: 8px 12px;
  margin: 12px 0;
}
.details dt,
.kv dt {
  color: var(--dim);
}
.details dd,
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.help {
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
}
.stack > * + * {
  margin-top: 14px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: block;
  font-size: 12px;
  color: var(--dim);
  font-weight: 550;
}
.field > span {
  display: block;
  margin-bottom: 5px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5cd;
  background: #fff;
  color: var(--ink);
  border-radius: 5px;
  padding: 8px 10px;
  min-height: 36px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--green);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eef3ee;
  border-radius: 5px;
  padding: 12px;
  font:
    12px/1.6 Consolas,
    monospace;
  color: #2d4940;
  margin: 0;
}
.signal {
  background: #f3f6e9;
  color: #455639;
  border: 1px solid #dbe7c9;
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 13px;
}
.error {
  background: #fff2ee;
  color: var(--red);
  padding: 10px 12px;
  border-radius: 6px;
}
.error:empty {
  display: none;
}
.busy {
  padding: 26px;
  color: var(--muted);
}
dialog {
  height: 100dvh;
  max-height: 100dvh;
  width: min(540px, 100vw);
  max-width: 100vw;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fdfefb;
  margin: 0 0 0 auto;
  color: var(--ink);
  box-shadow: -12px 0 45px #13291f15;
}
dialog::backdrop {
  background: #13281f66;
}
.dhead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fdfefb;
  border-bottom: 1px solid var(--line);
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dcontent {
  padding: 23px 22px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.subheading {
  font-size: 14px;
  color: var(--ink);
  margin: 10px 0;
}
.secret {
  user-select: all;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.errpage {
  padding: 22px;
  border: 1px solid #e5c4b6;
  border-radius: 8px;
  background: #fff7f3;
}
.errpage .button {
  margin-top: 12px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.login-art {
  background: #12352f;
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 95px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.login-art .brand {
  position: absolute;
  top: 42px;
  left: clamp(30px, 6vw, 95px);
  color: #e5efe3;
}
.login-art .brand .mark {
  width: 48px;
  height: 48px;
}
.login-art .wordmark {
  font-size: 28px;
}
.radio {
  position: relative;
  width: min(37vw, 410px);
  aspect-ratio: 1;
  border: 1px solid #44675c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(
    circle,
    transparent,
    transparent 16%,
    #48685b 16.2%,
    transparent 16.6%
  );
}
.radio:before,
.radio:after {
  content: '';
  position: absolute;
  background: #48685b;
}
.radio:before {
  height: 1px;
  width: 116%;
}
.radio:after {
  height: 116%;
  width: 1px;
}
.radio .mark {
  width: 26%;
  height: 26%;
  z-index: 1;
}
.login-right {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-card {
  width: min(100%, 400px);
  padding: 32px;
}
.login-card h1 {
  font-size: 27px;
}
.login-card p {
  font-size: 13px;
  color: var(--dim);
  margin: 7px 0 22px;
}
.login-card .primary {
  width: 100%;
  margin-top: 8px;
}
.login-brand {
  display: none;
}
#notice {
  z-index: 9;
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  background: #213e31;
  color: #fff;
  border-radius: 6px;
  max-width: min(440px, 90vw);
  font-size: 13px;
}
#notice:empty {
  display: none;
}
.balance-value {
  font-weight: 650;
  font-family: Consolas, monospace;
}
.subtext {
  display: block;
}
.terminal {
  min-width: 0;
  overflow: auto;
}
.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 13px;
}
.caps-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.caps-card .button {
  align-self: flex-start;
}
.caps-card .current-model {
  font:
    13px Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.divider {
  height: 1px;
  background: var(--line);
}
@media (max-width: 990px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 10px;
  }
  .container {
    padding: 22px 17px;
  }
  .cards {
    gap: 8px;
  }
  .metric {
    padding: 13px 11px;
  }
  .bhead {
    padding: 13px 15px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 7;
    width: 228px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.15s;
  }
  .layout.menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .shade {
    display: none;
  }
  .menu-open .shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 6;
    border: 0;
    background: #14291f77;
    width: 100%;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topline {
    height: 54px;
    padding: 0 15px;
  }
  .topline time {
    font-size: 10px;
  }
  .container {
    padding: 20px 13px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pagehead {
    align-items: center;
    margin-bottom: 17px;
  }
  .bhead {
    gap: 5px;
  }
  .strip input,
  .strip select {
    min-width: 90px;
  }
  .login {
    display: grid;
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-brand {
    display: flex;
    margin: 0 0 24px;
  }
  .login-brand small {
    color: var(--dim);
  }
  .login-right {
    padding: 18px;
  }
  .login-card {
    padding: 24px;
  }
  .grid2 {
    gap: 9px;
  }
  .dcontent {
    padding: 16px;
  }
  .dhead {
    padding: 12px 16px;
  }
  .topline .section-name {
    display: none;
  }
  .statstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 761px) {
  .shade {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.references {
  padding-left: 20px;
  margin-block: 0;
}
.references li {
  overflow-wrap: anywhere;
  margin: 7px 0;
}
.delivery-item + .delivery-item {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.details > pre,
.details > form {
  margin-top: 12px;
}
.details > form textarea {
  min-height: 68px;
}
.sidebar nav {
  margin-bottom: 15px;
}

.api-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.api-tabs button {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--dim);
  font-weight: 600;
}
.api-tabs button[aria-pressed='true'] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.api-tabs button:hover {
  color: var(--green);
}
.api-guide {
  overflow: visible;
}
.api-guide-tools,
.api-base,
.api-example-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.api-guide-tools {
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.api-guide-tools a {
  text-decoration: none;
}
.api-base span {
  font-size: 13px;
  font-weight: 600;
}
.api-guide-grid {
  display: grid;
  grid-template-columns: minmax(145px, 205px) minmax(0, 1fr);
}
.api-guide-outline {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 18px 10px;
}
.api-guide-outline button {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: left;
  background: transparent;
  border: 0;
  min-height: 34px;
  color: var(--dim);
}
.api-guide-outline button:hover {
  color: var(--green);
  background: var(--paper);
}
.api-guide-body {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: clamp(16px, 3vw, 36px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.api-guide-body .api-guide-title {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.api-guide-body h3 {
  font-size: 19px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin: 30px 0 11px;
  scroll-margin-top: 14px;
}
.api-guide-body p,
.api-guide-body ul,
.api-guide-body ol {
  margin: 0 0 12px;
}
.api-guide-body ul,
.api-guide-body ol {
  padding-left: 1.5em;
}
.api-guide-body li + li {
  margin-top: 5px;
}
.api-base code,
.api-guide-body :not(pre) > code {
  color: var(--green);
  background: #eaf3ed;
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
.api-guide-table {
  margin: 12px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.api-guide-table th,
.api-guide-table td {
  white-space: normal;
  vertical-align: top;
}
.api-example {
  margin: 12px 0 18px;
  border-radius: 7px;
  background: #142c27;
  color: #eef9ef;
  overflow: hidden;
}
.api-example-bar {
  justify-content: space-between;
  background: #203e35;
  padding: 5px 10px;
  font-size: 12px;
}
.api-example-bar .button {
  color: #eef9ef;
  background: #28463e;
  border-color: #557568;
}
.api-example pre {
  margin: 0;
  padding: 12px 14px;
  max-width: 100%;
  background: transparent;
  color: inherit;
  overflow: auto;
  white-space: pre;
  font-size: 12px;
}
@media (max-width: 850px) {
  .api-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .api-guide-outline:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    position: static;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .api-guide-outline button { width: auto; }
  .api-guide-body { border-left: 0; }
}
