:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #607080;
  --line: #d8e0e8;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --code-bg: #101820;
  --code-text: #e9f0f6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: #172026; color: #f3f7fa; border-right: 1px solid #0d1418; overflow-y: auto; }
.brand { display: block; margin-bottom: 20px; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.35; }
.nav { display: grid; gap: 4px; }
.nav a { color: #d7e4ea; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.nav a.active, .nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.main { min-width: 0; }
.topbar { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); position: sticky; top: 0; backdrop-filter: blur(10px); z-index: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font-size: 14px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.content { max-width: 920px; padding: 34px 36px 72px; }
h1 { margin: 0 0 18px; font-size: 34px; line-height: 1.18; letter-spacing: 0; }
h2 { margin: 34px 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: 0; }
h3 { margin: 26px 0 10px; font-size: 18px; line-height: 1.3; letter-spacing: 0; }
p, ul { margin: 0 0 16px; }
ul { padding-left: 22px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .94em; }
p code, li code { background: #e9eef3; padding: 2px 5px; border-radius: 4px; }
pre { overflow-x: auto; margin: 14px 0 20px; padding: 16px; border-radius: 8px; background: var(--code-bg); color: var(--code-text); }
pre code { color: inherit; background: transparent; padding: 0; }
.notice { margin: 20px 0 26px; padding: 14px 16px; border: 1px solid #b8ddd8; border-left: 4px solid var(--accent); background: #effaf8; border-radius: 8px; color: #21413d; }
@media (max-width: 820px) {
  .site-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px 16px; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { position: static; justify-content: flex-start; padding: 12px 16px; flex-wrap: wrap; }
  .content { padding: 26px 18px 56px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}
