
:root {
  --ink: #1d2230; --muted: #5f6675; --line: #e3e6ee; --bg: #f6f7fb; --card: #fff;
  --brand: #1f35ac; --brand2: #4c88e7; --warn-bg: #fff4e0; --warn: #8a5300; --err: #b3261e; --ok: #1e7a3a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { background: linear-gradient(90deg, var(--brand2), var(--brand)); color: #fff; }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: #fff; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.top nav a { color: #fff; text-decoration: none; opacity: .85; font-size: 14px; }
.top nav a[aria-current="page"], .top nav a:hover { opacity: 1; text-decoration: underline; }
main { padding-top: 24px; padding-bottom: 40px; }
.banner { background: var(--warn-bg); color: var(--warn); border: 1px solid #f1d59b; border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; font-size: 14px; }
.doc, .card { background: var(--card); border-radius: 16px; padding: 24px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.intro p:first-child { margin-top: 0; }
.toc { background: var(--bg); border-radius: 12px; padding: 12px 16px; margin: 16px 0 8px; }
.toc-title { font-size: 15px; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
section { scroll-margin-top: 16px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }
th { color: var(--muted); font-weight: 600; }
.foot { color: var(--muted); font-size: 13px; padding: 16px 0 32px; }
.foot p { margin: 4px 0; }
form { display: grid; gap: 14px; margin-top: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea, select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
button { font: inherit; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--brand2), var(--brand)); border: 0; border-radius: 22px; padding: 11px 22px; cursor: pointer; justify-self: start; }
button[disabled] { opacity: .5; cursor: default; }
.hint { color: var(--muted); font-size: 14px; }
.status { font-size: 14px; min-height: 1.4em; }
.status.error { color: var(--err); }
.status.ok { color: var(--ok); }
.hidden { display: none; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 5px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.grid a.card { display: block; text-decoration: none; color: inherit; }
.grid a.card b { color: var(--brand); }
@media (max-width: 520px) { h1 { font-size: 24px; } .doc, .card { padding: 18px 14px; } }
