/* Mervyn reference kit: tokens from shell/src/global.css, page measures from DS §2 (page types, 2026-10-10). */
.app {
  --page: oklch(0.96 0.004 90); --page-hover: oklch(0.925 0.004 90);
  --surface: #fff; --sunk: oklch(0.968 0.004 90); --hover: oklch(0.972 0.004 90); --track: oklch(0.945 0.004 90);
  --border: oklch(0.25 0.01 90 / 0.08); --border-subtle: oklch(0.25 0.01 90 / 0.05); --border-strong: oklch(0.25 0.01 90 / 0.14);
  --text: oklch(0.25 0.01 90); --muted: oklch(0.45 0.008 90); --subtle: oklch(0.62 0.008 90); --disabled: oklch(0.72 0.008 90);
  --accent: oklch(0.25 0.01 90); --accent-fg: #fff; --accent-soft: oklch(0.25 0.01 90 / 0.07);
  --success: oklch(0.55 0.13 155); --success-fg: oklch(0.48 0.12 155); --success-soft: oklch(0.55 0.13 155 / 0.12);
  --warning: oklch(0.68 0.13 75); --warning-fg: oklch(0.55 0.12 75); --warning-soft: oklch(0.68 0.13 75 / 0.14);
  --danger: oklch(0.55 0.15 30); --danger-fg: oklch(0.55 0.15 30); --danger-soft: oklch(0.965 0.025 30);
  --note: oklch(0.52 0.07 70); --note-soft: oklch(0.972 0.022 90); --note-border: oklch(0.75 0.08 90 / 0.55);
  --unread: oklch(0.94 0.026 255);
  --cat-1: oklch(0.45 0.14 255); --cat-2: oklch(0.45 0.12 155); --cat-3: oklch(0.45 0.13 300);
  --cat-4: oklch(0.44 0.11 60); --cat-5: oklch(0.45 0.15 30); --cat-on: oklch(0.99 0 0);
  --glyph-1: oklch(0.50 0.13 255); --glyph-2: oklch(0.50 0.12 155); --glyph-3: oklch(0.50 0.12 300);
  --glyph-4: oklch(0.48 0.11 60); --glyph-5: oklch(0.50 0.14 30);
  --shadow-xs: 0 1px 1px oklch(0.25 0.01 90 / 0.05); --shadow-sm: 0 1px 2px oklch(0.25 0.01 90 / 0.07);
  --shadow-button: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 1px 1px oklch(0.25 0.01 90 / 0.08);
  --shadow-overlay: 0 8px 24px oklch(0.25 0.01 90 / 0.12);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  font: 400 13px/20px "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
  color: var(--text); background: var(--page);
  min-height: 100vh; box-sizing: border-box; padding: 8px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
}
.app.dark {
  --page: oklch(0.17 0.008 90); --page-hover: oklch(0.22 0.009 90);
  --surface: oklch(0.21 0.009 90); --sunk: oklch(0.19 0.008 90); --hover: oklch(0.26 0.010 90); --track: oklch(0.15 0.008 90);
  --border: oklch(0.98 0.005 90 / 0.10); --border-subtle: oklch(0.98 0.005 90 / 0.06); --border-strong: oklch(0.98 0.005 90 / 0.18);
  --text: oklch(0.94 0.004 90); --muted: oklch(0.75 0.008 90); --subtle: oklch(0.64 0.010 90); --disabled: oklch(0.50 0.010 90);
  --accent: oklch(0.92 0.005 90); --accent-fg: oklch(0.17 0.008 90); --accent-soft: oklch(0.92 0.005 90 / 0.12);
  --success: oklch(0.70 0.13 155); --success-fg: oklch(0.78 0.12 155); --success-soft: oklch(0.70 0.13 155 / 0.16);
  --warning: oklch(0.78 0.12 75); --warning-fg: oklch(0.85 0.11 75); --warning-soft: oklch(0.78 0.12 75 / 0.16);
  --danger: oklch(0.68 0.16 30); --danger-fg: oklch(0.76 0.15 30); --danger-soft: oklch(0.68 0.16 30 / 0.16);
  --note: oklch(0.84 0.08 92); --note-soft: oklch(0.84 0.08 92 / 0.08); --note-border: oklch(0.84 0.08 92 / 0.30);
  --unread: oklch(0.72 0.13 255 / 0.08);
  --glyph-1: oklch(0.72 0.12 255); --glyph-2: oklch(0.72 0.11 155); --glyph-3: oklch(0.72 0.11 300);
  --glyph-4: oklch(0.72 0.10 60); --glyph-5: oklch(0.72 0.13 30);
  --shadow-xs: 0 1px 1px oklch(0 0 0 / 0.3); --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-button: inset 0 1px 0 oklch(1 0 0 / 0.06), 0 1px 1px oklch(0 0 0 / 0.3);
  --shadow-overlay: 0 8px 24px oklch(0 0 0 / 0.4);
}
.app * { box-sizing: border-box; }
.app a { color: inherit; text-decoration: none; }
.app p { margin: 0; }
:where(.app) button { font: inherit; color: inherit; }
.app :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.s { width: 14px; height: 14px; }
.i.fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }

