:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #5a6662;
  --border: #dde3e0;
  --accent: #0f7a5c;
  --accent-soft: #e3f3ed;
  --warn-bg: #fff4d6;
  --warn-text: #6b4e00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111615;
    --surface: #1a201f;
    --text: #e6ebe9;
    --muted: #9aa7a2;
    --border: #2c3533;
    --accent: #4fc79f;
    --accent-soft: #19302a;
    --warn-bg: #3a2f10;
    --warn-text: #f3d98b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .inner, main, footer.site .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}
header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
nav.lang a {
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}
main { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.015em; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
h3 { font-size: 1.02rem; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}
.card.accent { background: var(--accent-soft); border-color: transparent; }
.todo {
  background: var(--warn-bg);
  color: var(--warn-text);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: var(--accent-soft); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 2px 12px; }
  table.stack td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--muted); }
  table.stack td:first-child { font-weight: 600; padding-top: 6px; }
  table.stack td:first-child::before { content: ""; }
}
hr.lang-sep { border: 0; border-top: 2px solid var(--border); margin: 48px 0 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--surface);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.hero { padding: 32px 0 8px; }
.hero h1 { font-size: 2.1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.links a.card { display: block; text-decoration: none; color: var(--text); margin: 0; }
.links a.card strong { color: var(--accent); display: block; margin-bottom: 4px; }
footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
footer.site .inner { padding-top: 16px; padding-bottom: 24px; }
footer.site a { color: var(--muted); }
