:root {
  color-scheme: light;
  --ink: #252b30;
  --muted: #59636c;
  --line: #d6dade;
  --paper: #f6f7f7;
  --link: #234f82;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 system-ui,
    sans-serif;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
button,
select,
input {
  font: inherit;
}
code,
pre,
.metrics dd,
td {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.page {
  max-width: 1100px;
  margin: auto;
  padding: 0 28px;
}
.masthead {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.name {
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.name span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.intro {
  padding: 30px 0 24px;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.intro p {
  max-width: 660px;
  color: var(--muted);
  margin: 0;
}
h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.tester {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: white;
  border: 1px solid var(--line);
}
.request-panel {
  padding: 23px;
  border-right: 1px solid var(--line);
}
.request-panel h2 {
  margin-bottom: 20px;
}
.request-panel > label,
legend {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
select {
  width: 100%;
  padding: 9px;
  border: 1px solid #aeb6bc;
  border-radius: 3px;
  color: var(--ink);
  background: white;
}
fieldset {
  margin: 22px 0;
  padding: 0;
  border: 0;
}
.preset {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 0;
  cursor: pointer;
}
.preset input {
  margin: 0;
  accent-color: var(--link);
}
.preset strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
.preset small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}
.actions {
  display: flex;
  gap: 8px;
}
button {
  padding: 9px 11px;
  border: 1px solid var(--link);
  border-radius: 3px;
  background: var(--link);
  color: white;
  cursor: pointer;
  font-size: 12px;
}
button:hover {
  background: #173b64;
}
button.secondary {
  color: var(--ink);
  border-color: #aeb6bc;
  background: white;
}
button.secondary:hover {
  background: #edf1f5;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.hint,
.shared-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.hint {
  margin: 16px 0 0;
}
.response-panel {
  padding: 23px;
  min-width: 0;
}
.panel-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cache-state {
  font:
    12px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #edf1f5;
  color: #334b63;
  padding: 2px 7px;
  border: 1px solid #d6dfe8;
}
.cache-state[data-state="HIT"] {
  background: #edf5ee;
  border-color: #c9ddcc;
  color: #285435;
}
.cache-state[data-state="STALE"] {
  background: #fff5df;
  border-color: #e6d4ad;
  color: #72500e;
}
.cache-state[data-state="UNAVAILABLE"],
.cache-state[data-state="ERROR"] {
  background: #faeeec;
  border-color: #dfc7c2;
  color: #8a3428;
}
.request-path {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 18px 0;
}
.metrics dt {
  font-size: 12px;
  color: var(--muted);
}
.metrics dd {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.metrics small {
  font-size: 12px;
  color: var(--muted);
}
.content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 7px;
}
.content p {
  font-size: 13px;
  margin: 0 0 10px;
}
.content .generated {
  color: var(--muted);
  font-size: 12px;
}
.response-body {
  margin-top: 18px;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: var(--link);
}
pre {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--paper);
  padding: 12px;
  margin: 10px 0 0;
}
.feedback {
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
  padding-top: 13px;
  color: var(--muted);
  font-size: 12px;
}
.history {
  margin-top: 26px;
}
.section-heading {
  margin-bottom: 10px;
}
.section-heading span {
  font-size: 12px;
  color: var(--muted);
}
.table-scroll {
  border: 1px solid var(--line);
  max-height: 320px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  background: #eef0f2;
  padding: 9px 14px;
  font-weight: 550;
  color: #48545e;
  position: sticky;
  top: 0;
}
td {
  padding: 8px 14px;
  border-top: 1px solid #e3e6e9;
  background: white;
  font-variant-numeric: tabular-nums;
}
.empty {
  font-family: inherit;
  color: var(--muted);
  padding: 18px 14px;
}
.shared-note {
  margin: 11px 0 0;
  max-width: 900px;
}
.policy {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}
.policy dl {
  margin: 14px 0;
}
.policy dl > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 15px;
  margin: 7px 0;
  font-size: 13px;
}
.policy dt {
  color: var(--muted);
}
.policy dd {
  margin: 0;
}
.policy > p {
  color: var(--muted);
  font-size: 12px;
  margin: 15px 0 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 12px;
}
:focus-visible {
  outline: 2px solid #285e9b;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  padding: 10px;
  z-index: 2;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 740px) {
  .page {
    padding: 0 18px;
  }
  .masthead {
    min-height: 68px;
  }
  .name span {
    display: none;
  }
  nav {
    gap: 15px;
  }
  .intro {
    padding: 24px 0 20px;
  }
  h1 {
    font-size: 24px;
  }
  .tester {
    grid-template-columns: 1fr;
  }
  .request-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .response-panel {
    padding: 20px;
  }
  .policy dl > div {
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 12px 0;
  }
  footer {
    flex-direction: column;
  }
}
