:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --text: #141a24;
  --muted: #5c6a7d;
  --accent: #0a7d4f;
  --accent-soft: #e6f5ee;
  --link: #0b5fff;
  --card: #ffffff;
  --border: #e2e7ef;
  --warn-bg: #fff8e9;
  --warn-bd: #edc069;
  --shadow: 0 1px 2px rgba(20,26,36,.05), 0 8px 24px rgba(20,26,36,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg-soft: #12151c;
    --text: #e9ecf2;
    --muted: #98a3b4;
    --accent: #3ecf8e;
    --accent-soft: #12261e;
    --link: #6cb2ff;
    --card: #161a22;
    --border: #262c37;
    --warn-bg: #241f12;
    --warn-bd: #7d642c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  font-size: 17.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  padding: 0 18px 90px;
}

.wrap { max-width: 748px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 26px 0 16px;
}
.site-head .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.site-head a.name {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.site-head .name span { color: var(--accent); }
.site-head .tag {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Nav ---------- */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 14.5px;
  padding: 5px 11px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
nav a:hover { background: var(--bg-soft); color: var(--text); }
nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
nav a.lang {
  margin-left: auto;
  border: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: .4px;
}

/* ---------- Typography ---------- */
h1 {
  font-size: 35px;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 4px 0 10px;
  font-weight: 780;
}
.updated {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 24px;
  letter-spacing: .1px;
}
.lead {
  font-size: 19.5px;
  line-height: 1.62;
  color: var(--text);
  margin-bottom: 30px;
  font-weight: 420;
}
h2 {
  font-size: 24px;
  letter-spacing: -.5px;
  margin: 46px 0 14px;
  font-weight: 720;
}
h3 { font-size: 17.5px; margin: 26px 0 8px; font-weight: 660; }
p { margin: 14px 0; }
ul, ol { padding-left: 24px; margin: 14px 0; }
li { margin: 9px 0; }
strong { font-weight: 660; }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(11,95,255,.22); }
a:hover { border-bottom-color: currentColor; }

/* ---------- Steps ---------- */
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: 9px;
  width: 27px; height: 27px;
  font-size: 14px; font-weight: 750;
  margin-right: 10px;
  vertical-align: 2px;
}
.step h3 { display: inline; margin: 0; font-size: 17.5px; }
.step p:first-of-type { margin-top: 12px; }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff !important;
  border: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 12px;
  margin: 14px 0 6px;
  box-shadow: 0 4px 14px rgba(10,125,79,.22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s;
}
@media (prefers-color-scheme: dark) {
  .cta { color: #08130d !important; box-shadow: 0 4px 18px rgba(62,207,142,.2); }
}
.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(10,125,79,.3);
}

/* ---------- Callout ---------- */
.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Tables ---------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15.5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tbl th, .tbl td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.tbl th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 650;
  background: var(--bg-soft);
}
.tbl td:first-child { font-weight: 550; }

/* ---------- Code ---------- */
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px 8px;
  word-break: break-all;
}

/* ---------- FAQ ---------- */
.faq-q {
  font-weight: 680;
  margin-top: 30px;
  font-size: 18px;
  letter-spacing: -.2px;
}

/* ---------- Related ---------- */
.related {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px 24px;
  margin-top: 44px;
}
.related h2 { margin-top: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 650; }
.related ul { margin-bottom: 0; }
.related li { margin: 7px 0; }

/* ---------- Footer ---------- */
footer {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
}
footer p { margin: 9px 0; }
footer strong { color: var(--text); }

small { font-size: 13.5px; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; padding: 0 15px 70px; }
  h1 { font-size: 28px; letter-spacing: -.7px; }
  h2 { font-size: 21px; margin-top: 38px; }
  .lead { font-size: 18px; }
  .step, .related { padding: 17px 18px; }
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 10px 11px; }
  .cta { width: 100%; justify-content: center; padding: 15px 20px; }
  nav { gap: 4px; }
  nav a { font-size: 14px; padding: 5px 9px; }
}
