:root {
  --bg: #f2f2ee;
  --text: #17160f;
  --muted: #5e5d56;
  --accent: #7a5700;
  --card: #ffffff;
  --line: rgba(23, 22, 15, .11);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0c;
    --text: #f3f2ec;
    --muted: #aaa89f;
    --accent: #ffc940;
    --card: #1b1b18;
    --line: rgba(243, 242, 236, .12);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
header img { width: 56px; height: 56px; border-radius: 13px; }
header a { color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 14px; }
nav { display: flex; gap: 18px; margin: 8px 0 32px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, a { color: var(--accent); }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 32px 0 6px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 20px 0; }
li { margin: 6px 0; }
.button { display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 12px; }
.store { font-weight: 600; margin-bottom: 0; }
.scroll { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.worksheet { min-width: 560px; }
.worksheet td { height: 40px; }
blockquote { margin: 12px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--line); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 4px; }
.sources { font-size: 15px; color: var(--muted); }
@media print {
  :root { --bg: #fff; --text: #000; --muted: #444; --accent: #000; --card: #fff; --line: #999; }
  nav, .card { display: none; }
  main { max-width: none; padding: 0; }
}
