:root { --bg: #f6f2ea; --surface: #fffdf8; --text: #12283a; --muted: #55697a; --border: #ddd6c7; --sea: #1c6a76; --sea-fg: #fff; --marker: #d9532a; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1a26; --surface: #112636; --text: #eaeef0; --muted: #98aab7; --border: #233a4c; --sea: #5fb5bf; --sea-fg: #08202b; --marker: #ef7a50; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font: 700 1.2rem ui-serif, Georgia, serif; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 18px; font-size: .95rem; }
nav a, footer a { color: var(--muted); text-decoration: none; }
nav a:hover, footer a:hover { color: var(--text); text-decoration: underline; }
main { padding: 12px 0 48px; }
h1, h2 { font-family: ui-serif, Georgia, "Times New Roman", serif; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 8px 0 4px; }
h2 { font-size: 1.3rem; margin: 2.1rem 0 .4rem; }
p, li { color: var(--text); }
.updated, .note, .small { color: var(--muted); font-size: .92rem; }
.note { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 16px; margin: 18px 0; }
a { color: var(--sea); }
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
form { display: grid; gap: 12px; margin-top: 18px; }
label { display: grid; gap: 4px; font-size: .95rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
button { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--sea); background: var(--sea); color: var(--sea-fg); padding: 11px 22px; border-radius: 8px; justify-self: start; }
button:disabled { opacity: .6; cursor: default; }
.err { color: var(--marker); min-height: 1.3em; }
.ok { color: var(--sea); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hidden { display: none !important; }
footer { padding: 22px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 560px) { nav .hide-sm { display: none; } table { font-size: .9rem; } }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
.toc { columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .toc { columns: 1; } }
