:root {
  --bg: #f7f8f7; --surface: #fff; --text: #17201e; --muted: #5b6764; --line: #dfe5e3;
  --accent: #0f766e; --accent-ink: #fff; --code-bg: #ecfdf8; --warn-bg: #fff7e6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1413; --surface: #151d1b; --text: #e8eeec; --muted: #9aa8a4; --line: #26312f;
    --accent: #2dd4bf; --accent-ink: #062320; --code-bg: #0f2a26; --warn-bg: #2a2213; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.notice { background: var(--warn-bg); color: var(--text); font-size: 13px; text-align: center; padding: 6px 16px; }
.header { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { font-weight: 800; text-decoration: none; color: var(--text); font-size: 19px; }
.logo span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current] { color: var(--text); font-weight: 600; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 16px 0 12px; }
h2 { font-size: 24px; margin-top: 40px; }
.lead { font-size: 19px; color: var(--muted); }
.codebox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 24px 0; }
.eyebrow { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.coderow { display: flex; gap: 8px; flex-wrap: wrap; }
.coderow code { flex: 1 1 200px; font-size: 26px; font-weight: 800; letter-spacing: .06em; background: var(--code-bg); border: 2px dashed var(--accent); border-radius: 10px; padding: 10px 14px; text-align: center; }
button, .cta { font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 18px; cursor: pointer; }
button { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.cta { display: block; margin-top: 12px; text-align: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.small, .updated, figcaption { font-size: 14px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap { overflow-x: auto; }
ol.steps li { margin-bottom: 10px; }
.callout { background: var(--warn-bg); border-radius: 10px; padding: 14px 16px; margin: 20px 0; }
.shot { margin: 16px 0; }
.shot img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.shot-placeholder { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 16px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
summary { font-weight: 600; cursor: pointer; }
footer { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.shot img { height: auto; }
