/* Qbus IT – dark theme (standaard), accent Qbus-geel #FDC32D */
:root {
  --bg: #0F1115; --surface: #171A20; --surface2: #20242C; --border: #2A2F38; --line: #22262E;
  --text: #ECEEF2; --sub: #C4C9D2; --muted: #A3AAB6; --input: #12151A; --input-border: #3A404C;
  --accent: #FDC32D; --on-accent: #141414; --accent-soft: rgba(253,195,45,.14);
  --danger: #FDA29B; --ok: #12B76A; --avatar: #2A2F38;
}
@media (prefers-color-scheme: light) {
  :root.auto {
    --bg: #F6F6F4; --surface: #FFFFFF; --surface2: #F2F3F5; --border: #E4E6EA; --line: #F0F1F4;
    --text: #1A1D23; --sub: #344054; --muted: #5F6672; --input: #FFFFFF; --input-border: #D0D5DD;
    --accent-soft: #FFF4CC; --danger: #B42318; --avatar: #E4E7EC;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: inherit; }
main { flex: 1 1 auto; min-width: 0; padding: 24px 32px; display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-size: 24px; }
h2 { margin: 0; font-size: 16px; }
.muted { color: var(--muted); }
.sub { color: var(--sub); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--input-border); background: transparent; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 700; }
.btn.ok { background: var(--ok); color: #06130B; border: 0; font-weight: 700; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 6px; text-decoration: none; color: var(--sub); font-size: 13px; }
.seg a.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--input-border); border-radius: 8px; padding: 8px 10px; }
input, select { height: 38px; }
textarea { width: 100%; resize: vertical; }
label.f, div.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.table { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.table .grid { display: grid; grid-template-columns: 90px minmax(220px,1fr) 160px 100px 160px 80px 150px; gap: 12px; padding: 10px 20px; align-items: center; min-width: 1040px; }
.table .head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.table .group { padding: 14px 20px 6px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.table .tr { border-top: 1px solid var(--line); text-decoration: none; }
.table .tr:hover { background: var(--surface2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.key { font-family: ui-monospace, monospace; font-size: 13px; color: var(--accent); }
.title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--avatar); color: var(--sub); }
.ch-Mail { background: rgba(99,140,255,.18); color: #B4C8FF; }
.ch-WhatsApp { background: rgba(37,211,102,.16); color: #86E5AE; }
.ch-SMS { background: rgba(155,120,255,.18); color: #CDBDFF; }
.ch-Telefoon { background: rgba(255,140,60,.18); color: #FFBF94; }
.pr-Hoog { background: rgba(240,68,56,.18); color: #FDA29B; border-radius: 6px; }
.pr-Laag { background: transparent; color: var(--muted); }
.late { color: var(--danger); font-weight: 700; }
.today { color: var(--accent); font-weight: 700; }
.paused { color: var(--muted); }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--avatar); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; }
.detail { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.detail .left { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.detail aside { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.props { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px 12px; align-items: center; }
.props select, .props input { width: 100%; }
.event { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.event .ic.answer { background: rgba(99,140,255,.18); color: #B4C8FF; }
.event .ic.change { background: var(--avatar); color: var(--sub); }
.event .body { white-space: pre-line; color: var(--sub); }
.when { font-size: 12px; color: var(--muted); }
.error { background: rgba(240,68,56,.15); color: var(--danger); border-radius: 8px; padding: 10px 12px; }
.settings-row { display: grid; grid-template-columns: 1fr 110px 130px 120px 70px 90px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cat-row { display: grid; grid-template-columns: 1fr 120px 70px 100px 90px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* v0.2: vandaag, projecten, snooze */
.btn.small { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.accent { background: var(--accent-soft); color: var(--accent); border: 0; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px; padding: 12px 16px; text-decoration: none; }
.stat strong { font-size: 26px; }
.card.flush { padding: 0; overflow: hidden; }
.sec-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.sec-head .hint { margin-left: auto; font-size: 13px; }
.today-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.today-row:first-of-type { border-top: 0; }
.check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--input-border); background: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.check.on { background: var(--accent); border-color: var(--accent); }
.check.on::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) translate(1px,-1px); }
.pgrid { display: grid; grid-template-columns: 90px minmax(200px,1.3fr) 150px minmax(160px,1.3fr) 110px 110px 60px 50px; gap: 12px; padding: 10px 20px; align-items: center; min-width: 1060px; }
.pgrid.head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
details.prow { border-top: 1px solid var(--line); }
details.prow > summary { list-style: none; cursor: pointer; }
details.prow > summary::-webkit-details-marker { display: none; }
details.prow[open] > summary { background: var(--accent-soft); }
details.prow[open] .key { color: var(--accent); }
.ptasks { padding: 6px 20px 12px 60px; display: flex; flex-direction: column; gap: 4px; min-width: 1060px; }
.ptask { display: grid; grid-template-columns: 26px minmax(0,1fr) 120px 90px 110px; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--surface2); }
.ptask .done { color: var(--muted); text-decoration: line-through; }
.bar { flex: 1; height: 6px; background: var(--avatar); border-radius: 3px; display: block; min-width: 60px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar.wide { height: 8px; }
.next { display: flex; gap: 10px; background: var(--surface2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.phase-head { display: flex; justify-content: space-between; font-weight: 700; padding: 10px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.props input[type=checkbox], .props input[type=radio] { width: auto; }
.key { white-space: nowrap; flex: none; }
select { min-width: 120px; }

/* v0.4 */
.st { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-ok { background: rgba(18,183,106,.16); color: #32D583; }
.st-warn { background: rgba(247,144,9,.16); color: #FDB022; }
.st-bad { background: rgba(240,68,56,.16); color: #FDA29B; }
.st-unknown { background: rgba(160,170,185,.14); color: #A3AAB6; }
.st-ticket { background: var(--accent-soft); color: var(--accent); }
.st-note { background: rgba(99,140,255,.18); color: #B4C8FF; }
.bgrid { display: grid; grid-template-columns: minmax(220px,1.4fr) 100px 160px 170px minmax(220px,1.6fr) 80px; gap: 12px; padding: 10px 20px; align-items: center; min-width: 1040px; }
.mgrid { display: grid; grid-template-columns: 120px minmax(160px,1fr) minmax(240px,2fr) 170px minmax(160px,1fr) 100px; gap: 12px; padding: 10px 20px; align-items: center; min-width: 1100px; }
.rgrid { display: grid; grid-template-columns: 36px minmax(160px,1.2fr) minmax(220px,2fr) 150px 110px 140px 150px; gap: 10px; padding: 8px 20px; align-items: center; min-width: 1100px; }
.bgrid.head, .mgrid.head, .rgrid.head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.trow { border-top: 1px solid var(--line); }
.small { font-size: 13px; }
.wrap { overflow-wrap: anywhere; }
.flash { background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 10px 12px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.formgrid input, .formgrid select { width: 100%; box-sizing: border-box; }
.att { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; font-size: 13px; }

/* v0.4.6: nieuwe reacties */
.badge.new{background:var(--accent);color:var(--on-accent);margin-left:4px;padding:1px 6px}
.unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:6px;vertical-align:middle}
.toasts{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:10px;z-index:50;max-width:360px}
.toast{background:var(--surface);border:1px solid var(--accent);border-radius:12px;padding:12px 14px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:14px}
.toast .small{font-size:12px;margin-top:2px}

/* v0.4.8: personen */
.pgrid{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(200px,1.5fr) 90px 70px 90px 100px;gap:12px;align-items:center;padding:10px 16px;border-top:1px solid var(--line)}
.pgrid.head{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-top:0}
.pgrid input:not([type=checkbox]){width:100%}

/* v0.4.9: board */
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(205px,1fr);gap:14px;overflow-x:auto;padding:6px 0 18px;align-items:start}
.bcol{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;min-height:120px;transition:border-color .1s}
.bcol.over{border-color:var(--accent);background:var(--accent-soft)}
.bhead{display:flex;align-items:center;gap:8px;padding:2px 4px}
.bhead .bcount{margin-left:auto;font-weight:500}
.bcards{display:flex;flex-direction:column;gap:10px;min-height:40px}
.bcard{display:flex;flex-direction:column;gap:10px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:12px 14px;text-decoration:none;color:var(--text);cursor:grab}
.bcard:hover{border-color:var(--input-border)}
.bcard.unread{border-color:var(--accent)}
.bcard.dragging{opacity:.45}
.btitle{font-weight:700;line-height:1.35}
.bempty{padding:10px;text-align:center;border:1px dashed var(--border);border-radius:10px}
.bcard .key{font-size:12px}

/* v0.6: terugkerende taken */
.rgrid2{display:grid;grid-template-columns:minmax(220px,1fr) 150px 190px 210px 120px 120px;gap:12px;align-items:center;padding:12px 20px;border-top:1px solid var(--line);min-width:1000px}
.rgrid2.head{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-top:0}
.rgrid2.bad{background:rgba(240,68,56,.06)}
.rgrid2.off{opacity:.55}
.pill.ctl-auto{background:var(--accent-soft);color:var(--accent)}

/* v0.6.3: CC */
.ccbox{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cc-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid var(--border);border-radius:14px;font-size:13px;cursor:pointer}
.cc-chip:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}

/* v0.6.4: aankoop */
table.mini{width:100%;border-collapse:collapse;font-size:13px}
table.mini td{padding:4px 0;border-bottom:1px solid var(--line)}
details > summary{list-style:none;cursor:pointer}
details > summary::-webkit-details-marker{display:none}
.pill.st-ok{color:var(--ok)}

/* v0.6.5: zijbalk met icoontjes, groepen, inklappen (pin) en hover */
.layout { display: flex; min-height: 100vh; }
.ico { width: 20px; height: 20px; flex: none; }
nav.side { position: sticky; top: 0; height: 100vh; width: 236px; flex: none; box-sizing: border-box; background: var(--surface);
  border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  transition: width .18s ease; z-index: 30; }
nav.side .side-top { display: flex; align-items: center; height: 36px; padding: 0 4px 10px; }
nav.side .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
nav.side .brand-q { width: 28px; height: 28px; flex: none; border-radius: 6px; }
nav.side .brand-full { height: 22px; }
nav.side .brand span { color: var(--muted); font-weight: 700; border-left: 1px solid var(--border); padding-left: 10px; }
html:not(.side-col) nav.side .brand-q, html.side-col.side-peek nav.side .brand-q { display: none; }
.side-pin { margin-left: auto; border: 0; background: transparent; color: var(--muted); padding: 5px; border-radius: 6px; cursor: pointer; display: flex; }
.side-pin:hover { color: var(--text); background: var(--surface2); }
html:not(.side-col) .side-pin { color: var(--accent); }
nav.side a { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; box-sizing: border-box; padding: 0 10px;
  border-radius: 8px; text-decoration: none; color: var(--sub); white-space: nowrap; }
nav.side a .ico { color: var(--muted); }
nav.side a:hover { background: var(--surface2); color: var(--text); }
nav.side a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
nav.side a.active .ico { color: var(--accent); }
nav.side a .badge { font-size: 12px; font-weight: 700; margin-left: auto; }
nav.side a .badge + .badge, nav.side a .pip + .badge { margin-left: 6px; }
nav.side a .badge.late { color: var(--danger); }
nav.side .side-new { background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 6px; }
nav.side .side-new .ico { color: var(--on-accent); }
nav.side .side-new:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.05); }
.side-grp { position: relative; height: 18px; margin: 12px 0 4px; padding-left: 12px; font-size: 11px; line-height: 18px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 6px 6px; min-height: 44px; }
.me-av { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--avatar); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; overflow: hidden; }
.me-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me-txt { display: flex; flex-direction: column; font-size: 12px; line-height: 1.45; min-width: 0; white-space: nowrap; }
.me-txt strong { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.me-txt a { color: var(--accent); text-decoration: none; }
.pip { display: none; position: absolute; top: 7px; left: 26px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--surface); }
.pip.red { background: #F04438; } .pip.amber { background: var(--accent); }
/* ingeklapt: enkel icoontjes; alles behoudt zijn hoogte zodat icoontjes niet verspringen */
html.side-col nav.side { width: 60px; }
html.side-col:not(.side-peek) nav.side .lbl { visibility: hidden; }
html.side-col:not(.side-peek) nav.side .pip { display: block; }
html.side-col:not(.side-peek) .side-grp { color: transparent; }
html.side-col:not(.side-peek) .side-grp::after { content: ""; position: absolute; left: 12px; top: 9px; width: 18px; border-top: 1px solid var(--input-border); }
html.side-col:not(.side-peek) nav.side .brand-full, html.side-col:not(.side-peek) nav.side .brand span { display: none; }
/* hover: zweeft open over de pagina, de pagina schuift niet mee */
html.side-col .layout { padding-left: 60px; }
html.side-col nav.side { position: fixed; left: 0; top: 0; }
html.side-col.side-peek nav.side { width: 236px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
/* gsm / tablet */
.side-burger { display: none; }
@media (max-width: 760px) {
  html.side-col .layout { padding-left: 0; }
  nav.side, html.side-col nav.side { position: fixed; left: 0; top: 0; width: 236px; transform: translateX(-100%); transition: transform .18s ease; }
  html.side-open nav.side { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  html.side-col:not(.side-peek) nav.side .lbl { visibility: visible; }
  html.side-col:not(.side-peek) nav.side .pip { display: none; }
  .side-pin { display: none; }
  .side-burger { display: flex; position: fixed; top: 10px; left: 10px; z-index: 40; border: 1px solid var(--border); background: var(--surface);
    color: var(--text); border-radius: 8px; padding: 7px; }
  main { padding-top: 56px; }
  nav.side .side-top { padding-left: 48px; }
}
/* tabs op de ticketpagina */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; text-decoration: none; color: var(--sub); font-size: 13px; }
.tabs a .ico { width: 16px; height: 16px; }
.tabs a.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.tabs a .n { font-size: 11px; opacity: .8; }
nav.side .me-txt a { display: inline; height: auto; padding: 0; border-radius: 0; color: var(--accent); }
nav.side .me-txt a:hover { background: none; text-decoration: underline; }

/* v0.6.7: app op de gsm + delen */
.small { font-size: 12px; }
.share-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.share-form .f { display: flex; flex-direction: column; gap: 6px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 17px; color: var(--sub); cursor: pointer; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.share-files li { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); }
.share-files img, .share-files .file-ic { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.share-files .file-ic { display: flex; align-items: center; justify-content: center; background: var(--avatar); font-size: 11px; font-weight: 700; color: var(--sub); }
.share-files .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-files .btn { height: 32px; padding: 0 10px; }
.share-go { justify-content: center; height: 46px; font-size: 15px; }
.fab { display: none; }
@media (max-width: 760px) {
  .share-form { padding: 14px; }
  .share-go { position: sticky; bottom: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
  .share-form input, .share-form select, .share-form textarea { font-size: 16px; } /* geen zoom op iOS/Android */
  .fab { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 54px; height: 54px; border-radius: 27px;
    align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
  .fab .ico { width: 26px; height: 26px; }
}
@media (display-mode: standalone) { .side-foot #pwa-install { display: none; } }
[hidden] { display: none !important; }
/* v0.6.9: tekstvak met opmaak */
.rte { position: relative; display: flex; flex-direction: column; font-weight: 400; }
.rte-tb { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 4px; border: 1px solid var(--input-border); border-bottom: 0;
  border-radius: 8px 8px 0 0; background: var(--surface2); position: sticky; top: 0; z-index: 5; }
.rte-tb button { all: unset; cursor: pointer; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--sub); }
.rte-tb button:hover { background: var(--border); color: var(--text); }
.rte-tb button.on { background: var(--accent-soft); color: var(--accent); }
.rte-tb button:focus-visible { outline: 2px solid var(--accent); }
.rte-tb .ico { width: 18px; height: 18px; }
.rte-sep { width: 1px; height: 20px; background: var(--input-border); margin: 0 4px; }
.rte.no-chk .rte-chk-btn { display: none; }
.rte-link { display: flex; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--input-border); border-bottom: 0; background: var(--surface2); }
.rte-link input { flex: 1; min-width: 0; }
.rte-ed { padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 0 0 8px 8px; background: var(--input); color: var(--text); outline: none; overflow-wrap: anywhere; line-height: 1.5; }
.rte-ed:focus { border-color: var(--accent); }
.rte.empty .rte-ed::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.rte.invalid .rte-ed { border-color: var(--danger); }
.rte.drag .rte-ed { border-color: var(--accent); border-style: dashed; }
.rte-pop { position: absolute; z-index: 30; width: 280px; max-height: 260px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 4px; }
.rte-opt { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.rte-opt.on, .rte-opt:hover { background: var(--accent-soft); }
.rte-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rte-file { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); max-width: 100%; }
.rte-file.inl { border-color: var(--accent); }
.rte-file img, .rte-file .ext { width: 52px; height: 40px; border-radius: 5px; object-fit: cover; flex: none; }
.rte-file .ext { display: flex; align-items: center; justify-content: center; background: var(--avatar); font-size: 11px; font-weight: 700; color: var(--sub); }
.rte-file .nm { font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.rte-file .btn { height: 28px; padding: 0 8px; font-size: 12px; }
.rte-file .btn .ico { width: 14px; height: 14px; }
.rte-add { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed var(--input-border); border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.rte-add:hover { border-color: var(--accent); color: var(--accent); }
.rte-add .ico { width: 20px; height: 20px; }
.rte-draft { margin-top: 4px; }
.rte-draft a { color: var(--accent); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
/* weergave van opgemaakte tekst */
.rt, .pt { overflow-wrap: anywhere; }
.pt { white-space: pre-line; }
.event .body .rt { white-space: normal; }
.rt p { margin: 0 0 6px; }
.rt ul, .rt ol, .rte-ed ul, .rte-ed ol { margin: 4px 0; padding-left: 22px; }
.rt blockquote, .rte-ed blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid var(--accent); color: var(--sub); border-radius: 0; }
.rt code, .rte-ed code { background: var(--surface2); border: 1px solid var(--border); padding: 0 5px; border-radius: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.rt a, .rte-ed a, .pt a { color: var(--accent); }
.rt img, .rte-ed img { display: block; max-width: min(100%, 600px); max-height: 420px; height: auto; border-radius: 6px; border: 1px solid var(--border); margin: 6px 0; }
.rt ul.chk, .rte-ed ul.chk { list-style: none; padding-left: 2px; }
.rt ul.chk > li, .rte-ed ul.chk > li { position: relative; padding-left: 26px; }
.rt ul.chk > li::before, .rte-ed ul.chk > li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 4px; }
.rt ul.chk > li[data-checked="1"]::before, .rte-ed ul.chk > li[data-checked="1"]::before { background: var(--accent); border-color: var(--accent); }
.rt ul.chk > li[data-checked="1"]::after, .rte-ed ul.chk > li[data-checked="1"]::after { content: ""; position: absolute; left: 7px; top: 5px; width: 4px; height: 8px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rt ul.chk > li[data-checked="1"], .rte-ed ul.chk > li[data-checked="1"] { color: var(--muted); text-decoration: line-through; }
.rte-ed ul.chk > li::before { cursor: pointer; }
.ev-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ev-atts img { width: 88px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
@media (max-width: 760px) {
  .rte-tb { flex-wrap: nowrap; overflow-x: auto; top: 50px; }
  .rte-tb button { flex: none; width: 36px; height: 36px; }
  .rte-ed { font-size: 16px; }
}

/* v0.7.1: tijdlijn back-ups */
.bt-card { overflow: hidden; }
.bt-grid { stroke: var(--line); }
.bt-tick { fill: var(--muted); font-size: 10px; }
.bt-name { fill: var(--text); font-size: 12.5px; font-weight: 600; }
.bt-sub { fill: var(--muted); font-size: 10.5px; }
.bt-track { stroke: var(--border); stroke-width: 6; stroke-linecap: round; }
.bt-run { stroke: var(--surface); stroke-width: 1.5; cursor: pointer; }
.bt-nextc { fill: none; stroke: var(--muted); stroke-dasharray: 2 2; }
.bt-now { stroke: var(--accent); stroke-dasharray: 3 3; }
.bt-nowt { fill: var(--accent); font-size: 10px; }
.bt-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface2); border: 1px solid var(--input-border); border-radius: 8px; padding: 7px 9px; font-size: 12px; max-width: 250px; }
.bt-legend { gap: 14px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.bt-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bt-dot { width: 9px; height: 9px; border-radius: 5px; display: inline-block; }
.bt-dot.bt-next { border: 1.5px dashed var(--muted); width: 8px; height: 8px; }
.bt-hatch { width: 16px; height: 9px; display: inline-block; border-radius: 2px; background: repeating-linear-gradient(45deg, rgba(240,68,56,.45) 0 3px, transparent 3px 6px); }
.bt-nav { width: 32px; justify-content: center; font-size: 16px; }

/* v0.7.4: apparaten */
.asset-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.asset-link { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 12px; color: var(--sub); text-decoration: none; background: var(--surface2); white-space: nowrap; }
.asset-link:hover { border-color: var(--accent); color: var(--accent); }
.asset-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.asset-row:first-of-type { border-top: 0; }
.asset-card { display: flex; flex-direction: column; gap: 10px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.asset-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }

/* v0.8: voorstel van Claude */
.sugg { display: flex; flex-direction: column; gap: 10px; border-color: rgba(253,195,45,.55); background: linear-gradient(0deg, var(--surface), var(--surface)); }
.sugg-sum { color: var(--text); }
.sugg-grid { display: flex; flex-direction: column; gap: 6px; }
.sugg-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); cursor: pointer; }
.sugg-opt input { height: auto; margin-top: 3px; }
.sugg-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sugg-items, .sugg-text { white-space: pre-line; font-size: 13px; color: var(--sub); }
.sugg-text { max-height: 220px; overflow: auto; border-left: 3px solid var(--accent); padding-left: 8px; margin-top: 4px; }
.sugg-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; margin-left: 6px; }
