:root {
  color-scheme: light;
  --ink: #0c1015;
  --muted: #5a6370;
  --line: #d8dde4;
  --soft: #f2f4f7;
  --accent: #315ee7;
  --good: #137a50;
  --danger: #b42318;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f7f8fa;
  color: var(--ink);
  font:
    15px/1.55 Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
.topbar {
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.brand img {
  display: block;
  width: 260px;
  height: auto;
}
.brand small {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid;
  border-radius: 9px;
}
.topbar nav,
footer nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar nav a,
footer a {
  color: #343b45;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.topbar a[aria-current="page"] {
  color: var(--accent);
}
.shell-menu-toggle {
  display: none;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}
main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}
.intro {
  max-width: 840px;
}
.eyebrow,
.panel-head small,
.boundaries small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--accent);
}
h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.intro > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}
.notice {
  margin-top: 24px;
  padding: 14px 17px;
  border: 1px solid #bdc9f2;
  border-left: 4px solid var(--accent);
  background: #f5f7ff;
}
.console {
  margin-top: 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid #242a33;
  border-radius: 16px;
  overflow: hidden;
  background: #10141b;
  color: #f7f8fb;
  box-shadow: 0 24px 70px rgba(12, 16, 21, 0.16);
}
.request-panel,
.response-panel {
  padding: 28px;
}
.request-panel {
  border-right: 1px solid #303641;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.panel-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
}
.status {
  color: #aeb7c5;
  font-size: 12px;
}
.request-panel label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: #e5e8ed;
  font-size: 12px;
  font-weight: 700;
}
.request-panel label span {
  color: #8994a5;
  font-weight: 500;
}
.request-panel select,
.request-panel input,
.request-panel textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #394250;
  border-radius: 7px;
  background: #171d26;
  color: #f4f6fa;
  font:
    13px/1.45 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.route-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #394250;
  border-radius: 7px;
  background: #171d26;
}
.method {
  padding: 3px 7px;
  border-radius: 4px;
  background: #264ebd;
  font:
    800 11px/1.3 ui-monospace,
    monospace;
}
.route-row code {
  overflow-wrap: anywhere;
  color: #fff;
}
.muted {
  color: #9aa4b3;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #485161;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
button.primary {
  border-color: var(--accent);
  background: var(--accent);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #303641;
}
.tabs button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  color: #9fa9b8;
}
.tabs button.active {
  background: #252c37;
  color: #fff;
}
.response-panel pre {
  min-height: 560px;
  max-height: 760px;
  margin: 18px 0;
  padding: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d7deea;
  background: transparent;
  font:
    12px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.copy {
  float: right;
}
.error {
  padding: 10px 12px;
  border: 1px solid #8a302d;
  background: #351b1c;
  color: #ffb4ae;
}
.boundaries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}
.boundaries article {
  padding: 24px;
  background: #fff;
}
.boundaries h3 {
  margin: 7px 0;
}
.boundaries p {
  margin: 0;
  color: var(--muted);
}
footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 850px) {
  .topbar {
    padding: 18px 20px;
    align-items: center;
    flex-wrap: wrap;
  }
  .topbar nav {
    display: none;
  }
  .topbar .shell-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .topbar.shell-menu-open nav {
    display: flex;
    flex: 1 0 100%;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .topbar.shell-menu-open nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 4px;
  }
  .console {
    grid-template-columns: 1fr;
  }
  .request-panel {
    border-right: 0;
    border-bottom: 1px solid #303641;
  }
  .boundaries {
    grid-template-columns: 1fr;
  }
  .response-panel pre {
    min-height: 380px;
  }
  footer {
    margin: 0 20px;
    flex-direction: column;
  }
}
