:root {
  --bg: #ffffff; --fg: #1d2330; --muted: #5a6475; --accent: #0b5cad; --accent-fg: #ffffff;
  --panel: #f2f5f9; --border: #c9d1dc; --ok: #1a7f37; --error: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151c; --fg: #e6e9ef; --muted: #a3acba; --accent: #6aa8f0; --accent-fg: #0b1220;
    --panel: #1a202a; --border: #39424f; --ok: #4ac26b; --error: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.top, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
nav a, nav span { margin-left: .5rem; text-transform: uppercase; font-size: .85rem; }
a { color: var(--accent); }
section { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0; }
h2 { font-size: 1.4rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.highlight { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1rem; }
.steps li, .facts li { margin: .4rem 0; }
.button, button { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px;
  padding: .65rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; margin: .25rem 0; }
.button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
form { display: grid; gap: .4rem; }
label { font-weight: 600; margin-top: .4rem; }
label.check, fieldset label { font-weight: 400; }
input, select, textarea { font: inherit; padding: .5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; }
input[type=radio], input[type=checkbox] { width: auto; }
fieldset { border: 1px solid var(--border); border-radius: 6px; display: grid; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[aria-invalid=true] { border-color: var(--error); }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.ok { color: var(--ok); font-weight: 600; }
.error { color: var(--error); font-weight: 600; }
.downloads { list-style: none; padding: 0; }
.hp { position: absolute; left: -10000px; }
code { word-break: break-word; }
footer { padding: 2rem 16px; color: var(--muted); font-size: .9rem; }
.channels { display: grid; gap: 1rem; }
pre { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: .6rem; overflow-x: auto; font-size: .85rem; }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; font-size: .85rem; }
th .bt { display: block; }
.num { text-align: right; white-space: nowrap; }
.bt { color: var(--muted); font-size: .75em; font-weight: normal; white-space: nowrap; }
.invoice { border: 1px solid var(--border); border-radius: 6px; padding: 1rem; margin: 1.5rem 0; min-width: 0; }
.invoice h2 { margin-top: 0; }
.invoice h3 { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.parties { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.parties > * { min-width: 0; }
/* Labels take at most 45 %, so a value never wraps inside a short word. */
dl.rows { margin: 0; display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: .2rem 1rem; }
dl.rows div { display: contents; }
dl.rows dt { color: var(--muted); }
dl.rows dd { margin: 0; overflow-wrap: anywhere; }
.problems { border-left: 4px solid var(--error); background: var(--panel); padding: .5rem 1rem; margin: 1rem 0; border-radius: 4px; }
.problems ul { margin: .5rem 0; }
details.notes { margin: 1rem 0; }
details.notes summary { cursor: pointer; font-weight: 600; }
