:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #252235; background: #f8f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #5a3fac; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 28px; border-bottom: 1px solid #e4e0ed; background: #fff; }
.brand { color: #302650; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand span { color: #7955c6; font-size: 13px; margin-left: 5px; }
.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar nav a { font-size: 14px; text-decoration: none; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1500px; margin: auto; }
.sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - 66px); overflow: auto; padding: 24px 16px; border-right: 1px solid #e5e0ed; background: #fff; }
.sidebar label, .token-controls label { display: block; font-size: 12px; font-weight: 700; color: #706a7e; margin-bottom: 8px; }
.sidebar input, .token-controls input { width: 100%; border: 1px solid #d9d3e4; border-radius: 10px; padding: 11px 12px; background: #fff; color: inherit; }
#navigation { display: grid; gap: 4px; margin-top: 22px; }
#navigation a { display: block; padding: 8px 10px; border-radius: 8px; color: #544d64; text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
#navigation a:hover { background: #f1ecfa; color: #4b2f9d; }
#navigation strong { display: block; margin: 18px 10px 5px; font-size: 12px; color: #82788d; }
main { min-width: 0; padding: 36px clamp(20px, 4vw, 64px) 80px; }
.hero { padding: 28px 0 24px; max-width: 900px; }
.eyebrow { color: #7351b6; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; margin: 8px 0 14px; }
h2 { font-size: 21px; margin: 0 0 8px; }
p { line-height: 1.6; }
.hero p { color: #666071; }
.hero-links { display: flex; gap: 18px; margin-top: 18px; }
.token-box { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 22px; border: 1px solid #ded4f3; border-radius: 16px; background: #f1ecfc; margin: 18px 0 30px; }
.token-box p { margin: 0; color: #615a70; font-size: 14px; }
.token-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; min-width: min(100%, 360px); }
.token-controls label { width: 100%; margin: 0; }
.token-controls input { flex: 1; min-width: 160px; }
.token-controls button, .run { background: #6447aa; color: white; border: 0; border-radius: 9px; padding: 11px 15px; }
.token-controls button { background: #e2d9f4; color: #4e388a; }
.tag-title { margin: 38px 0 14px; font-size: 22px; }
.operation { border: 1px solid #e3dfea; background: #fff; border-radius: 14px; margin: 10px 0; overflow: hidden; box-shadow: 0 2px 9px #342c4b08; }
.operation summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.operation summary::-webkit-details-marker { display: none; }
.method { display: inline-block; min-width: 64px; text-align: center; font: 700 12px ui-monospace, monospace; padding: 6px 7px; border-radius: 7px; background: #e9f2fc; color: #2468ad; }
.method.post { background: #e8f6ed; color: #237448; }.method.patch { background: #fff3dc; color: #9b650e; }.method.delete { background: #fde9ea; color: #b63e50; }
.route { font: 13px ui-monospace, monospace; overflow-wrap: anywhere; }
.summary { margin-left: auto; color: #686174; font-size: 14px; text-align: right; }
.operation-body { padding: 0 20px 20px; border-top: 1px solid #f0edf3; }
.operation-body h3 { margin: 22px 0 9px; font-size: 15px; }
.field-row { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 12px; align-items: center; margin: 8px 0; }
.field-row label { font-size: 13px; overflow-wrap: anywhere; }.field-row input { width: 100%; padding: 9px; border: 1px solid #dcd7e4; border-radius: 8px; }
.required { color: #b04457; }
.field-help { color: #777180; font-size: 12px; }
textarea, pre { width: 100%; border: 1px solid #e4dfeb; border-radius: 10px; background: #282535; color: #f4f1fb; padding: 14px; font: 13px/1.55 ui-monospace, monospace; overflow: auto; }
textarea { min-height: 140px; resize: vertical; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.actions small { color: #746c80; }
.result { display: none; margin-top: 14px; }.result.visible { display: block; }
#status { color: #ab344b; }
.reference { max-width: 900px; margin: auto; padding: 50px 24px 100px; }.reference h2 { margin-top: 44px; }.reference h3 { margin-top: 28px; }.reference pre { margin: 12px 0 24px; }
@media (max-width: 850px) { .layout { display: block; }.sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #e5e0ed; }.sidebar #navigation { max-height: 150px; overflow: auto; }.topbar { height: auto; min-height: 66px; padding: 14px 20px; flex-wrap: wrap; }.summary { display: none; }.token-box { display: block; }.token-controls { margin-top: 18px; }.field-row { grid-template-columns: 1fr; gap: 4px; } }
