:root {
  --bg: #f7f8fa; --surface: #ffffff; --surface-2: #eef1f5; --text: #1d1d1f; --muted: #566170;
  --line: #dfe4ea; --accent: #2c4a68; --accent-ink: #ffffff; --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1116; --surface: #151a21; --surface-2: #1c232c; --text: #eef2f6; --muted: #9aa6b4;
    --line: #2a323d; --accent: #8fb2d6; --accent-ink: #0d1116; }
}
:root[data-theme="dark"] { --bg: #0d1116; --surface: #151a21; --surface-2: #1c232c; --text: #eef2f6; --muted: #9aa6b4;
  --line: #2a323d; --accent: #8fb2d6; --accent-ink: #0d1116; }
* { box-sizing: border-box; }
html { background: var(--bg); overscroll-behavior-y: none; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 11%, transparent); }
header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 50%, transparent); opacity: .55; }
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.app-icon { width: 34px; height: 34px; border-radius: 22.37%; box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 1px 3px rgba(16,29,46,.28); display: block; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); font-weight: 500; text-decoration: none; } .nav-links a:hover { color: var(--text); }
article { max-width: 760px; margin: 0 auto; padding: 64px 20px 80px; }
h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 8px; }
h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { color: var(--text); } li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 15px; color: var(--muted); }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
table { border-collapse: collapse; width: 100%; font-size: 15px; } th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
footer { border-top: 1px solid var(--line); padding: 32px 0 56px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 600px) { .nav-links { display: none; } }
