/* AIBirds-platform – zelfde huisstijl als aibirds.nl (licht, zacht, ronde kaarten, vogels) */

@font-face { font-family: "Jakarta"; src: url("../fonts/pjs-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/pjs-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/pjs-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/pjs-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/pjs-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--ink: #0d1b3e; --ink-2: #2b3a5c; --muted: #5b6b8c; --line: #e4eaf5; --line-2: #eef2fa;
	--bg: #f5f8fe; --card: #ffffff;
	--primary: #2f6df6; --primary-dark: #1f56d6; --primary-soft: #e8f0ff;
	--grad: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 45%, #8b2fe0 100%);
	--red: #d92d20; --red-soft: #fdecea;
	--blue: #3b82f6;   --blue-soft: #e6f0ff;   --blue-ink: #1f5fcf;
	--pink: #ec4899;   --pink-soft: #fde8f3;   --pink-ink: #c0306f;
	--yellow: #f5a524; --yellow-soft: #fff4dc; --yellow-ink: #a8670a;
	--green: #22a35a;  --green-soft: #e3f6ea;  --green-ink: #1b7f46;
	--purple: #8b5cf6; --purple-soft: #efe9fe; --purple-ink: #6a3fd1;
	--orange: #f26b2c; --orange-soft: #ffece2; --orange-ink: #c2491a;
	--r-sm: 10px; --r: 16px; --r-lg: 24px;
	--shadow: 0 1px 2px rgba(13, 27, 62, .04), 0 6px 24px rgba(13, 27, 62, .06);
	--shadow-lg: 0 2px 4px rgba(13, 27, 62, .05), 0 18px 48px rgba(13, 27, 62, .14);
	--side-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); word-spacing: .04em; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h2 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
code { font-size: .86em; background: var(--line-2); padding: .1em .35em; border-radius: 6px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.grow { flex: 1; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(47, 109, 246, .45); outline-offset: 2px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Knoppen en formulieren ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .7em 1.15em; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .92rem; line-height: 1.2; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; color: var(--ink); background: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(47, 109, 246, .25); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn--ghost { border-color: var(--line); background: #fff; }
.btn--danger { color: var(--red); }
.btn--sm { padding: .45em .8em; font-size: .84rem; border-radius: 10px; }
.btn--icon { padding: .5em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.form { display: grid; gap: 12px; }
.form--compact { gap: 8px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; font-size: .93rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6em .75em; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 109, 246, .15); }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 120px; }
.row--end { justify-content: flex-end; }
.row--end > * { flex: 0 0 auto; }
.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.inline-form--top { margin-top: 14px; }
.inline-form select, .inline-form input { width: auto; }
.hp { position: absolute; left: -9999px; }
fieldset.days { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
fieldset.days legend { font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.chip-check { display: inline-flex; position: relative; }
.chip-check input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.chip-check span { padding: .45em .8em; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; text-transform: capitalize; cursor: pointer; }
.chip-check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid rgba(47, 109, 246, .4); }

.pill { display: inline-block; padding: .18em .6em; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--green-soft); color: var(--green-ink); vertical-align: middle; }
.pill--muted { background: var(--line-2); color: var(--muted); }

/* ---------- App-shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side__logo img { width: 128px; margin: 0 6px; }
.side__tenant { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0 8px; margin-top: -6px; }
.side__nav { display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 10px; padding: .62em .8em; border-radius: 12px; color: var(--ink-2); font-weight: 600; }
.side__nav a:hover { background: var(--bg); color: var(--ink); }
.side__nav a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.side__label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); padding: 0 8px 4px; }
.side__birds { display: grid; gap: 4px; margin-top: 4px; }
.side-bird { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.side-bird__img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.side-bird__name { flex: 1; }
.side-bird__state { font-size: .66rem; font-weight: 800; padding: .15em .5em; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); }
.side-bird__state--soon { background: var(--line-2); color: var(--muted); }
.side-bird:not(.is-active) { opacity: .62; }
.side-bird.is-active { background: var(--blue-soft); }
.side__foot { margin-top: auto; display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.side__user { flex: 1; display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-weight: 600; font-size: .88rem; padding: .5em; border-radius: 10px; }
.side__user:hover, .side__logout:hover { background: var(--bg); }
.side__logout { color: var(--muted); padding: .5em; border-radius: 10px; }

.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 26px; background: rgba(245, 248, 254, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top__menu { display: none; border: 0; background: #fff; border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.ask { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 8px; box-shadow: var(--shadow); }
.ask:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 109, 246, .14), var(--shadow); }
.ask__bird { width: 34px; height: 34px; border-radius: 50%; }
.ask input { border: 0; box-shadow: none !important; padding: .4em 0; font-size: .95rem; }
.ask__go { border: 0; background: var(--primary); color: #fff; border-radius: 12px; padding: 9px; cursor: pointer; display: grid; place-items: center; }
.ask__go:hover { background: var(--primary-dark); }
.top__actions { margin-left: auto; }
.main { padding: 8px 26px 40px; width: 100%; max-width: 1400px; }

.flash { display: grid; gap: 8px; margin-bottom: 14px; }
.flash__item { padding: 11px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: .9rem; }
.flash__item--success { background: var(--green-soft); color: var(--green-ink); }
.flash__item--warning { background: var(--yellow-soft); color: var(--yellow-ink); }
.flash__item--error { background: var(--red-soft); color: var(--red); }
.flash__item .copy-row { margin-top: 8px; }

.toast { position: fixed; z-index: 60; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.toast[hidden] { display: none; }
.toast img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.toast ul { margin: 4px 0 0; padding-left: 18px; font-weight: 500; }

/* ---------- Kaarten en algemene blokken ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card__title { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin: 0 0 12px; }
.card__head .card__title { margin: 0; }
.card--accent { background: linear-gradient(160deg, #fff 0%, #f3f7ff 100%); }
.link-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .86rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.page-head p { max-width: 70ch; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2--wide { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
.empty { display: flex; gap: 14px; align-items: center; color: var(--muted); padding: 10px 0; }
.empty__bird { width: 64px; height: 64px; flex: none; }
.empty p { margin: 0; }
.copy-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--bg); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; align-items: center; margin: 10px 0 14px; }
.kv dt { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.kv dd { margin: 0; min-width: 0; }
details > summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); font-size: .9rem; margin: 6px 0; }
.steps-small { padding-left: 20px; font-size: .9rem; }
.steps-small li { margin-bottom: 4px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl td { padding: 6px 4px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.explain { display: flex; gap: 12px; align-items: flex-start; background: var(--orange-soft); border-radius: var(--r); padding: 14px; margin-top: 16px; }
.explain__bird { width: 52px; height: 52px; flex: none; }
.explain p { margin: 0; }
.dot-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; text-transform: uppercase; }

/* ---------- Vandaag ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 14px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--blue-soft) 0%, transparent 70%); }
.hello__date { text-transform: capitalize; font-weight: 700; color: var(--primary); margin: 0 0 4px; font-size: .9rem; }
.hello h1 { margin-bottom: 6px; }
.hello p { margin: 0; }
.hello__bird { position: relative; z-index: 1; flex: none; }
.hello__img { width: 104px; height: 104px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 18px; }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; color: var(--ink); display: grid; gap: 3px; box-shadow: var(--shadow); }
.week-day:hover { border-color: var(--primary); color: var(--ink); }
.week-day.is-today { border-color: var(--primary); background: var(--primary-soft); }
.week-day.is-off { opacity: .55; }
.week-day__name { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.week-day__num { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.week-day__meta { font-size: .72rem; color: var(--muted); }
.load { height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.load__bar { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.load__bar.is-busy { background: var(--yellow); }
.load__bar.is-full { background: var(--orange); }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--bg); border-left: 4px solid var(--blue); }
.tl__time { width: 52px; flex: none; font-weight: 800; font-size: .95rem; display: grid; line-height: 1.15; }
.tl__time small { font-weight: 600; color: var(--muted); font-size: .76rem; }
.tl__bird { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #fff; }
.tl__body { flex: 1; display: grid; min-width: 0; }
.tl__body strong { overflow: hidden; text-overflow: ellipsis; }
.tl__body small { color: var(--muted); }
.tl--task { background: #fff; border: 1px dashed var(--line); border-left: 4px dashed var(--blue); }
.tl.is-risk { border-left-color: var(--red); background: var(--red-soft); }
.tl--blue { border-left-color: var(--blue); } .tl--pink { border-left-color: var(--pink); } .tl--yellow { border-left-color: var(--yellow); }
.tl--green { border-left-color: var(--green); } .tl--purple { border-left-color: var(--purple); } .tl--orange { border-left-color: var(--orange); }
.tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; transition: all .15s; }
.tick .ico { width: 16px; height: 16px; }
.tick:hover { border-color: var(--green); color: var(--green); }
.tick.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.note .ico { margin-top: 2px; color: var(--primary); }
.note--risk .ico { color: var(--red); }
.note--ok .ico { color: var(--green); }
.note--muted { color: var(--muted); }
.tomorrow { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; display: grid; gap: 2px; }
.tomorrow .side__label { padding: 0 0 4px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: flex; gap: 10px; align-items: center; font-size: .87rem; }
.feed li > span { flex: 1; display: grid; min-width: 0; }
.feed small { color: var(--muted); font-size: .76rem; }
.feed__bird { width: 30px; height: 30px; flex: none; }

/* ---------- Taken ---------- */
.task-add { display: flex; gap: 8px; flex-wrap: wrap; }
.task-add__title { flex: 3 1 260px; }
.task-add select, .task-add input[type="datetime-local"] { flex: 1 1 110px; width: auto; }
.task-group { margin-bottom: 18px; }
.task-group__title { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 0 0 8px 4px; }
.task-group__title .count { background: var(--line-2); color: var(--muted); border-radius: 999px; padding: .05em .55em; font-size: .78rem; }
.task-group--risk .task-group__title { color: var(--red); }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); }
.task.is-risk { border-color: #f5b7b1; background: #fffafa; }
.task.is-done { opacity: .6; }
.task.is-done strong { text-decoration: line-through; }
.task__bird { width: 34px; height: 34px; flex: none; }
.task__body { flex: 1; min-width: 0; display: grid; }
.task__body small { color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.task__body small .ico { width: 13px; height: 13px; }
.task__notes pre { white-space: pre-wrap; font: inherit; font-size: .84rem; color: var(--ink-2); background: var(--bg); padding: 8px 10px; border-radius: 10px; margin: 4px 0 0; }
.task__actions { display: flex; gap: 6px; }
.prio { font-size: .72rem; font-weight: 800; padding: .2em .6em; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.prio--urgent { background: var(--red-soft); color: var(--red); }
.prio--high { background: var(--orange-soft); color: var(--orange-ink); }
.prio--normal { background: var(--blue-soft); color: var(--blue-ink); }

/* ---------- Boeken / koppelingen ---------- */
.bt.is-off { opacity: .7; }
.embed { margin-top: 6px; }

/* ---------- Agenda ---------- */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.cal-bar__nav, .cal-bar__tools { display: flex; align-items: center; gap: 8px; }
.cal-bar__title { margin: 0 0 0 8px; font-size: 1.35rem; text-transform: capitalize; }
.cal-bar__tools select { width: auto; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .85rem; padding: .45em .85em; border-radius: 9px; cursor: pointer; color: var(--muted); }
.seg button.is-on { background: var(--primary); color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend__img { width: 22px; height: 22px; }
.legend i { width: 18px; height: 12px; border-radius: 4px; display: inline-block; }
.legend--task i { border: 2px dashed var(--blue); background: #fff; }
.legend--pinned i { background: var(--blue-soft); border: 2px solid var(--blue); }

.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.cal__loading { padding: 40px; text-align: center; color: var(--muted); }
.cal__scroll { overflow: auto; max-height: calc(100vh - 230px); }
.cal__head { display: grid; position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.cal__headcell { padding: 10px 8px; text-align: center; border-left: 1px solid var(--line-2); }
.cal__headcell span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal__headcell strong { font-size: 1.3rem; line-height: 1.1; }
.cal__headcell.is-today strong { color: #fff; background: var(--primary); border-radius: 50%; width: 36px; height: 36px; display: inline-grid; place-items: center; }
.cal__headcell small { display: block; font-size: .7rem; color: var(--muted); }
.cal__allday { display: grid; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 0; }
.cal__allday > div { border-left: 1px solid var(--line-2); padding: 3px; display: grid; gap: 3px; }
.cal__body { display: grid; position: relative; }
.cal__times { position: relative; }
.cal__time { position: absolute; right: 8px; font-size: .72rem; color: var(--muted); transform: translateY(-50%); font-weight: 600; }
.cal__col { position: relative; border-left: 1px solid var(--line-2); }
.cal__col.is-today { background: linear-gradient(180deg, rgba(232, 240, 255, .45), rgba(232, 240, 255, .2)); }
.cal__hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); }
.cal__off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f7f9fd 0 6px, #f1f4fa 6px 12px); }
.cal__lunch { position: absolute; left: 0; right: 0; background: rgba(245, 165, 36, .07); border-top: 1px dashed rgba(245, 165, 36, .35); border-bottom: 1px dashed rgba(245, 165, 36, .35); }
.cal__lunch span { font-size: .66rem; color: var(--yellow-ink); padding: 0 6px; font-weight: 700; }
.cal__now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--red); z-index: 3; }
.cal__now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.ev { position: absolute; left: 3px; right: 3px; border-radius: 10px; padding: 4px 6px 4px 30px; font-size: .76rem; line-height: 1.25; overflow: hidden; cursor: pointer; z-index: 2; border: 1px solid transparent; border-left-width: 4px; box-shadow: 0 1px 2px rgba(13, 27, 62, .06); touch-action: none; user-select: none; }
.ev:hover { z-index: 5; box-shadow: var(--shadow-lg); }
.ev__bird { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.ev__title { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__time { opacity: .8; }
.ev--blue { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.ev--pink { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-ink); }
.ev--yellow { background: var(--yellow-soft); border-color: var(--yellow); color: var(--yellow-ink); }
.ev--green { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.ev--purple { background: var(--purple-soft); border-color: var(--purple); color: var(--purple-ink); }
.ev--orange { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); }
.ev--task { background: #fff; border-style: dashed; }
.ev--task.ev--pinned { border-style: solid; }
.ev--task.is-risk { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.ev--task.is-done { opacity: .5; text-decoration: line-through; }
.ev--block { background: repeating-linear-gradient(135deg, #f1f4fa 0 6px, #e9eef7 6px 12px); border-color: #b9c3d6; color: var(--ink-2); }
.ev--short .ev__time { display: none; }
.ev--short { padding-top: 1px; padding-bottom: 1px; font-size: .7rem; }
.ev--short .ev__bird { width: 14px; height: 14px; top: 1px; left: 8px; }
.ev.is-dragging { opacity: .85; box-shadow: var(--shadow-lg); z-index: 10; }
.ev__resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.ev__who { position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; }
.ghost { position: absolute; left: 3px; right: 3px; border-radius: 10px; background: rgba(47, 109, 246, .12); border: 2px dashed var(--primary); z-index: 1; pointer-events: none; }

.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-month__head { padding: 8px; text-align: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-month__day { min-height: 112px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.cal-month__day:nth-child(7n + 1) { border-left: 0; }
.cal-month__day.is-other { background: #fafbfe; color: var(--muted); }
.cal-month__day.is-today .cal-month__num { background: var(--primary); color: #fff; }
.cal-month__num { font-weight: 800; font-size: .85rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.cal-month__item { display: flex; align-items: center; gap: 4px; font-size: .72rem; padding: 2px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-month__item img { width: 14px; height: 14px; flex: none; }
.cal-month__more { font-size: .7rem; color: var(--muted); font-weight: 700; }

/* ---------- Dialogen ---------- */
.dlg { border: 0; padding: 0; background: none; max-width: min(640px, calc(100vw - 24px)); width: 100%; }
.dlg::backdrop { background: rgba(13, 27, 62, .35); backdrop-filter: blur(2px); }
.dlg__card { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; max-height: calc(100vh - 40px); overflow-y: auto; }
.dlg__head { display: flex; gap: 12px; align-items: center; }
.dlg__head h2 { margin: 0; font-size: 1.15rem; }
.dlg__head p { margin: 0; }
.dlg__head > div { flex: 1; }
.dlg__bird { width: 48px; height: 48px; flex: none; }
.dlg__x { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--muted); align-self: flex-start; }
.dlg__foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sugs { display: grid; gap: 8px; }
.sugs__intro { font-size: .86rem; color: var(--muted); margin: 0; }
.sug { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; font: inherit; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.sug:hover { border-color: var(--primary); transform: translateY(-1px); }
.sug:first-of-type { border-color: var(--primary); background: var(--primary-soft); }
.sug__when { min-width: 120px; font-weight: 800; color: var(--ink); text-transform: capitalize; }
.sug__when small { display: block; font-weight: 600; color: var(--muted); }
.sug__why { flex: 1; font-size: .82rem; color: var(--ink-2); margin: 0; padding-left: 16px; }
.sug__badge { font-size: .68rem; font-weight: 800; background: var(--primary); color: #fff; padding: .2em .55em; border-radius: 999px; }
.ai-reply { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-soft); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; color: var(--ink); }
.ai-reply img { width: 32px; height: 32px; flex: none; }

/* ---------- Publiek: inloggen en boeken ---------- */
.public { min-height: 100vh; background: radial-gradient(900px 500px at 85% -10%, #e6f0ff 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, #efe9fe 0%, transparent 60%), var(--bg); }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 32px 16px; flex-wrap: wrap; }
.auth__card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.auth__logo { width: 120px; margin-bottom: 14px; }
.auth__tenant { font-weight: 700; color: var(--muted); font-size: .85rem; margin: -6px 0 14px; }
.auth__links { margin: 14px 0 0; font-size: .88rem; }
.auth__art { max-width: 320px; text-align: center; color: var(--ink-2); }
.auth__art img { width: 220px; margin: 0 auto 10px; }

.book-wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 20px; }
.book.is-embed { background: transparent; min-height: 0; }
.book.is-embed .book-wrap { padding: 4px; }
.book-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.book-head h1 { margin: 0; }
.book-head__bird { width: 60px; height: 60px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.book-info__title { font-size: 1.3rem; }
.book-meta { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.book-step { font-size: .95rem; margin: 18px 0 8px; }
.book-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.book-day { flex: none; width: 66px; display: grid; justify-items: center; gap: 0; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 4px; cursor: pointer; font: inherit; color: var(--ink); }
.book-day span, .book-day small { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.book-day strong { font-size: 1.25rem; }
.book-day.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.book-day.is-on span, .book-day.is-on small { color: rgba(255, 255, 255, .85); }
.book-times { display: flex; flex-wrap: wrap; gap: 8px; }
.book-times p { width: 100%; margin: 0; }
.book-time input { position: absolute; opacity: 0; }
.book-time span { display: inline-block; padding: .55em 1em; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; cursor: pointer; background: #fff; color: var(--ink); }
.book-time input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.book-time input:focus-visible + span { outline: 3px solid rgba(47, 109, 246, .4); }
.book-done { text-align: center; }
.book-done__bird { width: 130px; margin: 0 auto 8px; }
.book-foot { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 14px; }

/* ---------- Responsief ---------- */
@media (max-width: 1100px) {
	.today-grid, .grid-2, .grid-2--wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.shell { grid-template-columns: 1fr; }
	.side { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
	body.menu-open .side { transform: none; }
	.top__menu { display: block; }
	.top { padding: 10px 16px; }
	.main { padding: 6px 16px 32px; }
	.top__actions .btn span { display: none; }
	.week-strip { grid-template-columns: repeat(7, minmax(76px, 1fr)); overflow-x: auto; }
	.cal__scroll { max-height: none; }
	.cal-bar__title { font-size: 1.05rem; margin-left: 4px; }
	.cal-legend { display: none; }
}
@media (max-width: 600px) {
	.hello { padding: 18px; }
	.hello__img { width: 72px; height: 72px; }
	.ask__bird { display: none; }
	.sug { flex-wrap: wrap; }
	.sug__why { padding-left: 0; }
	.kv { grid-template-columns: 1fr; }
	.task { flex-wrap: wrap; }
	.cal-month__day { min-height: 76px; }
	.cal-month__item span { display: none; }
}

/* ---------- Vogelkleuren in de zijbalk ---------- */
.side-bird--pink.is-active { background: var(--pink-soft); }
.side-bird--pink .side-bird__state { background: var(--pink-soft); color: var(--pink-ink); }
.side-bird--pink.is-active .side-bird__state { background: #fff; }
.nav-count { margin-left: auto; background: var(--pink); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .1em .55em; }

/* ---------- Mail Bird (Outlook-indeling) ---------- */
body.is-mail .main { max-width: none; padding-bottom: 0; }
.mail { display: grid; grid-template-columns: 230px minmax(300px, 400px) 1fr; gap: 0; height: calc(100vh - 92px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mail-nav { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; background: #fcfdff; }
.mail-nav__new { background: var(--pink); box-shadow: 0 6px 18px rgba(236, 72, 153, .25); }
.mail-nav__new:hover { background: #d63a85; }
.mail-views, .mail-acc { display: grid; gap: 1px; }
.mail-views a, .mail-acc a { display: flex; align-items: center; gap: 8px; padding: .45em .6em; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.mail-views a span, .mail-acc a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-views a:hover, .mail-acc a:hover { background: var(--bg); }
.mail-views a.is-on, .mail-acc a.is-on { background: var(--pink-soft); color: var(--pink-ink); }
.mail-views b, .mail-acc b { font-size: .74rem; color: var(--ink); }
.mail-views b:empty { display: none; }
.mail-views__alarm { color: var(--red) !important; }
.mail-views__alarm b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 .5em; }
.mail-views__bird { width: 20px; height: 20px; }
.mail-acc { border-top: 1px solid var(--line); padding-top: 10px; }
.mail-acc__name { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--muted); padding: 0 .6em 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-acc__name i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mail-acc__err { font-size: .74rem; color: var(--red); padding: 0 .6em 4px; }
.mail-acc small { font-size: .7rem; color: var(--muted); padding: 2px .6em; }
.mail-nav__foot { margin-top: auto; display: flex; gap: 6px; }
.mail-nav__foot .btn:first-child { flex: 1; }

.mail-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; min-width: 0; }
.mail-list__head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.mail-list__head h1 { font-size: 1.15rem; margin: 0; }
.alarm-box { margin: 10px 10px 4px; border: 1px solid #f9c6c2; background: linear-gradient(180deg, #fff6f5, #fff); border-radius: var(--r); padding: 8px; }
.alarm-box__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; font-size: .86rem; color: var(--red); }
.alarm-box__head .muted { margin-left: auto; }
.alarm-box__bird { width: 26px; height: 26px; }
.mail-items { list-style: none; margin: 0; padding: 0; }
.mail-empty { padding: 24px 16px; color: var(--muted); text-align: center; }
.mi { display: flex; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 12px 10px 14px; cursor: pointer; position: relative; }
.mi:hover { background: var(--bg); }
.mi.is-on { background: var(--pink-soft); }
.mi.is-unread::before { content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.mi.is-unread .mi__from, .mi.is-unread .mi__subj { font-weight: 800; }
.alarm-box .mi { border-radius: 10px; border-bottom: 0; background: #fff; margin-bottom: 4px; }
.alarm-box .mi.is-on { background: var(--pink-soft); }
.mi__ava { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; flex: none; }
.mi__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mi__top { display: flex; gap: 8px; align-items: baseline; }
.mi__from { flex: 1; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi__date { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.mi__subj { font-size: .86rem; display: flex; align-items: center; min-width: 0; }
.mi__subjtext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi.is-unread .mi__subjtext { font-weight: 800; }
.mi__flag, .mi__clip { display: inline-flex; vertical-align: -2px; margin-right: 3px; color: var(--muted); }
.mi__flag { color: var(--red); }
.mi__flag .ico, .mi__clip .ico { width: 14px; height: 14px; }
.is-flagged { color: var(--red); border-color: #f5b7b1; }
.mi__snip { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mi__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.tag { font-size: .66rem; font-weight: 800; padding: .12em .5em; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.tag--alarm { background: var(--red-soft); color: var(--red); }
.tag--offerte, .tag--klant { background: var(--yellow-soft); color: var(--yellow-ink); }
.tag--factuur { background: var(--purple-soft); color: var(--purple-ink); }
.tag--afspraak, .tag--event { background: var(--blue-soft); color: var(--blue-ink); }
.tag--reply { background: var(--pink-soft); color: var(--pink-ink); }
.mail-more { margin: 10px auto 16px; }

.mail-read { overflow-y: auto; min-width: 0; padding: 0 22px 30px; }
.mail-read__empty { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); max-width: 360px; margin: 0 auto; }
.mail-read__bird { width: 150px; margin-bottom: 8px; }
.rd__bar { position: sticky; top: 0; z-index: 2; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rd__back { display: none; }
.rd__head h2 { font-size: 1.3rem; margin: 0 0 10px; }
.rd__from { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: .9rem; }
.rd__from .mi__ava { width: 40px; height: 40px; }
.mb-card { display: flex; gap: 12px; align-items: flex-start; background: var(--pink-soft); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; font-size: .9rem; }
.mb-card img { width: 36px; height: 36px; flex: none; }
.mb-card > div { flex: 1; }
.mb-card p { margin: 2px 0 0; }
.mb-card.is-alarm { background: var(--red-soft); }
.mb-card.is-alarm strong { color: var(--red); }
.mb-card--event { background: var(--blue-soft); }
.mb-warn { color: var(--red); font-weight: 700; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.att { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 6px; color: var(--ink); font-size: .82rem; max-width: 260px; }
.att:hover { border-color: var(--primary); color: var(--ink); }
.att__ico { width: 34px; height: 34px; border-radius: 8px; background: var(--purple-soft); color: var(--purple-ink); font-weight: 800; font-size: .66rem; display: grid; place-items: center; flex: none; }
.att span:last-child { display: grid; min-width: 0; }
.att strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { color: var(--muted); }
.rd__imgs { font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.link-btn { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.rd__body { width: 100%; border: 0; min-height: 200px; display: block; }
.thread { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.thread ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.thread button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink); }
.thread button span { color: var(--muted); }
.dlg--wide { max-width: min(820px, calc(100vw - 24px)); }
.ai-bar { display: flex; gap: 8px; background: var(--pink-soft); padding: 8px; border-radius: 12px; }
.providers { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.providers legend { font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.provider { display: flex; flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 600; }
.provider input { width: auto; }
.provider:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.provider small { color: var(--muted); font-weight: 500; }
.sig { white-space: pre-wrap; font: inherit; font-size: .84rem; background: var(--bg); padding: 8px 10px; border-radius: 10px; }

@media (max-width: 1200px) {
	.mail { grid-template-columns: 200px minmax(260px, 340px) 1fr; }
}
@media (max-width: 900px) {
	.mail { grid-template-columns: 1fr; height: calc(100vh - 80px); }
	.mail-nav { display: none; }
	.mail-read { display: none; }
	.mail.is-reading .mail-list { display: none; }
	.mail.is-reading .mail-read { display: block; }
	.rd__back { display: inline-flex; }
	.providers { grid-template-columns: 1fr; }
}

/* ---------- Facturen en offertes ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi div { display: grid; }
.kpi span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.kpi strong { font-size: 1.5rem; letter-spacing: -.02em; }
.kpi small { color: var(--muted); }
.kpi__bird { width: 52px; height: 52px; }
.kpi--purple { background: linear-gradient(160deg, #fff, var(--purple-soft)); }
.kpi--orange { background: linear-gradient(160deg, #fff, var(--orange-soft)); }
.kpi--yellow { background: linear-gradient(160deg, #fff, var(--yellow-soft)); }
.kpi__warn { color: var(--red); }
.doc-tabs { margin-bottom: 8px; flex-wrap: wrap; }
.doc-closed { margin-bottom: 12px; font-size: .86rem; }
.card--flush { padding: 0; overflow: auto; }
.docs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.docs th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.docs td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.docs tr:last-child td { border-bottom: 0; }
.docs .num { text-align: right; white-space: nowrap; }
.docs tr.is-overdue { background: #fffafa; }
.docs tr.is-closed { opacity: .6; }
.doc-who { display: flex; gap: 10px; align-items: center; }
.doc-who img { width: 30px; height: 30px; flex: none; }
.doc-who span { display: grid; min-width: 0; }
.doc-who small { color: var(--muted); font-size: .76rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-acts { white-space: nowrap; text-align: right; }
.doc-acts .btn { margin-left: 4px; }
.mb-card--doc { background: var(--purple-soft); }
.attach input { padding: .45em; background: var(--bg); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr; } .doc-acts { white-space: normal; } }

/* ---------- Nieuwsbrieven ---------- */
.nl-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ai-bar--block { align-items: center; margin-bottom: 14px; }
.ai-bar--block .feed__bird { flex: none; }
.nl-sections { display: grid; gap: 12px; }
.nl-sec { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; position: relative; }
.nl-sec legend { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }
.nl-sec__tools { position: absolute; right: 8px; top: -14px; display: flex; gap: 4px; background: #fff; }
.nl-preview { position: sticky; top: 90px; padding: 0; overflow: hidden; background: #f3f5f9; }
.nl-preview__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.nl-preview iframe { width: 100%; min-height: 600px; border: 0; display: block; margin: 0 auto; background: #f3f5f9; transition: max-width .2s; }
@media (max-width: 1100px) { .nl-edit { grid-template-columns: 1fr; } .nl-preview { position: static; } }

/* Inloggen met Microsoft/Google */
.oauth-buttons { display: grid; gap: 10px; margin-bottom: 6px; }
.btn--oauth { justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.btn--oauth:hover { border-color: var(--blue); }
.btn--oauth svg { width: 18px; height: 18px; flex: none; }
.btn--oauth.is-off { opacity: .55; }
.oauth-or { display: flex; white-space: nowrap; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12.5px; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.tag--ok { background: var(--green-soft); color: var(--green-ink); }
.acct h3 { font-size: 15px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.acct { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }

/* Beheer */
.pill--beheer { background: var(--ink); color: #fff; }
.side__nav--beheer { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; min-width: 0; }
.input-suffix span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; background: var(--line-2); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.ok-text { color: var(--green-ink); } .err-text { color: var(--red); }
.beheer-table .doc-who { text-decoration: none; color: inherit; }
.support-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #f5a524; color: #3b2600; font-size: .9rem; }
.support-bar .ico { width: 18px; height: 18px; flex: none; }
.support-bar span { flex: 1; }
.support-bar .btn { background: #3b2600; color: #fff; border: 0; }

/* PWA en telefoon */
.bottom-nav { display: none; }
.side__install { margin-top: auto; }
.mail-list__title { display: flex; align-items: center; gap: 8px; }
.mail-folders-btn, .mail-fab { display: none; }
@media (max-width: 900px) {
	.bottom-nav { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(13, 27, 62, .06); }
	.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none;
		font: inherit; font-size: .68rem; font-weight: 700; color: var(--muted); text-decoration: none; cursor: pointer; }
	.bottom-nav .ico { width: 22px; height: 22px; }
	.bottom-nav .is-active { color: var(--blue); }
	.main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.top__menu { display: none; }
	.mail { height: calc(100vh - 150px - env(safe-area-inset-bottom)); }
	.mail-folders-btn { display: inline-flex; border: 0; background: var(--line-2); border-radius: 10px; padding: 6px; color: var(--ink); cursor: pointer; }
	.mail.is-folders .mail-nav { display: flex; position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(300px, 82vw); box-shadow: var(--shadow-lg); }
	.mail-fab { display: grid; place-items: center; position: fixed; z-index: 41; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 56px; height: 56px;
		border-radius: 18px; border: 0; background: var(--pink); color: #fff; box-shadow: 0 10px 24px rgba(236, 72, 153, .35); cursor: pointer; }
	.mail-fab .ico { width: 26px; height: 26px; }
	.mail.is-reading .mail-fab { display: none; }
	.page-head { flex-wrap: wrap; }
	.docs { display: block; overflow-x: auto; }
	.grid-2, .grid-2--wide { grid-template-columns: 1fr; }
}
@media (display-mode: standalone) { .side__install { display: none; } }
.side__version { font-size: .72rem; color: var(--muted); padding: 0 8px; text-decoration: none; }
.side__version:hover { color: var(--blue); }
.news-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; }

/* ---------- Finance Bird ---------- */
.kpis--4 { grid-template-columns: repeat(4, 1fr); }
.kpi--blue { background: linear-gradient(160deg, #fff, var(--blue-soft, #eaf1ff)); }
.pill--alarm { background: var(--red-soft); color: var(--red); }
.pill--open { background: var(--blue-soft, #eaf1ff); color: var(--blue); }
.fin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.fin-bar select, .fin-bar input { width: auto; min-width: 140px; }
.docs tr[data-href] { cursor: pointer; }
.docs tr[data-href]:hover td { background: #fafcff; }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.fin-side { position: sticky; top: 12px; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fin-klant { margin-bottom: 14px; }
.fin-klant__pick { position: relative; }
.fin-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; display: grid; }
.fin-suggest button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; display: grid; color: var(--ink); }
.fin-suggest button:hover { background: var(--bg); }
.fin-suggest small { color: var(--muted); }
.fin-suggest__new { color: var(--blue) !important; font-weight: 700; }
.fin-klant__card { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--purple-soft); position: relative; }
.fin-klant__card span, .fin-klant__card small { color: var(--ink-2); font-size: .88rem; }
.fin-klant__card .btn { position: absolute; right: 10px; top: 10px; }
.fin-klant__new { margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.fin-lines { margin: 14px 0 6px; display: grid; gap: 6px; }
.fin-line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 76px 100px 34px; gap: 6px; align-items: start; }
.fin-line textarea { resize: vertical; min-height: 40px; }
.fin-line--head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fin-line [data-l-total] { padding-top: 10px; font-weight: 700; }
.fin-totals { margin: 8px 0 14px auto; max-width: 300px; display: grid; gap: 4px; }
.fin-totals div { display: flex; justify-content: space-between; font-size: .92rem; }
.fin-totals__sum { border-top: 2px solid var(--purple, #8b5cf6); padding-top: 6px; font-weight: 800; font-size: 1.05rem !important; }
.fin-public__amount { font-size: 2rem; font-weight: 800; margin: 6px 0 12px; }
.fin-public__amount small { font-size: .9rem; color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) { .kpis--4 { grid-template-columns: 1fr 1fr; } .fin-grid { grid-template-columns: 1fr; } .fin-side { position: static; } }
@media (max-width: 700px) {
	.kpis--4 { grid-template-columns: 1fr; }
	.fin-line--head { display: none; }
	.fin-line { grid-template-columns: 1fr 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
	.fin-line textarea { grid-column: 1 / -1; }
	.fin-line [data-l-total] { grid-column: 1 / 3; }
	.fin-actions { justify-content: flex-start; }
}

/* ---------- Hosting & DNS ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks small { display: block; color: var(--muted); font-size: .84rem; }
.check__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.check--ok .check__dot { background: var(--green, #22a35a); }
.check--warn .check__dot { background: #f5a524; }
.check--error .check__dot { background: var(--red); }
.dns-table { display: grid; gap: 6px; margin-bottom: 10px; }
.dns-row { display: grid; grid-template-columns: 92px 150px minmax(0, 1fr) 84px 34px; gap: 6px; align-items: center; }
.dns-row--head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dns-row--ro { grid-template-columns: 70px 130px minmax(0, 1fr); padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.dns-type { font-weight: 800; color: var(--blue-ink); }
.dns-val { word-break: break-all; color: var(--ink-2); }
.dns-row input[data-k="value"] { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; }
.presets { display: grid; gap: 10px; }
.preset { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.preset small { display: block; color: var(--muted); font-size: .82rem; }
.preset--fix { border-color: #f5a524; background: var(--yellow-soft); }
.preset .btn { justify-self: start; }
.site-card .checks { margin: 6px 0 12px; }
@media (max-width: 700px) { .dns-row { grid-template-columns: 80px 1fr 34px; } .dns-row input[data-k="value"] { grid-column: 1 / -1; } .dns-row input[data-k="ttl"] { display: none; } }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 18px; }
.connect { display: grid; gap: 10px; align-content: start; }
.connect--ok { background: linear-gradient(160deg, #fff, var(--green-soft)); }
.connect__head { display: flex; gap: 12px; align-items: center; }
.connect__head h2 { margin: 0; font-size: 1.05rem; }
.connect__head p { margin: 0; }
.connect__state { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--blue-soft); color: var(--blue-ink); }
.connect--ok .connect__state { background: var(--green, #22a35a); color: #fff; }
.connect-steps { list-style: none; padding: 0; display: grid; gap: 8px; }
.connect-steps small { display: block; margin-top: 2px; }

/* ---------- Sales Bird (klanten) ---------- */
.grow-input { flex: 1; min-width: 200px; }
.crm-list { display: grid; gap: 8px; }
.crm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.crm-row:hover { border-color: var(--yellow, #f5a524); }
.crm-row__main { flex: 1; min-width: 0; display: grid; }
.crm-row__main small, .crm-row__meta small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-row__meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.crm-ava { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; }
.crm-ava--sm { width: 32px; height: 32px; border-radius: 10px; font-size: .75rem; }
.crm-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.crm-head__id { display: flex; gap: 14px; align-items: center; }
.crm-head__id h1 { margin: 0; }
.crm-head .crm-ava { width: 56px; height: 56px; border-radius: 18px; font-size: 1.1rem; }
.crm-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.qbtn { display: grid; justify-items: center; gap: 4px; min-width: 70px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.qbtn .ico { width: 20px; height: 20px; color: var(--yellow-ink, #a86b00); }
.qbtn:hover { border-color: var(--yellow, #f5a524); background: var(--yellow-soft); }
.qbtn.is-off { opacity: .45; }
.crm-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.crm-dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 10px; margin: 0 0 12px; font-size: .88rem; }
.crm-dl dt { color: var(--muted); }
.crm-dl dd { margin: 0; word-break: break-word; }
.crm-note { background: var(--yellow-soft); padding: 8px 10px; border-radius: 10px; font-size: .88rem; }
.crm-contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.crm-contacts button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line-2); background: #fff; border-radius: 12px; padding: 8px; font: inherit; color: inherit; cursor: pointer; }
.crm-contacts small { display: block; color: var(--muted); font-size: .78rem; }
.crm-compose { display: grid; gap: 8px; margin-bottom: 14px; }
.crm-compose textarea { padding-right: 44px; }
.crm-follow { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.crm-follow input { width: auto; }
.row--between { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.mic-btn { position: absolute; right: 6px; top: 6px; }
.mic-btn.is-rec { color: #fff; background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.crm-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tl { display: flex; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line-2); }
.tl__bird { width: 30px; height: 30px; flex: none; }
.tl__body { flex: 1; min-width: 0; }
.tl__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl__head small { color: var(--muted); white-space: nowrap; }
.tl__head a { color: inherit; }
.tl__body p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); white-space: normal; }
.tl--alarm .tl__head strong { color: var(--red); }
.tl__follow { color: var(--yellow-ink, #a86b00); font-weight: 700; }
.crm-deal { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.crm-deal small { color: var(--muted); }
.crm-deal--won { background: var(--green-soft); } .crm-deal--lost { opacity: .6; }
.outcomes { display: flex; flex-wrap: wrap; gap: 6px; }
.outcomes .is-on { background: var(--yellow, #f5a524); color: #fff; }
.seg--sm label { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; }
@media (max-width: 1200px) { .crm-grid { grid-template-columns: 280px minmax(0, 1fr); } .crm-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 800px) {
	.crm-grid { grid-template-columns: 1fr; } .crm-side { grid-template-columns: 1fr; }
	.crm-timeline { order: -1; }
	.crm-quick { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
	.crm-row__meta small { display: none; }
}

/* ---------- Alarmen en meldingen ---------- */
.bell { position: relative; }
.bell__btn { position: relative; }
.bell__btn.has-alerts .ico { color: var(--red); animation: pulse 1.5s infinite; }
.bell__count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.bell__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 92vw); z-index: 60; display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.bell__head { display: flex; justify-content: space-between; align-items: center; }
.al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.al { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.al a { color: inherit; text-decoration: none; display: grid; min-width: 0; }
.al small { color: var(--muted); font-size: .78rem; }
.al--important { border-color: #f5a524; background: var(--yellow-soft); }
.alerts-bar { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, #fff7e6, #fff); border: 1px solid #f5a524; display: grid; gap: 8px; }
.alerts-bar__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #a86b00; }
.al-list--bar { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.crm-tabs { margin-bottom: 6px; }
.crm-tabs a { text-decoration: none; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.col { background: #f7f9fe; border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 8px; min-height: 120px; align-content: start; }
.col header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.col header small { color: var(--muted); }
.col--won { background: var(--green-soft); } .col--lost { background: #f4f4f6; }
.col.is-over { outline: 2px dashed var(--yellow, #f5a524); }
.deal { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; cursor: grab; box-shadow: var(--shadow); }
.deal.is-drag { opacity: .5; }
.deal--stale { border-color: var(--red); }
.deal__rel { font-size: .78rem; color: var(--muted); text-decoration: none; }
.deal__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.deal__move { display: none; }
@media (max-width: 900px) { .board { grid-auto-columns: 82vw; } .deal__move { display: block; font-size: .8rem; padding: 4px 6px; } .deal { cursor: default; } }
.seg a { font-weight: 700; font-size: .85rem; padding: .45em .85em; border-radius: 9px; color: var(--muted); text-decoration: none; }
.seg a.is-on { background: var(--primary); color: #fff; }
.import-table { overflow-x: auto; }
.import-table select { min-width: 140px; font-size: .8rem; padding: 4px 6px; }
.dropzone { display: grid; place-items: center; padding: 30px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; color: var(--muted); }
.dropzone input { max-width: 100%; }
.dup__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.dup__side { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.dup__side small { color: var(--muted); }
@media (max-width: 700px) { .dup__pair { grid-template-columns: 1fr; } }
.seg-count { background: var(--yellow-soft); padding: 10px 12px; border-radius: 12px; margin: 4px 0; }
.crm-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.crm-ai { font-size: .9rem; white-space: normal; }
.qr svg { width: 200px; height: 200px; display: block; margin: 6px 0 10px; }
.codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.code-input { font-size: 1.4rem; letter-spacing: .25em; text-align: center; }

/* App downloaden (/app/) en app-balk op de telefoon */
.appdl { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.appdl__card { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.appdl__card h1 { margin: 6px 0 6px; }
.appdl__card h2 { font-size: 1.02rem; margin: 0 0 10px; }
.appdl__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.appdl__btn { margin: 18px 0 4px; font-size: 1.05rem; padding: 14px 18px; }
.appdl__guide { margin: 18px 0 0; padding: 16px; background: var(--line-2); border-radius: var(--r); }
.appdl__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.appdl__steps li { display: flex; gap: 12px; align-items: center; line-height: 1.45; }
.appdl__num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.appdl__share { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; color: var(--primary); }
.appdl__qr { margin: 18px 0 0; display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r); }
.appdl__qrimg { flex: none; width: 150px; }
.appdl__qrimg svg { width: 150px; height: 150px; }
.appdl__url { font-size: .85rem; word-break: break-all; margin: 0; }
.appdl__done { margin: 18px 0 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: #e9f8ef; color: #17643a; font-weight: 600; }
.appdl__perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.appdl__perks li { display: flex; gap: 10px; align-items: center; }
.appdl__perks .ico { color: var(--primary); flex: none; }
.appdl__host { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.appdl__host input { border: 0; flex: 1; min-width: 0; box-shadow: none; }
.appdl__host span { padding: 0 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.app-banner { display: flex; align-items: center; gap: 10px; margin: 8px 16px 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.app-banner[hidden] { display: none; }
.app-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.app-banner span { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.app-banner small { color: var(--muted); font-size: .78rem; }
.app-banner__close { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
@media (max-width: 560px) { .appdl__card { padding: 22px 18px; } .appdl__qr { flex-direction: column; text-align: center; } }
.app-share { display: flex; gap: 14px; align-items: center; margin: 14px 0; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r); }
.app-share__qr { flex: none; width: 96px; }
.app-share__qr svg { width: 96px; height: 96px; }
.app-share p { margin: 4px 0 0; word-break: break-all; }

/* Gesprekken opnemen */
.qbtn--rec .ico { color: #e11d48; }
.rec-bar { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); width: min(520px, calc(100vw - 24px));
	display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: #e11d48; color: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(225, 29, 72, .35); }
.rec-bar__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: rec-pulse 1.2s ease-in-out infinite; flex: none; }
.rec-bar__txt { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.rec-bar__txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-bar__txt small { opacity: .85; font-size: .75rem; }
.rec-bar__time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
.rec-bar__stop { background: #fff; color: #e11d48; border: 0; font-weight: 800; }
.rec-bar.is-offline { background: #b45309; }
.rec-bar.is-offline .rec-bar__txt small::after { content: ' · geen verbinding, wordt bewaard'; }
@keyframes rec-pulse { 50% { opacity: .35; } }
.rec-consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: #fff4e5; color: #7a4a00; margin: 0; }
.rec-consent .ico { flex: none; margin-top: 2px; }
.rec-tips { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tl__rec { margin: 8px 0 2px; display: grid; gap: 6px; }
.tl__rec audio, .call audio { width: 100%; max-width: 420px; height: 36px; }
.tl__rec--off { color: var(--muted); font-size: .85rem; font-style: italic; }
.tl__rec-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl__sum { margin: 0; padding: 8px 10px; background: var(--line-2); border-radius: 10px; font-size: .88rem; }
.tl__transcript { white-space: pre-wrap; font-size: .85rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 320px; overflow: auto; }
.calls { list-style: none; margin: 0; padding: 0; display: grid; }
.call { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.call:last-child { border-bottom: 0; }
.call__ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.call--missed .call__ico { background: #ffe4e6; color: #e11d48; }
.call--meeting .call__ico { background: #fff1f2; color: #e11d48; }
.call__body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.call__head { display: grid; }
.call__head small { color: var(--muted); }
.call__body p { margin: 0; }
.appdl__after { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.appdl__after p { margin: 10px 0 0; }
.connect--wide { grid-column: 1 / -1; }
.sipnl-map { margin-top: 12px; }
.sipnl-map__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; font-weight: 600; }
@media (max-width: 700px) { .sipnl-map__row { grid-template-columns: 1fr; gap: 4px; } }

/* Teamagenda: wiens agenda je ziet */
.cal-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.cal-people__label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.cal-people__quick { display: inline-flex; gap: 4px; margin-left: auto; }
.cal-people__quick .is-on { background: var(--primary-soft); color: var(--primary-dark); }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
	font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.person__ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-size: .8rem; }
.person__check { display: none; color: var(--c); font-size: .8rem; }
.person.is-on { border-color: var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 8%, #fff); }
.person.is-on .person__ava { background: var(--c); color: #fff; }
.person.is-on .person__check { display: inline; }
.person:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.ev--team { border-left-color: var(--who) !important; padding-right: 24px; }
.ev--team .ev__who, .cal-month__item .ev__who { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: .65rem; font-weight: 800; display: grid; place-items: center; }
.cal-month__item .ev__who { position: static; flex: none; width: 16px; height: 16px; font-size: .6rem; }
.ev--private { background: repeating-linear-gradient(135deg, #f3f5fa 0 8px, #e9edf5 8px 16px) !important; color: var(--muted) !important; border-color: var(--line) !important; cursor: default; }
.ev--private .ev__bird { opacity: .35; }
.legend--team { color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) {
	.cal-people { gap: 6px; }
	.cal-people__label { width: 100%; }
	.cal-people__quick { margin-left: 0; }
	.person { padding: 4px 10px 4px 4px; font-size: .82rem; }
}

/* Agenda op de telefoon: compacte kop, alles op één scherm, 3-dagenweergave, vegen */
@keyframes cal-in-l { from { opacity: .4; transform: translateX(24px); } }
@keyframes cal-in-r { from { opacity: .4; transform: translateX(-24px); } }
.cal.is-swipe-l .cal__body, .cal.is-swipe-l .cal__head { animation: cal-in-l .22s ease-out; }
.cal.is-swipe-r .cal__body, .cal.is-swipe-r .cal__head { animation: cal-in-r .22s ease-out; }
@media (max-width: 700px) {
	.is-agenda .main { padding-top: 2px; }
	.is-agenda .alerts-bar { padding: 8px 10px; gap: 6px; margin-bottom: 8px; border-radius: 12px; }
	.is-agenda .alerts-bar__title { font-size: .68rem; }
	.is-agenda .al-list--bar { grid-template-columns: 1fr; gap: 4px; }
	.is-agenda .al-list--bar .al { padding: 5px 8px; }
	.is-agenda .al-list--bar .al strong { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.is-agenda .al-list--bar .al small { display: none; }
	.is-agenda .al-list--bar .al .btn { padding: 2px 8px; }

	.cal-bar { gap: 8px; margin: 2px 0 8px; }
	.cal-bar__nav { width: 100%; gap: 6px; }
	.cal-bar__nav .btn--icon { width: 36px; height: 36px; padding: 0; }
	.cal-bar__title { flex: 1; min-width: 0; font-size: 1.1rem; margin: 0 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cal-bar__tools { width: 100%; }
	.cal-bar__tools .seg { width: 100%; }
	.cal-bar__tools .seg button { flex: 1; padding: .4em .5em; }

	.cal-people { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -16px 8px; padding: 2px 16px; scrollbar-width: none; }
	.cal-people::-webkit-scrollbar { display: none; }
	.cal-people__label { display: none; }
	.cal-people__quick { margin-left: 0; flex: none; }
	.cal-people__quick .btn { white-space: nowrap; }
	.person { flex: none; padding: 3px 10px 3px 3px; font-size: .8rem; gap: 6px; }
	.person__ava { width: 24px; height: 24px; font-size: .72rem; }

	.cal { border-radius: 16px; }
	.cal__headcell { padding: 6px 2px; }
	.cal__headcell strong { font-size: 1.05rem; }
	.cal__headcell.is-today strong { width: 30px; height: 30px; }
	.cal__headcell small { font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cal__time { right: 4px; font-size: .62rem; }
	.ev { padding: 3px 4px 3px 22px; font-size: .72rem; }
	.ev__bird { width: 16px; height: 16px; left: 3px; top: 3px; }
	.ev--team { padding-right: 20px; }
	.ev--team .ev__who { width: 15px; height: 15px; font-size: .58rem; right: 3px; top: 3px; }
	.cal__lunch span { font-size: .58rem; padding: 0 3px; }
	.ev__time { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
	.cal-month__head { padding: 6px 0; font-size: .64rem; }
	.cal-month__day { min-height: 64px; padding: 4px 3px; gap: 2px; }
	.cal-month__num { width: 22px; height: 22px; font-size: .75rem; }
	.cal-month__item { height: 6px; padding: 0; border-radius: 3px; border-width: 0; }
	.cal-month__item img, .cal-month__item .ev__who { display: none; }
	.cal-month__item.is-team { background: var(--who) !important; }
	.cal-month__more { font-size: .6rem; }
}

/* Compacte week op de telefoon: 7 smalle dagen, alleen titels */
.seg .only-narrow { display: none; }
@media (max-width: 700px) {
	.seg .only-narrow { display: inline-block; }
	.cal-bar__tools .seg button { padding: .4em .2em; font-size: .8rem; }
	.cal--compact .cal__headcell { padding: 5px 0; }
	.cal--compact .cal__headcell span { font-size: .6rem; letter-spacing: 0; }
	.cal--compact .cal__headcell strong { font-size: .88rem; }
	.cal--compact .cal__headcell.is-today strong { width: 24px; height: 24px; }
	.cal--compact .cal__headcell small { display: none; }
	.cal--compact .cal__time { right: 3px; font-size: .58rem; }
	.cal--compact .cal__lunch span { display: none; }
	.cal--compact .ev { padding: 2px 2px 2px 3px; font-size: .58rem; line-height: 1.15; border-radius: 5px; border-left-width: 3px; }
	.cal--compact .ev__bird, .cal--compact .ev__time, .cal--compact .ev__resize, .cal--compact .ev__who { display: none; }
	.cal--compact .ev__title { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; font-weight: 700; }
	.cal--compact .ev--team { padding-right: 2px; }
}

/* Onderbalk op de telefoon: compact en zwevend, boven de thuisbalk van de iPhone; veilige schermranden */
@media (max-width: 900px) {
	.bottom-nav { left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom));
		padding: 4px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(13, 27, 62, .16); }
	.bottom-nav a, .bottom-nav button { padding: 5px 0 4px; gap: 1px; font-size: .62rem; border-radius: 15px; }
	.bottom-nav .ico { width: 20px; height: 20px; }
	.bottom-nav .is-active { background: var(--primary-soft); }
	.main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
	.mail-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
	.top { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
	.main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
.rec-mictip { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-size: .9rem; }
.rec-mictip.is-off { background: #ffe4e6; color: #9f1239; }
.rec-mictip .ico { flex: none; margin-top: 2px; }
.mic-help__ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #ffe4e6; color: #e11d48; }
.mic-help__ico .ico { width: 26px; height: 26px; }
.mic-help__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mic-help__steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.mic-help__steps .appdl__num { margin-top: 1px; }
.mic-help__ok { margin: 0; padding: 10px 12px; border-radius: 12px; background: #e9f8ef; color: #17643a; font-weight: 700; }
.tl__busy { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-dark); font-weight: 600; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Telefoonboek */
.pb-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.pb-way { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 6px; align-content: start; }
.pb-way p { margin: 0; }
.pb-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pb-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.pb-file { cursor: pointer; }
.pb-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pb-bar .grow-input { flex: 1; min-width: 180px; }
.pb-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.pb-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); }
.pb-row:last-child { border-bottom: 0; }
.pb-row__body { flex: 1; min-width: 0; display: grid; }
.pb-row__body strong, .pb-row__body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-row__body small { color: var(--muted); }
.pb-row__acts { display: flex; gap: 4px; align-items: center; flex: none; }
.pb-rec { color: #e11d48; }
.pb-clear { margin-top: 14px; }
.call__text summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.call__text p { white-space: pre-wrap; margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 600px) { .pb-row__acts .btn--sm:not(.btn--icon) { padding: 4px 8px; font-size: .75rem; } }
.pb-row .crm-ava { background: var(--primary-soft); color: var(--primary-dark); }
.crm-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.crm-tabs::-webkit-scrollbar { display: none; }
.crm-tabs a { flex: none; white-space: nowrap; }
.pb-row__acts .btn--icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.pb-row__acts .ico { width: 17px; height: 17px; }
@media (max-width: 600px) {
	.crm-tabs { margin-right: -16px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
	.pb-row { gap: 8px; }
	.pb-row .crm-ava { display: none; }
	.pb-row__acts { gap: 2px; }
	.pb-row__acts .btn--icon { width: 32px; height: 32px; }
}
.page-head > div { min-width: 0; max-width: 100%; }

/* Finance Bird op de telefoon: kaarten met snelle acties, compacte tegels, zwevende +-knop */
.doc-cards { display: none; }
.fab { display: none; }
@media (max-width: 700px) {
	.docs-wrap { display: none; }
	.doc-cards { display: grid; gap: 8px; }
	.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: var(--shadow); cursor: pointer; }
	.doc-card.is-overdue { border-color: #fecdd3; background: #fffafa; }
	.doc-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
	.doc-card__top strong:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.doc-card__sum { flex: none; font-size: 1.05rem; }
	.doc-card__meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
	.doc-card__acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
	.kpis--4 { grid-template-columns: 1fr 1fr; gap: 8px; }
	.kpis--4 .kpi { padding: 10px 12px; gap: 8px; border-radius: 16px; }
	.kpis--4 .kpi__bird { width: 34px; height: 34px; }
	.kpis--4 .kpi strong { font-size: 1.1rem; }
	.kpis--4 .kpi span, .kpis--4 .kpi small { font-size: .7rem; }
	.fin-head-acts { display: none !important; }  /* op de telefoon neemt de +-knop dit over */
	.fin-bar { gap: 6px; }
	.fin-bar input[type=search] { flex: 1 1 100%; order: 3; }
	.fab { display: block; position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right)); bottom: calc(86px + env(safe-area-inset-bottom)); }
	.fab__btn { width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(47, 109, 246, .35); cursor: pointer; transition: transform .15s; }
	.fab__btn .ico { width: 26px; height: 26px; }
	.fab.is-open .fab__btn { transform: rotate(45deg); }
	.fab__menu { position: absolute; right: 0; bottom: 66px; display: grid; gap: 6px; min-width: 210px; }
	.fab__menu a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); color: var(--ink); font-weight: 700; text-decoration: none; }
	.fab__menu a .ico { color: var(--primary); }
}
.fin-sticky { display: none; }
.fin-how > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.fin-how > summary::-webkit-details-marker { display: none; }
@media (max-width: 700px) {
	.fin-editor .page-head .fin-actions { display: none; }
	.fin-sticky { display: flex; position: fixed; z-index: 44; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom));
		align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(13, 27, 62, .16); }
	.fin-sticky__sum { display: grid; line-height: 1.1; }
	.fin-sticky__sum small { color: var(--muted); font-size: .7rem; font-weight: 700; }
	.fin-sticky__sum strong { font-size: 1.1rem; }
	.fin-sticky__acts { display: flex; gap: 6px; }
	.fin-editor { padding-bottom: 70px; }
	.fin-line { grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; }
	.fin-line textarea { grid-column: 1 / -1; }
	.fin-line [data-l-total] { grid-column: 1 / 3; padding-top: 6px; }
	.fin-side { padding: 12px 16px; }
}

/* Inkoop: scannen, controleren, overzicht */
.doc-cards--always { display: grid; gap: 8px; }
.doc-cards--always .doc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: var(--shadow); cursor: pointer; }
.doc-cards--always .doc-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.doc-cards--always .doc-card__meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.fab--always { display: none; }
.kpi--green { background: linear-gradient(120deg, #e9f8ef, #fff); }
.scan { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.scan h1 { margin: 0; }
.scan p { margin: 0; }
.scan__cam { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed #bcd0fb; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary-dark); cursor: pointer; text-align: center; }
.scan__cam-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(47, 109, 246, .3); }
.scan__cam-ico .ico { width: 30px; height: 30px; }
.scan__cam strong { font-size: 1.1rem; }
.scan__cam small { color: var(--muted); }
.scan__pages { display: flex; gap: 8px; overflow-x: auto; }
.scan__pages:empty { display: none; }
.scan__page { position: relative; flex: none; width: 96px; height: 128px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.scan__page img { width: 100%; height: 100%; object-fit: cover; }
.scan__page button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(13, 27, 62, .7); color: #fff; cursor: pointer; }
.scan__pdf { font-weight: 800; color: var(--muted); }
.scan__row { display: flex; justify-content: center; }
.scan__go { padding: 14px; font-size: 1.05rem; }
.ink__busy { display: flex; gap: 14px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-top: 10px; }
.ink__busy div { display: grid; }
.ink__busy small { color: var(--muted); }
.spin--lg { width: 28px; height: 28px; border-width: 3px; color: var(--primary); flex: none; }
.ink__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; margin-top: 6px; }
.ink__pdf { display: grid; gap: 8px; justify-items: start; }
.ink__pdf iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fd; }
.ink__title { margin: 0 0 10px; font-size: 1.3rem; }
.ink__lines { display: grid; gap: 8px; }
.ink-line { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 84px 34px; gap: 8px; align-items: end; }
.ink__sum { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--line-2); border-radius: 12px; font-size: .92rem; }
.ink__foot { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.is-unsure input, .is-unsure select { border-color: #f5a524 !important; background: #fffaf0; }
.is-unsure::after { content: 'Controleer dit'; display: block; font-size: .72rem; color: #a86b00; font-weight: 700; margin-top: 2px; }
@media (max-width: 900px) {
	.ink__grid { grid-template-columns: 1fr; }
	.ink__pdf iframe { height: 42vh; }
}
@media (max-width: 700px) {
	.fab--always { display: block; position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right)); bottom: calc(86px + env(safe-area-inset-bottom)); }
	.fab--always .fab__btn { width: 56px; height: 56px; border-radius: 18px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(47, 109, 246, .35); }
	.ink-line { grid-template-columns: 1fr 1fr 34px; }
	.ink-line label:first-child { grid-column: 1 / -1; }
	.ink__foot { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); background: #fff; padding: 8px 0; }
	.ink__foot .btn--primary { flex: 1; }
	.kpis--btw .kpi strong { font-size: 1rem; }
}
.ink__img { display: block; width: 100%; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fd; }
.ink__img img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
	.ink__grid > .ink__doc { order: 2; }
	.ink__img { max-height: 46vh; }
}

/* Startkaart 'Aan de slag' (proefomgeving) */
.start-card { margin-bottom: 16px; border-color: #bcd0fb; }
.start-card__head { display: flex; gap: 12px; align-items: center; }
.start-card__head > div { flex: 1; }
.start-card__head h2 { margin: 0; font-size: 1.1rem; }
.start-card__head p { margin: 2px 0 0; }
.start-card__bar { height: 8px; border-radius: 999px; background: var(--line-2); margin: 12px 0; overflow: hidden; }
.start-card__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #8b5cf6); border-radius: inherit; }
.start-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.start-steps li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; }
.start-steps li > div { flex: 1; display: grid; min-width: 0; }
.start-steps small { color: var(--muted); }
.start-steps__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: .85rem; }
.start-steps li.is-done { opacity: .6; }
.start-steps li.is-done .start-steps__dot { background: #22a35a; color: #fff; }
@media (max-width: 600px) { .start-steps li { flex-wrap: wrap; } .start-steps li .btn { margin-left: 38px; } }

/* Lead Bird */
.lb-board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lb-col { background: var(--line-2); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.lb-col h2 { font-size: .85rem; margin: 2px 4px 4px; display: flex; justify-content: space-between; align-items: center; }
.lb-col--customer { background: #e9f8ef; }
.lb-col--stopped { opacity: .7; }
.lb-card { display: grid; gap: 4px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.lb-card small { color: var(--muted); font-size: .74rem; }
.lb-score { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.lb-score span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #22a35a); }
.lb-spark { display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; }
.lb-spark span { height: 18px; border-radius: 4px; background: var(--line-2); }
.lb-spark span.is-on { background: var(--primary); }
@media (max-width: 900px) { .lb-board { grid-template-columns: repeat(6, 78vw); } }
.plan-row { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.plan-row summary { cursor: pointer; }
.pack-row { flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pack-row input { width: auto; flex: 1 1 90px; }
.credits-big strong { font-size: 2rem; letter-spacing: -.02em; }
.credit-packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.credit-packs .btn { display: grid; text-align: left; padding: 10px 14px; }
.credit-packs small { color: var(--muted); font-weight: 600; }
.feed--compact li { padding: 4px 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.start-sample { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: #fff7e6; color: #7a4a00; font-size: .9rem; }
@media (max-width: 700px) {
	.page-head .inline-form { flex-wrap: wrap; gap: 6px; }
	.lb-board { margin: 0 -16px; padding: 0 16px 8px; }
}
label.check input[type=checkbox] { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* Telefoon/tablet: niet meer inzoomen. iPhone zoomt in op elk invoerveld met tekst kleiner dan 16px, en bij dubbeltikken;
   met 16px in velden en touch-action: manipulation gebeurt dat niet meer (zelf knijpen om te zoomen blijft gewoon kunnen). */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse), (max-width: 900px) {
	input, select, textarea, .ask input, .copy-row input, .dns-row input[data-k="value"], .import-table select { font-size: 16px !important; }
	.code-input { font-size: 1.4rem !important; }
}

/* ---------- Chat Bird (WhatsApp-gevoel in onze stijl) ---------- */
.is-chat .main { padding-bottom: 0; }
.wa { --wa-bg: #edf2fa; --wa-mine: #dbe8ff; --wa-mine-edge: #c9dcff; --wa-other: #fff; --wa-ink: #0d1b3e; --wa-soft: #f5f8fd;
	display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 110px); min-height: 480px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.wa--panel { height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; grid-template-columns: minmax(0, 1fr); }
.wa .ico { width: 20px; height: 20px; }

/* lijst */
.wa__list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; min-width: 0; background: #fff; }
.wa__head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line-2); min-height: 62px; position: relative; }
.wa__head h1 { flex: 1; margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.wa__bird { width: 34px; height: 34px; }
.wa__icon { border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #5b6b8c; cursor: pointer; flex: none; transition: background .15s, color .15s; }
.wa__icon:hover, .wa__icon[aria-expanded="true"] { background: var(--line-2); color: var(--wa-ink); }
.wa__head [data-new] { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(47, 109, 246, .28); }
.wa__head [data-new]:hover { background: var(--primary-dark); color: #fff; }
.wa__search { margin: 10px 12px 6px; position: relative; }
.wa__search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8a97b3; pointer-events: none; }
.wa__search input { width: 100%; border-radius: 999px; background: var(--wa-soft); border: 1px solid transparent; padding: .6em 1em .6em 2.5em; transition: border-color .15s, background .15s; }
.wa__search input:focus { background: #fff; border-color: #bcd0fb; outline: none; box-shadow: 0 0 0 3px rgba(47, 109, 246, .12); }
.wa__convs { list-style: none; margin: 0; padding: 4px 6px 10px; overflow-y: auto; flex: 1; }
.wa__item { display: flex; gap: 12px; align-items: center; padding: 10px; cursor: pointer; border-radius: 14px; transition: background .12s; position: relative; }
.wa__item + .wa__item::before { content: ''; position: absolute; left: 68px; right: 10px; top: 0; border-top: 1px solid var(--line-2); }
.wa__item:hover { background: var(--wa-soft); }
.wa__item.is-on { background: #e8f0ff; }
.wa__item:hover + .wa__item::before, .wa__item.is-on + .wa__item::before, .wa__item.is-on::before, .wa__item:hover::before { border-color: transparent; }
.wa__ava { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.wa__ava .ico { width: 22px; height: 22px; }
.wa__item-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.wa__item-top, .wa__item-bot { display: flex; gap: 6px; align-items: center; }
.wa__item-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--wa-ink); }
.wa__item-top small { color: #8a97b3; font-size: .74rem; flex: none; }
.wa__item-top small.is-new { color: var(--primary); font-weight: 800; }
.wa__item-bot > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b7a99; font-size: .88rem; }
.wa__item.is-unread .wa__item-bot > span:first-child { color: var(--wa-ink); font-weight: 600; }
.wa__item-bot .wa-tick { vertical-align: -2px; }
.wa__flag { color: #a3aec6; display: inline-grid; }
.wa__flag .ico { width: 16px; height: 16px; }
.wa__badge { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; flex: none; }
.wa__empty { padding: 30px 16px; color: var(--muted); text-align: center; list-style: none; line-height: 1.6; }
.wa__empty .btn { margin-top: 10px; }

/* gesprek */
.wa__conv { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--wa-bg); position: relative; }
.wa__head--conv { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line-2), 0 4px 14px rgba(13, 27, 62, .04); z-index: 2; }
.wa__head--conv .wa__ava { width: 42px; height: 42px; font-size: .88rem; }
.wa__head--conv .wa__ava .ico { width: 20px; height: 20px; }
.wa__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; padding-left: 4px; }
.wa__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; color: var(--wa-ink); }
.wa__who small { color: #6b7a99; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1em; }
.wa__who small.is-typing { color: var(--primary); font-weight: 700; }
.wa__back { display: none; }
.wa__menu, .wa__acts { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(13, 27, 62, .18); display: grid; min-width: 240px; padding: 6px;
	animation: wa-pop .14s ease-out; transform-origin: top right; }
.wa__menu { position: absolute; right: 10px; top: 56px; z-index: 30; }
.wa__acts { position: fixed; z-index: 95; transform-origin: top left; }
.wa__menu button, .wa__menu a, .wa__acts button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: .93rem; color: var(--wa-ink);
	cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.wa__menu .ico, .wa__acts .ico { width: 19px; height: 19px; color: #6b7a99; flex: none; }
.wa__menu button:hover, .wa__menu a:hover, .wa__acts button:hover { background: var(--wa-soft); }
.wa__menu .is-danger, .wa__acts .is-danger, .wa__menu .is-danger .ico, .wa__acts .is-danger .ico { color: #d33a3a; }
.wa__menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 6px; }
.wa__menu .cost { margin-left: auto; }
@keyframes wa-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.wa__msgs { flex: 1; overflow-y: auto; padding: 14px 7% 12px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain;
	background-color: var(--wa-bg);
	background-image: radial-gradient(rgba(47, 109, 246, .07) 1.2px, transparent 1.3px), linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 240px);
	background-size: 20px 20px, 100% 100%; }
.wa__day { text-align: center; margin: 12px 0 8px; }
.wa__day span, .wa__sys span { display: inline-block; background: rgba(255, 255, 255, .95); color: #5b6b8c; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
	box-shadow: 0 1px 2px rgba(13, 27, 62, .08); }
.wa__day span::first-letter { text-transform: uppercase; }
.wa__sys { text-align: center; margin: 6px 0; }
.wa__sys span { font-weight: 600; background: #fff8eb; color: #7a5200; max-width: 85%; }
.wa__hello { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; color: #6b7a99; padding: 20px; }
.wa__hello .wa__ava { width: 72px; height: 72px; font-size: 1.3rem; margin-bottom: 4px; }
.wa__hello .wa__ava .ico { width: 30px; height: 30px; }
.wa__hello strong { color: var(--wa-ink); font-size: 1.05rem; }

.wa__msg { display: flex; margin-top: 8px; }
.wa__msg.is-cont { margin-top: 2px; }
.wa__msg.is-mine { justify-content: flex-end; }
.wa__bubble { position: relative; max-width: min(72%, 560px); background: var(--wa-other); border-radius: 16px; border-top-left-radius: 6px; padding: 7px 10px 6px;
	box-shadow: 0 1px 1.5px rgba(13, 27, 62, .1); min-width: 64px; color: var(--wa-ink); animation: wa-in .16s ease-out; }
.wa__msg.is-mine .wa__bubble { background: var(--wa-mine); border-top-left-radius: 16px; border-top-right-radius: 6px; box-shadow: 0 1px 1.5px rgba(47, 109, 246, .14); }
.wa__msg.is-cont .wa__bubble { border-top-left-radius: 16px; }
.wa__msg.is-mine.is-cont .wa__bubble { border-top-right-radius: 16px; }
/* staartje aan het eerste bericht van een groepje */
.wa__msg:not(.is-cont):not(.wa__typing) .wa__bubble::before { content: ''; position: absolute; top: 0; left: -7px; width: 12px; height: 14px; background: inherit;
	clip-path: polygon(100% 0, 0 0, 100% 100%); border-top-left-radius: 3px; }
.wa__msg.is-mine:not(.is-cont) .wa__bubble::before { left: auto; right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: 0; border-top-right-radius: 3px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wa__name { display: block; font-size: .8rem; font-weight: 800; margin-bottom: 2px; }
.wa__text { display: flow-root; white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.4; font-size: .96rem; }
.wa__text a { color: var(--primary-dark); text-decoration: underline; }
/* tijd en vinkjes rechts onderin, zonder over de tekst heen te vallen */
.wa__meta { float: right; position: relative; top: 6px; margin: 0 0 0 12px; font-size: .68rem; color: #7a89a8; display: inline-flex; gap: 3px; align-items: center; line-height: 1.6; white-space: nowrap; }
.wa__msg.is-mine .wa__meta { color: #5d76a8; }
.wa__bubble > .wa__meta { float: none; position: absolute; right: 9px; bottom: 4px; top: auto; }
.wa__text--meta { min-height: 14px; }
.wa-tick { width: 17px; height: 15px; color: #8a97b3; flex: none; }
.wa-tick--read { color: #2f6df6; }
.wa__quote { border-left: 4px solid var(--primary); background: rgba(47, 109, 246, .08); border-radius: 8px; padding: 5px 9px; margin: 1px 0 5px; display: grid; font-size: .84rem; }
.wa__quote strong { color: var(--primary-dark); font-size: .78rem; }
.wa__quote span { color: #5b6b8c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa__media { position: relative; margin: -3px -6px 4px; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.wa__bubble.is-media { padding: 3px; }
.wa__bubble.is-media .wa__media { margin: 0; }
.wa__img { display: block; width: 330px; max-width: 100%; max-height: 440px; object-fit: cover; cursor: zoom-in; }
.wa__video { display: block; width: 330px; max-width: 100%; background: #000; }
.wa__media > .wa__meta { position: absolute; right: 6px; bottom: 6px; top: auto; float: none; margin: 0; padding: 1px 8px; border-radius: 999px; color: #fff;
	background: rgba(13, 27, 62, .45); backdrop-filter: blur(4px); }
.wa__media > .wa__meta .wa-tick { color: #fff; }
.wa__media > .wa__meta .wa-tick--read { color: #9cc0ff; }
.wa__file { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin: 0 -3px 4px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(13, 27, 62, .06);
	border-radius: 12px; color: var(--wa-ink); text-decoration: none; min-width: 220px; }
.wa__file:hover { background: #fff; }
.wa__file-ico { position: relative; width: 38px; height: 44px; display: grid; place-items: center; color: var(--primary); flex: none; }
.wa__file-ico .ico { width: 38px; height: 44px; stroke-width: 1.3; }
.wa__file-ico b { position: absolute; bottom: 7px; font-size: .52rem; font-weight: 900; letter-spacing: .02em; background: var(--primary); color: #fff; padding: 0 3px; border-radius: 3px; }
.wa__file-txt { display: grid; min-width: 0; }
.wa__bubble.is-filebox { padding: 4px 4px 3px; }
.wa__bubble.is-filebox .wa__file { margin: 0; }
.wa__file-meta { display: flow-root; margin: -2px 6px 0; }
.wa__file-meta .wa__meta { top: 0; }
.wa__file-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.wa__file-txt small { color: #6b7a99; font-size: .74rem; }
.wa__deleted { color: #8a97b3; font-style: italic; font-size: .9rem; }
.wa__deleted .ico { width: 15px; height: 15px; vertical-align: -3px; }
.wa__upload { min-width: 220px; }
.wa__upload small { color: #5b6b8c; }
.wa__progress { height: 6px; border-radius: 3px; background: rgba(47, 109, 246, .15); overflow: hidden; width: 100%; margin: 4px 0 6px; }
.wa__progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }

/* "is aan het typen" en laden: drie stipjes */
.wa__typing .wa__bubble, .wa__loading { display: inline-flex; gap: 4px; align-items: center; min-width: 0; padding: 12px 14px; }
.wa__loading { margin: auto; background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(13, 27, 62, .08); }
.wa__typing i, .wa__loading i { width: 7px; height: 7px; border-radius: 50%; background: #9aa8c4; animation: wa-dot 1.2s infinite ease-in-out; }
.wa__typing i:nth-child(2), .wa__loading i:nth-child(2) { animation-delay: .15s; }
.wa__typing i:nth-child(3), .wa__loading i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* naar beneden */
.wa__down { position: absolute; right: 16px; bottom: 84px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #5b6b8c; cursor: pointer;
	box-shadow: 0 6px 18px rgba(13, 27, 62, .18); display: grid; place-items: center; }
.wa__down .ico { transform: rotate(90deg); }
.wa__down span { position: absolute; top: -6px; right: -4px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }

/* AI-voorstellen */
.wa__sugg { display: flex; gap: 8px; padding: 8px 12px 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wa__sugg::-webkit-scrollbar { display: none; }
.wa__card { --c: #2f6df6; flex: 1 0 100%; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 8px 6px 8px 10px; background: #fff; border-radius: 16px;
	box-shadow: 0 4px 14px rgba(13, 27, 62, .09); border: 1px solid rgba(47, 109, 246, .16); animation: wa-in .2s ease-out; min-width: 0; }
.wa__sugg.is-many .wa__card { flex-basis: min(88%, 430px); }
.wa__card--task { --c: #16a34a; } .wa__card--quote { --c: #f59e0b; } .wa__card--note { --c: #8b5cf6; }
.wa__card > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.wa__card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--wa-ink); }
.wa__card .btn { flex: none; white-space: nowrap; }
.wa__l-short { display: none; }
@media (max-width: 600px) { .wa__l-long { display: none; } .wa__l-short { display: inline; } }
.wa--panel .wa__l-long { display: none; } .wa--panel .wa__l-short { display: inline; }
.wa__card small { color: #6b7a99; font-size: .76rem; }
.wa__card-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.wa__card-ico .ico { width: 19px; height: 19px; }
@media (max-width: 480px) { .wa__card .btn { padding-left: .8em; padding-right: .8em; } }
.wa__card-by { color: var(--primary) !important; font-weight: 700; display: flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__card-by .ico { width: 13px; height: 13px; flex: none; }
.wa__card-x { width: 34px; height: 34px; }
.wa__card-x .ico { width: 16px; height: 16px; }

/* beantwoorden + invoer */
.wa__reply { display: flex; gap: 8px; align-items: center; margin: 8px 12px 0; padding: 8px 10px 8px 12px; background: #fff; border-left: 4px solid var(--primary); border-radius: 12px;
	box-shadow: 0 1px 2px rgba(13, 27, 62, .08); }
.wa__reply div { flex: 1; min-width: 0; display: grid; font-size: .85rem; }
.wa__reply strong { color: var(--primary-dark); }
.wa__reply span { color: #6b7a99; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa__reply button { border: 0; background: none; color: #8a97b3; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.wa__reply button:hover { background: var(--line-2); }
.wa__composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); position: relative; }
.wa__field { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; background: #fff; border-radius: 26px; padding: 3px 4px; box-shadow: 0 1px 2px rgba(13, 27, 62, .1);
	border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.wa__field:focus-within { border-color: #bcd0fb; box-shadow: 0 0 0 3px rgba(47, 109, 246, .1); }
.wa__field textarea { flex: 1; min-width: 0; resize: none; border: 0 !important; background: transparent; box-shadow: none !important; padding: 10px 6px; max-height: 140px; line-height: 1.35;
	outline: none; font-size: .96rem; }
.wa__in-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: #6b7a99; cursor: pointer; flex: none; transition: color .15s, background .15s, transform .15s; }
.wa__in-btn:hover { color: var(--primary); background: var(--wa-soft); }
.wa__in-btn.is-on { color: var(--primary); transform: rotate(-35deg); }
.wa__cam { display: none; }
@media (pointer: coarse) { .wa__cam { display: grid; } }
.wa__send { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 6px 16px rgba(47, 109, 246, .32); transition: transform .15s, background .15s, opacity .15s; }
.wa__send .ico { width: 21px; height: 21px; transform: translateX(-1px); }
.wa__send:hover { background: var(--primary-dark); }
.wa__send:active { transform: scale(.94); }
.wa__composer:not(.has-text) .wa__send { opacity: .55; box-shadow: none; }
/* bijlagemenu boven de invoerbalk */
.wa__attach { position: absolute; left: 12px; bottom: 74px; z-index: 20; background: #fff; border-radius: 20px; box-shadow: 0 18px 44px rgba(13, 27, 62, .2);
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 12px; min-width: 300px; animation: wa-pop .14s ease-out; transform-origin: bottom left; }
.wa__att { display: grid; justify-items: center; gap: 6px; padding: 8px 6px; border-radius: 14px; cursor: pointer; font-size: .8rem; font-weight: 600; color: #3d4b6b; text-align: center; }
.wa__att:hover { background: var(--wa-soft); }
.wa__att-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.wa__att-ico .ico { width: 24px; height: 24px; }

/* lege kant (computer) */
.wa__pick { display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 30px; grid-column: 2; grid-row: 1;
	background: radial-gradient(circle at 50% 38%, #fff 0, var(--wa-bg) 70%); }
.wa__pick-bird { width: 120px; height: 120px; filter: drop-shadow(0 12px 18px rgba(13, 27, 62, .14)); }
.wa__pick h2 { margin: 4px 0 0; }
.wa__pick p { max-width: 400px; color: #5b6b8c; }
.wa__pick p + .btn { margin-top: 6px; }
.wa.has-conv .wa__pick { display: none; }
.wa__conv[hidden] + .wa__pick { display: grid; }

/* nieuw gesprek / vensters */
.wa__people { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.wa__person { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.wa__person:hover { background: var(--wa-soft); }
.wa__person:has(input:checked) { background: #e8f0ff; }
.wa__person .wa__ava { width: 38px; height: 38px; font-size: .82rem; }
.wa__person input { width: 20px; height: 20px; flex: none; order: 3; margin-left: auto; accent-color: var(--primary); }
.wa__relres { display: grid; gap: 4px; margin-top: 6px; }
.wa__relres button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 12px; cursor: pointer; font: inherit; }
.wa__relres button:hover { border-color: #bcd0fb; background: var(--wa-soft); }
.wa__summary { background: var(--wa-soft); border-radius: 14px; padding: 12px 14px; line-height: 1.55; max-height: 55vh; overflow-y: auto; }
.wa__viewer { position: fixed; inset: 0; z-index: 90; background: rgba(9, 18, 40, .94); display: grid; place-items: center; animation: wa-fade .15s; }
.wa__viewer img { max-width: 96vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.wa__viewer button { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px;
	border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.wa__viewer button .ico { width: 22px; height: 22px; }
@keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
	.is-chat .main { padding: 0 !important; }
	.is-chat .top, .is-chat .app-banner, .is-chat .bottom-nav, .is-chat .chat-fab { display: none !important; }
	.wa { grid-template-columns: minmax(0, 1fr); height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
	.wa__pick { display: none !important; }
	.wa.has-conv .wa__list { display: none; }
	.wa__back { display: grid; margin-left: -6px; }
	.wa__msgs { padding: 10px 10px 8px; }
	.wa__bubble { max-width: 84%; }
	.wa__head { padding-top: calc(8px + env(safe-area-inset-top)); }
	.wa__attach { left: 8px; right: 8px; min-width: 0; }
	.wa__composer { padding-left: 8px; padding-right: 8px; }
}
.wa--panel .wa__pick { display: none !important; }
.wa--panel.has-conv .wa__list { display: none; }
.wa--panel .wa__back { display: grid; }
.wa--panel .wa__msgs { padding-left: 12px; padding-right: 12px; }
.wa--panel .wa__bubble { max-width: 82%; }

/* Het vogeltje onderin: startpunt van de chat */
.chat-fab { position: fixed; z-index: 46; right: max(18px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 62px; height: 62px; border-radius: 50%;
	border: 0; background: #fff; box-shadow: 0 10px 26px rgba(13, 27, 62, .22); cursor: pointer; display: grid; place-items: center; transition: transform .15s; padding: 0; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab img { width: 48px; height: 48px; }
.chat-fab__badge { position: absolute; top: -2px; right: -2px; background: #16a34a; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.chat-drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; box-shadow: -10px 0 40px rgba(13, 27, 62, .2); transform: translateX(105%); transition: transform .22s ease; }
.chat-drawer.is-open { transform: none; }
.chat-drawer iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
	.chat-fab { bottom: calc(86px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
	.chat-fab img { width: 42px; height: 42px; }
	body.has-other-fab .chat-fab { bottom: calc(152px + env(safe-area-inset-bottom)); }
}
.wa--guest { grid-template-columns: 1fr; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; border-radius: 0; }

/* ---- AI en Bird Credits (Instellingen) ---- */
.ai-card { margin-top: 18px; }
.ai-grid { gap: 22px; }
.ai-h { font-size: .95rem; margin: 18px 0 8px; display: flex; gap: 6px; align-items: center; }
.ai-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.ai-stats > div { background: var(--line-2); border-radius: 12px; padding: 10px; display: grid; gap: 1px; text-align: center; }
.ai-stats strong { font-size: 1.25rem; }
.ai-stats span { font-size: .78rem; color: var(--muted); }
.ai-stats small { font-size: .72rem; color: var(--muted); }
.ai-rules { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.ai-rows { display: grid; gap: 8px; }
.ai-row { display: grid; grid-template-columns: minmax(180px, 1fr) 110px 110px auto auto auto; gap: 10px; align-items: end; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ai-row label { font-size: .78rem; }
.ai-row .check { align-self: center; }
.ai-row__name { display: grid; gap: 2px; align-self: center; }
.ai-row__name small { color: var(--muted); font-size: .75rem; }
@media (max-width: 900px) {
  .ai-row { grid-template-columns: 1fr 1fr; }
  .ai-row__name { grid-column: 1 / -1; }
}
.credit-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 8px; padding: 3px 9px; border-radius: 999px; background: #eef4ff; color: var(--primary-dark); font-size: .75rem; font-weight: 700; text-decoration: none; }
.credit-chip.is-low { background: #fff4e5; color: #9a5b00; }
.cost { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(47, 109, 246, .12); color: var(--primary-dark); font-size: .68rem; font-weight: 700; vertical-align: middle; }
#ai, #ai-klanten { scroll-margin-top: 96px; }
.secret-input { -webkit-text-security: disc; font-family: ui-monospace, monospace; }
