/* the developer look (docs/native-app-design.md section 23, "Two looks"): vercel's and elevenlabs'
   measured documentation, the landing's wordmark and the one orange */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #fafafa;
  --fg: #171717;
  --fg2: #3a3a3a;
  --mut: #666666;
  --line: #ebebeb;
  --line2: #e2e2e2;
  --fill: #f2f2f2;
  --fill2: #ebebeb;
  --code: #fafafa;
  --edge: rgba(0, 0, 0, 0.2);
  --acc: #f05a0a;
  --req: #c4161c;
  --btn: #171717;
  --btn-t: #ffffff;
  --s-str: #0f7a3c;
  --s-key: #171717;
  --s-num: #b25000;
  --s-pun: #6b6b6b;
  --s-flag: #1d5fb8;
  --get: #1d7a36;
  --get-bg: #e8f7ec;
  --post: #1d5fb8;
  --post-bg: #e8f0fc;
  --patch: #995208;
  --patch-bg: #fcf0e1;
  --put: #6a3fb4;
  --put-bg: #f1ebfc;
  --del: #b42318;
  --del-bg: #fdecea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg2: #0f0f0f;
    --fg: #ededed;
    --fg2: #cfcfcf;
    --mut: #a1a1a1;
    --line: #242424;
    --line2: #2e2e2e;
    --fill: #171717;
    --fill2: #1f1f1f;
    --code: #0f0f0f;
    --edge: rgba(255, 255, 255, 0.26);
    --req: #ff8a84;
    --btn: #ededed;
    --btn-t: #0a0a0a;
    --s-str: #7ad7a0;
    --s-key: #ededed;
    --s-num: #f3b06a;
    --s-pun: #8f8f8f;
    --s-flag: #8ab8ff;
    --get: #6fd08a;
    --get-bg: #0f2a18;
    --post: #8ab8ff;
    --post-bg: #10213f;
    --patch: #f0b46b;
    --patch-bg: #2e1d08;
    --put: #c4a8ff;
    --put-bg: #221638;
    --del: #ff8f85;
    --del-bg: #33130f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg2: #0f0f0f;
  --fg: #ededed;
  --fg2: #cfcfcf;
  --mut: #a1a1a1;
  --line: #242424;
  --line2: #2e2e2e;
  --fill: #171717;
  --fill2: #1f1f1f;
  --code: #0f0f0f;
  --edge: rgba(255, 255, 255, 0.26);
  --req: #ff8a84;
  --btn: #ededed;
  --btn-t: #0a0a0a;
  --s-str: #7ad7a0;
  --s-key: #ededed;
  --s-num: #f3b06a;
  --s-pun: #8f8f8f;
  --s-flag: #8ab8ff;
  --get: #6fd08a;
  --get-bg: #0f2a18;
  --post: #8ab8ff;
  --post-bg: #10213f;
  --patch: #f0b46b;
  --patch-bg: #2e1d08;
  --put: #c4a8ff;
  --put-bg: #221638;
  --del: #ff8f85;
  --del-bg: #33130f;
}
* {
  box-sizing: border-box;
}
/* the failure line is a flex row, so its hidden state is said again */
.fail[hidden],
.file [hidden],
.try-res [hidden] {
  display: none;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}
