:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #172541;
  background: #f3f6fa;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 58rem); margin-inline: auto; }
.bar { background: #10223c; color: white; }
.bar-content { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.07em; }
.environment { margin-inline-start: auto; font-size: .85rem; border: 1px solid #8298b7; padding: .2rem .65rem; border-radius: 1rem; }
main { padding-block: clamp(1.5rem, 5vw, 4rem); }
h1, h2 { margin-block: 0 .65rem; line-height: 1.2; letter-spacing: -.03em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: 1.4rem; }
p { margin-block: 0 1rem; }
.client { color: #465775; }
.card { border: 1px solid #d9e1eb; border-radius: 1rem; background: white; padding: clamp(1.15rem, 3vw, 2rem); }
.login { max-width: 29rem; margin: 2rem auto 0; }
form { display: grid; gap: 1rem; margin-top: 1rem; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; }
input, select { width: 100%; min-width: 0; min-height: 2.7rem; border-radius: .5rem; border: 1px solid #91a3bc; padding: .45rem .7rem; background: white; color: inherit; }
button { justify-self: start; border: 1px solid transparent; border-radius: .5rem; background: #1749ae; color: white; padding: .6rem 1rem; cursor: pointer; font-weight: 650; }
button.quiet { border-color: #9bacc4; background: white; color: #183767; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #3378dc; outline-offset: 2px; }
nav, .row { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
nav [aria-pressed="true"] { background: #1749ae; color: white; border-color: #1749ae; }
fieldset { display: grid; gap: .85rem; margin: 0; border: 1px solid #d9e1eb; border-radius: .65rem; }
.check { display: flex; align-items: center; gap: .55rem; }
.check input { width: 1rem; min-height: 1rem; flex: none; }
.result { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid #d9e1eb; }
.result > button { margin-top: .85rem; }
dl { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr); gap: .4rem 1rem; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
img { display: block; object-fit: contain; max-width: 100%; }
.notice { padding: .85rem 1rem; margin-top: 1rem; border-radius: .6rem; background: #e5eefb; }
.notice.error { background: #fce8e8; color: #822a24; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem 1rem; }

.api-nav { color: white; margin-inline-start: auto; }
.api-nav:not([hidden]) + .environment { margin-inline-start: 0; }
.api-reference { margin-top: 2rem; scroll-margin-top: 1rem; }
.api-reference h3 { margin: 1.5rem 0 .25rem; }
.api-reference details { border-top: 1px solid #d9e1eb; margin-top: 0; padding-block: .8rem; }
.api-reference summary { overflow-wrap: anywhere; }
.api-reference summary small { display: block; margin-left: 1.15rem; color: #465775; font-weight: 500; }
.api-reference code { overflow-wrap: anywhere; }
.api-example-heading { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-top: .8rem; }
.api-example-heading button { padding: .25rem .65rem; font-size: .85rem; }
.api-reference pre { background: #f3f6fa; border: 1px solid #d9e1eb; border-radius: .55rem; padding: .8rem; margin: .35rem 0 1rem; overflow: auto; }
.api-reference pre code { overflow-wrap: normal; }
.api-reference [role="status"]:empty { display: none; }
