:root { --navy: #103868; --teal: #00B0B8; --ink: #1d1d1f; --muted: #5f6368; --line: #d9dde3;
        --bg: #ffffff; --panel: #f5f7fa; --code: #f2f4f7; --ok: #1e7a3c; --plan: #8a5a00; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8eaed; --muted: #a8adb4; --line: #3a3f47; --bg: #1b1c1e; --panel: #25272b; --code: #2a2d31;
          --ok: #6fd08f; --plan: #f0c77a; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--navy); color: #fff; padding: .7rem 0; }
.top .wrap { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pill { background: var(--teal); color: #fff; border-radius: 3px; padding: 0 .45rem; font-size: .8rem; }
.env { margin-left: auto; font-size: .85rem; opacity: .85; }
.toc { position: sticky; top: 0; z-index: 2; display: flex; gap: .25rem 1rem; flex-wrap: wrap; padding: .6rem 0;
       background: var(--bg); border-bottom: 1px solid var(--line); font-size: .9rem; }
.toc a { color: var(--teal); text-decoration: none; } .toc a:hover { text-decoration: underline; }
section { padding: 1.4rem 0 .6rem; border-bottom: 1px solid var(--line); scroll-margin-top: 3rem; }
h1 { font-size: 1.7rem; margin: .2rem 0 .6rem; color: var(--navy); }
h2 { font-size: 1.3rem; margin: 0 0 .6rem; color: var(--navy); }
h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
@media (prefers-color-scheme: dark) { h1, h2 { color: var(--teal); } }
.lead { font-size: 1.05rem; }
.note { color: var(--muted); font-size: .9rem; }
a { color: var(--teal); }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .86em; background: var(--code);
       padding: .05rem .3rem; border-radius: 3px; overflow-wrap: anywhere; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; overflow-x: auto;
      font-size: .84rem; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: 1em; }
pre.diagram { font-size: .78rem; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel); font-weight: 600; }
tbody th, table tr > th:first-child:not(thead th) { width: 11rem; color: var(--muted); font-weight: 600; }
.callout { border-left: 4px solid var(--teal); background: var(--panel); padding: .7rem 1rem; border-radius: 4px; margin: .8rem 0; }
.callout.warn { border-left-color: #d08a00; }
.badge { font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 10px; vertical-align: middle;
         border: 1px solid currentColor; }
.badge.ok { color: var(--ok); } .badge.plan { color: var(--plan); }
ol.check li { margin-bottom: .3rem; }
.foot { padding: 1.2rem 0 2rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { font-size: .86rem; }
  th, td { padding: .35rem .4rem; }
  tbody th, table tr > th:first-child:not(thead th) { width: auto; }
  .env { margin-left: 0; width: 100%; }
}
