:root {
  --navy: #102a43;
  --surface: #f7fafc;
  --honey: #f4b942;
  --aqua: #00a6a6;
  --ink: #243b53;
  --alert: #b42318;
  --line: #cbd5e1;
  --muted: #627d98;
  --white: #ffffff;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.55; }
button, input, textarea { font: inherit; }
a { color: #007c7c; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { border-bottom: 4px solid var(--honey); background: var(--navy); }
.header-content { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--white); font-size: 1rem; font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
.brand span { color: var(--honey); }
.header-link { color: var(--white); font-size: 0.875rem; font-weight: 700; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr); gap: clamp(44px, 7vw, 96px); align-items: start; padding-block: clamp(48px, 7vw, 92px); }
.guide { max-width: 690px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: #007c7c; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 12ch; margin-bottom: 20px; color: var(--navy); font-size: clamp(2.35rem, 5vw, 4.4rem); letter-spacing: -0.055em; line-height: 0.98; }
h2 { color: var(--navy); font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -0.025em; line-height: 1.15; }
h3 { margin-bottom: 8px; color: var(--navy); font-size: 0.9rem; }
h4 { margin: 18px 0 4px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }
.lede { max-width: 58ch; color: var(--muted); font-size: 1.12rem; }
.guide-section { margin-top: clamp(42px, 6vw, 72px); padding-top: 18px; border-top: 1px solid var(--line); }
.instruction-list { margin: 0; padding-left: 1.4rem; }
.instruction-list li + li { margin-top: 8px; }
.note { margin: 22px 0 0; padding: 14px 16px; border-left: 4px solid var(--aqua); background: #e6fffb; font-size: 0.94rem; }

.operation-list { display: grid; gap: 8px; }
.operation-card { display: flex; width: 100%; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: inherit; cursor: pointer; text-align: left; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.operation-card:hover, .operation-card.is-active { border-color: var(--aqua); background: #e6fffb; }
.operation-card:hover { transform: translateX(3px); }
.operation-card strong, .operation-card small { display: block; }
.operation-card small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.77rem; }
.method { display: inline-flex; min-width: 52px; min-height: 27px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 2px 7px; border-radius: 3px; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; }
.method-get { background: #b2f5ea; }
.method-post { background: #fef3c7; }
.code-example, .snippet-section pre, .response-section pre { overflow-x: auto; margin: 0; padding: 14px; border: 1px solid #334e68; border-radius: 4px; background: var(--navy); color: #e8f1f8; font: 0.78rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }

.console-panel { position: sticky; top: 24px; padding: 24px; border: 1px solid #9fb3c8; border-top: 5px solid var(--aqua); border-radius: 5px; background: var(--white); box-shadow: 0 16px 40px rgb(16 42 67 / 0.12); }
.console-heading p { margin-bottom: 5px; }
.console-heading h2 { margin-bottom: 6px; }
.console-heading > p:last-child { margin-bottom: 22px; color: var(--muted); font-size: 0.9rem; }
.request-trail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; margin-bottom: 23px; padding: 12px; border-left: 3px solid var(--honey); background: #eef4f8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; }
.trail-route { overflow: hidden; color: var(--navy); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.trail-arrow, .trail-response { color: var(--muted); }
.trail-response { font-size: 0.72rem; }
.field-group { margin-top: 15px; }
.field-group label { display: block; margin-bottom: 5px; color: var(--navy); font-size: 0.87rem; font-weight: 800; }
.field-group small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.76rem; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #9fb3c8; border-radius: 3px; background: var(--white); color: var(--ink); }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; line-height: 1.45; }
.is-hidden { display: none; }
.console-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button { min-height: 42px; padding: 9px 13px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 0.88rem; font-weight: 800; transition: background-color 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: #183f61; }
.button-secondary { border-color: #9fb3c8; background: var(--white); color: var(--navy); }
.button-secondary:hover { background: #eef4f8; }
.snippet-section, .response-section { margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line); }
.snippet-section h3:not(:first-child) { margin-top: 18px; }
.response-status { margin-bottom: 0; color: var(--muted); font-weight: 700; }
.response-status.is-error { color: var(--alert); }
.response-status.is-success { color: #007c7c; }

@media (max-width: 880px) { .page-grid { grid-template-columns: 1fr; } .guide { max-width: none; } .console-panel { position: static; } }
@media (max-width: 520px) { .shell { width: min(100% - 28px, 1180px); } .header-content { min-height: 58px; } .console-panel { padding: 18px; } .request-trail { grid-template-columns: auto minmax(0, 1fr); } .trail-arrow { display: none; } .trail-response { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
