/* Birdhouse shell (schil) for Projecten, Support Desk and Klantportaal. Design round of 12 October 2026, built from gedeeld/schil.css of the renders.
   Three places: the main navigation on top, the band below it, the tree on the left.
   This file is the same in the three apps (pinned on its sha256). Rules for the names (appendix A of the building contract):
   only classes that start with bh- (a short state class such as is-closed, sm or warn may stand next to one), only properties --bh-*, and no
   rule on a bare element outside :where(.bh-body). The colours of the app are read, never set; no font-face (the app has it). */
/* ── Measures and the five colours that are the shell's own ───────────
   The shell reads the colours of the app (--background, --surface, --text, --muted, --primary, --line, --hero-*, --tk-*, --status-*): it
   sets none of them. Where the drawing is deliberately lighter than the app, the shell has its own name (appendix C2). */
.bh-body {
  --bh-top-h: 64px;
  --bh-side-w: 296px;
  --bh-gutter: 40px;
  --bh-page-max: none;   /* the middle uses the whole width next to the tree */
  --bh-measure: 72ch;    /* a line of running text never gets longer than this */
  --bh-row-h: 30px;
  --bh-indent: 14px;
}
.bh-body > * {
  --bh-fill-red: color-mix(in srgb, var(--status-red) 10%, var(--background));
  --bh-fill-amber: color-mix(in srgb, var(--status-amber) 9%, var(--background));
  --bh-fill-green: color-mix(in srgb, var(--status-green) 11%, var(--background));
  --bh-band-ink-2: rgba(250, 248, 242, 0.76);
  --bh-band-line: rgba(250, 248, 242, 0.22);
}

