:root{color-scheme:light;--page:#eee8f7;--surface:#f8f5fc;--ink:#1f1829;--muted:#564d63;--link:#4a2f75;--rule:#c6bad6;--rule-strong:#2c2238;--accent:#7d5ce0;--focus:#5c3d82;--header:#46306e;--header-ink:#fff;--header-muted:#ddd0f2;--ember:#d02a44;--ember-hover:#a81f35;--warn:#7f5200}
@media(prefers-color-scheme:dark){:root{color-scheme:dark;--page:#211a31;--surface:#2a2140;--ink:#f3eefa;--muted:#c6bcd8;--link:#cfbdff;--rule:#4a3d63;--rule-strong:#9a8cbf;--accent:#a98bff;--focus:#f0bfff;--header:#130e2c;--header-muted:#d6cbef;--warn:#f2c46b}}
*{box-sizing:border-box}
html{background:var(--header)}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--ink);font-family:Figtree,Arial,sans-serif;font-size:clamp(17px,.45vw + 11px,20px);line-height:1.6;overflow-wrap:break-word}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{text-decoration-thickness:2px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.frame{width:min(calc(100% - 2rem),46rem);margin:0 auto}
.bar{background:var(--header);color:var(--header-ink);border-bottom:3px solid var(--accent)}
.bar .frame{display:flex;align-items:baseline;gap:1rem;min-height:64px;padding-top:1rem}
.bar a{color:var(--header-ink);font-weight:700;font-size:1.2rem;text-decoration:none}
.bar a:focus-visible{outline-color:#fff}
.bar span{color:var(--header-muted);font-size:.95rem}
main{flex:1 0 auto;padding:2.4rem 0 3.6rem}
h1{font-size:clamp(2rem,4vw,2.6rem);line-height:1.15;margin:0 0 1rem}
h2{font-size:1.3rem;line-height:1.25;margin:2.4rem 0 .6rem;padding-top:.9rem;border-top:2px solid var(--rule-strong)}
p{margin:0 0 .9rem}
.lede{font-size:1.1rem}
.muted{color:var(--muted)}
code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92em;overflow-wrap:anywhere}
.facts{display:grid;grid-template-columns:minmax(9rem,13rem) 1fr;gap:.35rem 1.2rem;margin:1rem 0}
.facts dt{font-weight:700}
.facts dd{margin:0;min-width:0}
table{border-collapse:collapse;width:100%;margin:.6rem 0 1rem}
th,td{text-align:left;vertical-align:top;padding:.45rem .8rem .45rem 0;border-bottom:1px solid var(--rule)}
th{font-size:.9rem;border-bottom:2px solid var(--rule-strong)}
ul{padding-left:1.2rem;margin:0 0 1rem}
li{margin:.2rem 0}
.notice{margin:1.2rem 0;padding:1rem 1.2rem;border:2px solid var(--rule-strong);background:var(--surface)}
.notice.warn{border-color:var(--warn)}
.notice p:last-child{margin-bottom:0}
.actions{display:flex;flex-wrap:wrap;gap:.8rem 1rem;align-items:center;margin:1rem 0}
form{margin:0}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 1.2rem;border:2px solid var(--rule-strong);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.btn:hover{text-decoration:underline}
.btn-main{background:var(--header);border-color:var(--header);color:#fff}
.btn-danger{background:var(--ember);border-color:var(--ember);color:#fff}
.btn-danger:hover{background:var(--ember-hover);border-color:var(--ember-hover)}
.check{display:flex;gap:.6rem;align-items:flex-start;margin:.8rem 0}
.check input{width:1.2rem;height:1.2rem;margin-top:.3rem;flex:none}
.field{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;margin:.8rem 0}
.field label{font-weight:700}
.field input,.field select{width:min(100%,24rem);min-height:44px;padding:0 .7rem;border:2px solid var(--rule-strong);background:var(--surface);color:var(--ink);font:inherit}
.scroll{overflow-x:auto}
.field.wide{align-items:stretch}
.field textarea{width:100%;min-height:8rem;padding:.6rem .7rem;border:2px solid var(--rule-strong);background:var(--surface);color:var(--ink);font:inherit;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9em;line-height:1.5;resize:vertical}
.field textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.help{margin:1rem 0;padding:.8rem 1rem;border:1px solid var(--rule)}
.help summary{cursor:pointer;font-weight:700}
.reviews{list-style:none;padding:0}
.reviews li{margin:0 0 1rem;padding:0 0 .6rem;border-bottom:1px solid var(--rule)}
.note{white-space:pre-wrap;margin-left:1rem}
.preview{margin:1rem 0;padding:1.2rem 1.4rem;border:2px solid var(--rule);background:var(--surface)}
.preview h2{border-top:0;padding-top:0;margin-top:1.6rem}
.preview .lead{font-size:1.1rem}
.preview blockquote{margin:1rem 0;padding-left:1rem;border-left:3px solid var(--accent)}
.preview blockquote footer{color:var(--muted);font-size:.95rem}
.preview pre{overflow-x:auto;padding:.8rem;border:1px solid var(--rule);background:var(--page)}
.preview figure{margin:1rem 0}
.preview .code-head{display:flex;justify-content:space-between;font-size:.85rem;color:var(--muted)}
.preview .copy{display:none}
.preview .callout{margin:1rem 0;padding:.8rem 1rem;border-left:4px solid var(--accent);background:var(--page)}
.preview .callout-warn{border-left-color:var(--warn)}
.preview .callout-label{font-weight:700;margin-bottom:.4rem}
.preview .diagram{display:grid;gap:.6rem}
.preview .diagram div{display:flex;flex-direction:column;padding:.6rem;border:1px solid var(--rule)}
.preview .table-wrap{overflow-x:auto}
.preview caption{caption-side:bottom;text-align:left;color:var(--muted);font-size:.9rem;padding-top:.4rem}
.preview .footnotes{margin-top:2rem;font-size:.95rem}
td .btn{min-height:36px;padding:0 .8rem}
footer{background:var(--header);color:var(--header-muted);font-size:.9rem}
footer .frame{padding:1.2rem 0}
footer p{margin:0}
footer a{color:var(--header-ink)}
@media(max-width:40rem){.facts{grid-template-columns:1fr;gap:.1rem}.facts dd{margin-bottom:.5rem}}