body {
  font:
    400 16px / 28px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
code,
pre,
textarea.code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-ligatures: none;
}
.ic {
  flex: none;
  display: block;
}
/* the skip link: hidden until it has focus, then the small primary button over the bar's left edge */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 60;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.copy-fail {
  margin-top: 10px;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* the bar: vercel's 64 px */
.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hd .home {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
}
.wordmark {
  height: 20px;
  width: auto;
  display: block;
}
.hd .slash {
  color: var(--line2);
  flex: none;
  margin: 0 -4px;
}
.hd .sec {
  font:
    600 15px / 20px Inter,
    sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hd .sp {
  flex: 1;
}
.hd .lk {
  font:
    500 14px / 20px Inter,
    sans-serif;
  color: var(--mut);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.hd .lk:hover {
  color: var(--fg);
}
.icb {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.theme .moon,
:root[data-theme="dark"] .theme .sun {
  display: none;
}
:root[data-theme="dark"] .theme .moon {
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font:
    500 14px / 20px Inter,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.sm {
  height: 32px;
  padding: 0 10px;
}
.btn.lg {
  height: 40px;
  padding: 0 16px;
}
.btn.pri {
  background: var(--btn);
  color: var(--btn-t);
}
.btn.sec2 {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--line2);
}
.mb {
  display: none;
}

/* the side list: fixed from 1024 */
.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}
.side {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  padding: 20px 12px 40px 16px;
  border-right: 1px solid var(--line);
}
.nv {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font:
    400 14px / 20px Inter,
    sans-serif;
  color: var(--mut);
  text-decoration: none;
}
.nv:hover,
.ne:hover {
  color: var(--fg);
}
.nv.on {
  background: var(--fill2);
  color: var(--fg);
  font-weight: 500;
}
.nv .chev {
  margin-left: auto;
  color: var(--mut);
}
.ng {
  margin: 22px 10px 6px;
  font:
    600 13px / 18px Inter,
    sans-serif;
  color: var(--fg);
}
.nsub {
  margin: 4px 0 6px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.nsub .nl {
  margin: 12px 10px 4px;
  font:
    500 12px / 16px Inter,
    sans-serif;
  color: var(--mut);
}
.ne {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  font:
    400 13.5px / 19px Inter,
    sans-serif;
  color: var(--mut);
  text-decoration: none;
  position: relative;
}
.ne .m {
  margin-top: 1px;
}
.ne.on {
  background: var(--fill2);
  color: var(--fg);
  font-weight: 500;
}
.ne.on::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--acc);
}
/* one width for every method, the widest's (delete), so the names after them start on one edge */
.m {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 19px;
  padding: 0;
  border-radius: 4px;
  font:
    600 10.5px / 19px Inter,
    sans-serif;
  letter-spacing: 0.02em;
  flex: none;
}
.m.get {
  color: var(--get);
  background: var(--get-bg);
}
.m.post {
  color: var(--post);
  background: var(--post-bg);
}
.m.patch {
  color: var(--patch);
  background: var(--patch-bg);
}
.m.put {
  color: var(--put);
  background: var(--put-bg);
}
.m.delete {
  color: var(--del);
  background: var(--del-bg);
}
.navp {
  display: none;
}
.navp-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 10px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.navp-f .lnk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 22px;
}
.mbl {
  display: none;
}

/* the page */
.main {
  min-width: 0;
  padding: 40px 56px 96px;
}
.doc {
  max-width: 768px;
}
.doc.wide {
  max-width: 820px;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font:
    400 14px / 20px Inter,
    sans-serif;
  color: var(--mut);
  margin-bottom: 14px;
}
.crumb a {
  text-decoration: none;
}
.crumb b {
  font-weight: 400;
  color: var(--fg);
}
h1.t {
  margin: 0;
  font:
    650 36px / 44px Inter,
    sans-serif;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
.lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 28px;
  color: var(--fg2);
}
.lead + .lead {
  margin-top: 12px;
}
h2.h {
  margin: 52px 0 0;
  font:
    600 24px / 32px Inter,
    sans-serif;
  letter-spacing: -0.02em;
}
h2.h.s {
  margin-top: 40px;
  font-size: 20px;
  line-height: 28px;
}
.p {
  margin-top: 16px;
  color: var(--fg2);
}
.lnk {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line2);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.small {
  font-size: 14px;
  line-height: 22px;
  color: var(--mut);
}
.p.small {
  margin-top: 10px;
}

/* code: vercel's bordered block with elevenlabs' bar */
.cb {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code);
  overflow: hidden;
}
.cb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--line);
}
.cb-bar .lab {
  font:
    500 13px / 18px Inter,
    sans-serif;
  color: var(--mut);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-bar .sp {
  flex: 1;
}
.cb pre {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 22px;
  overflow-x: auto;
  color: var(--fg);
  tab-size: 2;
  /* a code wider than its box shows a shade at each edge that hides more, in every browser and
     whether or not it draws scroll bars: the shades stay with the box, the covers with the code */
  background:
    linear-gradient(to right, var(--code) 40%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--code) 40%, transparent) right / 32px 100% no-repeat local,
    linear-gradient(to right, var(--edge), transparent) left / 16px 100% no-repeat scroll,
    linear-gradient(to left, var(--edge), transparent) right / 16px 100% no-repeat scroll,
    var(--code);
}
.cb pre.tall {
  max-height: 330px;
}
/* a code wider than its box scrolls with a bar always shown (the o7 addendum, n1) */
.cb pre::-webkit-scrollbar,
.try-res pre::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.cb pre::-webkit-scrollbar-track,
.try-res pre::-webkit-scrollbar-track {
  background: var(--line);
}
.cb pre::-webkit-scrollbar-thumb,
.try-res pre::-webkit-scrollbar-thumb {
  background: var(--mut);
  border-radius: 4px;
}
@supports not selector(::-webkit-scrollbar) {
  .cb pre,
  .try-res pre {
    scrollbar-width: thin;
    scrollbar-color: var(--mut) var(--line);
  }
}
.cb.one {
  display: flex;
  align-items: center;
}
.cb.one pre {
  flex: 1;
  padding: 12px 16px;
}
.cb.one .cpy {
  margin-right: 8px;
}
.cpy {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  flex: none;
}
.js .cpy {
  display: inline-grid;
}
.cpy:hover {
  background: var(--fill);
}
.cpy .ok,
.cpy.done .copy {
  display: none;
}
.cpy.done .ok {
  display: block;
}
.cpy.done {
  color: var(--get);
}
.s-s {
  color: var(--s-str);
}
.s-k {
  color: var(--s-key);
}
.s-n {
  color: var(--s-num);
}
.s-p {
  color: var(--s-pun);
}
.s-f {
  color: var(--s-flag);
}