/* ── Base rules. On the class of the body, with :where() so that they stay as light as in the drawing and never win over a rule of the app ── */
.bh-body { background: var(--background); color: var(--text); display: flex; flex-direction: column; font-family: "Roc Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; margin: 0; min-height: 100vh; }
.bh-body [hidden] { display: none !important; }
:where(.bh-body) a { color: inherit; text-decoration: none; }
:where(.bh-body) button, :where(.bh-body) input, :where(.bh-body) select, :where(.bh-body) textarea { font: inherit; }
:where(.bh-body) b, :where(.bh-body) strong, :where(.bh-body) th, :where(.bh-body) h3, :where(.bh-body) h4 { font-weight: 500; }
:where(.bh-body) h1, :where(.bh-body) h2, :where(.bh-body) h3, :where(.bh-body) h4, :where(.bh-body) p, :where(.bh-body) ul, :where(.bh-body) ol, :where(.bh-body) dl, :where(.bh-body) dd, :where(.bh-body) figure { margin: 0; }
:where(.bh-body) ul, :where(.bh-body) ol { padding: 0; }
:where(.bh-body) :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.bh-tnum { font-variant-numeric: tabular-nums; }
.bh-sr { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.bh-skip { background: var(--primary); border-radius: 0 0 8px 0; color: var(--primary-foreground); font-weight: 500; left: 0; padding: 10px 14px; position: absolute; top: -60px; z-index: 100; }
.bh-skip:focus { top: 0; }

/* ── 1. Top: the main navigation ──────────────────────────────────── */
.bh-top {
  align-items: center; flex: 0 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: 22px;
  min-height: var(--bh-top-h); padding: 10px 20px;
}
.bh-avatar {
  align-items: center; background: #114d61; border: 0; border-radius: 999px; color: #d9e8e8; cursor: pointer; display: inline-flex; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; height: 32px; justify-content: center; position: relative; width: 32px;
}
.bh-avatar .bh-cnt {
  align-items: center; background: var(--accent); border: 2px solid var(--surface); border-radius: 999px; color: #1c1a17; display: inline-flex;
  font-size: 10px; font-weight: 700; height: 18px; justify-content: center; min-width: 18px; padding: 0 3px; position: absolute; right: -6px; top: -6px;
}
.bh-lockup { align-items: baseline; display: flex; gap: 10px; white-space: nowrap; }
.bh-lockup b { font-size: 16px; font-weight: 700; }
.bh-appsw {
  align-items: center; background: none; border: 0; border-radius: 8px; color: var(--primary); cursor: pointer; display: inline-flex;
  font-size: 16px; font-weight: 500; gap: 6px; margin: -4px -6px; padding: 4px 6px;
}
.bh-appsw:hover { background: var(--primary-soft); }
.bh-chev { border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; display: inline-block; height: 6px; transform: translateY(-2px) rotate(45deg); width: 6px; }
/* The customer portal has no app switcher: the Outbirds logo and the name of the portal stand here instead. */
.bh-lockup img { align-self: center; display: block; height: 30px; width: auto; }
.bh-lockup .bh-subname { color: var(--muted-strong); font-size: 14px; }

.bh-nav { display: flex; gap: 2px; }
.bh-nav a { border-radius: 8px; color: var(--muted-strong); font-size: 14px; font-weight: 500; padding: 8px 12px; white-space: nowrap; }
.bh-nav a:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); color: var(--text); }
.bh-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.bh-nav span { border-radius: 8px; color: var(--muted-strong); font-size: 14px; font-weight: 500; padding: 8px 12px; white-space: nowrap; }
.bh-nav span[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.bh-top-tools { align-items: center; display: flex; gap: 12px; margin-left: auto; }
.bh-search {
  align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); display: inline-flex;
  font-size: 13px; gap: 8px; min-height: 36px; padding: 0 12px; width: 276px;
}
.bh-search svg { flex: 0 0 auto; height: 15px; width: 15px; }
.bh-search input { background: none; border: 0; color: var(--text); flex: 1; font-size: 13px; min-width: 0; outline: none; padding: 0; }
.bh-search input::placeholder { color: var(--muted); opacity: 1; }
.bh-search:focus-within { border-color: var(--primary); outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-search kbd { border: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 11px; padding: 1px 5px; }
.bh-mark { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.bh-menu-b {
  align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 9px; color: var(--text); cursor: pointer; display: none;
  flex: 0 0 auto; font-size: 13px; font-weight: 500; gap: 8px; min-height: 44px; padding: 0 12px;
}
.bh-menu-b i { display: grid; gap: 3px; }
.bh-menu-b i::before, .bh-menu-b i::after, .bh-menu-b i b { background: currentColor; border-radius: 2px; content: ""; display: block; height: 1.5px; width: 14px; }

/* ── 2. The band: where you are, and switching project or customer ── */
.bh-band { background: var(--hero-bg); color: var(--hero-ink); display: flex; flex: 0 0 auto; flex-direction: column; isolation: isolate; justify-content: flex-end; min-height: 104px; overflow: hidden; padding: 14px 32px 18px; position: relative; }
.bh-band::after {
  background-image: url(assets/hero-grain.svg); background-size: 240px 240px; content: ""; inset: 0; mix-blend-mode: overlay; opacity: .14;
  pointer-events: none; position: absolute; z-index: 0;
}
.bh-band > * { position: relative; z-index: 1; }
.bh-band-shape { pointer-events: none; position: absolute; right: 40px; top: -78px; width: 190px; z-index: 0; }
.bh-band-shape img { display: block; width: 100%; }
.bh-band-ctx { align-items: center; color: var(--bh-band-ink-2); display: flex; flex-wrap: wrap; font-size: 13.5px; gap: 6px 10px; min-height: 30px; }
.bh-switch {
  align-items: center; background: rgba(250, 248, 242, 0.07); border: 1px solid var(--bh-band-line); border-radius: 8px; color: var(--hero-ink); cursor: pointer;
  display: inline-flex; font-size: 13.5px; font-weight: 500; gap: 9px; min-height: 30px; padding: 0 11px;
}
.bh-switch:hover, .bh-switch[aria-expanded="true"] { background: rgba(250, 248, 242, 0.14); }
.bh-switch .bh-cl { color: var(--bh-band-ink-2); font-weight: 400; }
.bh-switch .bh-cl::after { content: "·"; margin-left: 9px; }
.bh-switch:focus-visible, .bh-band a:focus-visible { outline-color: var(--hero-ink); }
.bh-band-acts { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; }
a.bh-switch { text-decoration: none; }
.bh-arrow { flex: none; height: 11px; width: 11px; }
@media (max-width: 640px) { .bh-band-acts { flex-basis: 100%; } }
.bh-band-trail { align-items: center; display: inline-flex; gap: 10px; }
.bh-band-trail::before { border-right: 1.5px solid var(--bh-band-ink-2); border-top: 1.5px solid var(--bh-band-ink-2); content: ""; height: 6px; transform: rotate(45deg); width: 6px; }
.bh-band-trail a { color: var(--hero-ink); font-weight: 500; }
.bh-band-trail a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bh-band-row { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; padding-right: 250px; }
.bh-band-row .bh-switch { align-self: center; }
.bh-band h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.bh-band-meta { color: var(--bh-band-ink-2); display: flex; flex-wrap: wrap; font-size: 13.5px; gap: 2px 18px; }
.bh-band-meta b { color: var(--hero-ink); font-weight: 500; }

/* ── 3. Left: everything that was a tab, a row of buttons or a section ── */
.bh-shell { align-items: start; display: grid; flex: 1 0 auto; grid-template-columns: var(--bh-side-w) minmax(0, 1fr); }
.bh-side {
  align-self: stretch; background: var(--surface); border-right: 1px solid var(--line); min-width: 0;
}
.bh-side-in { max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; padding: 14px 10px 28px; position: sticky; top: 0; }
.bh-side-sec + .bh-side-sec { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.bh-side-h { color: var(--muted); font-size: 12px; font-weight: 500; margin: 0; padding: 2px 10px 6px; }
.bh-tree { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); list-style: none; }
.bh-tree .bh-tree { margin: 1px 0 3px; padding-left: var(--bh-indent); }
.bh-row { align-items: center; border-radius: 8px; display: flex; min-height: var(--bh-row-h); min-width: 0; }
.bh-row:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.bh-tog {
  align-items: center; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; display: inline-flex; flex: 0 0 22px;
  height: var(--bh-row-h); justify-content: center; padding: 0; width: 22px;
}
.bh-tog::before { border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; content: ""; height: 6px; transform: translateX(-1px) rotate(-45deg); width: 6px; }
.bh-tog[aria-expanded="true"]::before { transform: translateY(-2px) rotate(45deg); }
.bh-tog:hover { color: var(--text); }
.bh-node.is-closed > .bh-tree { display: none; }
.bh-nolead { flex: 0 0 22px; }
.bh-link {
  align-items: center; align-self: stretch; color: var(--text); display: flex; flex: 1 1 auto; font-size: 13.5px; gap: 7px; min-width: 0; padding: 0 8px 0 2px;
}
.bh-link .bh-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-link .bh-key { flex: 0 0 auto; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .01em; }
.bh-n { color: var(--muted); flex: 0 0 auto; font-size: 12px; font-variant-numeric: tabular-nums; padding: 0 10px 0 4px; white-space: nowrap; }
.bh-n.open { color: var(--status-amber); font-weight: 500; }
.bh-n.bad { color: var(--status-red); font-weight: 500; }
.bh-n.ok { color: var(--status-green); }
/* The branch you are in, and the page you are on. No stripe on the left: a flat tint and weight carry it. */
.bh-node.is-path > .bh-row > .bh-link { font-weight: 500; }
.bh-row.is-current { background: var(--primary-soft); }
.bh-link[aria-current="page"] { color: var(--primary); font-weight: 500; }
.bh-row.is-current .bh-n { color: var(--primary); }
/* A break between groups of parts inside one branch. */
.bh-node.gap { margin-top: 8px; }
/* The stage of a card in the tree: a dot, with the word for screen readers. */
.bh-dot { border-radius: 999px; flex: 0 0 auto; height: 8px; width: 8px; }
.bh-dot.new { background: none; border: 1.5px solid var(--tk-new); }
.bh-dot.busy { background: var(--tk-busy); }
.bh-dot.wait { background: var(--tk-wait); }
.bh-dot.done { background: var(--tk-done); }
.bh-dot.off { background: none; border: 1.5px dashed var(--tk-new); }

/* Main area */
.bh-main { min-width: 0; padding: 28px var(--bh-gutter) 56px; }
.bh-page { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); max-width: var(--bh-page-max); }
.bh-page.wide { max-width: none; }
.bh-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bh-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.bh-head .bh-cnt { color: var(--muted); font-size: 17px; font-weight: 500; }
.bh-head p { color: var(--muted); flex: 1 1 280px; font-size: 14px; max-width: 64ch; }
.bh-head-acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bh-sub { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bh-sub h3 { font-size: 16px; font-weight: 700; }
.bh-sub p, .bh-sub .bh-cnt { color: var(--muted); font-size: 13px; }
.bh-sub .bh-head-acts { margin-left: auto; }
.bh-note { color: var(--muted); font-size: 13px; max-width: 78ch; }

/* On a phone the path is a button that opens the menu. */
.bh-here { display: none; }

/* ── Parts every app uses ─────────────────────────────────────────── */
.bh-btn {
  align-items: center; background: var(--primary); border: 1px solid var(--primary); border-radius: 10px; color: var(--primary-foreground); cursor: pointer;
  display: inline-flex; font-size: 13.5px; font-weight: 500; gap: 8px; justify-content: center; min-height: 36px; padding: 0 14px; white-space: nowrap;
}
.bh-btn.is-ghost { background: var(--background); border-color: var(--line); color: var(--primary); }
.bh-btn.sm { border-radius: 8px; font-size: 12.5px; min-height: 30px; padding: 0 10px; }
.bh-btn-link { background: none; border: 0; color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 500; padding: 0; }
.bh-btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
a.bh-ext::after { color: var(--muted); content: " ↗"; }

.bh-tk {
  align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 999px; display: inline-flex; font-size: 12px;
  font-weight: 500; gap: 7px; line-height: 1; min-height: 24px; padding: 0 10px; white-space: nowrap;
}
.bh-tk::before { border-radius: 999px; content: ""; flex: 0 0 auto; height: 7px; width: 7px; }
.bh-tk.new { color: var(--muted-strong); } .bh-tk.new::before { background: var(--tk-new); }
.bh-tk.busy { color: var(--tk-busy); } .bh-tk.busy::before { background: var(--tk-busy); }
.bh-tk.wait { color: var(--tk-wait); } .bh-tk.wait::before { background: var(--tk-wait); }
.bh-tk.done { color: var(--tk-done); } .bh-tk.done::before { background: var(--tk-done); }
.bh-tag {
  border: 1px solid var(--line); border-radius: 5px; color: var(--muted-strong); display: inline-block; font-size: 10.5px; font-weight: 500;
  letter-spacing: .04em; line-height: 1.5; padding: 0 5px; text-transform: uppercase; vertical-align: 1px; white-space: nowrap;
}
.bh-tag.warn { background: var(--bh-fill-amber); border-color: var(--status-amber-line); color: var(--status-amber); }
.bh-tag.klant { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); color: var(--primary); }
.bh-key { font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.bh-who {
  align-items: center; background: var(--primary-soft); border-radius: 999px; color: var(--primary); display: inline-flex; flex: 0 0 auto; font-size: 10px;
  font-weight: 700; height: 24px; justify-content: center; width: 24px;
}
.bh-who.kl { background: var(--surface); border: 1px solid var(--line); color: var(--muted-strong); }
.bh-txt-ok { color: var(--status-green); font-weight: 500; }
.bh-txt-warn { color: var(--status-amber); font-weight: 500; }
.bh-txt-bad { color: var(--status-red); font-weight: 500; }
.bh-txt-muted { color: var(--muted); }

/* A panel, a list with rows, facts. One border all round; never a coloured stripe on the left. */
.bh-card { background: var(--background); border: 1px solid var(--line); border-radius: 12px; }
.bh-card.pad { padding: 18px 20px; }
.bh-card.is-tint { background: var(--surface); }
.bh-list { border: 1px solid var(--line); border-radius: 12px; list-style: none; overflow: hidden; }
.bh-list > li { align-items: center; display: grid; gap: 2px 14px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px 16px; }
.bh-list > li + li { border-top: 1px solid var(--line); }
.bh-list .bh-t { font-size: 14px; font-weight: 500; min-width: 0; }
.bh-list .bh-t small { color: var(--muted); display: block; font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.bh-list .bh-r { align-items: center; display: flex; gap: 10px; justify-content: flex-end; text-align: right; }
.bh-list .bh-r small { color: var(--muted); font-size: 12px; }
.bh-facts { display: grid; gap: 0; }
.bh-facts > div { align-items: baseline; display: grid; gap: 2px 16px; grid-template-columns: 150px minmax(0, 1fr) auto; padding: 9px 0; }
.bh-facts > div + div { border-top: 1px solid var(--line-soft); }
.bh-facts dt { color: var(--muted); font-size: 13px; }
.bh-facts dd { font-size: 13.5px; }
.bh-facts dd small { color: var(--muted); display: block; font-size: 12.5px; }

/* "Klaargezet": prepared (by Claude or a colleague) and waiting for a person to look and confirm. The dashed border is the sign, as in the apps. */
.bh-ready {
  align-items: center; border: 1.5px dashed color-mix(in srgb, var(--primary) 50%, var(--line)); border-radius: 12px; display: flex; flex-wrap: wrap;
  gap: 10px 18px; justify-content: space-between; padding: 14px 18px;
}
.bh-ready .bh-t { flex: 1 1 320px; font-weight: 500; }
.bh-ready .bh-t small { color: var(--muted); display: block; font-size: 13px; font-weight: 400; margin-top: 2px; }
.bh-ready .bh-acts { display: flex; gap: 8px; }

.bh-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.bh-tablewrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.bh-table th { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 12px; font-weight: 500; padding: 9px 14px; text-align: left; white-space: nowrap; }
.bh-table td { border-bottom: 1px solid var(--line-soft); font-size: 13.5px; padding: 11px 14px; vertical-align: top; }
.bh-table tr:last-child td { border-bottom: 0; }
.bh-table td small { color: var(--muted); display: block; font-size: 12.5px; margin-top: 1px; }
.bh-table .bh-num { font-variant-numeric: tabular-nums; text-align: right; }
.bh-empty { border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); padding: 22px; text-align: center; }

/* The start page: what comes first. A short list in order of urgency; the verb on the button says what happens. */
.bh-first { counter-reset: first; display: grid; gap: 0; list-style: none; }
.bh-first > li { align-items: center; border-top: 1px solid var(--line); counter-increment: first; display: grid; gap: 2px 16px; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 14px 4px; }
.bh-first > li:last-child { border-bottom: 1px solid var(--line); }
.bh-first > li::before { color: var(--muted); content: counter(first); font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.bh-first .bh-t { font-size: 16px; font-weight: 500; line-height: 1.3; }
.bh-first .bh-t small { color: var(--muted); display: block; font-size: 13px; font-weight: 400; margin-top: 3px; }
.bh-first .bh-t small b { color: var(--muted-strong); }

/* Dialog */
.bh-scrim { align-items: center; background: color-mix(in srgb, #0b2e3b 45%, transparent); display: flex; inset: 0; justify-content: center; padding: 16px; position: fixed; z-index: 80; }
.bh-dialog { background: var(--background); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 46, 59, .3); display: grid; gap: 16px; max-height: calc(100vh - 32px); max-width: 640px; overflow-y: auto; padding: 24px 26px; width: 100%; }
.bh-dialog h2 { font-size: 22px; font-weight: 700; }
.bh-dialog p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.bh-dialog .bh-foot { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.bh-dialog .bh-foot small { color: var(--muted); flex: 1 1 200px; font-size: 12.5px; }
.bh-field { display: grid; gap: 6px; }
.bh-field label { font-size: 12.5px; font-weight: 500; }
.bh-field .bh-help { color: var(--muted); font-size: 12px; }
.bh-input { background: var(--background); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14px; min-height: 40px; padding: 0 12px; width: 100%; }
.bh-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 10px; padding: 14px 16px; }
.bh-preview h3 { font-size: 15px; font-weight: 700; }
.bh-preview p { color: var(--text); }

/* ── Narrow: the left bar becomes a drawer ─────────────────────────── */
.bh-drawer-top { display: none; }
.bh-side-scrim { display: none; }
@media (max-width: 960px) {
  .bh-body { --bh-gutter: 16px; --bh-row-h: 44px; --bh-indent: 12px; }
  .bh-top { gap: 12px; padding: 8px 16px; }
  .bh-top .bh-nav, .bh-top .bh-searchwrap, .bh-mark { display: none; }
  .bh-menu-b { display: inline-flex; order: -1; }
  .bh-lockup { min-width: 0; }
  .bh-band { min-height: 0; padding: 12px 16px 14px; }
  .bh-band-shape { opacity: .3; right: -40px; }
  .bh-band-row { padding-right: 0; }
  .bh-band h1 { font-size: 24px; }
  .bh-shell { display: block; }
  .bh-here {
    align-items: center; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; display: flex;
    font-size: 14px; gap: 10px; min-height: 48px; padding: 0 16px; position: sticky; text-align: left; top: 0; width: 100%; z-index: 20;
  }
  .bh-here .bh-path { color: var(--muted); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bh-here b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bh-here .bh-chev { color: var(--muted); margin-left: auto; }
  .bh-side {
    border-right: 0; bottom: 0; box-shadow: 0 0 40px rgba(11, 46, 59, .28); left: 0; max-width: 340px; position: fixed; top: 0; transform: translateX(-104%);
    transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1); visibility: hidden; width: 88vw; z-index: 70;
  }
  .bh-side-in { max-height: none; height: 100%; padding: 0 10px 28px; position: static; }
  .bh-body[data-menu="open"] .bh-side { transform: none; visibility: visible; }
  .bh-body[data-menu="open"] { overflow: hidden; }
  .bh-body[data-menu="open"] .bh-side-scrim { background: color-mix(in srgb, #0b2e3b 45%, transparent); display: block; inset: 0; position: fixed; z-index: 60; }
  .bh-drawer-top { align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; margin: 0 -10px 10px; min-height: 56px; padding: 0 12px 0 20px; position: sticky; top: 0; z-index: 2; }
  .bh-drawer-top b { font-size: 15px; font-weight: 700; }
  .bh-close { align-items: center; background: none; border: 1px solid var(--line); border-radius: 9px; color: var(--text); cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 500; min-height: 44px; padding: 0 12px; }
  .bh-drawer-only { border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 12px; }
  .bh-drawer-nav { display: grid; gap: 1px; }
  .bh-drawer-nav a, .bh-drawer-nav span { border-radius: 8px; display: flex; font-size: 15px; font-weight: 500; min-height: 44px; align-items: center; padding: 0 10px; }
  .bh-drawer-nav a[aria-current="page"], .bh-drawer-nav span[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
  .bh-link { font-size: 14.5px; }
  .bh-tog { flex-basis: 32px; width: 32px; }
  .bh-nolead { flex-basis: 32px; }
  .bh-main { padding-bottom: 40px; padding-top: 20px; }
  .bh-head h2 { font-size: 21px; }
  .bh-facts > div { grid-template-columns: minmax(0, 1fr); }
  .bh-list > li { grid-template-columns: minmax(0, 1fr); }
  .bh-list .bh-r { justify-content: flex-start; text-align: left; }
  .bh-first > li { grid-template-columns: 24px minmax(0, 1fr); }
  .bh-first > li > .bh-btn { grid-column: 2; justify-self: start; margin-top: 6px; }
  .bh-btn { min-height: 44px; }
  .bh-btn.sm { min-height: 40px; }
}
@media (min-width: 961px) { .bh-drawer-only { display: none; } }
@media (prefers-reduced-motion: reduce) { .bh-side { transition: none; } }
@media print { .bh-top, .bh-band, .bh-side, .bh-here, .bh-btn, .bh-btn-link { display: none !important; } .bh-shell { display: block; } .bh-main { padding: 0; } }

/* ══ Round 2 (12 October 2026, second reaction of the owner). Everything below is added; nothing above was renamed. ══ */

/* Columns that use the width. Text keeps its measure; the room goes to content next to each other. */
.bh-cols { align-items: start; display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.bh-cols.main-side { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
.bh-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-measure { max-width: var(--bh-measure); }

/* What you have to do here. One per screen, on top. The quiet form says that there is nothing to do. */
.bh-next { align-items: center; background: var(--primary-soft); border-radius: 14px; display: grid; gap: 4px 24px; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 20px 17px; }
.bh-next .bh-for { color: var(--primary); font-size: 12.5px; font-weight: 500; grid-column: 1 / -1; }
.bh-next .bh-do { font-size: 20px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; max-width: 46ch; text-wrap: balance; }
.bh-next .bh-why { color: var(--muted-strong); font-size: 13.5px; grid-column: 1; max-width: var(--bh-measure); }
.bh-next .bh-why b { color: var(--text); }
.bh-next .bh-acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; grid-row: 2 / span 2; justify-content: flex-end; }
.bh-next .bh-then { color: var(--muted-strong); font-size: 13px; grid-column: 1 / -1; margin-top: 4px; }
.bh-next .bh-then a { color: var(--primary); font-weight: 500; }
.bh-next .bh-then a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bh-next.quiet { background: var(--surface); }
.bh-next.quiet .bh-for { color: var(--muted-strong); }
.bh-next.quiet .bh-do { font-size: 17px; }

/* A part of a page: a heading, one line that sums it up, the actions of this part. */
.bh-sec { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 12px; }
.bh-sec-h { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bh-sec-h h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.bh-sec-h .bh-cnt { color: var(--muted); font-size: 15px; font-weight: 500; }
.bh-sec-h p { color: var(--muted); flex: 1 1 240px; font-size: 13.5px; }
.bh-sec-h .bh-head-acts { margin-left: auto; }

/* A part that is done or not yet at hand: closed, with one line that says how it stands. One click opens it, on the same page. */
.bh-fold { border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 12px; }
.bh-fold > summary { align-items: baseline; cursor: pointer; display: flex; flex-wrap: wrap; gap: 3px 14px; list-style: none; padding: 13px 18px 13px 42px; position: relative; }
.bh-fold > summary::-webkit-details-marker { display: none; }
.bh-fold > summary::before { border-bottom: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); content: ""; height: 7px; left: 19px; position: absolute; top: 20px; transform: rotate(-45deg); width: 7px; }
.bh-fold[open] > summary::before { top: 17px; transform: rotate(45deg); }
.bh-fold > summary:hover { background: color-mix(in srgb, var(--primary) 4%, var(--background)); border-radius: 12px; }
.bh-fold > summary h2 { font-size: 17px; font-weight: 700; }
.bh-fold > summary .bh-sum { color: var(--muted-strong); flex: 1 1 320px; font-size: 13.5px; }
.bh-fold > summary .bh-state { font-size: 13px; margin-left: auto; white-space: nowrap; }
.bh-fold > .bh-in { border-top: 1px solid var(--line-soft); display: grid; gap: 14px; padding: 16px 18px 18px; }
.bh-fold.plain { border-style: dashed; }
.bh-fold-line { align-items: baseline; display: flex; flex-wrap: wrap; gap: 3px 14px; padding: 13px 18px; }
.bh-fold-line h2 { color: var(--muted-strong); font-size: 17px; font-weight: 700; }
.bh-fold-line .bh-sum { color: var(--muted); flex: 1 1 320px; font-size: 13.5px; }

/* The line that jumps to the parts of this page. Not a menu and not tabs: every part stays on the page. */
.bh-jump { align-items: baseline; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 4px 20px; padding-bottom: 10px; }
.bh-jump a { color: var(--muted-strong); font-weight: 500; }
.bh-jump a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.bh-jump a small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.bh-jump a small.is-open { color: var(--status-amber); font-weight: 500; }

/* A few figures that steer, said in words. A list, not a row of big numbers. */
.bh-kpi { display: grid; gap: 0; }
.bh-kpi > div { border-top: 1px solid var(--line); display: grid; gap: 1px 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; }
.bh-kpi > div:last-child { border-bottom: 1px solid var(--line); }
.bh-kpi dt { color: var(--muted); font-size: 12.5px; grid-column: 1 / -1; }
.bh-kpi dd { font-size: 15px; font-weight: 500; line-height: 1.3; }
.bh-kpi dd.bh-v { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bh-kpi dd small { color: var(--muted); display: block; font-size: 12.5px; font-weight: 400; margin-top: 1px; }

/* How you look at one screen: a switch in the middle, not a layer in the tree. */
.bh-seg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: inline-flex; flex-wrap: wrap; padding: 3px; }
.bh-seg button, .bh-seg a { align-items: center; background: none; border: 0; border-radius: 7px; color: var(--muted-strong); cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 500; gap: 6px; min-height: 28px; padding: 0 12px; }
.bh-seg [aria-pressed="true"], .bh-seg [aria-current="true"] { background: var(--background); box-shadow: 0 1px 2px rgba(28, 26, 23, .12); color: var(--text); }
.bh-seg b { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.bh-chip { align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); cursor: pointer; display: inline-flex; font-size: 12.5px; font-weight: 500; gap: 5px; min-height: 30px; padding: 0 12px; }
.bh-chip b { color: var(--muted); font-weight: 400; }
.bh-chip[aria-pressed="true"] { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); color: var(--primary); }

/* The switch in the band, opened: every project (or customer) you may go to, yours first. */
.bh-band.is-switch-open { overflow: visible; z-index: 30; }
.bh-band.is-switch-open .bh-band-shape { clip-path: inset(78px 0 0 0); }
/* The part with the switch is drawn above the title row while the switch is open; both are children of the band with z-index 1, so the later one (the title and the facts) was drawn over the panel. */
.bh-band.is-switch-open > .bh-band-ctx { z-index: 2; }
.bh-switchwrap { display: inline-block; position: relative; }
.bh-switchpanel { background: var(--background); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(11, 46, 59, .28); color: var(--text); left: 0; padding: 12px; position: absolute; top: calc(100% + 8px); width: 440px; z-index: 40; }
.bh-switchpanel[hidden] { display: none; }
.bh-switchpanel .bh-search { width: 100%; }
.bh-switchpanel .bh-swnote { color: var(--muted); font-size: 12.5px; margin: 8px 4px 0; }
.bh-switchpanel h3 { color: var(--muted); font-size: 12px; font-weight: 500; margin: 12px 4px 4px; }
.bh-switchpanel ul { display: grid; gap: 1px; list-style: none; }
.bh-switchpanel [role="option"] { align-items: baseline; border-radius: 8px; color: var(--text); display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 7px 10px; }
.bh-switchpanel [role="option"] b { font-size: 14px; font-weight: 500; }
.bh-switchpanel [role="option"] small { color: var(--muted); font-size: 12.5px; }
.bh-switchpanel [role="option"] .bh-sig { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.bh-switchpanel [role="option"]:not([aria-disabled="true"]):hover, .bh-switchpanel [role="option"].is-active { background: color-mix(in srgb, var(--primary) 7%, var(--background)); }
.bh-switchpanel [role="option"][aria-selected="true"] { background: var(--primary-soft); }
.bh-switchpanel [role="option"][aria-selected="true"] b { color: var(--primary); }
.bh-switchpanel [role="option"]:focus-visible { outline-color: var(--focus); }
.bh-switchpanel .bh-scroll { max-height: 400px; overflow-y: auto; }
.bh-switchpanel .bh-foot { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12.5px; gap: 6px 14px; justify-content: space-between; margin-top: 10px; padding: 10px 4px 0; }
.bh-switchpanel .bh-foot a { color: var(--primary); font-weight: 500; }

/* A colleague looks at what the customer sees: the page of the portal as it is, with a bar and a frame that say it is an example. */
.bh-previewbar { align-items: center; background: var(--text); color: var(--background); display: flex; flex: 0 0 auto; flex-wrap: wrap; font-size: 13.5px; gap: 8px 18px; padding: 9px 20px; }
.bh-previewbar b { font-weight: 700; }
.bh-previewbar span { color: color-mix(in srgb, var(--background) 78%, transparent); flex: 1 1 280px; }
.bh-previewbar .bh-btn { background: transparent; border-color: color-mix(in srgb, var(--background) 45%, transparent); color: var(--background); min-height: 32px; }
.bh-previewbar .bh-btn.solid { background: var(--background); border-color: var(--background); color: var(--text); }
.bh-previewbar :focus-visible { outline-color: var(--background); }
/* The frame round the whole window comes with the bar itself (the page needs no class on the body): fixed, over the page, never in the way of a click. */
.bh-previewbar::before { border: 4px solid var(--text); content: ""; inset: 0; pointer-events: none; position: fixed; z-index: 80; }

@media (max-width: 1180px) {
  .bh-cols.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 960px) {
  .bh-cols, .bh-cols.main-side, .bh-cols.three { grid-template-columns: minmax(0, 1fr); }
  .bh-next { grid-template-columns: minmax(0, 1fr); }
  .bh-next .bh-do { font-size: 18px; }
  .bh-next .bh-acts { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 6px; }
  .bh-fold > summary .bh-state { margin-left: 0; }
  .bh-switchpanel { left: -8px; max-width: calc(100vw - 16px); width: 420px; }
  .bh-seg button, .bh-seg a { min-height: 40px; }
  .bh-chip { min-height: 40px; }
}
@media print { .bh-previewbar { display: none !important; } }

/* ══ Round 2, taken over from the Klantportaal (12 October 2026). Added; nothing above was renamed or changed. ══ */

/* A button that cannot be used yet. The reason always stands next to it in words. */
.bh-btn[disabled], .bh-btn[aria-disabled="true"] { background: var(--surface); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* Nothing in the middle may push the page wider than the screen (a long file name did, by 130 on a phone). */
.bh-page > * { min-width: 0; }

/* Columns "read on the left, do on the right": two parts to three. */
.bh-cols.read-do { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

/* The way of a thing as a bar (flow() in schil.mjs): steps next to each other, a bar on top says done, now or still to come. */
.bh-flow { display: flex; gap: 5px; list-style: none; }
.bh-flow > li { align-content: start; display: grid; flex: 1 1 0; gap: 1px; min-width: 0; }
.bh-flow i { background: var(--line); border-radius: 4px; display: block; height: 6px; margin-bottom: 7px; }
.bh-flow .is-done i { background: var(--tk-done); }
.bh-flow .is-now i { background: var(--status-amber); }
.bh-flow b { font-size: 13.5px; font-weight: 500; }
.bh-flow .is-now b { font-weight: 700; }
.bh-flow small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.bh-flow .is-now small { color: var(--status-amber); font-weight: 500; }

@media (max-width: 960px) {
  .bh-cols.read-do { grid-template-columns: minmax(0, 1fr); }
  .bh-flow { flex-direction: column; gap: 0; }
  .bh-flow > li { align-items: baseline; gap: 0 10px; grid-template-columns: 12px minmax(0, 1fr); padding: 4px 0; }
  .bh-flow i { border-radius: 999px; grid-row: span 2; height: 10px; margin: 0; width: 10px; }
  .bh-flow b, .bh-flow small { grid-column: 2; }
}

/* ══ Round 3 (12 October 2026, afternoon). Added; nothing above was renamed or changed. ══ */

/* A page without the left bar (page({ side: false })): the dashboard of a start page over the whole width. */
.bh-shell.bh-noside { grid-template-columns: minmax(0, 1fr); }

/* The small settings menu under the round button with the initials (app.userMenu). Closed by default; one click opens it. */
.bh-userwrap { display: inline-flex; flex: 0 0 auto; position: relative; }
.bh-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--primary-soft); }
.bh-usermenu {
  background: var(--background); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(11, 46, 59, .22); left: -6px;
  max-width: calc(100vw - 24px); padding: 6px; position: absolute; top: calc(100% + 10px); width: 264px; z-index: 50;
}
.bh-usermenu[hidden] { display: none; }
.bh-usermenu .bh-whoami { border-bottom: 1px solid var(--line); display: grid; gap: 1px; margin-bottom: 4px; padding: 8px 10px 10px; }
.bh-usermenu .bh-whoami b { font-size: 14px; font-weight: 500; }
.bh-usermenu .bh-whoami small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-usermenu ul { display: grid; gap: 1px; list-style: none; }
.bh-usermenu [role="menuitem"] { align-items: baseline; border-radius: 8px; color: var(--text); display: flex; font-size: 13.5px; gap: 10px; justify-content: space-between; min-height: 36px; padding: 8px 10px; }
.bh-usermenu [role="menuitem"]:not([aria-disabled="true"]):hover, .bh-usermenu [role="menuitem"]:focus-visible { background: color-mix(in srgb, var(--primary) 7%, var(--background)); }
.bh-usermenu [role="menuitem"][aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.bh-usermenu [role="menuitem"] small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bh-usermenu [role="menuitem"][aria-disabled="true"], .bh-switchpanel [role="option"][aria-disabled="true"] { color: var(--muted); cursor: not-allowed; opacity: .65; }
.bh-usermenu .bh-sep { border-top: 1px solid var(--line); margin: 4px 0; }

@media (max-width: 960px) {
  /* Without a left bar there is no Menu button: the main parts stay in sight as a row under the top bar, sliding sideways if they must. */
  .bh-top.bh-noside { flex-wrap: wrap; row-gap: 6px; }
  .bh-top.bh-noside .bh-nav {
    display: flex; flex: 1 0 100%; margin: 0 -16px -8px; order: 10; overflow-x: auto; padding: 6px 12px 8px; scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .bh-top.bh-noside .bh-nav a, .bh-top.bh-noside .bh-nav span { align-items: center; display: inline-flex; min-height: 40px; }
  /* The search has no place in a menu here, so it stays in the top bar: a row of its own under the main parts. */
  /* The wrapper steps aside (display: contents): a search field is a row of its own, and an app without one gets no empty row. */
  .bh-top.bh-noside .bh-top-tools { display: contents; }
  .bh-top.bh-noside .bh-searchwrap { display: block; flex: 1 0 100%; margin: 0; order: 11; }
  .bh-top.bh-noside .bh-search { width: 100%; }
  .bh-top.bh-noside .bh-searchres { left: 0; min-width: 0; right: 0; }
  .bh-usermenu [role="menuitem"] { min-height: 44px; }
}

/* ══ What the Support Desk and the portal draw too (KO-6): a big example picture of an attachment ══ */
.bh-shot { display: grid; gap: 8px; margin: 0; min-width: 0; }
.bh-shot-img { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: block; padding: 14px; }
.bh-shot-img:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.bh-shot .bh-scr { background: var(--background); border-radius: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / .12); display: grid; font-size: 11px; gap: 5px; margin: 0 auto; max-width: 240px; overflow: hidden; padding-bottom: 10px; }
.bh-shot .bh-scr-bar { background: var(--primary); color: var(--primary-foreground); font-weight: 700; padding: 7px 10px; }
.bh-shot .bh-scr-ln { color: var(--muted-strong); padding: 0 10px; }
.bh-shot .bh-scr-gap { align-items: center; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); display: flex; height: 70px; justify-content: center; margin: 4px 10px 0; text-align: center; }
.bh-shot figcaption b { display: block; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.bh-shot figcaption small { color: var(--muted); font-size: 12.5px; }

/* ══ What the apps need that the drawings do not show: the results of the search, a region for messages, a window that is a real dialog ══ */

/* The search in the top bar (and in the menu on a phone) with the list of what it found. The list sets its own text colour: it sits in the top bar, whose text is light in the new look, but its background is the page. */
.bh-searchwrap { position: relative; }
.bh-searchres {
  background: var(--background); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(11, 46, 59, .22); color: var(--text); display: grid; max-height: 360px;
  min-width: 340px; overflow-y: auto; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
}
.bh-searchres[hidden] { display: none; }
.bh-searchres a { border-radius: 8px; cursor: pointer; display: grid; font-size: 13.5px; padding: 7px 10px; }
.bh-searchres a b { font-weight: 500; }
.bh-searchres a small { color: var(--muted); font-size: 12.5px; }
.bh-searchres a:hover, .bh-searchres a[aria-selected="true"] { background: var(--primary-soft); }
.bh-searchres p { color: var(--muted); margin: 0; padding: 8px 10px; }
.bh-drawer-only .bh-searchwrap { display: block; margin-top: 10px; }
.bh-drawer-only .bh-search { width: 100%; }
.bh-drawer-only .bh-searchres { box-shadow: none; margin-top: 6px; min-width: 0; position: static; width: 100%; }

/* Pointing wins over where you are: the link, row, menu item or option that you are on gets a deeper tint when you point at it, so the pointer is always seen. The share of the main colour
   is larger in the dark, where the tint of "you are here" is already a good part of it, but not so large that the main colour as text no longer reaches 4.5 to 1 on it (30% gave 4.09, 24% gives 4.73). */
.bh-body { --bh-point: 16%; }
[data-theme="dark"] .bh-body { --bh-point: 24%; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .bh-body { --bh-point: 24%; } }
.bh-nav a[aria-current="page"]:hover, .bh-row.is-current:hover { background: color-mix(in srgb, var(--primary) var(--bh-point), var(--background)); }
.bh-usermenu [role="menuitem"][aria-current="page"]:not([aria-disabled="true"]):hover { background: color-mix(in srgb, var(--primary) var(--bh-point), var(--background)); }
.bh-switchpanel [role="option"][aria-selected="true"]:not([aria-disabled="true"]):hover, .bh-switchpanel [role="option"][aria-selected="true"].is-active { background: color-mix(in srgb, var(--primary) var(--bh-point), var(--background)); }
/* The grey caption inside the chosen line of the switch and inside the current item of the menu under the initials (also when pointed at or active) is the grey a third of the way to the text colour:
   plain grey was 4.52 to 1 on "you are here" in the light and 3.71 on the pointing tint in the dark; this reaches 4.6 on both tints in both themes and still reads lighter than the name above it. */
.bh-switchpanel [role="option"][aria-selected="true"]:not([aria-disabled="true"]) small, .bh-switchpanel [role="option"][aria-selected="true"]:not([aria-disabled="true"]) .bh-sig { color: color-mix(in srgb, var(--text) 33%, var(--muted)); }
.bh-usermenu [role="menuitem"][aria-current="page"]:not([aria-disabled="true"]) small { color: color-mix(in srgb, var(--text) 33%, var(--muted)); }

/* A message of the app (saved, failed): in the flow, under the band. */
.bh-flash:not(:empty) { padding: 16px var(--bh-gutter) 0; }

/* A window is a real dialog of the browser: centred, with a dimmed page behind it. */
dialog.bh-dialog { border: 0; color: var(--text); margin: auto; }
dialog.bh-dialog::backdrop { background: color-mix(in srgb, #0b2e3b 45%, transparent); }

/* ══ The Feedback button and its popup (OUB-S228; src/browser/schil-feedback.ts and schil-feedback-popup.ts). Added; nothing else was renamed or changed. ══
   The button floats at the bottom right of the screen and stays there while the page scrolls; the middle keeps room under its last line (the shell sets `data-feedback` on the body when it draws the button) so that the button never covers it. The popup is a real dialog.
   No stripe, no colour of its own: the tokens of the app. */
.bh-fb-knop {
  align-items: center; background: var(--primary); border: 0; border-radius: 999px; bottom: 24px; box-shadow: 0 10px 28px rgba(11, 46, 59, .28); color: var(--primary-foreground); cursor: pointer;
  display: inline-flex; font-size: 14px; font-weight: 700; gap: 8px; min-height: 44px; padding: 0 20px 0 16px; position: fixed; right: 24px; z-index: 40;
}
.bh-fb-knop:hover { box-shadow: 0 12px 32px rgba(11, 46, 59, .36); }
.bh-fb-knop:active { opacity: .9; }
.bh-fb-knop[aria-busy="true"] { cursor: progress; opacity: .8; }
.bh-fb-knop svg { fill: none; height: 18px; stroke: currentColor; stroke-linejoin: round; stroke-width: 2; width: 18px; }
.bh-body[data-feedback] .bh-main { padding-bottom: 88px; }
@media (max-width: 760px) { .bh-fb-knop { bottom: 16px; right: 16px; } }
@media print { .bh-fb-knop { display: none !important; } }

dialog.bh-fb-dlg {
  background: var(--background); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 46, 59, .3); color: var(--text); margin: auto; max-height: calc(100vh - 32px);
  overflow: auto; padding: 0; width: min(1120px, calc(100vw - 32px));
}
dialog.bh-fb-dlg::backdrop { background: color-mix(in srgb, #0b2e3b 55%, transparent); }
.bh-fb-dlg [hidden] { display: none !important; }
.bh-fb-kop { align-items: center; display: flex; gap: 12px; padding: 22px 26px 12px; }
.bh-fb-kop h2 { font-size: 22px; font-weight: 700; margin: 0; }
.bh-fb-x { background: none; border: 0; border-radius: 50%; color: var(--muted-strong); cursor: pointer; font-size: 22px; height: 40px; line-height: 1; margin-left: auto; width: 40px; }
.bh-fb-x:hover:not(:disabled) { background: var(--primary-soft); color: var(--text); }
.bh-fb-meld { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 0 26px 18px; }
@media (max-width: 860px) { .bh-fb-meld { grid-template-columns: minmax(0, 1fr); } }
.bh-fb-beeld, .bh-fb-woord { align-content: start; display: grid; gap: 14px; }
.bh-fb-shot { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bh-fb-shot img { display: block; height: auto; max-height: 420px; object-fit: contain; object-position: top left; width: 100%; }
.bh-fb-bij { align-items: baseline; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 6px 8px; margin: 0; }
.bh-fb-url { background: var(--surface); border-radius: 6px; color: var(--muted-strong); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; padding: 2px 8px; }
.bh-fb-extra { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.bh-fb-thumb { aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; }
.bh-fb-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
.bh-fb-thumb button { background: var(--text); border: 0; border-radius: 50%; color: var(--background); cursor: pointer; font-size: 16px; height: 28px; line-height: 1; position: absolute; right: 4px; top: 4px; width: 28px; }
.bh-fb-plus {
  align-content: center; aspect-ratio: 4 / 3; background: none; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted-strong); cursor: pointer; display: grid; font-size: 13px; gap: 2px;
  justify-items: center; padding: 8px; text-align: center;
}
.bh-fb-plus:hover { background: var(--primary-soft); border-color: var(--muted); color: var(--text); }
.bh-fb-plus b { font-size: 22px; font-weight: 400; line-height: 1; }
.bh-fb-fout { color: var(--status-red); font-size: 13px; margin: 0; }
.bh-fb-fout:empty { display: none; }
.bh-fb-vraag { font-size: 12.5px; font-weight: 500; }
.bh-fb-soort { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.bh-fb-soort button { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; display: grid; gap: 2px; padding: 12px 14px; text-align: left; }
.bh-fb-soort button b { font-size: 15px; }
.bh-fb-soort button small { color: var(--muted); font-size: 12.5px; }
.bh-fb-soort button:hover:not(:disabled) { border-color: var(--muted); }
.bh-fb-soort button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
textarea.bh-fb-tekst { line-height: 1.45; min-height: 190px; padding: 10px 12px; resize: vertical; }
.bh-fb-voet { align-items: center; background: var(--background); border-top: 1px solid var(--line); bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 26px; position: sticky; }
.bh-fb-voet .bh-note { margin-right: auto; max-width: 52ch; }
.bh-fb-voet .bh-fb-uitleg[data-error="1"] { color: var(--status-red); }
.bh-fb-klaar { display: grid; gap: 12px; justify-items: center; padding: 36px 26px 0; text-align: center; }
.bh-fb-klaar h3 { font-size: 22px; font-weight: 700; margin: 0; }
.bh-fb-klaar p { color: var(--muted-strong); margin: 0; max-width: 52ch; }
.bh-fb-klaar .bh-fb-voet { justify-self: stretch; margin-top: 18px; }

/* The dialog Je feedback (OUB-S228): what became of the reports a person sent. One card per report, a bar of three steps under it; a card with news has the border of the accent and the label Nieuw. */
dialog.bh-fb-mijn-dlg { width: min(720px, calc(100vw - 32px)); }
.bh-fb-mijn { display: grid; gap: 14px; padding: 4px 26px 20px; }
.bh-fb-mijn-lijst { display: grid; gap: 14px; }
.bh-fb-mk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 12px; padding: 16px 20px; }
.bh-fb-mk.is-nieuw { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bh-fb-mk-kop { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.bh-fb-mk-meta { color: var(--muted); font-size: 13px; }
.bh-fb-chip { background: var(--primary-soft); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 700; padding: 2px 12px; }
.bh-fb-chip.is-bug { background: color-mix(in srgb, var(--status-red) 16%, var(--background)); }
.bh-fb-nieuw { background: var(--accent); border-radius: 999px; color: #1c1a17; font-size: 12px; font-weight: 700; padding: 1px 10px; }
.bh-fb-mk-tekst { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.bh-fb-stap { display: grid; font-size: 13px; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-fb-stap > div { border-top: 3px solid var(--line); color: var(--muted); display: grid; gap: 2px; padding-top: 8px; }
.bh-fb-stap > div b { color: var(--muted); font-weight: 500; }
.bh-fb-stap > div.is-aan { border-color: var(--status-green); color: var(--muted-strong); }
.bh-fb-stap > div.is-aan b { color: var(--text); font-weight: 700; }
.bh-fb-stap > div.is-nee { border-color: var(--muted); color: var(--muted-strong); }
.bh-fb-stap > div.is-nee b { color: var(--text); font-weight: 700; }
.bh-fb-reden { background: var(--background); border-radius: 8px; margin: 0; overflow-wrap: anywhere; padding: 12px 14px; white-space: pre-line; }
.bh-fb-meer { display: grid; gap: 8px; justify-items: start; }
.bh-fb-meer .bh-fb-fout { margin: 0; }
@media (max-width: 560px) { .bh-fb-stap { grid-template-columns: minmax(0, 1fr); } }

/* ══ Round 4 (20 October 2026): the left bar folds away on a wide screen. Added; nothing above was renamed or changed. ══
   The button sits at the top of the bar (`page()` draws it; `schil-gedrag.ts` sets `aria-expanded`, its name and `data-sidebar="collapsed"` on the body, and keeps the choice per viewer).
   Folded away: the bar takes no width at all, the middle takes it, and only a small neutral button stays in the gutter at the left of the page, level with the top of the content (the padding of `.bh-main`).
   No stripe, no colour of its own: the tokens of the app. */
.bh-side-toggle { display: none; }
@media (min-width: 961px) {
  .bh-side-toggle {
    align-items: center; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; flex: 0 0 auto;
    height: 28px; justify-content: center; margin: -4px 0 6px auto; padding: 0; width: 28px;
  }
  .bh-side-toggle:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); color: var(--text); }
  .bh-side-toggle svg { display: block; height: 16px; width: 16px; }
  .bh-side-toggle .bh-side-fill { fill: currentColor; opacity: .28; stroke: none; }
  .bh-side-toggle[aria-expanded="false"] .bh-side-fill { display: none; }
  .bh-body[data-sidebar="collapsed"] { --bh-side-w: 0px; }
  .bh-body[data-sidebar="collapsed"] .bh-side { border-right: 0; }
  .bh-body[data-sidebar="collapsed"] .bh-side-in { height: 0; max-height: none; overflow: visible; padding: 0; z-index: 6; }
  .bh-body[data-sidebar="collapsed"] .bh-side-in > :not(.bh-side-toggle) { display: none; }
  .bh-body[data-sidebar="collapsed"] .bh-side-toggle { background: var(--surface); border-color: var(--line); left: 6px; margin: 0; position: absolute; top: 28px; }
  .bh-body[data-sidebar="collapsed"] .bh-side-toggle:hover { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
}
