:root {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1d2421; --muted: #55605b;
  --brand: #2F6F5E; --brand-soft: #e6f0ec; --line: #dde3e0;
  --warn-bg: #fff4d6; --warn-text: #5c4300; --warn-line: #e9c96a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614; --surface: #1a201d; --text: #e8eeeb; --muted: #a7b3ad;
    --brand: #6fbfa6; --brand-soft: #1f2e29; --line: #2c3632;
    --warn-bg: #3a2f10; --warn-text: #f5dd9b; --warn-line: #6b5520;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #121614; --surface: #1a201d; --text: #e8eeeb; --muted: #a7b3ad;
    --brand: #6fbfa6; --brand-soft: #1f2e29; --line: #2c3632;
    --warn-bg: #3a2f10; --warn-text: #f5dd9b; --warn-line: #6b5520;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 19px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; }
.brand img { width: 36px; height: 36px; }
nav.site { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 17px; }
nav.site a { color: var(--brand); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current] { text-decoration: underline; }
main { padding: 24px 0 48px; }
h1 { font-size: 32px; line-height: 1.2; margin: 8px 0 4px; }
h2 { font-size: 24px; line-height: 1.3; margin: 36px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 20px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
a { color: var(--brand); }
.updated { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.summary { background: var(--brand-soft); border-radius: 12px; padding: 16px 20px; margin: 16px 0 8px; }
.summary h2 { border: 0; margin-top: 0; padding-top: 0; font-size: 21px; }
.summary ul { margin-bottom: 0; }
.draft {
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line);
  border-radius: 10px; padding: 12px 16px; font-size: 16px; margin-bottom: 16px;
}
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--brand-soft); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 14px; }
.card h3 { margin-top: 0; }
.cta { display: inline-block; background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { color: #10201b; } }
:root[data-theme="dark"] .cta { color: #10201b; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; padding: 20px 0 32px; }
footer.site a { color: var(--muted); }
@media (max-width: 520px) { body { font-size: 18px; } h1 { font-size: 27px; } nav.site { margin-left: 0; width: 100%; } }