/* tabs: vercel's segmented tabs; without the script every panel shows */
.tabs {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
}
.js .tabs {
  display: flex;
}
.tab {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  font:
    450 13px / 32px Inter,
    sans-serif;
  color: var(--mut);
  cursor: pointer;
  white-space: nowrap;
}
.tab[aria-selected="true"] {
  background: var(--fill2);
  color: var(--fg);
  font-weight: 500;
}
.tabrow {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: 32px;
}
html:not(.js) .tabrow {
  display: none;
}
.js [role="tabpanel"]:not(.on) {
  display: none;
}
.js .nojs {
  display: none;
}
h3.nojs {
  margin: 32px 0 0;
  font:
    600 17px / 28px Inter,
    sans-serif;
}
.lang-lab {
  display: none;
}
html:not(.js) .lang-lab {
  display: block;
  padding: 10px 16px 0;
  font:
    500 13px / 18px Inter,
    sans-serif;
  color: var(--mut);
}

/* the link cards: elevenlabs' bordered cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.cards.gap {
  margin-top: 28px;
}
.cardl {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg);
}
.cardl:hover {
  border-color: var(--line2);
  background: var(--bg2);
}
.cardl .ct {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    600 15px / 22px Inter,
    sans-serif;
  color: var(--fg);
}
.cardl .ct .ic {
  color: var(--mut);
  margin-left: auto;
}
.cardl .cd {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
  color: var(--mut);
}

/* authentication's two lists and its note */
.cc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.cc h2 {
  margin: 0;
  font:
    600 16px / 22px Inter,
    sans-serif;
}
.cc ul {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 24px;
  color: var(--fg2);
}
.cc li {
  margin: 4px 0;
}
.note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
  line-height: 22px;
  color: var(--mut);
}
.note .ic {
  margin-top: 3px;
}

