:root { --bg:#fbfaf7; --fg:#1d1b18; --muted:#6b665e; --line:#e4e0d8; --accent:#1f4e79; }
@media (prefers-color-scheme: dark) { :root { --bg:#16151a; --fg:#ece8e1; --muted:#a39e95; --line:#34313a; --accent:#8fb8e0; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width:900px; margin:0 auto; padding:20px 16px 64px; }
header { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:12px; }
.brand { font-weight:700; }
.who { color:var(--muted); font-size:14px; }
button { font:inherit; padding:10px 16px; border-radius:8px; border:1px solid var(--line); background:var(--accent); color:#fff; cursor:pointer; }
button.plain { background:transparent; color:var(--fg); padding:6px 12px; font-size:14px; }
.banner { background:rgba(127,127,127,.1); border-left:4px solid var(--accent); padding:8px 12px; font-size:14px; color:var(--muted); }
.msg { color:var(--muted); }
article h1 { font-size:26px; margin:18px 0 8px; }
article h2 { font-size:19px; margin:30px 0 8px; scroll-margin-top:16px; }
article h2.section { font-size:22px; border-top:2px solid var(--line); padding-top:22px; margin-top:44px; }
article a { color:var(--accent); }
.toc ul { margin-top:0; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:15px; margin:10px 0; }
th, td { border-bottom:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; }
blockquote { border-left:4px solid var(--line); margin:14px 0; padding:2px 16px; color:var(--muted); }
.source { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.9em; overflow-wrap:anywhere; }
figure.sot-img { margin:6px 0; }
figure.sot-img img { max-width:min(100%,420px); height:auto; border:1px solid var(--line); background:#fff; display:block; cursor:zoom-in; min-height:40px; }
figure.sot-img img.loading { min-width:160px; min-height:100px; background:rgba(127,127,127,.12); }
figcaption { font-size:12px; color:var(--muted); }
.missing, .empty-note { color:var(--muted); font-style:italic; }
[hidden] { display:none !important; }
