/* Tool of "Eén lijn". The env bar and tool tokens are copied from htm-demo site/htm/tool.css (2a34cf9); the rest uses the HTM entry tokens in ../site.css. */
:root { --surface-head: #fbf8f1; --accent-soft: #ece6d8; --focus: #2563eb; --env: 38px; --ok: #1f6b3a; --ok-soft: #e6f0e6; --warn: #8a5200; --warn-soft: #f6ecd8; --bad: #a3321f; --bad-soft: #f6e4e0; }
body.tool { font-size: 17px; }
.env-bar { height: var(--env); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #1e1c22; color: #f6f1e6; font: 14px Source, sans-serif; }
.env-bar a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.env-bar img { width: 20px; height: 20px; filter: invert(1); }
.env-bar b { font: 700 15px Bricolage, sans-serif; }
.env-bar a span { color: #bfb8aa; }
.env-bar a:hover span { text-decoration: underline; }
.env-stamp { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #bfb8aa; }

.sub { background: var(--surface-head); border-bottom: 1.5px solid var(--ink); }
.sub-in { width: min(100% - 32px, 1280px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; min-height: 48px; }
  .sub-links { display: flex; gap: 2px 22px; }
.sub a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 12px 0 9px; border-bottom: 3px solid transparent; }
.sub a:hover { color: var(--ink); }
.sub a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.sub-tools { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.klok { font: 500 14px ui-monospace, monospace; color: var(--ink); }
.btn-s { min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink); font: 600 15px Source, sans-serif; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:is(button, a, textarea, select, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.tool-main { width: min(100% - 32px, 1280px); margin-inline: auto; padding: 18px 0 28px; }
.t-head { margin-bottom: 14px; }
.t-head .code { margin: 0 0 4px; }
.t-h { font: 700 clamp(26px, 2.6vw, 34px)/1.12 Bricolage, sans-serif; letter-spacing: -.6px; margin: 0; }
.lead-s { margin: 6px 0 0; max-width: 80ch; color: var(--muted); }
.switch { display: none; }
.bank { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.bank.one { grid-template-columns: minmax(0, 860px); }
.panel { background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 16px 20px; min-width: 0; }
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.p-head h2 { font-size: 22px; }
.p-head .mut { font-size: 15px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: s; display: grid; gap: 6px; }
.steps > li + li { border-top: 1px solid var(--line); padding-top: 12px; }
.steps h3 { font-size: 18px; margin: 0; }
.steps h3::before { content: counter(s) ". "; font-family: ui-monospace, monospace; color: var(--muted); }
.steps p { margin: 0; }
.mono { font: 500 15px ui-monospace, monospace; letter-spacing: .04em; }
.lab { font-weight: 600; font-size: 15px; }
textarea, select { font: 17px/1.4 Source, sans-serif; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); padding: 8px 10px; width: 100%; }
textarea { resize: vertical; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.radios legend { margin-bottom: 4px; }
.radios label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; min-height: 44px; cursor: pointer; font-size: 16px; }
.radios label:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); font-weight: 600; }
#check { display: grid; gap: 4px; } #check:empty { display: none; } .term { margin: 0; }
.chip { display: inline-block; font: 500 13px ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 1px 8px; background: var(--card); }
.lbl { font: 500 13px ui-monospace, monospace; letter-spacing: .04em; color: var(--muted); }
.lbl.ok { color: var(--ok); } .lbl.warn { color: var(--warn); }
.block { background: var(--bad-soft); color: var(--bad); border-left: 4px solid var(--bad); padding: 8px 12px; font-size: 16px; }
.block ul { margin: 4px 0 0; padding-left: 18px; } .block mark { background: #fff1a8; color: inherit; } .block a { color: inherit; }
.sendrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.kk { display: flex; gap: 6px; align-items: center; font-size: 15px; color: var(--muted); }
.kk select { width: auto; font-size: 15px; padding: 4px 8px; }
.nw summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.nw ul { margin: 4px 0; padding-left: 18px; font-size: 15px; }
.q { color: var(--ink); font-weight: 600; font-size: 18px; }
.antw { background: var(--ok-soft); border-left: 4px solid var(--ok); padding: 10px 14px; display: grid; gap: 2px; }
.antw.nee { background: var(--bad-soft); border-color: var(--bad); } .antw.bel { background: var(--warn-soft); border-color: var(--warn); }
.antw .big { font: 700 22px Bricolage, sans-serif; color: var(--ink); }
.wacht { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 10px 14px; display: grid; gap: 6px; }
.plak { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); padding: 10px; font: 14px/1.5 ui-monospace, monospace; margin: 0; }
.small { font-size: 14px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.log li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.log .t { font-family: ui-monospace, monospace; color: var(--muted); font-size: 14px; }
.steps .eyebrow { margin: 6px 0 0; }
.empty { color: var(--muted); margin: 0; }
.msg { border: 1px solid var(--line); border-radius: 4px; padding: 12px; display: grid; gap: 8px; background: var(--surface-head); }
.msg p { margin: 0; }
.kbar { display: flex; justify-content: space-between; gap: 8px; }
.antwk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.antwk button { min-height: 48px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink); font: 600 17px Source, sans-serif; cursor: pointer; }
.antwk button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.regel-in { font: 17px Source, sans-serif; border: 1.5px solid var(--ink); border-radius: 4px; padding: 8px 10px; background: var(--card); width: 100%; min-height: 44px; }
.antwk button:disabled:not([aria-pressed="true"]) { opacity: .45; cursor: default; }
.tel { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 16px 20px; }
.tel h2 { font-size: 20px; } .tel ol { margin: 6px 0; padding-left: 20px; font-size: 16px; } .tel .r3 { margin: 4px 0; color: var(--ink); }
.ck { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 10px; }
.ck p { margin: 2px 0; } .qr svg { width: 128px; height: 128px; display: block; }
.kaart h3 { margin: 4px 0; }
.tgl { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; min-height: 52px; }
.tg-r { display: flex; gap: 10px; align-items: center; }
.sw { position: relative; width: 52px; height: 30px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--accent-soft); cursor: pointer; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 2px; background: var(--muted); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--ink); } .sw[aria-checked="true"]::after { left: 25px; background: #fff; }
.regels { list-style: none; margin: 0; padding: 0; }
.regels li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.regels li:last-child { border-bottom: 0; } .regels p { margin: 2px 0 0; }
.regels .n { font: 700 20px Bricolage, sans-serif; }
.kpi { border-collapse: collapse; width: 100%; } .kpi td { border-bottom: 1px solid var(--line); padding: 8px 6px; }
.kpi td:first-child { font: 700 24px Bricolage, sans-serif; width: 120px; }
.tool-foot { width: min(100% - 32px, 1280px); margin: 0 auto; border-top: 1px solid var(--line); padding: 14px 0 20px; font-size: 14px; color: var(--muted); }
.bar { display: none; }
/* ?deck=1: demo labels and demo-only buttons are hidden (pattern of the 06 demo). */
.deck .demo { display: none !important; }
.sub .sm { display: none; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 4px; padding: 10px 16px; z-index: 30; }

@media (max-width: 980px) { .bank, .tel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .env-stamp { display: none; }
  .sub-links { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sub a { padding: 10px 0 7px; font-size: 15px; white-space: nowrap; flex: none; }
  .sub-tools { margin-left: 0; width: 100%; justify-content: space-between; padding-bottom: 6px; }
  .tool-main { padding-top: 12px; }
  .t-h { font-size: 24px; }
  .switch { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; margin-bottom: 10px; background: var(--card); }
  .switch button { min-height: 44px; border: 0; background: none; font: 600 16px Source, sans-serif; color: var(--muted); cursor: pointer; }
  .switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
  .bank[data-pane="afz"] .ontv, .bank[data-pane="ontv"] .afz { display: none; }
  .panel { padding: 12px 14px; }
  .p-head { display: none; }
  .sendrow .btn#verstuur { display: none; }
  .bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface-head); border-top: 1.5px solid var(--ink); }
  .bar .btn { flex: 1; } .bar span { font-weight: 600; }
  body.has-bar { padding-bottom: 96px; }
  .sub .lg { display: none; } .sub .sm { display: inline; }
  .sub-links { gap: 0 16px; }
  .ck { grid-template-columns: minmax(0, 1fr) 96px; } .qr svg { width: 96px; height: 96px; }
  .tgl { flex-wrap: wrap; } .log li { grid-template-columns: 70px minmax(0, 1fr); }
}