/* the mcp server page */
.addr {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg2);
}
.addr .u {
  flex: 1;
  min-width: 0;
  font:
    500 16px / 24px Inter,
    sans-serif;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.copyt {
  display: none;
}
.js .copyt {
  display: inline-flex;
}
.copyt .ok,
.copyt.done .copy {
  display: none;
}
.copyt.done .ok {
  display: inline;
}
.act {
  margin-top: 18px;
}
.quote {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 8px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  font-size: 15px;
  line-height: 24px;
  color: var(--fg2);
}
.quote p {
  flex: 1;
  min-width: 0;
}

/* a resource: its endpoints in groups, each a row */
.grp {
  margin-top: 40px;
}
.grp h2.h {
  margin-top: 0;
  font-size: 20px;
  line-height: 28px;
}
.eps {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.epr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.epr:last-child {
  border-bottom: 0;
}
.epr:hover {
  background: var(--bg2);
}
.epr .m {
  grid-row: 1;
  align-self: start;
  margin-top: 2px;
}
.epr .nm {
  font:
    500 15px / 22px Inter,
    sans-serif;
  color: var(--fg);
}
.epr .ds {
  grid-column: 2;
  font-size: 14px;
  line-height: 21px;
  color: var(--mut);
}
.epr .pa {
  grid-column: 2;
  font:
    400 12.5px / 18px "JetBrains Mono",
    monospace;
  color: var(--mut);
}
.epr .go {
  grid-row: 1 / span 3;
  grid-column: 3;
  color: var(--mut);
}

/* an endpoint: two columns only when the area beside the side list is 1136 wide, so the left
   column keeps the board's 560 (the o7 addendum, m4.2); from 1136 to 1176 the gutters narrow from
   56 to 40, 48 and 40 */
.main {
  container: main / inline-size;
}
.ep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 448px;
  gap: clamp(48px, calc(48px + (100cqi - 1024px) * 0.2), 56px);
  margin-inline: calc(-1 * clamp(0px, calc((1064px - 100cqi) * 0.4), 16px));
  max-width: 1120px;
}
.ep-r {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ep-r .cb {
  margin-top: 0;
}
/* the sticky column scrolls on its own, so the send panel's answer is always reachable */
@container main (min-width: 1024px) {
  .ep-r {
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .ep-r > * {
    flex-shrink: 0;
  }
}
.route {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg2);
  font:
    400 13px / 20px "JetBrains Mono",
    monospace;
  color: var(--mut);
  align-items: flex-start;
}
/* the base stays whole; the path wraps only after a slash (the o7 addendum, n1) */
.route > span {
  min-width: 0;
}
.route .base {
  white-space: nowrap;
}
.route b {
  font-weight: 500;
  color: var(--fg);
}
.ep-top .lead {
  font-size: 16px;
  line-height: 26px;
}
.params {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.pr {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pr-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.pn {
  font:
    600 14px / 20px "JetBrains Mono",
    monospace;
  color: var(--fg);
}
.pt {
  font:
    400 12.5px / 20px Inter,
    sans-serif;
  color: var(--mut);
}
.rq {
  font:
    600 12px / 20px Inter,
    sans-serif;
  color: var(--req);
}
.pd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 22px;
  color: var(--fg2);
}
.pd code,
.ic-code {
  font-size: 12.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--fill);
  border: 1px solid var(--line);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 22px;
  color: var(--mut);
}
.chip {
  font:
    500 12px / 20px "JetBrains Mono",
    monospace;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--fg2);
}
details.kids {
  margin-top: 12px;
}
details.kids > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--bg);
  font:
    500 13px / 18px Inter,
    sans-serif;
  color: var(--fg2);
  cursor: pointer;
}
details.kids > summary::-webkit-details-marker {
  display: none;
}
details.kids > summary .hide,
details.kids[open] > summary .show,
details.kids[open] > summary .plus {
  display: none;
}
details.kids > summary .chev {
  display: none;
}
details.kids[open] > summary .hide,
details.kids[open] > summary .chev {
  display: block;
}
details.kids[open] {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
details.kids[open] > summary {
  display: flex;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg2);
  color: var(--fg);
}
details.kids > .pr {
  padding: 14px 16px;
}
/* one of several shapes: the open box of a nested object, one per shape, 12 apart */
.shapes {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
details.kids > .shapes {
  margin: 0;
  padding: 14px 16px;
}
.shp {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.shp-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: var(--bg2);
  font-size: 13px;
  line-height: 20px;
  color: var(--fg2);
}
.shp-h code {
  font:
    600 13px / 20px "JetBrains Mono",
    monospace;
  color: var(--fg);
}
.shp > .pr {
  padding: 14px 16px;
}
.shp > .pr:last-child {
  border-bottom: 0;
}
details.kids > .pr:last-child {
  border-bottom: 0;
}
.resp {
  margin-top: 6px;
}
.resp + .params {
  margin-top: 10px;
}
.sc {
  font:
    600 12px / 20px "JetBrains Mono",
    monospace;
  padding: 0 6px;
  border-radius: 4px;
}
.sc.ok {
  color: var(--get);
  background: var(--get-bg);
}
.sc.no {
  color: var(--del);
  background: var(--del-bg);
}
.sc.wa {
  color: var(--patch);
  background: var(--patch-bg);
}
.errs {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.er {
  display: grid;
  grid-template-columns: 56px 180px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 22px;
  color: var(--fg2);
}
.er:last-child {
  border-bottom: 0;
}
.er .sc {
  align-self: start;
  justify-self: start;
}
/* a code keeps the gap again inside its column, so it wraps after an underscore before it can
   reach its description */
.er code {
  padding-right: 12px;
  font-size: 13px;
  color: var(--fg);
}
.resp-h {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px 0 12px;
  border-bottom: 1px solid var(--line);
}
.resp-h .lab {
  font:
    500 13px / 18px Inter,
    sans-serif;
  color: var(--mut);
}
.resp-h .sp {
  flex: 1;
}

/* the send panel: elevenlabs' "try it" */
.try {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.try > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 46px;
  padding: 0 8px 0 14px;
  font:
    600 14px / 20px Inter,
    sans-serif;
  cursor: pointer;
}
.try > summary::-webkit-details-marker {
  display: none;
}
.try[open] > summary {
  border-bottom: 1px solid var(--line);
}
.try .ch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mut);
}
.try .ch .down,
.try[open] .ch .right {
  display: none;
}
.try[open] .ch .down {
  display: block;
}
.try-b {
  padding: 12px 14px 16px;
  display: grid;
  gap: 12px;
}
.fld {
  display: grid;
  gap: 6px;
}
.fld label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font:
    600 12.5px / 16px "JetBrains Mono",
    monospace;
  color: var(--fg);
}
.fld label span {
  font:
    400 12px / 16px Inter,
    sans-serif;
  color: var(--mut);
}
.inp {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: var(--bg);
  font:
    400 13px / 20px "JetBrains Mono",
    monospace;
  color: var(--fg);
}
/* the body field wraps its lines, so none is cut at its edge; it scrolls down as a field does */
textarea.inp {
  height: auto;
  min-height: 120px;
  padding: 8px 10px;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
}
.inp::placeholder {
  color: var(--mut);
}
.inp:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 1px var(--fg);
}
.send-row {
  display: flex;
  justify-content: flex-end;
}
.btn.send {
  border-radius: 999px;
  padding: 0 16px;
}
.btn.send[disabled] {
  opacity: 0.5;
  cursor: default;
}
.btn.send .spin {
  display: none;
}
.btn.send[aria-busy="true"] .spin {
  display: inline-block;
}
.spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.try-res {
  border-top: 1px solid var(--line);
}
.try-res .resp-h {
  background: var(--bg2);
}
.try-res .ra {
  font:
    400 12.5px / 18px "JetBrains Mono",
    monospace;
  color: var(--mut);
}
/* the answer's lines wrap in their box, so a refusal's description reads whole */
.try-res pre {
  margin: 0;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-y: auto;
  max-height: 260px;
  color: var(--fg);
}
/* a refusal of the panel's own: the red line with its icon, then retry under it when it has one */
.fail {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  animation: size-open 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes size-open {
  from {
    max-height: 0;
    padding-block: 0;
  }
  to {
    max-height: 240px;
  }
}
.fl {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 22px;
  color: var(--req);
}
.fl .ic {
  margin-top: 3px;
}
.fl code,
.fname {
  overflow-wrap: anywhere;
}
.fl code {
  font-size: 12.5px;
}
.fld label .rq,
.fld .lbl .rq {
  font:
    600 12px / 16px Inter,
    sans-serif;
  color: var(--req);
}
.fld .lbl {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font:
    600 12.5px / 16px "JetBrains Mono",
    monospace;
  color: var(--fg);
}
.fld .lbl > span:not(.rq) {
  font:
    400 12px / 16px Inter,
    sans-serif;
  color: var(--mut);
}
.inp.bad,
.file.bad {
  border-color: var(--req);
}
/* the file field: the panel's bordered box, its button, then the name with its size under it on one
   edge, and clear */
.file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 40px;
  padding: 4px 4px 4px 4px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: var(--bg);
}
.fmeta {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  padding-left: 6px;
}
.fname {
  font-size: 14px;
  line-height: 22px;
  color: var(--fg);
}
.fsize {
  font-size: 13px;
  line-height: 20px;
  color: var(--mut);
}
.icb.clr {
  width: 40px;
  height: 40px;
  border: 0;
  margin-left: auto;
}
.file-res {
  padding: 12px 14px;
}