/* App menu (S4): switcher + search, icons on the first level, Vastgezet, "‹App› instellen" + user in the foot. */
.nav { flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 4px; min-width: 0; }
.nav-top { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.appsw { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 4px; border: 0; border-radius: 8px; background: transparent; font-weight: 600; cursor: pointer; text-align: left; }
.appsw:hover { background: var(--page-hover); }
.appsw .i.s { color: var(--subtle); }
.appmark { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.appmark .i { width: 14px; height: 14px; }
.icon-btn { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.nav .icon-btn:hover { background: var(--page-hover); }
.icon-btn.on { background: var(--sunk); color: var(--text); }
.nav-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav-item:hover { background: var(--page-hover); color: var(--text); }
.nav-item.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.nav-item .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.sub { padding-left: 36px; font-weight: 400; }
.nav-cap { font-size: 12px; font-weight: 500; color: var(--subtle); padding: 16px 10px 4px; }
.nav-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding: 16px 4px 0; }
.me-av { position: relative; width: 28px; height: 28px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; cursor: pointer; }
.pres { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 2px var(--page); }
.me-name { flex: 1; min-width: 0; padding-left: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnt { font-size: 11px; line-height: 16px; color: var(--subtle); font-variant-numeric: tabular-nums; font-weight: 400; }
.cnt.on { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); display: inline-grid; place-items: center; font-weight: 600; }

/* The content card: one per window, owns the page and the bar at its foot. */
.card { flex: 999 1 560px; min-width: 0; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.page { padding: 24px 32px 8px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.page.col { width: 100%; max-width: 944px; margin: 0 auto; }

/* Page head: crumb, title, one primary and at most one secondary. */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--subtle); }
.crumb a:hover { color: var(--text); }
.ph { display: flex; flex-direction: column; gap: 6px; }
.ph-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ph-title { flex: 1 1 320px; min-width: 0; display: flex; gap: 14px; align-items: flex-start; }
.ph-title > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.sep { color: var(--subtle); }
.acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Buttons: one filled control per view. */
.btn { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.btn.pri { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-button); }
.btn.sec { background: var(--sunk); color: var(--text); }
.btn.sec:hover { background: var(--track); }
.btn.sec.lift { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.sbtn { display: inline-flex; gap: 1px; }
.sbtn .btn:first-child { border-radius: 999px 0 0 999px; padding-right: 12px; }
.sbtn .btn:last-child { border-radius: 0 999px 999px 0; padding: 0 9px; }
.reason { font-size: 12px; color: var(--muted); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* Views are tabs (with count, + View), a way of showing is a segment. */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { height: 36px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab .n { color: var(--subtle); font-weight: 400; font-variant-numeric: tabular-nums; }
.tab.add { color: var(--subtle); font-weight: 400; }
.frow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { height: 32px; flex: 0 1 300px; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--subtle); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; padding: 0; }
.search input::placeholder { color: var(--subtle); }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border: 0; cursor: pointer; white-space: nowrap; }
.chip .i.s { color: var(--subtle); }
.chip.set { background: var(--accent-soft); box-shadow: none; }
.chip.add { color: var(--muted); }
.seg { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--sunk); gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.countline { font-weight: 500; }
.countline span { color: var(--subtle); font-weight: 400; }

/* Table: no frame, no filled column strip, primary column medium. */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { height: 36px; text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); padding: 0 10px; white-space: nowrap; }
.tbl td { height: 48px; padding: 6px 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl .num { text-align: right; }
.tbl .addrow td { color: var(--subtle); height: 40px; border-bottom: 0; cursor: text; }
.tbl .addrow:hover td { color: var(--text); }
.tbl td.pc { font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell .t { font-weight: 500; white-space: nowrap; }

/* Marks: company = square monogram, person = round. */
.mk { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; line-height: 14px; font-weight: 600; color: var(--cat-on); flex: none; }
.mk.lg { width: 40px; height: 40px; font-size: 13px; border-radius: 10px; }
.mk.sm { width: 24px; height: 24px; font-size: 9px; border-radius: 7px; }
.mk.xs { width: 16px; height: 16px; font-size: 7px; border-radius: 4px; }
.mk.round { border-radius: 999px; }
.mk.plain { background: var(--sunk); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.c1 { background: var(--cat-1); } .c2 { background: var(--cat-2); } .c3 { background: var(--cat-3); } .c4 { background: var(--cat-4); } .c5 { background: var(--cat-5); }

/* Badges: tint for state, outline = set by hand. */
.badge { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--sunk); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 0; }
.badge.out { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge.bad { background: var(--danger-soft); color: var(--danger-fg); }
.badge .i.s { width: 12px; height: 12px; color: var(--subtle); }
.dot { width: 6px; height: 6px; border-radius: 999px; flex: none; display: inline-block; }
.dot.ok { background: var(--success); } .dot.warn { background: var(--warning); } .dot.bad { background: var(--danger); } .dot.info { background: var(--cat-1); } .dot.ink { background: var(--accent); }
.ref { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--sunk); font-weight: 500; white-space: nowrap; vertical-align: middle; }
.ref:hover { background: var(--track); }

/* Record page: main + rail 320 on every tab. */
.rec { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.rec-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rail { flex: 1 1 320px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sec-h { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.sec-h .r { margin-left: auto; font-weight: 400; color: var(--subtle); font-size: 12px; }
.sec-h a.r:hover { color: var(--text); }
.rcard { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 4px; }
.rrow { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; }
.rrow.edit:hover { background: var(--hover); }
.rrow > .i { color: var(--subtle); margin-top: 2px; }
.rrow .k { flex: 0 0 96px; color: var(--muted); }
.rrow .v { flex: 1; min-width: 0; overflow: hidden; }
.rrow .v .ref { max-width: 100%; overflow: hidden; }
.ref .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrail .rrow .k { flex-basis: 84px; }
.rrow .v small { display: block; color: var(--subtle); font-size: 11px; line-height: 16px; }
.rrow .chev { color: var(--subtle); opacity: 0; margin-top: 2px; }
.rrow.edit:hover .chev { opacity: 1; }
.prow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; min-width: 0; }
.prow .ref { flex: none; max-width: 62%; }
.prow .role { margin-left: auto; font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rsep { height: 1px; background: var(--border-subtle); margin: 4px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rcard.chips { padding: 10px; }
.rail .sec-h { margin-bottom: 4px; }
.rail section { display: flex; flex-direction: column; }

/* Wat speelt er (22 P1, herzien 10-10): blocks side by side, one per app, its most pressing item and a way to the rest. */
.lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lv { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv .h { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 2px; }
.lv .h .i { width: 14px; height: 14px; color: var(--subtle); }
.lv .t { font-weight: 500; }
.lv .m { font-size: 12px; line-height: 16px; color: var(--muted); }
.lv .badge { align-self: flex-start; margin-top: 4px; }
.lv .more { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.lv .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.kind { font-size: 11px; line-height: 16px; color: var(--subtle); }

/* Rows in a plain list (people, conversations). */
.lrow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 8px; }
.lrow:hover { background: var(--hover); }
.lrow .t { font-weight: 500; }
.lrow .end { margin-left: auto; color: var(--subtle); text-align: right; }
.lrow.add { color: var(--muted); }

/* Timeline (P13), as the timeline canvas draws it: a link is one muted line with its time in front;
   a note or a linked record is a bubble beside its avatar, with the time inside. */
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl-day { font-size: 12px; font-weight: 500; color: var(--subtle); margin-top: 8px; }
.tl-day:first-child { margin-top: 0; }
.ev { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.ev .tm { width: 40px; text-align: right; font-size: 11px; color: var(--subtle); flex: none; font-variant-numeric: tabular-nums; }
.ev > .i { color: var(--subtle); width: 14px; height: 14px; }
.ev .ref { height: 22px; font-size: 12px; }
.trow { display: flex; gap: 12px; align-items: flex-start; }
.bub { flex: 1; min-width: 0; border-radius: 12px; padding: 12px 16px; background: var(--sunk); }
.bub.note { background: var(--note-soft); }
.bub.ln { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.bh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bh b { font-weight: 600; }
.bh .c { color: var(--muted); }
.bh .tm { margin-left: auto; font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.bb { margin-top: 4px; }
.bub .badge { margin-top: 8px; }

/* KpiCard: value over label, tint only on the figure that asks for attention. */
.kpis { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi { flex: 1 1 160px; max-width: 240px; background: var(--sunk); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 20px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi.bad b { color: var(--danger-fg); }

/* Review row (P4+) in a table: columns side by side, never summed; only the figure that is off is tinted;
   the difference in one ink sentence under its row, one suggested action (secondary) plus Negeren. */
.tbl tr.grp td { height: 40px; padding-top: 16px; font-size: 12px; font-weight: 500; color: var(--subtle); border-bottom: 1px solid var(--border); background: transparent; }
.tbl tr.grp td a { font-weight: 400; }
.tbl tr.has-issue td { border-bottom: 0; }
.tbl tr.issue td { height: auto; padding: 0 10px 10px; background: transparent; }
.tbl tr.inh td { color: var(--muted); }
.tbl td.off { color: var(--danger-fg); font-weight: 600; }
.tbl td .s:not(.i) { display: block; font-size: 12px; line-height: 16px; color: var(--subtle); font-weight: 400; }
.rowact { opacity: 0; }
.tbl tr:hover .rowact, .rowact:focus-visible { opacity: 1; }
.diff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--sunk); }
.diff p { flex: 1 1 280px; min-width: 0; }

/* Processing (P8): list column 360 + detail with one head bar. */
.split { display: flex; flex-wrap: wrap; flex: 1; min-height: 0; }
.lcol { flex: 1 1 360px; max-width: 360px; border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.lcol-h { padding: 20px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.lcol-h .tabs { gap: 16px; }
.lgroup { font-size: 12px; font-weight: 500; color: var(--subtle); display: flex; align-items: center; gap: 6px; padding: 12px 16px 4px; }
.lgroup .r { margin-left: auto; font-weight: 400; }
.litem { margin: 0 8px; padding: 8px 10px; border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; }
.litem:hover { background: var(--hover); }
.litem.on { background: var(--sunk); }
.litem .b { flex: 1; min-width: 0; }
.litem .t { font-weight: 500; display: flex; gap: 6px; align-items: center; }
.litem .s { color: var(--muted); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfoot { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border-subtle); font-size: 11px; color: var(--subtle); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kbd { font-family: var(--mono); font-size: 10px; line-height: 16px; padding: 0 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); }
.dcol { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; }
.dbar { min-height: 68px; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dbar .tt { flex: 1 1 240px; min-width: 0; }
.dbar .tt b { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.dbar .tt span { color: var(--muted); font-size: 12px; line-height: 16px; }
.nofm { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; padding: 0 4px; }
.dbody { padding: 24px 32px; display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 784px; }
.cb { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 2px 0 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); flex: none; cursor: pointer; }
.cb:checked { background: var(--accent); box-shadow: none; }

/* QuickCreate (P2): one face in the add-row, above the bar and in a picker. */
.qc { border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); overflow: hidden; }
.qc-in { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--border); font-weight: 500; }
.qc-rows { padding: 6px; }
.qc-row { display: flex; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.qc-row:hover { background: var(--hover); }
.qc-row .k { flex: 0 0 72px; color: var(--muted); }
.qc-row .v { flex: 1; font-weight: 500; }
.qc-row .src { color: var(--subtle); font-size: 12px; }
.qc-foot { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.qc-foot .hint { flex: 1; color: var(--subtle); font-size: 12px; min-width: 120px; }

/* Fixed-height screens (processing, work surface): the card fills the window and every column scrolls itself. */
.app.fixed { height: 100vh; flex-wrap: nowrap; }
.app.fixed .card, .app.fixed .split, .app.fixed .dcol, .app.fixed .dmain { min-height: 0; }
.app.fixed .split, .app.fixed .dmain { flex-wrap: nowrap; overflow: hidden; }
.app.fixed .lcol, .app.fixed .feedcol, .app.fixed .wrail, .app.fixed .dbody { overflow-y: auto; scrollbar-width: none; }
.lcol .chip { height: 28px; padding: 0 10px; font-size: 12px; }
.lcol .tabs { gap: 12px; }
.dbar .tt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar .tt b.subj { font-size: 16px; line-height: 24px; }
@media (max-width: 760px) { .app.fixed { height: auto; flex-wrap: wrap; } .app.fixed .split, .app.fixed .dmain { flex-wrap: wrap; overflow: visible; } }

/* Work surface (332): list 360 · conversation · rail 320 under one head bar; the bar gets its own strip. */
.dmain { display: flex; flex-wrap: wrap; flex: 1; min-height: 0; }
.feedcol { flex: 999 1 400px; min-width: 0; padding: 20px 28px 8px; display: flex; flex-direction: column; gap: 14px; }
.wrail { flex: 1 1 320px; max-width: 320px; border-left: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.balk-wrap.strip { border-top: 1px solid var(--border); padding-top: 12px; }

/* Conversation row (332 §2a.1): two lines, sender + time, channel glyph + subject + term; unread = the gutter dot. */
.cvr { margin: 0 8px; padding: 8px 10px 8px 14px; border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; position: relative; }
.cvr:hover { background: var(--hover); }
.cvr.on { background: var(--sunk); }
.cvr .ud { position: absolute; left: 4px; top: 17px; width: 6px; height: 6px; border-radius: 999px; background: var(--cat-1); }
.cvr .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cvr .l1 { display: flex; align-items: baseline; gap: 8px; }
.cvr .nm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvr.read .nm { font-weight: 500; color: var(--muted); }
.cvr .tm { font-size: 11px; color: var(--subtle); flex: none; font-variant-numeric: tabular-nums; }
.cvr .l2 { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); }
.cvr .l2 .i { width: 14px; height: 14px; }
.cvr .sj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge.sm { height: 20px; padding: 0 7px; font-size: 11px; gap: 5px; }
.g1 { color: var(--glyph-1); } .g2 { color: var(--glyph-2); } .g3 { color: var(--glyph-3); } .g4 { color: var(--glyph-4); } .g5 { color: var(--glyph-5); }

/* The feed of a conversation (332 §2b): mail full width with its own buttons, notes amber, events as timeline lines. */
.daysep { text-align: center; font-size: 12px; font-weight: 500; color: var(--subtle); }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg > .mk { margin-top: 2px; }
.mwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mcard { border-radius: 12px; background: var(--sunk); padding: 12px 16px; }
.mcard.picked { box-shadow: 0 0 0 1.5px var(--accent); background: var(--surface); }
.mcard.note { background: var(--note-soft); }
.mcard.ln { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mcard.ai { background: var(--surface); box-shadow: inset 0 0 0 1px var(--warning-soft), 0 0 0 1px var(--warning-soft); }
.mh { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.mh b { font-weight: 600; white-space: nowrap; }
.mh .to { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh .kindn { color: var(--note); font-size: 12px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 0; color: var(--subtle); flex: none; }
.tools .icon-btn { width: 28px; height: 28px; color: var(--subtle); }
.tools .vsep { width: 1px; height: 16px; background: var(--border-strong); margin: 0 4px; }
.tools .tm { font-size: 11px; color: var(--subtle); margin-left: 6px; font-variant-numeric: tabular-nums; }
.mbody { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.reacts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.react { height: 24px; padding: 0 8px; border-radius: 999px; background: var(--sunk); font-size: 12px; border: 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.react.mine { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.thread { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; padding-left: 12px; border-left: 2px solid var(--note-border); }
.actrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-left: 44px; }
.hint { font-size: 12px; color: var(--subtle); padding-left: 44px; }
.att { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 12px; font-weight: 500; }
.att .subtle { font-weight: 400; }

/* Checklist step (P11): done = folded sunk row with a tick, open = outlined. */
.ck { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); flex-wrap: wrap; }
.ck.done { background: var(--sunk); box-shadow: none; }
.ck .n { width: 20px; height: 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); display: grid; place-items: center; font-size: 11px; color: var(--muted); flex: none; }
.ck.done .n { background: var(--success); color: #fff; box-shadow: none; }
.ck .b { flex: 1 1 200px; min-width: 0; }
.ck .b small { display: block; font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; }
.kv > span:nth-child(odd) { color: var(--muted); }

/* Step bar (P9): only the record's own lifecycle, side exits as text. */
.steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.step .n { width: 20px; height: 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); display: grid; place-items: center; font-size: 11px; font-weight: 500; }
.step.done .n { background: var(--sunk); box-shadow: none; }
.step.on { color: var(--text); }
.step.on .n { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.step .dt { font-size: 11px; color: var(--subtle); font-weight: 400; }
.steps .ln { width: 20px; height: 1px; background: var(--border-strong); }
.steps .exits { font-size: 12px; color: var(--subtle); margin-left: 4px; }

/* Trajectory in the rail (P9): the chain, future steps dashed (not yet live), who is up. */
.trj { display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.trj-i { display: flex; gap: 10px; position: relative; }
.trj-i:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: -8px; width: 1px; background: var(--border-strong); }
.trj-i .d { width: 9px; height: 9px; border-radius: 999px; margin-top: 8px; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); flex: none; position: relative; z-index: 1; }
.trj-i.done .d { background: var(--muted); box-shadow: none; }
.trj-i.on .d { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.trj-i .b { flex: 1; min-width: 0; padding: 4px 8px; border-radius: 8px; }
.trj-i.on .b { background: var(--sunk); }
.trj-i.fut .b { border: 1px dashed var(--border-strong); color: var(--muted); }
.trj-i .b small { display: block; font-size: 11px; line-height: 16px; color: var(--subtle); }
.trj-i .b .t { display: block; font-weight: 500; }
.trj-i .b .s { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ChoiceCard (B11): one choice from a few cards; chosen = 2px ink edge. */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); text-align: left; cursor: pointer; min-width: 0; }
.choice:hover { background: var(--hover); }
.choice.on { box-shadow: inset 0 0 0 2px var(--accent); }
.choice .h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.choice .t { font-weight: 500; }
.choice small { font-size: 12px; line-height: 16px; color: var(--muted); }

/* Board (Pijplijn, 350 §15): sunk columns, cards lift to white. */
.board { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; }
.bcol { background: var(--sunk); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bcol-h { padding: 4px 6px 2px; display: flex; flex-direction: column; gap: 2px; }
.bcol-h .r1 { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.bcol-h .r1 .icon-btn { margin-left: auto; width: 24px; height: 24px; }
.bcol-h small { font-size: 12px; line-height: 16px; color: var(--muted); }
.dcard { background: var(--surface); border-radius: 10px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); display: flex; flex-direction: column; gap: 6px; }
.dcard .t { font-weight: 500; }
.dcard .m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.dcard .m .num { color: var(--text); font-weight: 500; }

/* Form band (DS §5): title and a sentence in a 224px column, the fields beside it; saves per field. */
.h1.edit { border-bottom: 1px dashed var(--border-strong); padding-bottom: 2px; }
.band { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.band:last-child { border-bottom: 0; }
.band .bt b { font-weight: 600; display: block; }
.band .bt p { color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 4px; }
.fld { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); min-height: 48px; }
.fld:last-child { border-bottom: 0; }
.fld .l { flex: 1; min-width: 0; }
.fld .l small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.sel { height: 32px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); white-space: nowrap; }
.sel .i.s { color: var(--subtle); }
.tog { width: 32px; height: 18px; border-radius: 999px; background: var(--accent); position: relative; flex: none; border: 0; }
.tog::after { content: ""; position: absolute; top: 2px; left: 16px; width: 14px; height: 14px; border-radius: 999px; background: var(--accent-fg); }
.tog.off { background: var(--track); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tog.off::after { left: 2px; background: var(--surface); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; gap: 8px; } }

/* Chat (332 §2f): bubbles per author, own messages right. */
.bubble { max-width: 70%; border-radius: 14px; padding: 8px 12px; background: var(--sunk); }
.bubble.me { align-self: flex-end; background: var(--unread); }
.bubble .who { font-size: 11px; color: var(--subtle); }

/* Layers above the bar: composer (DS §14, hairlines between head, fields and text) and pills for the bar's modes. */
.composer { width: 100%; max-width: 760px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); overflow: hidden; }
.cmp-h { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--border); }
.cmp-f { display: flex; gap: 12px; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); font-size: 12px; }
.cmp-f .k { width: 40px; color: var(--muted); }
.cmp-t { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; }
.cmp-foot { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; flex-wrap: wrap; }
.pill { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; border: 0; white-space: nowrap; }
.pill.ink { background: var(--accent); color: var(--accent-fg); }
.pill.amber { background: var(--note-soft); color: var(--note); box-shadow: inset 0 0 0 1px var(--note-border); }
.spark.amber { background: var(--note-soft); color: var(--note); box-shadow: inset 0 0 0 1px var(--note-border); }
.pop { border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-overlay); padding: 6px; width: 100%; max-width: 420px; }
.pop .cap { font-size: 12px; font-weight: 500; color: var(--subtle); padding: 4px 8px; }
.pop .row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.pop .row.on { background: var(--hover); }
.pop .row .end { margin-left: auto; font-size: 12px; color: var(--subtle); }

/* The bar: the foot of every page. */
.balk-wrap { margin-top: auto; padding: 16px 24px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.balk { width: 100%; max-width: 760px; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.spark, .send { width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; border: 0; flex: none; cursor: pointer; }
.ctx { height: 28px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--sunk); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.bph { flex: 1; min-width: 0; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.sugg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 760px) {
  .nav { flex-basis: 100%; }
  .lcol { max-width: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .rail { max-width: none; }
  .page { padding: 20px 16px 8px; }
  .dbody { padding: 20px 16px; }
}

/* Verkoop row: grey dot = no next step, line totals, a held popover in the rail. */
.dot.off { background: var(--disabled); }
.totals { display: flex; justify-content: flex-end; gap: 24px; padding: 10px 10px 0; font-weight: 500; }
.totals span { color: var(--muted); font-weight: 400; margin-right: 8px; }
.tbl td.via { color: var(--subtle); font-size: 12px; }
.rail .pop { max-width: none; }
.sbox { background: var(--sunk); border-radius: 12px; padding: 12px 14px; }
.badge.warn { background: var(--warning-soft); color: var(--warning-fg); }
.tbl td .tint { color: var(--danger-fg); }
.litem .t .end { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.app.fixed .dbar { flex-wrap: nowrap; }
.dbar .tt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nofm, .dbar .btn { flex: none; white-space: nowrap; }
.inp { height: 32px; width: 100%; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 0 10px; font: inherit; color: var(--text); background: var(--surface); }
.fl { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.ladder { display: flex; flex-direction: column; padding: 4px; }
.ladder .lr { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.ladder .lr .v { margin-left: auto; font-variant-numeric: tabular-nums; }
.ladder .lr.on { background: var(--sunk); color: var(--text); font-weight: 500; }
.ladder .lr .i { color: var(--subtle); }
.ladder .lr.on .i { color: var(--success); }
.pform { display: flex; flex-direction: column; gap: 10px; padding: 10px; }

/* Inkoop row: QuickCreate width and a plain table inside a mail. */
.qc.w { width: 100%; max-width: 560px; }
.qc-in .sub { flex: 1; font-weight: 400; font-size: 12px; color: var(--subtle); }
.mtbl { border-collapse: collapse; font-size: 12px; }
.mtbl th, .mtbl td { border: 1px solid var(--border-strong); padding: 4px 10px; text-align: left; }
.mtbl th { font-weight: 600; }
.cnt.txt { font-size: 11px; }
.tbl td .inp { width: 64px; height: 28px; text-align: right; }
.cb:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.app.dark .cb:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.dbar .reason { flex: none; white-space: nowrap; }

/* Financiën row: amounts in and out, a document preview, zoom strip (P12), progress in ink (P11), selection foot. */
.pos { color: var(--success-fg); }
.unk { color: var(--danger-fg); }
.amt { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc { background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); border-radius: 8px; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; font-size: 12px; line-height: 18px; }
.doc .dh { display: flex; justify-content: space-between; gap: 16px; }
.doc b { font-size: 14px; }
.zstrip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zstrip > .i { color: var(--subtle); }
.zs { background: var(--sunk); border-radius: 10px; padding: 8px 12px; }
.zs small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.zs b { font-weight: 600; font-variant-numeric: tabular-nums; }
.zs.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.crumb .sep { color: var(--disabled); }
progress.prog { appearance: none; -webkit-appearance: none; flex: 1; height: 6px; border: 0; border-radius: 999px; background: var(--track); overflow: hidden; }
progress.prog::-webkit-progress-bar { background: var(--track); border-radius: 999px; }
progress.prog::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.prog::-moz-progress-bar { background: var(--accent); }
.progrow { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.cklist { display: flex; flex-direction: column; gap: 8px; }
.ck .acts { margin-left: auto; }
.btn.sec.surf { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.lsel { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px; }
.lsel span { flex: 1; color: var(--muted); font-size: 12px; }
.litem.off { opacity: 0.55; }
.months { display: flex; gap: 6px; flex-wrap: wrap; }
.totals { flex-wrap: wrap; row-gap: 4px; }
.totals > div { white-space: nowrap; }
.wrail .kv { grid-template-columns: 84px minmax(0, 1fr); }
.kv > span { overflow-wrap: anywhere; }
.ck .inp { width: 180px; }
/* Journal: an entry is a header row with its lines under it; a card ends on a sum row. */
.tbl tr.ent td { height: 44px; padding-top: 14px; border-bottom: 1px solid var(--border); font-weight: 500; background: transparent; }
.tbl tr.ent .cell { gap: 12px; }
.tbl tr.jl td { height: 34px; padding-top: 4px; padding-bottom: 4px; }
.tbl tr.jl td:first-child { padding-left: 28px; color: var(--muted); }
.tbl tr.sum td { font-weight: 600; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.tbl tbody tr.ent:hover td, .tbl tbody tr.grp:hover td { background: transparent; }
.tbl td.num .icon-btn { margin-left: auto; }
.tbl.compact td { height: 38px; padding-top: 4px; padding-bottom: 4px; }

/* Opslag row: kind glyphs, location cards, the editors (word, sheet, pdf) and two panes side by side. */
.plate { width: 32px; height: 32px; border-radius: 8px; background: var(--sunk); display: grid; place-items: center; flex: none; }
.chip .n { color: var(--subtle); font-weight: 400; font-variant-numeric: tabular-nums; }
.locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.loc { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.loc .h { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.loc .m { color: var(--muted); font-size: 12px; line-height: 18px; }
.loc .ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ed { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.edbar { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 6px 12px; }
.edbar .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.edbar .tt b { font-size: 16px; line-height: 24px; font-weight: 600; }
.edbar .st { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.menubar { display: flex; gap: 2px; margin-left: -8px; }
.menubar button { height: 26px; padding: 0 8px; border: 0; background: transparent; border-radius: 6px; color: var(--muted); font-weight: 500; cursor: pointer; }
.menubar button:hover { background: var(--hover); color: var(--text); }
.tbar { display: flex; align-items: center; gap: 2px; padding: 4px 12px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tbar .icon-btn { width: 30px; height: 30px; border-radius: 6px; }
.tbar .icon-btn.on { background: var(--sunk); color: var(--text); }
.tbar .vs { width: 1px; height: 18px; background: var(--border-strong); margin: 0 6px; }
.tbar .sel { height: 28px; font-size: 12px; }
.paperwrap { flex: 1; min-height: 0; overflow: auto; background: var(--page); padding: 24px; display: flex; justify-content: center; align-items: flex-start; scrollbar-width: none; }
.paper { width: 680px; flex: none; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); padding: 56px 64px; display: flex; flex-direction: column; gap: 12px; line-height: 21px; }
.paper h1 { margin: 0 0 4px; font-size: 22px; line-height: 30px; font-weight: 600; }
.paper h2 { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.paper .cm { background: var(--note-soft); box-shadow: inset 0 -2px 0 var(--note-border); }
.fxbar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
.fxbar .cref { width: 56px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border-strong); display: grid; place-items: center; font-family: var(--mono); }
.fxbar code { font-family: var(--mono); }
.gridwrap { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.xl { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.xl th { background: var(--sunk); color: var(--muted); font-weight: 500; border: 1px solid var(--border); height: 24px; padding: 0 8px; min-width: 40px; }
.xl td { border: 1px solid var(--border); height: 28px; padding: 0 10px; min-width: 110px; white-space: nowrap; }
.xl td.n { text-align: right; }
.xl td.hd { font-weight: 600; background: var(--sunk); }
.xl td.on { box-shadow: inset 0 0 0 2px var(--glyph-2); }
.xl td.new { background: var(--note-soft); }
.sfoot { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-top: 1px solid var(--border); }
.stab { height: 28px; padding: 0 12px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); font-weight: 500; cursor: pointer; }
.stab.on { background: var(--sunk); color: var(--text); }
.sfoot .sum { margin-left: auto; font-size: 12px; color: var(--muted); }
.pdfwrap { display: flex; flex: 1; min-height: 0; }
.prail { width: 132px; flex: none; border-right: 1px solid var(--border); padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; overflow: auto; scrollbar-width: none; font-size: 11px; color: var(--subtle); text-align: center; }
.thumb { aspect-ratio: 210 / 297; background: var(--surface); box-shadow: 0 0 0 1px var(--border); border-radius: 4px; margin-bottom: 4px; }
.thumb.on { box-shadow: 0 0 0 2px var(--accent); }
.pdfpage { gap: 10px; font-size: 12px; line-height: 18px; }
.hl { background: var(--unread); border-radius: 3px; box-shadow: 0 0 0 3px var(--unread); }
.selpop { display: inline-flex; gap: 2px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-overlay); align-self: flex-start; }
.selpop button { border: 0; background: transparent; color: inherit; height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 500; cursor: pointer; }
.panehead { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--border); flex: none; }
.panehead b { font-weight: 600; }
.panehead .loc2 { color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fileprev { border-radius: 8px; background: var(--sunk); padding: 10px; }
.fileprev .sheet { background: var(--surface); box-shadow: 0 0 0 1px var(--border); border-radius: 4px; aspect-ratio: 4 / 3; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 10px; }
.fileprev .sheet span { border: 1.5px solid var(--border-strong); border-radius: 2px; display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.fileprev .sheet span:first-child { grid-row: span 2; }
.paper .dh { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 18px; color: var(--muted); margin-bottom: 12px; }
.paper .dh b { color: var(--text); }
.newwrap { position: relative; }
.newmenu { position: absolute; right: 0; top: 40px; width: 300px; z-index: 5; }
.pop .rsep { margin: 4px 8px; }
.pop .acts.pform { padding: 8px 4px 4px; gap: 4px; flex-direction: row; flex-wrap: wrap; }
.att .i { flex: none; }
.chip .g1 { color: var(--glyph-1); } .chip .g2 { color: var(--glyph-2); } .chip .g3 { color: var(--glyph-3); } .chip .g4 { color: var(--glyph-4); } .chip .g5 { color: var(--glyph-5); }
.loc .h .m { font-weight: 400; }
.thumb { background-image: linear-gradient(var(--border) 1px, transparent 1px); background-size: 100% 7px; background-origin: content-box; background-clip: content-box; padding: 16px 12px; }
.paper { width: auto; flex: 0 1 680px; min-width: 0; }
.fileprev .sheet { aspect-ratio: 16 / 7; }
/* Editor chrome after m1cro (EditorToolbar.tsx): title with status, the menu bar under it, one sunk rounded track. */
.edbar { align-items: center; padding: 12px 16px 4px 12px; }
.edbar .tt { gap: 0; }
.edbar .tt .l1 { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.edbar .tt .l1 b { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edbar .st { flex: none; align-items: center; }
.menubar { display: flex; gap: 0; margin: 2px 0 0 -8px; }
.menubar .mb { position: relative; }
.menubar button { height: 24px; padding: 0 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.menubar button.on { background: var(--hover); color: var(--text); }
.menubar .pop { position: absolute; top: 28px; left: 0; width: 230px; z-index: 10; }
.track { margin: 6px 12px 10px; height: 40px; border-radius: 999px; background: var(--sunk); display: flex; align-items: center; gap: 2px; padding: 0 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
.track .vs, .sfoot .vs { width: 1px; height: 16px; background: var(--border-strong); margin: 0 6px; flex: none; }
.tb { width: 28px; height: 28px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; cursor: pointer; }
.tb:hover { background: var(--track); color: var(--text); }
.tb.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.tb.txt { width: auto; padding: 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.tb.mini { width: 22px; height: 22px; }
.pt { height: 28px; border-radius: 999px; border: 0; background: transparent; color: var(--text); padding: 0 8px 0 10px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; cursor: pointer; }
.pt:hover { background: var(--track); }
.pt .i.s:last-child { color: var(--subtle); width: 12px; height: 12px; }
.pt.wide { width: 128px; justify-content: space-between; }
.pt.icon { padding: 0 6px; color: var(--muted); }
.fs { height: 28px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); display: inline-flex; align-items: center; flex: none; }
.fs button { width: 26px; height: 28px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.fs span { width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.paperwrap { position: relative; }
.zoompill { height: 36px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; flex: none; font-variant-numeric: tabular-nums; }
.zoompill button { width: 28px; height: 28px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.zoompill span { width: 44px; text-align: center; }
.paperwrap > .zoompill { position: absolute; right: 16px; bottom: 16px; }
.sfoot { height: 48px; background: var(--sunk); gap: 4px; }
.stab { height: 28px; border-radius: 999px; padding: 0 12px; display: inline-flex; align-items: center; gap: 2px; font-weight: 400; }
.stab.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); padding-right: 4px; }
.sfoot .sum { height: 28px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); padding: 0 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text); margin-left: auto; margin-right: 6px; }
.sfoot .sum b { font-weight: 500; font-variant-numeric: tabular-nums; }
.sfoot .zoompill { height: 32px; }
.fxbar { padding: 6px 16px; }
.menubar .pop .row.ni { padding-left: 30px; }

/* Instellingen row: the settings column (m1cro SettingsNav) and the home cards (SettingsHome). */
.nav-item.back { color: var(--text); font-weight: 500; gap: 6px; padding-left: 6px; }
.nav-item.back .i { color: var(--subtle); }
.nav-title { display: flex; align-items: center; gap: 8px; padding: 6px 8px 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nav-search { flex: none; min-width: 0; width: auto; margin: 8px 2px 10px; }
.nav-item.cat { border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; color: var(--text); font: inherit; font-weight: 500; }
.nav-item.cat .i.s { color: var(--subtle); }
.nav-item.sub { padding-left: 20px; }
.appchip { font-size: 11px; line-height: 16px; font-weight: 500; color: var(--subtle); background: var(--sunk); border-radius: 4px; padding: 0 6px; flex: none; }
.nav .appchip { background: var(--page-hover); }
.notice { margin-top: auto; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.notice .t { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.notice .t .cnt { margin-left: auto; }
.notice progress.prog { flex: none; width: 100%; }
.search.big { flex: none; width: 100%; max-width: none; height: 44px; border-radius: 12px; font-size: 14px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cats > :last-child:nth-child(odd) { grid-column: span 2; }
.catcard { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; }
.catcard .h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px; }
.catcard .h b { display: block; font-weight: 600; font-size: 14px; }
.catcard .h small { display: block; font-size: 12px; color: var(--muted); }
.catcard .h .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--subtle); align-self: flex-start; }
.catcard .rows { padding: 0 6px 6px; display: flex; flex-direction: column; }
.catcard .r { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 8px; color: var(--muted); border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.catcard .r .lbl { flex: 1; min-width: 0; }
.catcard .r:hover { background: var(--hover); color: var(--text); }
.catcard .r.more { color: var(--subtle); font-size: 12px; }
.ck.open { flex-wrap: nowrap; align-items: flex-start; }
.ck.open .b { display: flex; flex-direction: column; gap: 10px; }
.ck .b > small { display: block; }
.dropz { border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.dropz .subtle { margin-left: auto; }
.ck .pform { padding: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
.ck .pform .inp { width: 260px; }
.ck .pform .seg { margin-left: 0; }
.sec-h a.r { font-size: 12px; }
.sec-h .appchip { font-weight: 500; }
.ck .b > div > small { display: block; }

/* Werk row: rows with key and type, priority, overdue plate, avatar stacks, kanban cards, month calendar, goal tree. */
.wkey { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.late { background: var(--danger-soft); color: var(--danger-fg); border-radius: 4px; padding: 0 5px; }
.prio { display: inline-flex; align-items: center; gap: 6px; }
.prio.urgent { color: var(--danger-fg); font-weight: 500; }
.avs { display: inline-flex; }
.avs .mk { box-shadow: 0 0 0 2px var(--surface); }
.avs .mk + .mk { margin-left: -6px; }
.blk { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--danger-soft); color: var(--danger-fg); white-space: nowrap; }
.tbl td .t2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl td .t2 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board.k4 { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.bcol-h .r1 .n { color: var(--subtle); font-weight: 400; }
.dcard .ft { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.dcard .ft .avs { margin-left: auto; }
.lbls { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lbls span { display: inline-flex; align-items: center; gap: 5px; }
.bcol .add { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--muted); border-radius: 8px; font-size: 12px; }
.bcol .add:hover { background: var(--hover); color: var(--text); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal .wd { padding: 6px 8px; font-size: 12px; font-weight: 500; color: var(--muted); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal .d { min-height: 100px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .d .n { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal .d.today .n { background: var(--accent); color: var(--accent-fg); border-radius: 999px; }
.cal .d.out { background: var(--sunk); }
.cal .d.out .n { color: var(--disabled); }
.cal .it { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; padding: 1px 6px; background: var(--sunk); }
.cal .it .wkey { font-size: 11px; margin-right: 4px; }
.cal .it.ms { background: var(--accent-soft); font-weight: 500; }
.cal .more { color: var(--subtle); padding: 0 6px; }
.tbl td.l1 { padding-left: 34px; }
.tbl td.l2 { padding-left: 58px; }
.lvl { display: block; font-size: 11px; color: var(--subtle); font-weight: 400; }
.tbl progress.prog { width: 110px; flex: none; }
.pcell { display: flex; align-items: center; gap: 10px; }
.bulkbar { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-overlay); align-self: center; }
.bulkbar span { margin-right: 8px; font-weight: 500; }
.bulkbar button { color: inherit; background: transparent; border: 0; height: 30px; padding: 0 12px; border-radius: 999px; font: inherit; cursor: pointer; }
.bulkbar button:hover { background: oklch(1 0 0 / 0.12); }
.measure { display: flex; align-items: baseline; gap: 12px; }
.measure b { font-size: 32px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.measure span { color: var(--muted); }
.pace { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
section > .add { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.pace progress.prog { flex: none; width: 100%; }
.tbl td .t2 > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard .blk { align-self: flex-start; }

/* Rapporten row: toolbar under the title, KPI cells (value over label, with delta, previous and shape), section cards, SVG charts. */
.rtool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.rtool .vs { margin-left: auto; font-size: 12px; color: var(--muted); }
.chip .x { color: var(--subtle); margin-left: 2px; }
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s6 { grid-column: span 6; } .s4 { grid-column: span 4; }
.kband { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kx { background: var(--sunk); border-radius: 12px; padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kx .v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kx .v b { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kx .l { font-weight: 500; }
.kx .l small { color: var(--subtle); font-weight: 400; margin-left: 4px; }
.kx .p { font-size: 12px; color: var(--subtle); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dl { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--track); color: var(--muted); }
.dl.good { background: var(--success-soft); color: var(--success-fg); }
.dl.bad { background: var(--danger-soft); color: var(--danger-fg); }
.tg { font-size: 11px; font-weight: 500; padding: 0 5px; border-radius: 4px; background: var(--success-soft); color: var(--success-fg); }
.sparkl { width: 100%; height: 28px; display: block; color: var(--subtle); }
.sparkl .a { fill: currentColor; opacity: 0.1; } .sparkl .l { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.scard { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scard .h { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.scard .h b { font-weight: 600; }
.scard .h small { color: var(--subtle); font-size: 12px; }
.scard .h .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gl { stroke: var(--border); stroke-width: 1; }
.chart .ax { fill: var(--subtle); font-size: 11px; font-family: inherit; }
.chart .s1 { fill: var(--cat-1); } .chart .s2 { fill: var(--cat-1); opacity: 0.4; } .chart .s3 { fill: var(--cat-4); }
.chart .ln { fill: none; stroke: var(--cat-1); stroke-width: 2; stroke-linejoin: round; }
.chart .ar { fill: var(--cat-1); opacity: 0.08; }
.chart .tgt { stroke: var(--success); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .tgtl { fill: var(--success-fg); font-size: 11px; }
.chart .hm0 { fill: var(--track); } .chart .hm1 { fill: var(--cat-1); opacity: 0.15; } .chart .hm2 { fill: var(--cat-1); opacity: 0.32; }
.chart .hm3 { fill: var(--cat-1); opacity: 0.5; } .chart .hm4 { fill: var(--cat-1); opacity: 0.7; } .chart .hm5 { fill: var(--cat-1); opacity: 0.92; }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.legend i.s1 { background: var(--cat-1); } .legend i.s2 { background: var(--cat-1); opacity: 0.4; } .legend i.s3 { background: var(--cat-4); }
.tbl tr.sum td { font-weight: 600; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 12px; }
.hb .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.hb progress { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: 3px; background: var(--track); overflow: hidden; }
.hb progress::-webkit-progress-bar { background: var(--track); }
.hb progress::-webkit-progress-value { background: var(--cat-1); border-radius: 3px; }
.hb progress::-moz-progress-bar { background: var(--cat-1); }
.hb .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* Home row (assist): greeting, the dark queue button, numbered attention rows, two blocks, starters over the bar. */
.i.warnc { color: var(--warning-fg); } .i.okc { color: var(--success-fg); } .i.subtle { color: var(--subtle); }
.home { gap: 0; padding-top: 40px; }
.home .date { font-size: 12px; color: var(--subtle); }
.home .h1 { margin-top: 4px; }
.home .sum { margin-top: 6px; color: var(--muted); }
.home > section { margin-top: 28px; display: flex; flex-direction: column; }
.app .qstart { margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); }
.qstart .b { flex: 1; min-width: 0; }
.qstart b { display: block; font-weight: 500; }
.qstart small { display: block; margin-top: 2px; font-size: 12px; opacity: 0.7; }
.nudge, .thr { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.nudge:hover, .nudge.hov, .thr:hover { background: var(--hover); }
.nudge > a.st, .thr > a.st { position: absolute; inset: 0; border-radius: inherit; }
.nudge .b, .thr .b { flex: 1; min-width: 0; pointer-events: none; }
.nudge .t, .thr .t { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nudge .s, .thr .s { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.btag.blocking { color: var(--text); } .btag.due { color: var(--danger-fg); }
.nudge .age, .thr .when { width: 48px; flex: none; text-align: right; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.nudge .ra, .thr .ra { position: relative; width: 64px; flex: none; display: flex; justify-content: flex-end; gap: 4px; opacity: 0; }
.thr .ra { width: 32px; }
.nudge:hover .ra, .nudge.hov .ra, .thr:hover .ra { opacity: 1; }
.rb { width: 28px; height: 28px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.rb:hover { color: var(--text); }
.home .more { align-self: flex-start; margin-top: 4px; padding: 4px 12px; font-size: 12px; color: var(--subtle); }
.home .more:hover { color: var(--text); }
.blocks { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.hblk { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-subtle); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hblk .hh { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 6px; }
.hblk .hh > .i { color: var(--subtle); }
.hblk .hh .chev { margin-left: auto; color: var(--subtle); }
.hblk .r { display: flex; gap: 10px; padding: 4px 0; }
.hblk .r .w { width: 64px; flex: none; color: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.hblk .r .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.starters { width: 100%; max-width: 760px; display: flex; flex-direction: column; }
.starter { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.starter + .starter { border-top: 1px solid var(--border-subtle); }
.starter:hover { background: var(--hover); color: var(--text); }
.starter .i { color: var(--subtle); }
.starter .sub { color: var(--subtle); }
.ctx.mode { border: 0; padding: 0 8px 0 10px; cursor: pointer; }
.ctx.mode .i.s { color: var(--subtle); }
.bhint { font-size: 12px; color: var(--subtle); white-space: nowrap; }

/* De rij: no app menu; header with one way out and the progress; card head carries the actions; Hierna on the right. */
.qhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); flex: none; }
.qhead .l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qhead .btn .i.s { color: var(--subtle); }
.qhead .flash { font-size: 12px; color: var(--muted); }
.qhead .c { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.segs { display: flex; gap: 2px; width: 144px; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--border-strong); }
.segs i.past { background: var(--accent); } .segs i.cur { background: var(--subtle); }
.qhead .r { display: flex; justify-content: flex-end; gap: 2px; }
.qbody { flex: 1; min-height: 0; display: flex; }
.qcard { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qch { flex: none; display: flex; align-items: flex-start; gap: 14px; padding: 20px 32px 16px; border-bottom: 1px solid var(--border-subtle); }
.qch .qt { flex: 1; min-width: 0; }
.qch h1 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.qch .facts { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.qch .facts .k, .qch .facts .sep { color: var(--subtle); }
.qa { flex: none; display: flex; align-items: center; gap: 6px; }
.icon-btn.soft { background: var(--accent-soft); color: var(--text); }
.icon-btn.soft:hover { background: var(--track); }
.qa .btn { margin-left: 4px; }
.qscroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.qwrap { width: 100%; max-width: 768px; margin: 0 auto; padding: 20px 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.qwrap > section { display: flex; flex-direction: column; }
.sbox .to { font-size: 12px; color: var(--subtle); margin-bottom: 6px; }
.qdecide { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.qdecide .src { flex: 1; font-size: 12px; color: var(--subtle); }
.upnext { flex: none; width: 256px; border-left: 1px solid var(--border-subtle); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.upnext h2 { margin: 0; padding: 0 8px 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.upnext .u { display: flex; align-items: center; gap: 10px; padding: 8px; }
.upnext .b { min-width: 0; }
.upnext .t { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext .s { display: block; font-size: 12px; color: var(--subtle); }
.upnext .more { padding: 4px 8px; font-size: 12px; color: var(--subtle); }
.pill.sunk { background: var(--sunk); }
.cmp-to { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-note { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); }
.qcard .cmp-t { min-height: 0; }

/* Opdrachten and one assignment: thread rows; the agent's thread with the approval in it; the trace in the rail. */
.thrs { display: flex; flex-direction: column; }
.thr { border-radius: 0; padding: 12px 6px; }
.thr + .thr { border-top: 1px solid var(--border-subtle); }
.thr .lb { flex: none; font-size: 12px; color: var(--muted); }
.thr .lb.warn { color: var(--warning-fg); }
.thr .badge { position: relative; pointer-events: none; }
.aith { display: flex; flex-direction: column; gap: 20px; }
.um { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.um .bubble { max-width: 80%; }
.um .who { font-size: 11px; color: var(--subtle); }
.am { display: flex; gap: 12px; align-items: flex-start; }
.am > .mk { margin-top: 2px; }
.ab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ah { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.ah .tm { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.apbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--warning-soft); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--warning) 35%, transparent); }
.apbar .ic { width: 28px; height: 28px; border-radius: 999px; background: var(--warning); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.app.dark .apbar .ic { color: oklch(0.17 0.008 90); }
.apbar b { display: block; font-weight: 500; }
.apbar span:not(.ic) { display: block; font-size: 12px; color: var(--muted); }
.helds { display: flex; flex-direction: column; gap: 6px; }
.held { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.held > .i { color: var(--subtle); margin-top: 2px; }
.held .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.held .t { font-weight: 500; }
.held .s { font-size: 12px; color: var(--muted); }
.held .sbox { margin-top: 8px; }
.decide { display: flex; flex-direction: column; gap: 10px; }
.decide textarea.inp { height: auto; padding: 8px 10px; resize: none; }
.tsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ts { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.ts:not(:last-child)::before { content: ""; position: absolute; left: 6.5px; top: 24px; bottom: -6px; width: 1px; background: var(--border-strong); }
.ts > .i { margin-top: 3px; color: var(--subtle); }
.ts.ok > .i { color: var(--success-fg); } .ts.wait > .i { color: var(--warning-fg); }
.ts .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ts .t { font-weight: 500; } .ts.todo .t { color: var(--muted); font-weight: 400; }
.ts .s { font-size: 12px; color: var(--muted); }
.ts .tm { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Kennisbank row: content with reach marks and language plates; the article editor and its rail; translations;
   the help centre beside its preview; the public site keeps its own light theme in both modes. */
.i.fold { color: var(--muted); }
.kt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt > span.n { flex: none; font-weight: 400; }
.tbl th.cm, .tbl td.cm { text-align: center; }
.tbl td.cm .i { vertical-align: middle; }
.lcs { display: inline-flex; gap: 4px; }
.lc { height: 20px; min-width: 24px; padding: 0 4px; border-radius: 4px; background: var(--track); color: var(--text); font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.lc.miss { background: transparent; color: var(--disabled); outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.savest { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.kbwork { flex: 1; min-height: 0; display: flex; }
.kbdoc { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.track .words { margin-left: auto; padding: 0 8px; font-size: 12px; color: var(--subtle); white-space: nowrap; }
.kbbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 32px 32px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 22px; }
.kbbody .kbh { margin: 0 0 4px; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; }
.kbbody h2 { margin: 12px 0 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.kbbody ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.kbbody .ph { color: var(--disabled); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--note-soft); box-shadow: inset 0 0 0 1px var(--note-border); }
.callout > .i { color: var(--note); margin-top: 4px; }
.kbwork .wrail section { display: flex; flex-direction: column; }
.reach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.reach + .reach { border-top: 1px solid var(--border-subtle); }
.reach > div { flex: 1; min-width: 0; }
.reach b { display: block; font-weight: 500; }
.reach small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
a.reach:hover { background: var(--hover); border-radius: 8px; }
.sel.full { width: 100%; justify-content: space-between; }
.covs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cov { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cov .h { display: flex; align-items: center; gap: 8px; }
.cov .h b { font-weight: 500; }
.cov .n { margin-left: auto; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.cov progress.prog { flex: none; width: 100%; }
progress.prog.ok::-webkit-progress-value { background: var(--success); }
progress.prog.ok::-moz-progress-bar { background: var(--success); }
.tbl .btn.tr { margin-left: -12px; color: var(--muted); }
.tbl .btn.tr:hover { color: var(--text); }
.hcpage { flex: none; padding-bottom: 16px; }
.warnt { color: var(--warning-fg); }
.hcwork { flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--border); }
.hcform { width: 512px; flex: none; overflow-y: auto; scrollbar-width: none; padding: 0 24px 24px; border-right: 1px solid var(--border); }
.hcform .band { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
.hcprev { flex: 1; min-width: 0; min-height: 0; background: var(--sunk); padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.hcprev .ph2 { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.hcprev .ph2 span { flex: 1; }
.seg.ml0 { margin-left: 0; }
.inp.ro { display: inline-flex; align-items: center; width: 240px; }
.imgf { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.swatch i { width: 20px; height: 20px; border-radius: 6px; background: #2f5bd3; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1); }
.btn.sec.danger { color: var(--danger-fg); }
.choices.two { grid-template-columns: 1fr 1fr; }
.hcsite { --hp: #2f5bd3; background: #fff; color: #1d1d1f; border-radius: 10px; box-shadow: 0 0 0 1px oklch(0 0 0 / 0.08), 0 1px 2px oklch(0 0 0 / 0.06); overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 20px; }
.hch { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid oklch(0 0 0 / 0.08); }
.hch b { margin-right: auto; font-size: 15px; font-weight: 600; }
.hlogo { width: 28px; height: 28px; border-radius: 7px; background: #2f5bd3; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.hch .hlk { font-size: 12px; color: #555; }
.hlang { font-size: 12px; padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.12); }
.hero { background: var(--hp); color: #fff; text-align: center; padding: 28px 20px 30px; }
.hero h3 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; }
.hero p { margin-top: 4px; opacity: 0.9; }
.hs { margin: 16px auto 0; max-width: 380px; background: #fff; color: #888; border-radius: 8px; padding: 9px 12px; text-align: left; }
.hcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; }
.hcc { border-radius: 8px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1); padding: 14px; }
.hcc .ct { display: flex; align-items: center; gap: 8px; }
.hcc b { font-size: 14px; font-weight: 600; }
.hcc .em { font-size: 17px; line-height: 1; }
.hcc p { margin-top: 4px; color: #555; font-size: 12px; line-height: 18px; }
.hcc small { display: block; margin-top: 8px; color: #888; font-size: 12px; }
.card.site { background: #fff; }
.hcsite.full { flex: 1; border-radius: 0; box-shadow: none; }
.hcart { flex: 1; display: flex; gap: 48px; width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 24px; }
.hcart article { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 24px; }
.hbc { font-size: 13px; color: #777; }
.hcart h1 { margin: 4px 0 0; font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -0.015em; }
.hcart .upd { margin-top: -6px; font-size: 13px; color: #888; }
.hcart h2 { margin: 12px 0 0; font-size: 19px; line-height: 26px; font-weight: 600; }
.hcart ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.hcall { border-left: 3px solid var(--hp); background: #f2f5fd; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.toc { width: 200px; flex: none; display: flex; flex-direction: column; gap: 6px; padding-top: 64px; font-size: 13px; }
.toc small { font-size: 12px; font-weight: 500; color: var(--subtle); }
.app .toc a { color: #555; }
.hcf { display: flex; gap: 20px; padding: 18px 24px; border-top: 1px solid oklch(0 0 0 / 0.08); font-size: 13px; color: #777; }
.crumb a { display: inline-flex; align-items: center; gap: 2px; }

/* Automatiseringen row: rules with a derived sentence and the switch in the row; wanneer/als/dan with the step in a
   side column; templates that arrive switched off; runs you can undo; webhooks in and out. */
.start { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.onoff { display: inline-flex; align-items: center; gap: 8px; }
.tbl.rules td.pc a:hover { text-decoration: underline; }
.trig { display: flex; align-items: center; gap: 12px; padding: 8px 0 12px; border-bottom: 1px solid var(--border-subtle); }
.trig .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trig b { font-weight: 500; }
.trig small { color: var(--subtle); }
.conds { display: flex; align-items: center; gap: 8px; padding: 6px 0 10px; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip { height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--sunk); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.cchip .f { color: var(--text); font-weight: 500; }
.cchip b { color: var(--text); font-weight: 600; }
.cchip .i.s { width: 12px; height: 12px; color: var(--subtle); margin-left: 4px; }
.steps2 { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stepc { width: 100%; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.stepc:hover { background: var(--hover); }
.stepc.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.stepc .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stepc b { font-weight: 500; }
.stepc small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 18px; color: var(--muted); }
.nb .i.s { margin-top: 2px; color: var(--subtle); }
.okline { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 18px; color: var(--success-fg); }
.okline .i.s { margin-top: 2px; }
.btn.ghost.danger { color: var(--danger-fg); align-self: flex-start; margin-top: 6px; }
.lnk { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.tmpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tmplc { border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; }
.tmplc:hover { background: var(--hover); }
.tmplc b { font-weight: 500; margin-top: 4px; }
.tmplc small { font-size: 12px; line-height: 16px; color: var(--muted); }
.tmplc .st { margin-top: 4px; font-size: 12px; color: var(--subtle); }
.subj { display: flex; align-items: center; gap: 10px; min-width: 0; }
.subj > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.tbl.runs tr.done td { color: var(--subtle); }
.tbl.runs tr.done .t2 { text-decoration: line-through; text-decoration-color: var(--border-strong); }
.tbl td .subtle.sm { font-size: 12px; }
.tbl.hooks td .badge + .s { margin-top: 4px; }

/* Uren row: a week of entries and the team matrix; the running timer as a LiveItem on the bar and the stopped
   timer as a Surface above it (mervyn 23: verb time.start + LiveItem + Surface). */
.weeknav { display: inline-flex; align-items: center; gap: 2px; }
.tbl.uren td.b { font-weight: 600; }
.tbl.uren .ref { max-width: 320px; }
.foot-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 18px; color: var(--subtle); }
.foot-note .i.s { margin-top: 2px; }
.live { height: 32px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; flex: none; }
.live b { font-weight: 600; font-variant-numeric: tabular-nums; }
.live .lt { opacity: 0.75; }
.live .rdot { width: 8px; height: 8px; border-radius: 999px; background: var(--danger); }
.live .lb { width: 24px; height: 24px; border-radius: 999px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.live .lb:hover { background: oklch(1 0 0 / 0.15); }
.live.stopped { background: var(--sunk); color: var(--muted); padding-right: 10px; }
.surfrow { width: 100%; max-width: 760px; display: flex; justify-content: flex-end; }
.tsurf { width: 400px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tsurf .sh { display: flex; align-items: center; gap: 8px; }
.tsurf .sh .ok { width: 22px; height: 22px; border-radius: 6px; background: var(--success-soft); color: var(--success-fg); display: grid; place-items: center; }
.tsurf .sh b { font-weight: 500; }
.tsurf .sh .subtle { flex: 1; font-size: 12px; }
.tsurf .dur { display: flex; align-items: baseline; gap: 10px; }
.tsurf .dur b { font-size: 30px; line-height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tsurf .dur span { font-size: 12px; color: var(--subtle); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { height: 28px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 12px; font-weight: 500; cursor: pointer; }
.tchip.on { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.cap2 { font-size: 12px; font-weight: 500; color: var(--muted); }
.billrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.billrow .tog { margin-top: 2px; }
.billrow b { display: block; font-weight: 500; }
.billrow small { display: block; font-size: 12px; color: var(--muted); }
.tsurf .note { border-radius: 8px; background: var(--sunk); padding: 8px 10px; }
.acts2 { display: flex; align-items: center; gap: 8px; }
.acts2 .today { margin-left: auto; font-size: 12px; color: var(--subtle); }

/* Planning row: a week with one lane per person (blocks in three tones: makes, spends, takes away capacity; a draft
   is dashed and counts nowhere); coverage per hour; leave requests with what they cost. */
.wlabel { display: inline-flex; flex-direction: column; align-items: center; min-width: 88px; font-weight: 500; line-height: 16px; }
.wlabel small { font-size: 11px; font-weight: 400; color: var(--subtle); }
.myweek { display: flex; flex-direction: column; }
.myd { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); align-items: start; }
.myd .d { font-size: 12px; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.myd .bl { display: flex; flex-direction: column; gap: 4px; min-height: 32px; }
.myd .off { padding-top: 6px; font-size: 12px; color: var(--disabled); }
.pb { border-radius: 8px; padding: 5px 8px; display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 16px; min-width: 0; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--border); }
.pb .pbt { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pb .pbt b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb .pbt .i.s { width: 12px; height: 12px; flex: none; opacity: 0.8; }
.pb .pk { opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb .pst { margin-left: auto; font-size: 11px; opacity: 0.85; }
.pb.alloc { background: color-mix(in oklch, var(--cat-1) 12%, var(--surface)); color: var(--glyph-1); box-shadow: none; }
.pb.meet, .pb.travel { color: var(--muted); }
.pb.travel { box-shadow: inset 0 0 0 1px var(--border-strong); }
.pb.train { background: var(--success-soft); color: var(--success-fg); box-shadow: none; }
.pb.leave { background: var(--warning-soft); color: var(--warning-fg); box-shadow: none; }
.pb.open { background: transparent; color: var(--danger-fg); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--danger) 45%, transparent); }
.pb.draft { opacity: 0.7; box-shadow: none; outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.myweek .pb { flex-direction: row; align-items: center; gap: 10px; padding: 7px 10px; }
.myweek .pb .pk { opacity: 0.85; }
.wboard { display: flex; flex-direction: column; gap: 6px; }
.wl { display: grid; grid-template-columns: 168px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.wl .who { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 8px; font-size: 13px; }
.wl .who .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl .who .h { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.wl .wc { display: flex; flex-direction: column; gap: 4px; min-height: 44px; border-radius: 8px; min-width: 0; }
.wl .wc:empty { background: var(--hover); }
.wdays .dh { font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 2px; }
.cb2 { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 8px; background: var(--sunk); font-variant-numeric: tabular-nums; }
.cb2 b { color: var(--text); font-weight: 600; }
.cb2.short { background: var(--danger-soft); color: var(--danger-fg); }
.cb2.short b { color: var(--danger-fg); }
.cb2 small { display: block; font-size: 11px; }
.wg { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--subtle); }
.wg b { font-weight: 500; font-size: 12px; color: var(--muted); }
.wg .i.s { width: 12px; height: 12px; }
.legend2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--muted); }
.lg2 { display: inline-flex; align-items: center; gap: 6px; }
.lg2.r { margin-left: auto; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--border); }
.sw.alloc { background: color-mix(in oklch, var(--cat-1) 18%, var(--surface)); box-shadow: none; }
.sw.train { background: var(--success-soft); box-shadow: none; }
.sw.leave { background: var(--warning-soft); box-shadow: none; }
.sw.open { background: transparent; box-shadow: inset 0 0 0 1px var(--danger); }
.sw.draft { background: transparent; box-shadow: none; outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.sw.travel { box-shadow: inset 0 0 0 1px var(--border-strong); }
.sw.cvs { background: color-mix(in oklch, var(--success) 45%, transparent); box-shadow: none; }
.sw.sps { background: var(--track); box-shadow: inset 0 0 0 1px var(--border); }
.sw.shs { background: color-mix(in oklch, var(--danger) 25%, transparent); box-shadow: inset 0 0 0 1px var(--danger); }
.sw.rqs { height: 2px; border-radius: 0; background: var(--text); box-shadow: none; }
.sbox2 { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.knob { margin-left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sunk); font-size: 12px; font-weight: 400; color: var(--muted); }
.knob b { color: var(--text); font-weight: 600; }
.covc { width: 100%; height: auto; display: block; }
.covc .ax { stroke: var(--border-strong); }
.covc .gl { stroke: var(--border-subtle); }
.covc .tk { font-size: 11px; fill: var(--subtle); }
.covc .dl2 { font-size: 12px; font-weight: 500; fill: var(--muted); }
.covc .cv { fill: color-mix(in oklch, var(--success) 45%, transparent); }
.covc .sp { fill: var(--track); stroke: var(--border); }
.covc .sh { fill: color-mix(in oklch, var(--danger) 25%, transparent); stroke: var(--danger); stroke-width: 1; }
.covc .rq { stroke: var(--text); stroke-width: 1.5; }
.tbl.perday td.b { font-weight: 600; }
.lreqs { display: flex; flex-direction: column; gap: 10px; }
.lreq { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.lreq .lh { display: flex; align-items: center; gap: 10px; }
.lreq .lh .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lreq .lh b { font-weight: 500; }
.lreq .lh .b span { font-size: 12px; color: var(--muted); }
.lreq .hrs { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.lreq > .btn { align-self: flex-start; }
.impact { border-radius: 10px; background: var(--sunk); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.imr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.imr .imd { font-weight: 500; }
.imr .bad { color: var(--danger-fg); font-weight: 500; }
.imr .i.s { color: var(--subtle); }

/* Marketplace (m1cro app-store): CatalogCard grid (DS grid-cards, 300px), identity plate per maker, install review. */
.mpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mpc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); min-height: 148px; color: var(--text); }
.mpc:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.mpc .top { display: flex; align-items: flex-start; gap: 12px; }
.mpc .top .badge { margin-left: auto; }
.mpc b { display: block; font-weight: 600; }
.mpc .d { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--muted); }
.mpc .ft { margin-top: auto; display: flex; gap: 6px; font-size: 12px; color: var(--subtle); }
.mpprev { display: flex; flex-direction: column; gap: 10px; max-width: 420px; padding: 12px 14px; }
.mpprev .hd { display: flex; align-items: center; gap: 10px; }
.mpprev .hd b { display: block; font-weight: 500; }
.mpprev .hd small { display: block; font-size: 12px; color: var(--subtle); }
.mpn { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.mpn > span:last-child { display: flex; flex-direction: column; }
.mpst { display: flex; align-items: center; gap: 8px; }
.mpst .s { font-size: 12px; color: var(--muted); }
.mpnew { margin-top: 8px; }
.mpnew .held { background: var(--warning-soft); box-shadow: none; }
.mplogo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.mplogo .k { font-size: 12px; font-weight: 500; color: var(--subtle); }
.mplogo small { font-size: 12px; line-height: 16px; color: var(--muted); }
.inp.ro.mpta { width: 240px; height: auto; min-height: 64px; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; line-height: 18px; }

/* States (25 §6, DS §7): loading draws the shape the definition knows; empty is one sentence or a completion;
   failed keeps the page and says which part, why, and what to do. */
.skl { display: block; height: 10px; border-radius: 999px; background: var(--track); flex: none; }
.app.dark .skl { background: var(--hover); }
.skl.w1 { width: 36px; } .skl.w2 { width: 64px; } .skl.w3 { width: 96px; } .skl.w4 { width: 140px; } .skl.w5 { width: 200px; } .skl.w6 { width: 320px; }
.skl.sm { height: 8px; }
.skl.pill { height: 22px; width: 88px; }
.skl.chip { height: 24px; display: inline-block; }
.skl.av { width: 28px; height: 28px; }
.skl.tm { width: 36px; height: 8px; }
.meta .skl, .ev .skl { display: inline-block; }
.lv .skl { margin-top: 6px; } .lv .skl.pill { margin-top: 10px; }
.bub .skl + .skl { margin-top: 10px; }
.rrow .v .skl { margin-top: 5px; }
.skr .rrow { gap: 16px; align-items: center; min-height: 34px; }
.lempty { padding: 16px; color: var(--subtle); font-size: 12px; }
.empty { margin: auto; max-width: 400px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty h2 { margin: 6px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.empty p { color: var(--muted); }
.empty .acts { margin-top: 10px; justify-content: center; }
.disc { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.disc.ok { background: var(--success-soft); color: var(--success-fg); }
.disc.bad { width: 24px; height: 24px; background: var(--danger); color: #fff; }
.app.dark .disc.bad { color: oklch(0.17 0.008 90); }
.stl { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.lvbtn { align-self: flex-start; margin: 6px 0 0 -10px; }
.stlrow { align-items: center; }
.stlrow > .dot { margin: 0 4px 0 5px; }
.toast { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-overlay); }
.toast .tx { flex: 1; min-width: 0; font-size: 13px; }
.toast .tx b { font-weight: 600; }
.toast .btn { background: oklch(1 0 0 / 0.14); color: inherit; }
.app.dark .toast .btn { background: oklch(0 0 0 / 0.08); }
.toast .icon-btn { color: inherit; opacity: 0.7; width: 28px; height: 28px; }
.rrow .v small.warnt { color: var(--warning-fg); }

/* In call and in meeting (23: the call is a LiveItem and a Surface in bar.main; 331; 332 §2i): head with who, the
   transcription state and the time; transcript or notes left; the session's Wat speelt er (or Assist, later) right;
   round controls with the colour as the answer; hang up apart. */
.callw { width: 100%; max-width: 760px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); display: flex; flex-direction: column; overflow: hidden; flex: none; }
.cw-h { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--border); }
.cw-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-h .tt b { font-weight: 600; font-size: 14px; line-height: 20px; }
.cw-h .tt span { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-rec { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--sunk); font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.cw-rec .d { width: 7px; height: 7px; border-radius: 999px; background: var(--danger); }
.cw-rec.off { color: var(--muted); } .cw-rec.off .d { background: var(--disabled); }
.cw-dur { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 4px 0 2px; }
.cw-b { display: flex; min-height: 0; height: 360px; }
.callw.exp .cw-b { height: 470px; }
.cw-main { flex: 1; min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.cw-side { width: 260px; flex: none; border-left: 1px solid var(--border-subtle); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.cw-side.wide { width: 300px; }
.cw-side .lv { padding: 10px 12px; }
.cw-side .sec-h { margin-bottom: 0; }
.cw-side .sec-h > .i { color: var(--subtle); }
.turns { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.turn { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; line-height: 19px; }
.turn .tm { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; text-align: right; padding-top: 1px; }
.turn b { font-weight: 600; margin-right: 6px; }
.turn.me b { color: var(--muted); }
.turn.part .tx { color: var(--muted); font-style: italic; }
.turn.part .tx::after { content: ""; display: inline-block; width: 2px; height: 13px; margin-left: 3px; background: currentColor; vertical-align: -2px; }
.cw-note { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--subtle); flex: none; }
.cw-note input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.cw-off { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--sunk); font-size: 12px; color: var(--muted); }
.cw-off span:nth-child(2) { flex: 1; }
.cw-notes { flex: 1; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; line-height: 19px; }
.cw-notes .tm { display: inline-block; width: 34px; font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.cw-notes .cw-ph { color: var(--subtle); }
.cw-notes .cur .cw-ph::before { content: ""; display: inline-block; width: 2px; height: 13px; margin-right: 2px; background: var(--text); vertical-align: -2px; }
.cw-f { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; border-top: 1px solid var(--border); }
.cbtn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--sunk); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.cbtn:hover { background: var(--track); }
.cbtn.on { background: var(--accent); color: var(--accent-fg); }
.cbtn.bad { background: var(--danger); color: #fff; }
.app.dark .cbtn.bad { color: oklch(0.17 0.008 90); }
.cw-vs { width: 1px; height: 20px; background: var(--border-strong); margin: 0 2px; flex: none; }
.cw-hint { flex: 1; min-width: 0; font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.hang { height: 36px; background: var(--danger); color: #fff; }
.app.dark .btn.hang { color: oklch(0.17 0.008 90); }
.cw-vid { flex: 1; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.vtile { position: relative; border-radius: 10px; background: oklch(0.27 0.01 250); color: #fff; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.vtile.cam { background: linear-gradient(160deg, oklch(0.44 0.03 60), oklch(0.27 0.02 250)); }
.vtile.talk { box-shadow: 0 0 0 2px var(--success); }
.vtile .mk { width: 56px; height: 56px; font-size: 18px; }
.vstrip .vtile .mk { width: 32px; height: 32px; font-size: 11px; }
.vtile .nm { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: oklch(0 0 0 / 0.45); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vstrip .vtile .nm { font-size: 11px; left: 6px; bottom: 6px; }
.cw-meta { font-size: 12px; line-height: 17px; color: var(--subtle); }
.cw-side .tabs { gap: 16px; }
.asg { border-radius: 10px; background: var(--sunk); padding: 8px 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.asg .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.asg .k .icon-btn { margin-left: auto; width: 24px; height: 24px; }
.asg b { font-weight: 500; line-height: 18px; }
.asg .q { font-size: 12px; line-height: 16px; color: var(--subtle); }
.asg .ac { display: flex; gap: 4px; margin-top: 4px; }
.asg .ac:empty { display: none; }
.cw-side .nb { margin-top: auto; }
.cw-vid > .vtile { flex: 1; min-height: 0; aspect-ratio: auto; }
.balk .ctx[title] { padding: 0 9px 0 8px; }

/* Incoming, transfer and two calls: the ringing item asks with two labelled buttons; transfer picks a person, line
   or number and then direct or first talk; a warm transfer shows both lines; two calls switch with pills. */
.live.ring { height: 40px; padding: 0 4px 0 6px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong), 0 0 0 4px var(--success-soft); gap: 8px; }
.live.ring .who { display: flex; flex-direction: column; line-height: 14px; }
.live.ring .who b { font-weight: 600; font-size: 12px; }
.live.ring .who small { font-size: 11px; color: var(--muted); }
.lbtn { height: 30px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: #fff; }
.lbtn.yes { background: var(--success); } .lbtn.no { background: var(--danger); }
.app.dark .lbtn { color: oklch(0.17 0.008 90); }
.live.held { background: var(--sunk); color: var(--muted); }
.live.held .lb:hover { background: var(--track); }
.xf-h { display: flex; align-items: center; gap: 8px; }
.xf-h b { font-weight: 600; }
.xf-h span { font-size: 12px; color: var(--subtle); }
.cw-main .search { flex: none; max-width: none; }
.xlist { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow: hidden; }
.xcap { font-size: 12px; font-weight: 500; color: var(--subtle); padding: 6px 8px 2px; }
.xrow { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; }
.xrow:hover { background: var(--hover); }
.xrow.on { background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.xrow .b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 16px; }
.xrow .b b { font-weight: 500; }
.xrow .b small { font-size: 12px; color: var(--muted); }
.xrow .st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.xf-go { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.xf-go .seg { margin-left: 0; }
.legs { display: flex; flex-direction: column; gap: 8px; }
.leg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.leg.act { box-shadow: inset 0 0 0 1.5px var(--accent); }
.leg.held { background: var(--sunk); box-shadow: none; }
.leg .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.leg .b b { font-weight: 600; }
.leg .b small { font-size: 12px; color: var(--muted); }
.leg .lrec { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.leg .lrec .d { width: 7px; height: 7px; border-radius: 999px; background: var(--danger); }
.leg .t { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.xf-act { display: flex; align-items: center; gap: 8px; }
.xf-act .btn.pri { margin-left: auto; }
.cw-sw { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.sess { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--sunk); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12px; cursor: pointer; }
.sess .t { color: var(--subtle); }
.sess.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.cw-b.two { height: 312px; }
.cw-b.xf { height: 430px; }
.xf-go .btn.pri { margin-left: auto; }
.feedcol > * { flex: none; }
.cfm { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 280px; }
.cfm small { display: block; font-size: 12px; color: var(--subtle); }
.cw-side .btn.add { align-self: flex-start; margin-left: -8px; }

/* The bar's own states (23 §4): dock icons, ＋, drafts; the assistant's thread as a workspace; a peek next to the
   work; the drawer with every app for the page; menus that open upwards from the bar. */
.dock { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); flex: none; }
.dk { width: 30px; height: 30px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.dk:hover { background: var(--hover); color: var(--text); }
.dk.on { background: var(--sunk); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.drafts { height: 30px; padding: 0 9px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; flex: none; }
.drafts.on, .drafts:hover { background: var(--sunk); color: var(--text); }
.app.pagefix .card > .page { flex: 1; min-height: 0; overflow: hidden; }
.thw { width: 100%; max-width: 760px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); display: flex; flex-direction: column; overflow: hidden; flex: none; }
.thw-b { height: 400px; overflow: hidden; padding: 14px 18px; }
.ans { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.thw-act { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--subtle); }
.thw-act .btn { margin-left: -10px; }
.peek { width: 360px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.pk-h { display: flex; align-items: center; gap: 10px; }
.pk-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-h .tt b { font-weight: 600; } .pk-h .tt small { font-size: 12px; color: var(--muted); }
.pk-l { display: flex; flex-direction: column; gap: 6px; }
.lrow2 { display: flex; align-items: center; gap: 8px; } .lrow2 > span:nth-child(2) { flex: 1; }
.lrow2 > .i { color: var(--subtle); }
.pk-f { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-subtle); padding-top: 8px; font-size: 12px; color: var(--subtle); }
.pk-f .btn { margin-left: -10px; }
.pop.up { width: 340px; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.pop .row .i.s { color: var(--subtle); flex: none; }
.pop .row .b2 { display: flex; flex-direction: column; min-width: 0; } .pop .row .b2 b { font-weight: 500; } .pop .row .b2 small { font-size: 12px; color: var(--muted); }
.pop-f { margin-top: 4px; padding: 8px 8px 4px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--subtle); }
.lade { width: 100%; max-width: 760px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.lade-h { display: flex; align-items: center; gap: 10px; }
.lade-h b { font-weight: 600; } .lade-h span { flex: 1; font-size: 12px; color: var(--muted); }
.lade-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ldc { border-radius: 10px; background: var(--sunk); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ldc:hover { background: var(--hover); }
.ldc .h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ldc b { font-weight: 500; } .ldc small { font-size: 12px; color: var(--muted); }
.balk-wrap { position: relative; }
.over { position: absolute; left: 0; right: 0; bottom: 70px; display: flex; justify-content: center; padding: 0 24px; pointer-events: none; z-index: 5; }
.over > * { pointer-events: auto; }

/* Shell: popovers over the menu (bell, switcher, profile), login and choosing an organisation. */
.app.ovl { position: relative; }
.shpop { position: absolute; z-index: 6; width: 360px; max-width: none; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.shpop.at-foot { left: 12px; bottom: 52px; }
.shpop.at-top { left: 12px; top: 48px; width: 280px; }
.shpop .row { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.shpop .row:hover { background: var(--hover); }
.shpop .row .end { display: inline-flex; align-items: center; gap: 4px; }
.appsw.on { background: var(--page-hover); }
.pop-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; }
.pop-h b { flex: 1; font-weight: 600; }
.pop-f a { color: var(--text); font-weight: 500; margin-right: 4px; }
.nrow { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; }
.nrow:hover { background: var(--hover); }
.nrow.unread { background: var(--unread); }
.nrow .b2 { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nrow .b2 b { font-weight: 600; }
.nrow .b2 small { font-size: 12px; color: var(--muted); }
.nrow .dot { margin-top: 7px; }
.icon-btn.hasc { position: relative; }
.bellc { position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 9px; line-height: 14px; font-weight: 600; text-align: center; }
.wsm { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.wsm .i { width: 12px; height: 12px; }
.wsm.plain { background: var(--sunk); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.prof-h { display: flex; align-items: center; gap: 10px; padding: 8px; }
.prof-h .b2 { display: flex; flex-direction: column; } .prof-h b { font-weight: 600; } .prof-h small { font-size: 12px; color: var(--muted); }
.me-av.lg { width: 36px; height: 36px; font-size: 14px; cursor: default; }
.pres.busy { background: var(--danger); }
.stat-tot { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.stat-tot .seg { margin-left: 0; }
.stat-tot .seg button { height: 24px; padding: 0 10px; font-size: 12px; }
.card.auth { background: transparent; box-shadow: none; align-items: center; justify-content: center; gap: 16px; }
.authc { width: 400px; max-width: 100%; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.authc .btn.wide1 { width: 100%; justify-content: center; height: 36px; }
.auth-or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--subtle); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-l { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.auth-lr { display: flex; justify-content: space-between; } .auth-lr a { font-weight: 400; color: var(--muted); text-decoration: underline; }
.auth-f { font-size: 12px; color: var(--subtle); text-align: center; } .auth-f a { color: var(--text); text-decoration: underline; }
.olist { display: flex; flex-direction: column; margin: 0 -8px; }
.orow { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.orow:hover { background: var(--hover); }
.orow .b2 { flex: 1; display: flex; flex-direction: column; } .orow b { font-weight: 600; } .orow small { font-size: 12px; color: var(--muted); }
.orow .end { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--subtle); }

/* Instellingen, the remaining pages: people cells, meters, pattern days, brand previews, document preview, step ladders. */
.tbl td.r { text-align: right; white-space: nowrap; }
.pwho { display: inline-flex; align-items: center; gap: 8px; }
.inp.fi { width: 300px; }
.tog.dis { opacity: 0.45; cursor: not-allowed; }
.fld .me-av.lg { width: 32px; height: 32px; font-size: 13px; }
.chip.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.mtr { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mtr progress.prog { width: 120px; flex: none; }
progress.prog.w::-webkit-progress-value { background: var(--warning); }
progress.prog.w::-moz-progress-bar { background: var(--warning); }
.rcard.roles .rrow { display: flex; gap: 12px; padding: 8px 10px; } .rcard.roles b { width: 110px; flex: none; font-weight: 500; }
.rcard.pat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 8px; background: var(--sunk); }
.pd b { font-weight: 500; } .pd span { font-variant-numeric: tabular-nums; } .pd small { font-size: 11px; color: var(--subtle); }
.pd.off { background: transparent; color: var(--subtle); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.sladder { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.stp { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; background: var(--sunk); color: var(--muted); }
.stp.doing { background: var(--unread); color: var(--text); } .stp.done { background: var(--success-soft); color: var(--success-fg); }
.swb { width: 20px; height: 20px; border-radius: 6px; background: var(--cat-4); flex: none; }
.brandp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bp { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); border-top: 3px solid var(--cat-4); }
.bp-top { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12px; }
.bp-l { height: 6px; border-radius: 999px; background: var(--track); display: block; }
.bp-l.w2 { width: 30%; } .bp-l.w3 { width: 45%; } .bp-l.w4 { width: 65%; } .bp-l.w5 { width: 85%; }
.bp-b { align-self: flex-start; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--cat-4); color: var(--cat-on); font-size: 11px; display: inline-flex; align-items: center; }
.bp-rule { height: 2px; background: var(--cat-4); width: 40px; display: block; }
.bp small { font-size: 12px; color: var(--subtle); margin-top: 4px; }
.dsplit { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.dlist { display: flex; flex-direction: column; }
.dli { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border-radius: 8px; color: var(--muted); }
.dli.on { background: var(--sunk); color: var(--text); font-weight: 500; }
.dprev { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.dp-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--cat-4); } .dp-h b { font-weight: 600; } .dp-h .muted { margin-left: auto; font-size: 12px; }
.dp-t { display: flex; flex-direction: column; } .dp-t b { font-size: 16px; font-weight: 600; }
.dp-blk { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-subtle); }
.dp-blk.cond { box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--note-soft); }
.dp-tag { position: absolute; top: 3px; left: 12px; font-size: 10px; color: var(--subtle); }
.dp-f { font-size: 11px; color: var(--subtle); padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.tbl td.nw { white-space: nowrap; }

/* App screens drawn late: week grid with a popover, the day list, keys, workload, cycles, step editor, areas,
   an image without editor, one day of the rooster and dialogs over a page. */
.tgwrap { position: relative; }
.tgw { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); grid-template-rows: 36px 28px repeat(20, 24px); column-gap: 4px; position: relative; }
.tgc1 { grid-column: 1; }
.tgc2 { grid-column: 2; }
.tgc3 { grid-column: 3; }
.tgc4 { grid-column: 4; }
.tgc5 { grid-column: 5; }
.tgc6 { grid-column: 6; }
.tgc7 { grid-column: 7; }
.tgc8 { grid-column: 8; }
.tgr3 { grid-row-start: 3; }
.tgr4 { grid-row-start: 4; }
.tgr5 { grid-row-start: 5; }
.tgr6 { grid-row-start: 6; }
.tgr7 { grid-row-start: 7; }
.tgr8 { grid-row-start: 8; }
.tgr9 { grid-row-start: 9; }
.tgr10 { grid-row-start: 10; }
.tgr11 { grid-row-start: 11; }
.tgr12 { grid-row-start: 12; }
.tgr13 { grid-row-start: 13; }
.tgr14 { grid-row-start: 14; }
.tgr15 { grid-row-start: 15; }
.tgr16 { grid-row-start: 16; }
.tgr17 { grid-row-start: 17; }
.tgr18 { grid-row-start: 18; }
.tgr19 { grid-row-start: 19; }
.tgr20 { grid-row-start: 20; }
.tgr21 { grid-row-start: 21; }
.tgr22 { grid-row-start: 22; }
.tgs1 { grid-row-end: span 1; }
.tgs2 { grid-row-end: span 2; }
.tgs3 { grid-row-end: span 3; }
.tgs4 { grid-row-end: span 4; }
.tgs5 { grid-row-end: span 5; }
.tgs6 { grid-row-end: span 6; }
.tgs7 { grid-row-end: span 7; }
.tgs8 { grid-row-end: span 8; }
.tgd { grid-row: 1; align-self: center; font-size: 12px; color: var(--muted); } .tgd b { font-weight: 600; color: var(--text); }
.tgd.today b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.tgad { grid-row: 2; align-self: center; font-size: 11px; color: var(--subtle); } .tgac { grid-row: 2; border-radius: 6px; background: var(--sunk); margin: 3px 0; }
.tglines { grid-column: 2 / 9; grid-row: 3 / 23; background: repeating-linear-gradient(to bottom, var(--border-subtle) 0 1px, transparent 1px 48px); border-top: 1px solid var(--border); }
.tgh { grid-column: 1; font-size: 11px; color: var(--subtle); transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.tge { position: relative; z-index: 1; margin: 1px 0; border: 0; border-radius: 6px; padding: 3px 6px; text-align: left; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; background: color-mix(in oklch, var(--cat-1) 12%, var(--surface)); color: var(--glyph-1); font-size: 12px; line-height: 15px; }
.tge b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tge small { font-size: 11px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tge.conv { background: var(--note-soft); color: var(--note); box-shadow: inset 0 0 0 1px var(--note-border); }
.tge.past { opacity: 0.55; } .tge.tgs1 { justify-content: center; padding: 0 6px; } .tge.tgs1 small { display: none; } .tge.sel { box-shadow: 0 0 0 2px var(--accent); }
.tgnow { z-index: 2; height: 2px; background: var(--danger); align-self: start; margin-top: -1px; border-radius: 2px; }
.tgpop { position: absolute; z-index: 6; right: 31%; top: 300px; width: 340px; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.tgp-t { padding: 0 8px; color: var(--muted); font-size: 12px; } .tgp-a { display: flex; align-items: center; gap: 8px; padding: 10px 8px; } .tgp-a .ghost { margin-left: auto; }
.tgp-p { display: flex; align-items: center; gap: 8px; padding: 4px 8px; } .tgp-p .subtle { margin-left: auto; font-size: 12px; }
.lg2 .sw.tgev { background: color-mix(in oklch, var(--cat-1) 12%, var(--surface)); box-shadow: none; } .lg2 .sw.conv { background: var(--note-soft); box-shadow: inset 0 0 0 1px var(--note-border); }
.dl2 { display: flex; flex-direction: column; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 4px; }
.dl2r { display: grid; grid-template-columns: 52px 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.dl2r + .dl2r { box-shadow: 0 -1px 0 var(--border-subtle); } .dl2r .tm { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; } .dl2r .ic { color: var(--subtle); display: grid; }
.dl2r .b { display: flex; flex-direction: column; min-width: 0; } .dl2r .t { font-weight: 500; } .dl2r .s { font-size: 12px; color: var(--muted); } .dl2r.past { opacity: 0.55; }
.dl2now { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 11px; color: var(--danger-fg); font-variant-numeric: tabular-nums; } .dl2now::after { content: ''; flex: 1; height: 1px; background: var(--danger); }
.qempty { align-items: center; justify-content: center; }
.kcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px; } .kcols h3 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.kr { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 0; } .kk { display: inline-flex; gap: 3px; }
.kr small { grid-column: 2; font-size: 11px; color: var(--subtle); margin-top: -4px; } .kr.dim > span:not(.kk), .kr.dim .kbd { opacity: 0.45; }
.wlt th small { display: block; font-weight: 400; color: var(--subtle); font-size: 11px; }
.wlc { vertical-align: top; } .wlc b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; } .wlc small { font-size: 11px; color: var(--muted); }
.wlc.hot b { color: var(--danger-fg); } .wlc.wle { background: var(--hover); } .wlt tr.sum td { font-weight: 500; }
.cyc { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 4px; }
.cyc-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; } .cyc-h b { font-weight: 600; } .cyc-h .muted { font-size: 12px; } .cyc-h progress.prog { width: 120px; flex: none; margin-left: auto; } .cyc-h .btn:only-of-type { margin-left: auto; }
.bli { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 56px auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 0; background: transparent; text-align: left; width: 100%; }
.bli + .bli { box-shadow: 0 -1px 0 var(--border-subtle); } .bli .t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bli.more { display: block; color: var(--subtle); font-size: 12px; cursor: pointer; }
.strlist { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.strw { display: grid; grid-template-columns: 20px 10px minmax(0, 1fr) 150px auto 24px 32px; align-items: center; gap: 8px; } .strw .grip { color: var(--subtle); display: grid; }
.akk { display: inline-flex; align-items: center; gap: 6px; } .akk small { font-size: 12px; color: var(--muted); }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.areac { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ar-h { display: flex; align-items: center; gap: 8px; } .ar-h b { font-size: 15px; font-weight: 600; } .ar-h .muted { margin-left: auto; font-size: 12px; }
.ar-g { display: grid; grid-template-columns: minmax(0, 1fr) auto 160px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.ar-c { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); border-radius: 8px; background: var(--sunk); padding: 8px 10px; } .ar-c .i { flex: none; margin-top: 2px; }
.imgv { display: flex; flex-direction: column; min-height: 0; flex: 1; } .imgv-h { padding: 24px 32px 12px; }
.imgv-b { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 0 32px 24px; }
.imgfig { margin: 0; border-radius: 12px; background: var(--sunk); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; } .imgfig svg { width: 100%; max-width: 760px; border-radius: 8px; }
.imgfig .ib { fill: oklch(0.55 0.02 90); } .imgfig .ip { fill: oklch(0.47 0.05 60); } .imgfig .ib2 { fill: oklch(0.70 0.06 75); } .imgfig .ic { fill: oklch(0.78 0.06 75); } .imgfig .id { fill: oklch(0.35 0.03 60); }
.imgfig figcaption { font-size: 12px; color: var(--subtle); } .imgr { display: flex; flex-direction: column; gap: 8px; }
.dgrid2 { display: flex; flex-direction: column; gap: 6px; }
.dgl { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 6px; align-items: stretch; }
.dgl .who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; } .dgl .who .nm { flex: 1; min-width: 0; } .dgl .who .h { font-size: 11px; color: var(--subtle); }
.dgt { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); grid-auto-rows: minmax(40px, auto); gap: 4px 0; border-radius: 8px; background: repeating-linear-gradient(to right, var(--border-subtle) 0 1px, transparent 1px 10%); }
.dgs1 { grid-column-start: 1; }
.dgs2 { grid-column-start: 2; }
.dgs3 { grid-column-start: 3; }
.dgs4 { grid-column-start: 4; }
.dgs5 { grid-column-start: 5; }
.dgs6 { grid-column-start: 6; }
.dgs7 { grid-column-start: 7; }
.dgs8 { grid-column-start: 8; }
.dgs9 { grid-column-start: 9; }
.dgs10 { grid-column-start: 10; }
.dgs11 { grid-column-start: 11; }
.dgs12 { grid-column-start: 12; }
.dgs13 { grid-column-start: 13; }
.dgs14 { grid-column-start: 14; }
.dgs15 { grid-column-start: 15; }
.dgs16 { grid-column-start: 16; }
.dgs17 { grid-column-start: 17; }
.dgs18 { grid-column-start: 18; }
.dgs19 { grid-column-start: 19; }
.dgs20 { grid-column-start: 20; }
.dgw1 { grid-column-end: span 1; }
.dgw2 { grid-column-end: span 2; }
.dgw3 { grid-column-end: span 3; }
.dgw4 { grid-column-end: span 4; }
.dgw5 { grid-column-end: span 5; }
.dgw6 { grid-column-end: span 6; }
.dgw7 { grid-column-end: span 7; }
.dgw8 { grid-column-end: span 8; }
.dgw9 { grid-column-end: span 9; }
.dgw10 { grid-column-end: span 10; }
.dgw11 { grid-column-end: span 11; }
.dgw12 { grid-column-end: span 12; }
.dgw13 { grid-column-end: span 13; }
.dgw14 { grid-column-end: span 14; }
.dgw15 { grid-column-end: span 15; }
.dgw16 { grid-column-end: span 16; }
.dgw17 { grid-column-end: span 17; }
.dgw18 { grid-column-end: span 18; }
.dgw19 { grid-column-end: span 19; }
.dgw20 { grid-column-end: span 20; }
.dgb { min-width: 0; padding: 0 1px; } .dgb .pb { height: 100%; } .dgb.dglv { grid-row: 2; }
.dgh .dgt { background: none; grid-auto-rows: 20px; } .dgx { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.dgcov .dgt { grid-template-columns: repeat(10, minmax(0, 1fr)); grid-auto-rows: 28px; gap: 0 4px; background: none; }
.cvx { display: grid; place-items: center; border-radius: 6px; font-size: 11px; font-variant-numeric: tabular-nums; background: var(--success-soft); color: var(--success-fg); }
.cvx.short { background: var(--danger-soft); color: var(--danger-fg); }
.cvx.plain { background: var(--sunk); color: var(--muted); }
.dgoff { grid-column: 1 / -1; align-self: center; padding-left: 8px; font-size: 12px; color: var(--disabled); }
.wgrp { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--muted); } .wgrp .subtle { font-weight: 400; }
.warnt.sm, .subtle.sm { font-size: 12px; } .acts.end { display: flex; justify-content: flex-end; gap: 8px; }
.wlt { table-layout: fixed; } .wlt th:first-child { width: 168px; }

.keyspop { position: absolute; z-index: 6; top: 58px; right: 24px; width: 780px; max-width: calc(100% - 48px); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.qc.qcw { width: 100%; max-width: 560px; } .qc-sub { flex: 1; font-weight: 400; font-size: 12px; color: var(--subtle); } .qc-row .seg { margin-left: 0; }
.inp.num-in { width: 64px; text-align: right; }

/* Switcher as a list with search, profile menu with the status in a flyout (decided 11-10). */
.shpop .search { flex: none; min-width: 0; width: 100%; }
.shpop.wslist { width: 320px; } .shpop.wslist .search { margin: 2px 0 6px; }
.shpop .row .end .dot { margin-right: 6px; vertical-align: middle; }
.shpop.play { width: 320px; }
.stmsg { display: flex; gap: 6px; padding: 4px 8px; } .stmsg .inp { flex: 1; } .stmsg .seg { margin-left: 0; } .stmsg .seg button { height: 26px; padding: 0 10px; font-size: 12px; }
.shpop.flyout { left: 340px; bottom: 120px; width: 300px; }
.shpop .row .b2 { display: flex; flex-direction: column; } .shpop .row .b2 b { font-weight: 500; } .shpop .row .b2 small { font-size: 12px; color: var(--muted); }

.pnote { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 18px; color: var(--muted); } .pnote .i { flex: none; margin-top: 2px; color: var(--subtle); }
.crumb a .i.s { width: 12px; height: 12px; }
.lreq.sunk { box-shadow: none; background: var(--sunk); }
.perm { margin: 0; padding-left: 50px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }

/* === rap (11-10, plannen 301–340) === */
/* Rapporten (11-10): a popover drawn open under its trigger (Menu, 25 §4).  */
.popanchor { position: relative; display: inline-flex; }
.popanchor > .pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; width: 320px; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.popanchor > .pop .search { width: 100%; margin-bottom: 4px; }

/* === aut (11-10, plannen 301–340) === */
/* Automatiseringen (plan 324): a menu drawn open in place, the head of a catalogue card with its tags, and a count
   link next to a status pill, so automations show at their owner. */
.pop.inline { max-width: 340px; margin-top: 2px; }
.pop .row > .i.s { color: var(--subtle); }
.tmplh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pillcount { height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
.pillcount:hover { background: var(--hover); color: var(--text); }
.pillcount .i.s { width: 12px; height: 12px; }
.stpw { display: inline-flex; align-items: center; gap: 2px; }
.fld.stack { flex-direction: column; align-items: stretch; gap: 6px; }
.pop button.row { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pop button.row:hover { background: var(--hover); }

/* === kb (11-10, plannen 301–340) === */
/* Kennisbank (plan 322), 11-10. Generic additions to kit.css;  */

/* A small reference chip, for a cell or a dense rail. */
.ref.sm { height: 22px; font-size: 12px; padding-right: 7px; }
.ref.sm .i.s { width: 12px; height: 12px; color: var(--subtle); }
.chips.nowrap { flex-wrap: nowrap; align-items: center; }

/* Canvas only: a row drawn in its hover state, with its row actions. */
.tbl tr.hov td { background: var(--hover); }
.tbl tr.hov .rowact { opacity: 1; }
.rowact { display: inline-flex; gap: 4px; }

/* Not live yet: a dashed mark beside a block of a working copy (26 §5: dashed = not yet live). */
.pend { position: relative; }
.pend::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: -16px; border-left: 2px dashed var(--warning); }
li.pend::before { left: -38px; }

/* A document read in the detail of a processing page. */
.kbread { display: flex; flex-direction: column; gap: 10px; max-width: 680px; font-size: 14px; line-height: 22px; }
.kbread .kbh { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.kbread h3 { margin: 8px 0 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.kbread ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Rail: a single secondary action under a card. */
.wrail section > .acts { margin-top: 8px; }

/* Public help centre: the same in both themes on purpose (26 §3); --hp is the organisation's colour. */
.hcc .em .i { width: 18px; height: 18px; color: var(--hp); }
.hmore { margin-top: 12px; padding-top: 16px; border-top: 1px solid oklch(0 0 0 / 0.08); font-size: 14px; color: #555; }
.app .hmore a { color: var(--hp); }

/* === ai (11-10, plannen 301–340) === */
/* A multi-line text field (instructions, a test question): same outline and plane as .inp. */
textarea.inp { height: auto; min-height: 56px; padding: 8px 10px; line-height: 20px; resize: vertical; display: block; }

/* === home (11-10, review) === */
/* A row that stands for a queue elsewhere (Home › Mijn werk): icon, title with its app, the urgent counts, the size. */
.qlist { display: flex; flex-direction: column; }
.qline { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 8px; }
.qline:hover { background: var(--hover); }
.qline + .qline { box-shadow: inset 0 1px 0 var(--border-subtle); }
.qline:hover + .qline, .qline:hover { box-shadow: none; }
.qline > .i { color: var(--subtle); flex: none; }
.qline .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qline .t small { font-size: 13px; font-weight: 400; color: var(--subtle); }
.qline .cn { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qline .n { width: 32px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.qline .chv { color: var(--subtle); flex: none; }

/* Kennisbank 18-10: changes against the live version, the placement picker, public search. */
.kbdiff { display: flex; flex-direction: column; gap: 10px; max-width: 720px; font-size: 14px; line-height: 22px; }
.kbdiff .same { align-self: flex-start; border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--subtle); padding: 2px 0; cursor: pointer; }
.kbdiff .same:hover { color: var(--muted); }
.chg { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.chg .ch-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.chg .ch-h .acts { margin-left: auto; }
.chg .chl { margin: 0; padding-left: 22px; }
.chg ins { text-decoration: none; background: var(--success-soft); border-radius: 3px; padding: 0 2px; }
.chg del { color: var(--muted); background: var(--danger-soft); border-radius: 3px; padding: 0 2px; }
.kbwork.pickhost { position: relative; }
.pop.pickr { position: absolute; top: 392px; right: 312px; z-index: 6; width: 340px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-overlay); }
.pop.pickr .pnote { margin: 6px 8px 4px; font-size: 12px; line-height: 18px; }
.hcsrch { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 14px; }
.hsf { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; box-shadow: 0 0 0 1px oklch(0 0 0 / 0.14); color: #888; }
.hsf input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; color: #1d1d1f; background: transparent; }
.hcount { margin: 0; font-size: 13px; color: #888; }
.hres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.hres li { display: flex; flex-direction: column; gap: 2px; }
.hres .t { color: var(--hp); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; }
.hres .p { font-size: 12px; color: #888; }
.hres p { margin: 2px 0 0; font-size: 14px; line-height: 22px; color: #444; }
.pop.pickr .search { flex: none; }

/* The document stays paper in dark mode (321 §6c): the page and the sheet keep the light tokens, the frame goes dark. */
.app.dark .paper, .app.dark .gridwrap { --surface: #fff; --border: oklch(0.25 0.01 90 / 0.08); --text: oklch(0.25 0.01 90); --muted: oklch(0.45 0.008 90); --subtle: oklch(0.62 0.008 90); --note-soft: oklch(0.972 0.022 90); --note-border: oklch(0.75 0.08 90 / 0.55); --page: oklch(0.96 0.004 90); --sunk: oklch(0.968 0.004 90); color: var(--text); color-scheme: light; }
.app.dark .gridwrap { background: var(--surface); }
