:root {
  color-scheme: light;
  --ink: #0b1f44;
  --muted: #53627a;
  --line: #d7e0ed;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --blue: #1764d9;
  --blue-soft: #eaf2ff;
  --warning: #8a4b00;
  --warning-soft: #fff4df;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: #064eb9; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 7px;
  color: white;
  background: #0b1f44;
  font-weight: 750;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.bar, main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.bar { display: flex; gap: 16px; align-items: center; padding: 18px 0; }
.brand {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--blue);
  font-weight: 800;
}
.product { color: var(--ink); font-weight: 750; text-decoration: none; white-space: nowrap; }
.header-nav { display: flex; gap: 6px; align-items: center; }
.header-nav a {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.header-nav a:hover { color: var(--ink); background: var(--blue-soft); }
.version { margin-left: auto; color: var(--muted); font-size: .9rem; }
main { padding: 34px 0 64px; }
.notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #efc57d;
  border-radius: 10px;
  color: var(--warning);
  background: var(--warning-soft);
}
.eyebrow { color: #00449c; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 6px 0 10px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; }
h2 { margin-top: 0; }
.section-heading { margin: 34px 0 8px; }
.lede { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.card, .section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(20 44 82 / 5%);
}
.card { padding: 20px; }
.card h2 { font-size: 1.15rem; }
.card p { color: var(--muted); }
.task-card { position: relative; padding-top: 52px; }
.status-pill {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  color: #17406f;
  background: #e6eef8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-pill.prepared { color: #704100; background: #fff0ce; }
.status-pill.planned { color: #5a3b76; background: #f0e7fa; }
.section { margin-top: 18px; padding: 22px; }
.section p:last-child, .section ul:last-child { margin-bottom: 0; }
.section li + li { margin-top: 6px; }
.guide-example { margin-top: 20px; }
.guide-example h3 { margin: 0 0 4px; font-size: 1rem; }
.guide-example p { color: var(--muted); }
.method {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  color: white;
  background: #0b4ba5;
  font-size: .8rem;
  font-weight: 800;
}
code { overflow-wrap: anywhere; }
.button-link {
  display: inline-block;
  margin-right: 14px;
  padding: 9px 13px;
  border-radius: 7px;
  color: white;
  background: var(--blue);
  font-weight: 750;
  text-decoration: none;
}
pre {
  overflow: auto;
  margin: 14px 0 0;
  padding: 18px;
  border-radius: 9px;
  color: #eef5ff;
  background: #14233e;
  font: .88rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
  tab-size: 2;
}
pre code { overflow-wrap: normal; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--blue-soft); }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
}
.related-links li + li { margin-top: 0; }
.schema { color: var(--muted); }
nav.operations { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 24px 0; }
.example-shell { display: grid; gap: 18px; }
.example-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px; align-items: end; }
.example-toolbar label, .example-panel label { display: block; margin-bottom: 6px; font-weight: 750; }
.example-toolbar select, .example-panel textarea {
  width: 100%;
  border: 1px solid #aab9ce;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.example-toolbar select { min-height: 44px; padding: 8px 10px; }
.example-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.example-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.example-panel { min-width: 0; }
.example-panel textarea {
  min-height: 360px;
  padding: 16px;
  resize: vertical;
  font: .88rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.example-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.example-actions button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #0b4ba5;
  border-radius: 7px;
  color: #0b4ba5;
  background: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.example-actions button.primary { color: white; background: #0b4ba5; }
.example-message { margin: 0; color: var(--muted); }
.example-message[data-state="error"] { color: #a52222; font-weight: 700; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.search-controls {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(190px, 1fr);
  gap: 14px;
  align-items: end;
}
.search-controls label { display: block; margin-bottom: 6px; font-weight: 750; }
.search-controls input, .search-controls select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #aab9ce;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.search-summary { color: var(--muted); }
.search-results { margin: 0; padding: 0; list-style: none; }
.search-results li { padding: 18px 0; border-top: 1px solid var(--line); }
.search-results li:first-child { border-top: 0; }
.search-results a { font-size: 1.08rem; font-weight: 750; }
.search-results p { margin: 5px 0 0; color: var(--muted); }
.search-result-meta { font-size: .88rem; font-weight: 700; }
footer { padding: 28px 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) {
  .version { display: none; }
  .bar { flex-wrap: wrap; gap: 10px; }
  .header-nav { width: 100%; order: 2; }
  .header-nav a { padding-left: 0; padding-right: 12px; }
  .bar, main { width: min(100% - 20px, 1120px); }
  .example-toolbar, .example-panels, .search-controls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  header, footer, .notice, .skip-link, .example-actions, .search-controls { display: none; }
  main, .bar { width: 100%; }
  main { padding: 0; }
  .card, .section { border-color: #777; box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  pre { color: #000; background: #f2f2f2; white-space: pre-wrap; }
}