/* errors and limits */
.ert,
.lt {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.er2 {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.er2:last-child {
  border-bottom: 0;
}
.er2-h {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
/* a long code stays beside its status and wraps after an underscore, never alone under it */
.er2-h code {
  flex: 1 1 0;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--fg);
  font-weight: 500;
}
.er2 p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 22px;
  color: var(--fg2);
}
.ltr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 4px 24px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 24px;
}
.ltr:last-child {
  border-bottom: 0;
}
.ltr .k {
  color: var(--fg);
}
.ltr .v {
  color: var(--fg2);
}
.ltr .v code {
  font-size: 13px;
}
.nf {
  padding-top: 72px;
  max-width: 560px;
}
.nf .code404 {
  font:
    600 14px / 20px "JetBrains Mono",
    monospace;
  color: var(--mut);
}
.nf .t {
  margin-top: 8px;
}
.nf .act {
  margin-top: 28px;
}

/* one column below that, in the phone's order, at most 768 wide */
@container main (max-width: 1023.98px) {
  .ep {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-inline: 0;
    max-width: 768px;
  }
  .ep-l {
    display: contents;
  }
  .ep-top,
  .ep-r,
  .ep-rest {
    width: 100%;
    min-width: 0;
  }
  .ep-top {
    order: 0;
  }
  .ep-r {
    position: static;
    margin-top: 28px;
    order: 1;
  }
  .ep-rest {
    order: 2;
  }
}
/* narrower */
@media (max-width: 1023px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    display: none;
  }
  .main {
    padding: 28px 20px 72px;
  }
  .hd {
    padding: 0 16px;
    height: 56px;
  }
  .hd .dt {
    display: none;
  }
  .js .mb {
    display: inline-grid;
  }
  .mb .x,
  .mb[aria-expanded="true"] .bars {
    display: none;
  }
  .mb[aria-expanded="true"] .x {
    display: block;
  }
  .navp.open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 56px;
    bottom: 0;
    z-index: 25;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow: auto;
    padding: 12px 12px 40px;
  }
  .navp .nv,
  .navp .ne {
    min-height: 44px;
    align-items: center;
  }
  body.menu-open {
    overflow: hidden;
  }
  /* without scripts the menu is a link to the side list, drawn whole at the page's foot */
  html:not(.js) .mbl {
    display: inline-grid;
  }
  html:not(.js) .navp {
    display: block;
    margin: 0 8px;
    padding: 12px 12px 40px;
    border-top: 1px solid var(--line);
  }
  html:not(.js) .navp .theme {
    display: none;
  }
}
@media (max-width: 640px) {
  h1.t {
    font-size: 30px;
    line-height: 36px;
  }
  .lead {
    font-size: 16px;
    line-height: 26px;
  }
  h2.h {
    margin-top: 44px;
    font-size: 21px;
    line-height: 28px;
  }
  .cards,
  .cc {
    grid-template-columns: minmax(0, 1fr);
  }
  .er {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .ltr {
    grid-template-columns: minmax(0, 1fr);
  }
  .epr {
    padding: 14px;
  }
  .nf {
    padding-top: 40px;
  }
  .tabs {
    row-gap: 6px;
  }
  .tab {
    height: 40px;
    line-height: 40px;
  }
  .icb,
  .js .cpy,
  .js .mb,
  .mbl {
    width: 40px;
    height: 40px;
  }
  .btn,
  .btn.sm,
  .inp,
  details.kids > summary {
    height: 40px;
  }
  .hd .home {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation-duration: 2s;
  }
  .fail {
    animation: fade-in 0.2s linear;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
