/* Tokens follow RailMonitor; --primary/--accent are overridden from site settings */
:root {
  --primary: #2F4A3A; --accent: #C9A45C;
  --primary-light: color-mix(in srgb, var(--primary) 82%, white);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, white);
  --bg: #F4F5F2; --surface: #FFFFFF; --text: #1C211E; --muted: #6B736E; --border: #DFE3DD;
  --danger: #DC2626; --success: #16A34A;
  --sidebar-w: 236px; --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--primary); }
img { max-width: 100%; }
h1 { font-size: 28px; line-height: 1.2; color: var(--primary); }
h2 { font-size: 18px; color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[data-lucide] { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: var(--primary); color: #fff; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
/* beheeromgeving: blue sidebar so it's obvious you're not in the member portal */
.sidebar--beheer { background: #1E3A5F; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 16px 6px; color: #fff; text-decoration: none; }
.brand img { max-height: 80px; }
.brand svg { width: 56px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.brand svg .tree { stroke: var(--accent); }
.brand__name { font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; }
.sidebar__group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 10px 22px 3px; }
.sidebar__item {
  display: flex; align-items: center; gap: 11px; padding: 6px 12px; margin: 1px 10px; border-radius: 8px; line-height: 1.35;
  color: rgba(255,255,255,.8); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s;
}
/* short screens (laptops): tighten further so the menu never needs scrolling */
@media (min-width: 901px) and (max-height: 820px) {
  .brand { padding-top: 10px; }
  .sidebar__group { padding: 6px 22px 2px; }
  .sidebar__item { padding: 4px 12px; font-size: 14px; }
  .sidebar__bottom { padding: 8px 22px; }
}
@media (min-width: 901px) and (max-height: 690px) {
  .brand svg { display: none; }
  .sidebar__item { padding: 3px 12px; }
}
.sidebar__item [data-lucide] { width: 17px; height: 17px; }
.topbar__logo { display: none; }
.topbar__logo img { height: 40px; display: block; }
.sidebar__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar__item.active { background: rgba(255,255,255,.16); color: #fff; }
.sidebar__item .count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 20px; font-size: 12px; padding: 0 8px; font-weight: 700; }
.sidebar__bottom { margin-top: auto; padding: 10px 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.sidebar__bottom a { color: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.sidebar__bottom a:hover { color: #fff; }
.sidebar__bottom [data-lucide] { width: 15px; height: 15px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 28px;
  display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20;
}
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; }
.search input { border: 0 !important; background: transparent !important; padding: 10px 0 !important; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a { padding: 5px 11px; text-decoration: none; color: var(--muted); }
.lang a.on { background: var(--primary); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.content { padding: 28px; width: 100%; }
.burger { display: none; }
#nav-toggle { display: none; }
.scrim { display: none; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__header a { font-size: 14px; font-weight: 600; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 720px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius);
  font: 600 15px var(--font); cursor: pointer; border: none; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap;
  text-transform: none; letter-spacing: normal; margin-bottom: 0; /* label.btn must not inherit label styling */
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-light); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--outline { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--danger { background: #fff; color: var(--danger); border: 1.5px solid #F3C4C4; }
.btn--danger:hover { background: #FEF2F2; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--lg { padding: 15px 24px; font-size: 17px; }
.btn--ghost { background: none; color: var(--muted); padding: 6px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
label.check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); font-weight: 500; cursor: pointer; }
label.check input { width: 20px; height: 20px; accent-color: var(--primary); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time],
input[type=datetime-local], input[type=search], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font: 16px var(--font);
  color: var(--text); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B736E' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { min-height: 120px; resize: vertical; }
input[type=color] { width: 64px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; background: #fff; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
details.de { border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
details.de summary { cursor: pointer; font-weight: 600; color: var(--muted); }
details.de[open] summary { margin-bottom: 14px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--success { background: #DCFCE7; color: var(--success); }
.badge--danger { background: #FEE2E2; color: var(--danger); }
.badge--warn { background: #FEF3C7; color: #B45309; }
.badge--info { background: #DBEAFE; color: #1D4ED8; }
.badge--muted { background: #F1F3F0; color: var(--muted); }
.badge--accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 60%, black); }

.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.flash.ok { background: #DCFCE7; color: #166534; }
.flash.err { background: #FEE2E2; color: #991B1B; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th { background: var(--bg); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFBF9; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }

/* list rows (docs, posts, items) */
.row-list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.row:last-child { border-bottom: none; }
a.row:hover { background: #FAFBF9; }
.row__icon { width: 42px; height: 42px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.row__icon.folder { background: #FEF3C7; color: #D97706; }
.row__icon.pdf { background: #FEE2E2; color: #DC2626; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 600; }
.row__meta { font-size: 13px; color: var(--muted); }

/* ---------- home ---------- */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; background: center/cover no-repeat; display: flex; align-items: flex-end; margin-bottom: -56px; }
.hero__text { position: absolute; top: 30px; left: 34px; right: 34px; max-width: 640px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45); }
.hero__text h1 { font-size: 38px; color: #fff; }
.hero__text p { font-size: 18px; margin-top: 6px; font-weight: 500; }
.tiles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 18px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--text); box-shadow: 0 6px 24px rgba(20,30,25,.08); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--primary); }
.tile__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 12px; }
.tile__icon [data-lucide] { width: 22px; height: 22px; }
.tile b { display: block; font-size: 17px; }
.tile span { font-size: 14px; color: var(--muted); }
.news-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.news-item:last-child { border-bottom: none; }
.news-item img, .news-item .ph { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--primary-soft); }
.news-item b { display: block; line-height: 1.3; }
.news-item p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.datebox { width: 64px; flex-shrink: 0; align-self: flex-start; text-align: center; border: 1px solid var(--border); border-radius: 12px; padding: 8px 0; background: var(--surface); }
.datebox b { display: block; font-size: 26px; line-height: 1; color: var(--primary); }
.datebox span { font-size: 12px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.event { display: flex; gap: 16px; }
.event__meta { list-style: none; font-size: 14px; color: var(--muted); }
.event__meta li { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.quote { border-radius: 14px; background: center/cover; min-height: 150px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 24px; }
.quote::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.2)); }
.quote p { position: relative; font-size: 21px; color: var(--primary); max-width: 360px; line-height: 1.3; }

/* posts and pages sit directly on the page, no card around them */
.article .page-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 22px !important; }
/* post editor (WordPress-style): sticky action bar, settings row, full-width editor */
.editbar { position: sticky; top: 68px; z-index: 15; display: flex; align-items: center; gap: 10px; margin: -28px -28px 18px; padding: 12px 28px; /* no gap under the header */
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.editbar__title { margin-right: auto; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 17px; color: var(--primary); }
.pick-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.title-input { font-size: 26px !important; font-weight: 700; border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; padding: 8px 0 !important; box-shadow: none !important; color: var(--primary); }
.editor--tall { min-height: 420px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.seg input { position: absolute; opacity: 0; }
.seg label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); }
.seg input:checked + label { background: var(--primary); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (max-width: 900px) { .editbar { top: 60px; margin: -18px -16px 14px; padding: 10px 16px; } }
/* beheer > instellingen: tabs + save button, sticky like the post editor bar */
.settings-tabs { position: sticky; top: 68px; z-index: 15; display: flex; align-items: center; gap: 12px; margin: 0 -28px 18px; padding: 8px 28px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.settings-tabs .tabs { flex: 1; }
.settings-tabs .tabs a { display: flex; align-items: center; gap: 7px; }
@media (max-width: 900px) { .settings-tabs { top: 60px; margin: 0 -16px 14px; padding: 6px 16px; } }
/* beheer > mailing */
.mail-list { display: flex; flex-direction: column; gap: 8px; }
.mail { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.mail summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail[open] summary { border-bottom: 1px solid var(--border); }
.mail__date { width: 150px; flex-shrink: 0; font-size: 14px; }
.mail__subj { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mail__subj b, .mail__subj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__body { padding: 14px 16px; }
.mail__body pre { white-space: pre-wrap; font: 15px/1.6 var(--font); margin: 0; }
@media (max-width: 600px) { .mail summary { flex-wrap: wrap; gap: 6px 10px; } .mail__date { width: auto; } .mail__subj { flex-basis: 100%; order: 3; } }
/* beheer > galerij */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.media-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--bg); }
.media-card__body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.media-card__body form { margin-top: 2px; }
.dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, border-color .15s; }
.dropzone.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
/* photo gallery (native <dialog>) */
.gallery { margin: auto; border: 0; border-radius: 16px; padding: 22px; width: min(960px, calc(100vw - 32px)); max-height: 85vh; }
.gallery::backdrop { background: rgba(0,0,0,.45); }
.gallery__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.gallery__head h2 { margin-right: auto; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__item { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; background: var(--bg); aspect-ratio: 4/3; }
.gallery__item:hover, .gallery__item:focus-visible { border-color: var(--primary); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; display: block; }
/* archived posts: only beheerders see them, greyed out */
.is-archived { opacity: .55; filter: grayscale(1); }
.is-archived:hover { opacity: .8; }
/* post */
.pdf-view { background: #E9ECE8; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.pdf-view canvas { width: 100%; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: .8em; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.2em; }
/* headings inside a text: clearly ordered and smaller than the page title (28px) */
.prose h1, .ql-editor h1 { font-size: 24px; } .prose h2, .ql-editor h2 { font-size: 21px; } .prose h3, .ql-editor h3 { font-size: 18px; }
/* the editor shows the same paragraph spacing as the published page (soft line breaks get none) */
.ql-editor.ql-editor > * + * { margin-top: .8em; } /* doubled class: beats quill.snow.css "p { margin: 0 }" */
.ql-editor.ql-editor > * + :is(h1, h2, h3) { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li[data-list=bullet] { list-style-type: disc; } /* Quill 2 stores bullet lists as <ol> */
.prose .ql-ui { display: none; }
.prose img { border-radius: 10px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .15s; }
.post-card:hover { border-color: var(--primary); }
.post-card img, .post-card .ph { height: 170px; object-fit: cover; width: 100%; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); }
.post-card div.body { padding: 16px 18px; }
.post-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* choice tiles (melding categories) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.choices input { position: absolute; opacity: 0; }
.choices label { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 10px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); background: var(--surface); margin: 0; }
.choices label [data-lucide] { width: 28px; height: 28px; color: var(--primary); }
.choices input:checked + label { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.choices input:focus-visible + label { outline: 2px solid var(--primary); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--primary); border-color: var(--primary); }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login__img { background: center/cover; position: relative; }
.login__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--primary) 70%, transparent), transparent 50%); }
.login__img p { position: absolute; bottom: 36px; left: 40px; right: 40px; color: #fff; font-size: 24px; z-index: 1; line-height: 1.3; }
.login__form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--surface); }
.login__box { width: 100%; max-width: 400px; }
.login__box img.logo { max-width: 220px; display: block; margin: 0 auto 28px; }

/* admin dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); padding: 20px; text-decoration: none; color: var(--text); }
.stat-card__n { font-size: 34px; font-weight: 700; color: var(--primary); line-height: 1; margin: 8px 0 4px; }
.big-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.big-action { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: background .15s; }
.big-action:hover { background: var(--primary-light); }
.big-action span { display: block; font-weight: 400; font-size: 13px; opacity: .8; }
.big-action [data-lucide] { width: 28px; height: 28px; }
.editor { background: #fff; border-radius: 0 0 var(--radius) var(--radius); min-height: 260px; font-size: 16px; }
.ql-toolbar.ql-snow { border-radius: var(--radius) var(--radius) 0 0; border-color: var(--border) !important; background: var(--bg); }
.ql-container.ql-snow { border-color: var(--border) !important; font-family: var(--font) !important; font-size: 16px !important; }
.member-card { display: flex; gap: 14px; align-items: flex-start; }
.member-card .avatar { width: 46px; height: 46px; font-size: 15px; flex-shrink: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  #nav-toggle:checked ~ .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  #nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); cursor: pointer; margin: 0; color: var(--primary); }
  .burger [data-lucide] { width: 24px; height: 24px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .user-chip .name { display: none; }
  .topbar__logo { display: block; }
  .content { padding: 18px 16px; }
  .login { grid-template-columns: 1fr; }
  .login__img { min-height: 200px; }
  .login__img p { font-size: 18px; bottom: 20px; left: 20px; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 290px; }
  .hero__text { left: 20px; right: 20px; top: 20px; }
  .hero__text h1 { font-size: 28px; }
  .hero__text p { font-size: 16px; }
  .tiles { padding: 0 10px; gap: 10px; }
  .tile { padding: 14px; }
  .tile span { display: none; }
  .search { display: none; }
  h1 { font-size: 24px; }
  .card { padding: 18px 16px; }
  .hide-sm { display: none; }
}
/* MFA setup on the login-style screen: compact so it fits without scrolling */
.login__box--wide { max-width: 560px; }
.login__box--wide img.logo { max-width: 150px; margin-bottom: 14px; }
.login__box--wide h1 { font-size: 24px; }
.mfa { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; margin-bottom: 16px; }
.mfa__qr img { width: 170px; height: 170px; display: block; border: 1px solid var(--border); border-radius: 10px; }
.mfa__qr summary { cursor: pointer; color: var(--muted); margin-top: 6px; }
.mfa-secret { font-family: monospace; font-size: 13px; margin-top: 4px; user-select: all; word-break: break-all; }
.mfa__steps { padding-left: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.4; }
.mfa__form { display: flex; gap: 10px; }
.mfa__form input { flex: 1; font-size: 22px !important; letter-spacing: .25em; text-align: center; }
.mfa__skip { text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mfa__mobile { display: none; }
/* phone: no QR (you can't scan your own screen) but a button that opens the authenticator app; no photo */
@media (max-width: 600px) {
  .login:has(.login__box--wide) .login__img { display: none; }
  .mfa { grid-template-columns: 1fr; }
  .mfa__qr, .mfa__desktop { display: none; }
  .mfa__mobile { display: list-item; }
}
.sidebar__bottom a.powered { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 4px; }
.sidebar__bottom a.powered:hover { color: rgba(255,255,255,.8); }
/* flash messages as a toast top-right, so "Opgeslagen" is visible wherever you scrolled to */
.toast { position: fixed; top: 80px; right: 24px; z-index: 60; max-width: min(460px, calc(100vw - 32px)); margin: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.15); animation: toast-in .25s ease-out; transition: opacity .4s, transform .4s; }
.toast span { flex: 1; }
.toast__close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 0 0 8px; }
.toast__close:hover { opacity: 1; }
.toast--out { opacity: 0; transform: translateY(-10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 600px) { .toast { top: 70px; right: 16px; left: 16px; } }
.btn--saved, .btn--saved:hover { background: var(--success) !important; color: #fff; }
/* beheer > lid: account & beveiliging */
.acct-status { display: grid; gap: 6px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.acct-status div { display: flex; justify-content: space-between; gap: 10px; }
.acct-actions { display: flex; flex-direction: column; gap: 14px; }
.acct-actions .btn { width: 100%; justify-content: flex-start; }
.acct-pw { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.acct-pw summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--primary); }
/* admin-only marker: small gold dot after things only administrators can see */
.admin-only::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; flex-shrink: 0; }
.sidebar__item.admin-only::after { margin-left: auto; }
h1.admin-only::after { width: 9px; height: 9px; margin-left: 10px; }
/* beheer > audit log */
.audit-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px; }
.audit-filter input[type=search] { flex: 1; min-width: 220px; }
.audit-filter select { width: auto; min-width: 170px; }
.audit-date { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.audit-date input { width: 160px; }
.audit-detail { font-size: 14px; }
.audit-detail td { padding: 4px 12px 4px 0; border: 0; vertical-align: top; }
.audit-detail td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
/* audit log: van -> naar */
.audit-diff { font-size: 14px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.audit-diff th { font-size: 11px; padding: 6px 10px; }
.audit-diff td { padding: 6px 10px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
.audit-diff td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
.audit-from { background: #FEF2F2; color: #991B1B; text-decoration: line-through; text-decoration-color: rgba(153,27,27,.35); width: 45%; }
.audit-to { background: #F0FDF4; color: #166534; width: 45%; }
/* ---------- prikbord: cork board with sticky notes ---------- */
.cork {
  --cork: #C49A6C;
  background-color: var(--cork);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(90,55,25,.16) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,235,200,.2) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(80,45,20,.18) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 85% 15%, rgba(255,240,210,.16) 0 1.3px, transparent 1.8px);
  background-size: 23px 19px, 17px 21px, 29px 27px, 13px 17px;
  padding: 34px 26px; min-height: 420px;
}
.cork__empty { color: #fff; font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.note {
  position: relative; padding: 24px 20px 16px; min-height: 170px; color: #2A2A2A;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 18px -8px rgba(0,0,0,.35);
  transform: rotate(-.6deg); transition: transform .2s, box-shadow .2s;
}
.note:nth-child(3n) { transform: rotate(.7deg); }
.note:nth-child(4n+1) { transform: rotate(-.2deg); }
.note:nth-child(5n+2) { transform: rotate(.9deg); }
.notes .note:hover, .notes .note:target { transform: translateY(-3px) rotate(0); z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 18px 28px -10px rgba(0,0,0,.4); }
.note:target { outline: 2px solid rgba(255,255,255,.9); outline-offset: 3px; }
.note--yellow { background: #FFF6A8; } .note--pink { background: #FBCFE0; } .note--blue { background: #C7E8FB; }
.note--green { background: #D4EDB8; } .note--orange { background: #FFD9A3; } .note--purple { background: #DDD3F0; }
.pin {
  position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F28B82, #C62828 60%, #7F1D1D);
  box-shadow: 1px 2px 3px rgba(0,0,0,.35);
}
.note:nth-child(3n+2) .pin { background: radial-gradient(circle at 35% 30%, #9EC5F0, #2E5FA6 60%, #1A3768); }
.note:nth-child(3n) .pin { background: radial-gradient(circle at 35% 30%, #B2D8A8, #3D7A34 60%, #1F4A1A); }
.note__by { font-size: 12px; color: rgba(0,0,0,.5); margin-bottom: 4px; }
.note h3 { font-family: 'Caveat', 'Segoe Print', cursive; font-size: 27px; font-weight: 700; line-height: 1.05; margin-bottom: 8px; color: #222; word-break: break-word; }
.note__photo { display: block; position: relative; }
.note__photo img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 3px; margin: 2px 0 10px; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.note__body { white-space: pre-line; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.note__contact { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
.note__contact a { color: rgba(0,0,0,.65); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.note__contact a:hover { color: #000; text-decoration: underline; }
.note__contact [data-lucide] { width: 13px; height: 13px; }
.note__actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.note:hover .note__actions, .note:focus-within .note__actions { opacity: 1; }
.note__actions button { background: rgba(255,255,255,.7); border: 0; border-radius: 6px; padding: 5px; cursor: pointer; color: #333; display: grid; place-items: center; }
.note__actions button:hover { background: #fff; }
.note__actions [data-lucide] { width: 14px; height: 14px; }
@media (hover: none) { .note__actions { opacity: 1; } } /* touch screens have no hover */
/* new/edit dialog: a sticky note to write on, with a settings bar underneath */
.note-dlg { margin: auto; border: 0; padding: 0; background: transparent; width: min(520px, calc(100vw - 32px)); overflow: visible; }
.note-dlg::backdrop { background: rgba(30,20,10,.55); }
.note-dlg--plain { background: var(--surface); border-radius: 16px; padding: 22px; }
.note-dlg__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.note-edit { transform: rotate(-.5deg); min-height: 300px; padding: 30px 26px 22px; display: flex; flex-direction: column; transition: background .2s; }
.note-edit__title, .note-edit__body { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; color: #222; width: 100%; }
.note-edit__title { font-family: 'Caveat', 'Segoe Print', cursive !important; font-size: 32px !important; font-weight: 700; margin-bottom: 8px; }
.note-edit__body { flex: 1; min-height: 160px; resize: none; font-size: 15px !important; line-height: 1.5; }
.note-edit__title::placeholder, .note-edit__body::placeholder { color: rgba(0,0,0,.35); }
.note-edit__rmphoto { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 50%; width: 26px; height: 26px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.note-edit__rmphoto [data-lucide] { width: 14px; height: 14px; }
.note-dlg__bar { margin-top: 16px; background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.note-dlg__field { display: flex; align-items: center; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--muted); }
.note-dlg__field select { width: auto; padding: 7px 34px 7px 10px; font-size: 14px; }
.note-dlg__field [data-lucide] { width: 16px; height: 16px; }
.note-dlg__photo { margin: 0; }
.note-dlg__buttons { margin-left: auto; display: flex; gap: 6px; }
.swatches { display: flex; gap: 7px; }
.swatches input { position: absolute; opacity: 0; }
.swatches label { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; margin: 0; border: 1px solid rgba(0,0,0,.15); }
.swatches input:checked + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.swatches input:focus-visible + label { outline: 2px dashed var(--primary); outline-offset: 2px; }
@media (max-width: 600px) { .cork { padding: 24px 14px; } .note-dlg__buttons { margin-left: 0; width: 100%; justify-content: flex-end; } }
/* prikbord page: the cork fills the whole content area, no white edges */
.content--bleed { padding: 0; }
.content--bleed .cork { display: block; border: 0; border-radius: 0; min-height: calc(100vh - 68px); padding: 34px 36px 60px;
  box-shadow: inset 0 8px 30px rgba(60,35,15,.35), inset 0 0 80px rgba(60,35,15,.25); }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px 26px; align-items: start; }
/* title card taped onto the board */
.board-card { position: relative; max-width: 560px; margin: 4px 0 42px 6px; padding: 26px 28px 20px; background: #FFFDF6;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(80,120,190,.14) 27px 28px); background-position: 0 58px;
  box-shadow: 2px 8px 18px rgba(0,0,0,.28); transform: rotate(-.8deg); }
.board-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 18px; width: 1px; background: rgba(220,90,90,.35); } /* margin line */
.board-card h1 { font-family: 'Caveat', 'Segoe Print', cursive; font-size: 44px; font-weight: 700; line-height: 1; color: #2B3A33; }
.board-card p { margin: 6px 0 16px; font-size: 16px; line-height: 28px; color: #3B3B3B; }
.board-card__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tape { position: absolute; top: -12px; width: 92px; height: 26px; background: rgba(255,248,220,.72); border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 3px rgba(0,0,0,.12); backdrop-filter: blur(1px); }
.tape--l { left: -18px; transform: rotate(-24deg); }
.tape--r { right: -18px; transform: rotate(22deg); }
.content--bleed .cork__empty { padding: 30px 0 60px; text-align: left; }
@media (max-width: 900px) {
  .content--bleed .cork { min-height: calc(100vh - 60px); padding: 26px 16px 40px; }
  .board-card { margin: 4px 4px 34px; padding: 22px 20px 16px; }
  .board-card h1 { font-size: 36px; }
}
.contact-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* profile photos */
.avatar { overflow: hidden; flex-shrink: 0; }
.avatar--img { display: block; border-radius: 50%; object-fit: cover; background: var(--bg); }
.avatar-edit { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.member-name { display: flex; align-items: center; gap: 10px; }
.note__by { display: flex; align-items: center; gap: 7px; }
.note__by .avatar { font-size: 9px !important; }
/* lightbox for photos */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.82); }
.lightbox img { display: block; max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-out; }
.lightbox__close { position: fixed; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 10px; font-size: 15px; max-width: 80vw; margin-inline: auto; }
.lightbox__cap:empty { display: none; }
.lightbox__nav { display: none; position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox--album .lightbox__nav { display: block; }
.lightbox--album img { max-height: 84vh; }
/* photo album post */
.album--masonry { columns: 3 240px; column-gap: 12px; }
.album--masonry figure { break-inside: avoid; margin: 0 0 12px; }
.album--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.album--grid figure { margin: 0; }
.album--grid img { aspect-ratio: 1; object-fit: cover; }
.album img { display: block; width: 100%; border-radius: 10px; cursor: zoom-in; transition: opacity .15s; }
.album a:hover img { opacity: .9; }
.album figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; }
/* album editor */
.album-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.album-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.album-edit:empty { display: none; }
.album-edit__item { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: var(--surface); cursor: grab; }
.album-edit__item.dragging { opacity: .4; }
.album-edit__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; pointer-events: none; }
.album-edit__item input[type=text] { margin-top: 6px; padding: 6px 8px; font-size: 13px; }
.album-edit__del { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.prose img { cursor: zoom-in; }
/* compact title card */
.board-card { max-width: 400px; margin: 0 0 30px 4px; padding: 16px 20px 14px 26px; background-image: repeating-linear-gradient(transparent 0 21px, rgba(80,120,190,.13) 21px 22px); background-position: 0 44px; }
.board-card h1 { font-size: 32px; }
.board-card p { font-size: 14px; line-height: 22px; margin: 2px 0 10px; }
.board-card .btn { padding: 7px 14px; font-size: 14px; }
.tape { width: 70px; height: 20px; top: -9px; }
.tape--l { left: -14px; } .tape--r { right: -14px; }
@media (max-width: 900px) { .board-card { margin: 0 4px 26px; padding: 14px 16px 12px 22px; } .board-card h1 { font-size: 28px; } }
/* post cards: every card in a row equally tall; without a photo the text gets a bit more room */
.post-card div.body { flex: 1; display: flex; flex-direction: column; }
.post-card__more { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); }
.post-card:not(:has(> img)) div.body { padding: 24px 18px 16px; border-top: 4px solid var(--accent); }
.post-card:not(:has(> img)) b { font-size: 19px !important; line-height: 1.3; }
.post-card:not(:has(> img)) p { font-size: 15px; margin-top: 10px; }
/* attachments as cards */
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.attach { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.attach:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.attach__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; color: var(--text); }
.attach__thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.attach__thumb img { width: 100%; height: 100%; object-fit: cover; }
.attach__thumb--pdf { background: #FEE2E2; color: #DC2626; }
.attach__thumb [data-lucide] { width: 24px; height: 24px; }
.attach__text { min-width: 0; display: flex; flex-direction: column; }
.attach__text b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach__text span { font-size: 12.5px; color: var(--muted); }
.attach__dl { display: grid; place-items: center; width: 44px; border-left: 1px solid var(--border); color: var(--muted); }
.attach__dl:hover { background: var(--bg); color: var(--primary); }
.attach__dl [data-lucide] { width: 18px; height: 18px; }
/* PDF viewer modal */
.docview { margin: auto; border: 0; padding: 0; border-radius: 14px; width: min(900px, calc(100vw - 24px)); height: calc(100vh - 40px); max-height: none; display: none; flex-direction: column; overflow: hidden; }
.docview[open] { display: flex; }
.docview::backdrop { background: rgba(0,0,0,.6); }
.docview__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--border); }
.docview__head b { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docview__pages { flex: 1; overflow-y: auto; background: #E9ECE8; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.docview__pages canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); border-radius: 3px; }
@media (max-width: 600px) { .docview { width: 100vw; height: 100vh; border-radius: 0; } }
.board-card h1 { margin-bottom: 10px; }
/* image size bar in the editor */
.del-page summary { list-style: none; display: inline-flex; }
.del-page summary::-webkit-details-marker { display: none; }
.del-page .check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.del-page select { width: auto; display: inline-block; margin-left: 6px; padding: 4px 8px; }
[hidden] { display: none !important; } /* the hidden attribute always wins over display rules */
.img-sizer { position: absolute; z-index: 5; display: flex; gap: 2px; background: #1F2937; border-radius: 8px; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.img-sizer button { border: 0; background: transparent; color: #fff; font: 600 12px var(--font); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.img-sizer button:hover, .img-sizer button.on { background: rgba(255,255,255,.2); }
.ql-editor img { cursor: pointer; }
.ql-editor img.img-selected { outline: 3px solid var(--primary); outline-offset: 2px; }
/* sized images sit centred between the text */
/* image sizes and alignment (from the editor) */
.prose img, .ql-editor img { height: auto; }
.prose img[width], .ql-editor img[width], .prose img.ql-img-center, .ql-editor img.ql-img-center { display: block; margin: 1em auto; }
/* on its own line, left or right (no text next to it) */
.prose img.ql-img-start, .ql-editor img.ql-img-start { display: block; margin: 1em auto 1em 0; }
.prose img.ql-img-end, .ql-editor img.ql-img-end { display: block; margin: 1em 0 1em auto; }
/* text flows around it */
.prose img.ql-img-left, .ql-editor img.ql-img-left { float: left; margin: .3em 1.4em .8em 0; }
.prose img.ql-img-right, .ql-editor img.ql-img-right { float: right; margin: .3em 0 .8em 1.4em; }
.prose::after { content: ''; display: block; clear: both; }
@media (max-width: 600px) { .prose img.ql-img-left, .prose img.ql-img-right { float: none; display: block; margin: 1em auto; } }
.img-sizer__sep { width: 1px; background: rgba(255,255,255,.25); margin: 4px 3px; }
.img-sizer button { display: inline-flex; align-items: center; }
.img-handle { position: absolute; z-index: 6; width: 18px; height: 18px; border-radius: 4px; background: var(--primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: nwse-resize; touch-action: none; }
.img-badge { position: absolute; z-index: 6; background: #1F2937; color: #fff; font: 600 12px var(--font); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
/* prullenbak */
.trash-list { display: grid; gap: 10px; }
.trash { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
.trash__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.trash__thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; cursor: zoom-in; flex-shrink: 0; }
.trash__text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
/* search: photo results */
.search-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.search-photos figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.search-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.search-photos figcaption { padding: 6px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* audit: uploaded files */
.audit-uploads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.audit-uploads a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); font-size: 12px; }
.audit-uploads img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.audit-uploads i { width: 32px; height: 32px; margin: 20px 0; color: var(--muted); }
.audit-uploads span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* files picked from Bestanden, added on save */
.picked__item { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
/* post editor: text left, settings sidebar right (stacks below on smaller screens) */
.editgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.editgrid__side { display: flex; flex-direction: column; gap: 14px; }
.sidebox { padding: 18px; margin: 0; }
.sidebox h3 { font-size: 15px; margin-bottom: 12px; color: var(--primary); }
.sidebox .form-group { margin-bottom: 12px; }
.side-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; display: block; }
.sidebox input[type=file] { width: 100%; font-size: 13px; }
@media (max-width: 1100px) { .editgrid { grid-template-columns: 1fr; } }
/* pages hidden from members: still in the menu for beheerders, greyed out */
.sidebar__item--hidden { opacity: .5; }
.sidebar__item--hidden:hover, .sidebar__item--hidden.active { opacity: .8; }
/* server status */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.status-card { margin: 0; }
.status-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--primary); }
.status-card__head .badge { margin-left: auto; }
.meter { height: 10px; border-radius: 99px; background: #E9ECE8; overflow: hidden; margin-bottom: 8px; }
.meter__bar { height: 100%; border-radius: 99px; transition: width .4s; }
.meter__bar--success { background: var(--success); } .meter__bar--warn { background: #D97706; } .meter__bar--danger { background: var(--danger); }
/* web-app install banner (phones) */
.install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 520px; margin: 0 auto; }
.install img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.install__text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.install__text span { color: var(--muted); font-size: 13px; }
.install__close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
/* agenda: mini calendars left, list right (on phones: only this month, above the list) */
.agenda-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.cals { display: flex; flex-direction: column; gap: 12px; }
.cals__nav { display: flex; justify-content: space-between; align-items: center; }
.cal { padding: 12px 14px; margin: 0; }
.cal__title { font-weight: 600; color: var(--primary); margin-bottom: 6px; text-align: center; }
.cal__title::first-letter, .agenda-day-head h2::first-letter { text-transform: uppercase; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__wd { font-size: 11px; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.cal__day { position: relative; display: block; padding: 4px 0 7px; border-radius: 8px; font-size: 13px; color: var(--text); text-decoration: none; }
.cal__day:hover { background: var(--bg); }
.cal__day--today { font-weight: 700; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
/* a day with an activity: soft gold background, bold number and a dot */
.cal__day--has { background: color-mix(in srgb, var(--accent) 30%, white); color: var(--primary); font-weight: 700; }
.cal__day--has:hover { background: color-mix(in srgb, var(--accent) 45%, white); }
.cal__day--has::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.cal__day--sel { background: var(--primary); color: #fff; font-weight: 600; }
.cal__day--sel:hover { background: var(--primary); }
.cal__day--sel::after { background: #fff; }
.agenda-day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .agenda-layout { grid-template-columns: 1fr; }
  .cal:not(.cal--mid) { display: none; }
}
.invite-texts summary { cursor: pointer; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.invite-texts[open] summary { margin-bottom: 4px; }
/* invitation page */
.to-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.to-choice { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.to-choice input { position: absolute; opacity: 0; }
.to-choice span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 10px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.to-choice small { color: var(--muted); font-size: 12px; }
.to-choice input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.to-choice input:focus-visible + span { outline: 2px solid var(--primary); }
.pick__list { max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.pick__item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); margin: 0; }
.pick__item:last-child { border-bottom: 0; }
.pick__item:hover { background: var(--bg); }
.pick__item input { width: 18px; height: 18px; accent-color: var(--primary); }
.pick__name { flex: 1; }
.invite-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
/* login screen options (Instellingen > Inlogscherm) */
.login--right .login__img { order: 2; }
.login--overlay-none .login__img::after { display: none; }
.login--overlay-strong .login__img::after { background: linear-gradient(0deg, color-mix(in srgb, var(--primary) 88%, transparent), color-mix(in srgb, var(--primary) 25%, transparent) 70%); }
.login__img p { text-shadow: 0 2px 12px rgba(0,0,0,.35); font-weight: 600; white-space: pre-line; }
.login__intro { color: var(--muted); margin: -8px 0 18px; line-height: 1.5; white-space: pre-line; }
@media (max-width: 900px) { .login--right .login__img { order: 0; } }
.login-settings { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; }
.login-settings .check { display: flex; margin-bottom: 8px; }
@media (max-width: 900px) { .login-settings { grid-template-columns: 1fr; } }
/* read-only for beheerders (pages the administrator manages) */
.flash.readonly { background: #EEF2F7; color: #334155; display: flex; gap: 10px; align-items: flex-start; }
.ro-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.ro-set:disabled input, .ro-set:disabled textarea, .ro-set:disabled select { background: #F3F4F2; color: var(--muted); cursor: not-allowed; }
/* weergaven (beheerders) */
.views-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--border); white-space: nowrap; }
.views-badge:hover { color: var(--primary); border-color: var(--primary); }
.views-badge svg, .views-cell svg { width: 15px; height: 15px; }
.views-cell { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; white-space: nowrap; font-size: 14px; }
.views-cell:hover { color: var(--primary); }
/* gerapporteerde notitie in Meldingen */
.reported { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; padding: 14px; background: var(--bg); border-radius: 12px; }
.reported__note { transform: none !important; width: 260px; max-width: 100%; margin: 0; }
.reported__note::before { display: none; }
.reported__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
/* melding doen: form left, known reports right (on phones the known reports come first) */
.report-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.report-layout > form { margin: 0; }
.report-side .card { margin-bottom: 18px; }
.report-side .card:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .report-layout { grid-template-columns: 1fr; } .report-side { order: -1; } }
/* reacties & emoji's under posts */
.discuss { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 760px; }
.discuss__title { margin: 18px 0 12px; }
.discuss__new { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 28px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 2px 10px rgba(20,30,25,.04); }
.discuss__new + * { padding-top: 22px; border-top: 1px dashed var(--border); }
.discuss__new .cmt__form textarea { min-height: 60px; }
.discuss__new .cmt__form button { align-self: flex-end; }
.cmt { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.cmt__main { flex: 1; min-width: 0; }
.cmt__bubble { display: inline-block; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 9px 14px; }
.cmt__bubble--gone { color: var(--muted); background: transparent; }
.cmt__who { font-size: 14px; margin-bottom: 2px; }
.cmt__text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.cmt__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; margin: 4px 0 0 4px; }
.cmt__act > summary, .cmt__link { list-style: none; cursor: pointer; color: var(--muted); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; }
.cmt__act > summary::-webkit-details-marker { display: none; }
.cmt__act > summary:hover, .cmt__link:hover { color: var(--primary); }
.cmt__act[open] { flex-basis: 100%; }
.cmt__act[open] > summary { color: var(--primary); }
.cmt__inline { display: inline; }
.cmt__form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 8px; }
.cmt__form textarea { min-height: 70px; width: 100%; }
.cmt__form input[type=text] { width: 100%; }
.cmt__replies { margin-top: 10px; padding-left: 4px; border-left: 2px solid var(--border); padding-left: 12px; }
.emojis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.emojis__form { display: inline; margin: 0; }
.emojis__chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 4px 10px; font-size: 14px; cursor: pointer; color: var(--text); }
.emojis__chip span { font-size: 16px; line-height: 1; }
.emojis__chip.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); color: var(--primary); font-weight: 600; }
.emojis__pick { position: relative; }
.emojis__pick > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); border: 1px dashed var(--border); border-radius: 99px; padding: 4px 10px; font-size: 14px; }
.emojis__pick > summary::-webkit-details-marker { display: none; }
.emojis__pick > summary svg { width: 17px; height: 17px; }
.emojis__menu { position: absolute; z-index: 20; bottom: calc(100% + 6px); left: 0; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 5px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.emojis__menu button { border: 0; background: none; font-size: 24px; line-height: 1; padding: 4px 5px; border-radius: 10px; cursor: pointer; transition: transform .12s; }
.emojis__menu button:hover { transform: scale(1.25); background: var(--bg); }
.emojis--small .emojis__chip { padding: 2px 8px; font-size: 12px; }
.emojis--small .emojis__chip span { font-size: 14px; }
.emojis--small .emojis__pick > summary { border: 0; padding: 0 2px; }
@media (max-width: 600px) { .cmt__replies { padding-left: 8px; } .emojis__menu button { font-size: 22px; } }
/* meldingen desk (beheer) */
.desk { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.desk__list { padding: 0; margin: 0; position: sticky; top: 84px; max-height: calc(100vh - 104px); display: flex; flex-direction: column; overflow-y: auto; }
.desk__tabs { display: flex; gap: 4px; padding: 10px; overflow-x: auto; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.desk__tabs a { white-space: nowrap; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.desk__tabs a span { font-weight: 400; opacity: .8; }
.desk__tabs a.on { background: var(--primary); color: #fff; }
.desk__search { padding: 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.desk__search input { padding: 8px 12px; }
.desk__row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.desk__row:hover { background: var(--bg); }
.desk__row.on { background: color-mix(in srgb, var(--primary) 8%, white); box-shadow: inset 3px 0 0 var(--primary); }
.desk__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.desk__main b { font-size: 14px; line-height: 1.3; }
.desk__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.desk__tags .badge { font-size: 11px; padding: 2px 7px; display: inline-flex; align-items: center; gap: 3px; }
.desk__tags svg { width: 11px; height: 11px; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.dot--danger { background: var(--danger); } .dot--warn { background: #D97706; } .dot--success { background: var(--success); }
.desk__empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.desk__empty svg { width: 40px; height: 40px; margin-bottom: 8px; }
.desk__back { display: none; margin-bottom: 10px; }
.status-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seg--status button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg--status button svg { width: 16px; height: 16px; }
.seg--status button:hover:not(:disabled) { color: var(--primary); }
.seg--status button.on { color: #fff; cursor: default; }
.seg--status button.on--danger { background: var(--danger); } .seg--status button.on--warn { background: #D97706; } .seg--status button.on--success { background: var(--success); }
.reporter { display: flex; gap: 12px; align-items: center; padding: 12px 0; margin: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reporter a { color: var(--primary); }
.rep-body { white-space: pre-line; margin-bottom: 12px; line-height: 1.6; font-size: 16px; }
.voters { display: flex; gap: 8px; align-items: flex-start; background: #FEF3C7; color: #78350F; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.voters svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
/* conversation on a melding */
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { display: flex; }
.msg__bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.msg__text { white-space: pre-line; }
.msg__who { font-size: 12px; font-weight: 600; opacity: .75; margin-bottom: 3px; white-space: normal; }
.msg--lid .msg__bubble { background: var(--bg); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg--bestuur { justify-content: flex-end; }
.msg--bestuur .msg__bubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.msg--internal { justify-content: flex-end; }
.msg--internal .msg__bubble { background: #FEF3C7; color: #78350F; border: 1px dashed #D97706; border-top-right-radius: 4px; }
.reply textarea { min-height: 90px; }
.reply__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.seg--small label { padding: 7px 12px; font-size: 13px; }
/* "ik heb hier ook last van" */
.vote { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.vote__btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; white-space: nowrap; }
.vote__btn svg { width: 14px; height: 14px; }
.vote__btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 1000px) {
  .desk { grid-template-columns: 1fr; }
  .desk__list { position: static; max-height: none; }
  .desk--sel .desk__list { display: none; }
  .desk:not(.desk--sel) .desk__detail { display: none; }
  .desk__back { display: inline-block; }
  .msg__bubble { max-width: 92%; }
}
/* Nederlands | Duits tabs in the editors */
.lang-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.lang-tabs button { border: 0; background: none; padding: 9px 16px; margin-bottom: -2px; border-bottom: 2px solid transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-tabs button span { font-weight: 400; font-size: 12px; }
.lang-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.lang-tabs button.filled::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.lang-tabs button.filled span { display: none; }
.editbar__group { display: flex; gap: 2px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--border); }
.editbar__del { color: var(--danger); }
.editbar__del:hover { background: #FEF2F2; color: var(--danger); }
@media (max-width: 600px) { .editbar { gap: 6px; } .editbar__title { display: none; } .editbar__group { margin-left: auto; } }
/* opschonen */
.clean-group { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.clean-group__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 14px; background: var(--bg); }
.clean-group__head .check { margin: 0; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); }
.clean-list { max-height: 360px; overflow: auto; }
.clean-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.clean-item:hover { background: var(--bg); }
.clean-item input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.clean-item img { width: 44px; height: 34px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.clean-item svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; margin: 0 11px; }
.clean-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clean-list--photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 10px; }
.clean-list--photos .clean-item { flex-direction: column; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; padding: 6px; position: relative; gap: 4px; }
.clean-list--photos .clean-item input { position: absolute; top: 10px; left: 10px; }
.clean-list--photos .clean-item img { width: 100%; height: 100px; }
.clean-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0 0; background: var(--surface); border-top: 1px solid var(--border); margin-top: 6px; }
/* verjaardagen in de agenda */
.cal__day--bday::before { content: '🎂'; position: absolute; top: 0; right: 1px; font-size: 10px; line-height: 1; }
.cal__day--bday { background: #FFF1E6; }
.bday-card { display: flex; gap: 14px; align-items: center; background: #FFF7ED; border-color: #FED7AA; }
.bday-card__cake { font-size: 30px; }
.bday-soon__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 14px; }
.bday-soon__row:first-of-type { border-top: 0; }
.bday-soon .cal__title { text-align: left; }
@media (max-width: 900px) { .bday-soon { display: none; } }
/* dashboard widgets */
.dash-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin: -6px 0 16px; }
.dash-bar--on { justify-content: space-between; background: color-mix(in srgb, var(--primary) 8%, white); border: 1px dashed var(--primary); border-radius: 12px; padding: 10px 14px; margin-top: 0; }
.dash-bar--on > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--primary); }
.dash-bar svg { width: 17px; height: 17px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
.widget { margin-bottom: 18px; }
.widget > .card { margin-bottom: 0; }
.widget > .tiles { margin-bottom: 0; }
.widget--edit { outline: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 4px; border-radius: 14px; }
.widget__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 8px; background: var(--primary); color: #fff; border-radius: 10px; }
.widget__type { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-right: auto; }
.widget__tools > form svg, .widget__type svg, .widget__set > summary svg { width: 16px; height: 16px; }
.widget__tools > form { display: inline-flex; gap: 2px; margin: 0; }
.widget__tools > form button, .widget__set > summary { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 7px; padding: 5px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; font-weight: 600; }
.widget__tools > form button:hover:not(:disabled), .widget__set > summary:hover { background: rgba(255,255,255,.28); }
.widget__tools > form button:disabled { opacity: .35; cursor: default; }
.widget__set { position: relative; }
.widget__set > summary { list-style: none; }
.widget__set > summary::-webkit-details-marker { display: none; }
.widget__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(420px, 86vw); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.widget__form .check { margin-bottom: 12px; }
.widget__form textarea { min-height: 90px; }
.dash-add__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dash-add__grid form { margin: 0; }
.dash-add__btn { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1.5px dashed var(--border); background: var(--surface); border-radius: 12px; padding: 14px; cursor: pointer; font: inherit; color: var(--text); }
.dash-add__btn:hover { border-color: var(--primary); }
.dash-add__btn svg { width: 22px; height: 22px; color: var(--primary); }
.dash-add__btn span { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.hero__edit { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.hero__edit svg { width: 15px; height: 15px; }
.dash-bar--on { margin: 0 0 14px; }
.hero--alone { margin-bottom: 22px; }
/* settings panel of a widget: a normal form (one field under the other) */
.widget__form { display: block; font-weight: 400; }
.widget__form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.widget__form label { color: var(--muted); }
.widget__form select, .widget__form input[type=text], .widget__form textarea { width: 100%; }
/* huishouden (profiel + beheer) */
.hh { margin-bottom: 18px; } .pf .hh { margin-bottom: 0; }
.hh__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 700px) { .hh__grid { grid-template-columns: 1fr; } }
.hh__grid:last-of-type { margin-bottom: 0; }
.hh__card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--bg); }
.hh__card .form-group:last-child { margin-bottom: 0; }
.hh__card .form-row { gap: 0 10px; grid-template-columns: 1fr 1fr; }
.hh__card .check { margin-top: 8px; }
.hh__label, .hh__head b { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.hh__label svg, .hh__head svg { width: 17px; height: 17px; }
.hh__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.hh__head b { margin: 0; }
.hh__rowtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.hh__rowtop select { width: auto; padding: 6px 34px 6px 10px; font-size: 14px; font-weight: 600; color: var(--primary); }
.hh__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; border: 1.5px dashed var(--border);
  border-radius: 12px; background: none; color: var(--primary); font: 600 15px var(--font); cursor: pointer; }
.hh__add:hover { border-color: var(--primary); background: var(--primary-soft); }
.daymonth { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }

/* profielpagina */
.pf { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.pf__me { position: sticky; top: 88px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pf__me .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-soft); }
.pf__name { font-size: 20px; line-height: 1.3; margin: 4px 0 0; }
.pf__name > span:not(.shield) { display: block; font-size: 16px; font-weight: 500; color: var(--muted); }
.pf__facts { width: 100%; margin: 0; border-top: 1px solid var(--border); }
.pf__facts div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pf__facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.pf__facts dt svg { width: 15px; height: 15px; }
.pf__facts dd { margin: 0; font-weight: 600; }
.pf__me .hint { margin: 0; }
.pf__main > .card { margin-bottom: 18px; }
.pf__head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.pf__head h2 { margin: 0; }
.pf__head p { margin: 2px 0 0; }
.savebar { position: sticky; bottom: 16px; z-index: 5; width: fit-content; max-width: 100%; margin-left: auto; display: flex; align-items: center; gap: 14px; border: 1px solid transparent; border-radius: 999px; }
.savebar .btn { border-radius: 999px; box-shadow: 0 6px 18px rgba(20,30,25,.25); }
.savebar__msg { display: none; align-items: center; gap: 8px; font-weight: 600; color: color-mix(in srgb, var(--accent) 60%, black); }
.savebar__msg svg { width: 18px; height: 18px; flex-shrink: 0; }
.pf--dirty .savebar { padding: 6px 6px 6px 18px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); box-shadow: 0 8px 24px rgba(20,30,25,.15); }
.pf--dirty .savebar .btn { box-shadow: none; }
.pf--dirty .savebar__msg { display: flex; }
@media (max-width: 1000px) {
  .pf { grid-template-columns: 1fr; }
  .pf__me { position: static; }
}
@media (max-width: 560px) {
  .savebar { bottom: 8px; }
  .savebar__msg { font-size: 13px; }
  .pf__head .row__icon { display: none; }
}
a.note__by { color: inherit; text-decoration: none; }
a.note__by:hover span, .who-link:hover { text-decoration: underline; }
.who-link { color: inherit; text-decoration: none; }
.cmt__av { align-self: flex-start; text-decoration: none; }
.member-name > a, .row > a:has(.avatar) { text-decoration: none; }
/* profiel van een lid */
.mp { max-width: 760px; }
.mp__top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mp__top .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-soft); }
.mp__top h1 { font-size: 26px; margin: 0; }
.mp__people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mp__person { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.mp__person b { color: var(--primary); }
.mp__person .btn { align-self: flex-start; }
.hh__kind { display: flex; gap: 6px; flex-wrap: wrap; }
.hh__kind select { width: auto; padding: 6px 34px 6px 10px; font-size: 14px; font-weight: 600; color: var(--primary); }
.logo-text { color: var(--primary); margin: 0 0 18px; }
.topbar__logo b { color: var(--primary); }
.hero--plain, .login__img--plain { background-color: var(--primary) !important; }
.hero--plain::before, .hero--plain::after, .login__img--plain::before, .login__img--plain::after { display: none; }
/* documentatie */
.docs { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.docs > * { min-width: 0; }
.docs__nav { position: sticky; top: 88px; }
.docs__search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; margin-bottom: 12px; }
.docs__search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.docs__search input { border: 0; box-shadow: none !important; padding: 11px 0; background: none; }
.docs__nav nav { display: flex; flex-direction: column; gap: 2px; }
.docs__nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 500; }
.docs__nav nav a svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }
.docs__nav nav a:hover { background: var(--primary-soft); }
.docs__nav nav a.on { background: var(--primary); color: #fff; }
.docs__nav nav a.on svg { color: #fff; }
.docs__topic h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.docs__topic h2 svg { width: 22px; height: 22px; color: var(--primary); }
.docs__topic > p.muted { margin-bottom: 8px; }
.docs__sec { padding: 18px 0 4px; border-top: 1px solid var(--border); margin-top: 14px; scroll-margin-top: 90px; border-radius: 8px; transition: background .4s; }
.docs__sec--hit { background: var(--accent-soft); }
.docs__sec h3 { font-size: 17px; margin: 0 0 8px; color: var(--primary); }
.docs__sec p, .docs__sec li { line-height: 1.65; }
.docs__sec ol, .docs__sec ul { padding-left: 22px; margin: 0 0 10px; }
.docs__sec li { margin-bottom: 4px; }
.docs .ui { display: inline-block; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-weight: 600; font-size: .92em; white-space: nowrap; }
.docs .badge { vertical-align: 1px; }
.docs__results h2 { margin-bottom: 12px; }
.docs__hit { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; color: var(--text); text-decoration: none; }
.docs__hit:hover { border-color: var(--primary); background: var(--primary-soft); }
.docs__hit b { color: var(--primary); }
.docs mark { background: color-mix(in srgb, var(--accent) 40%, white); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .docs__nav { position: static; }
  .docs__nav nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .docs__nav nav a { white-space: nowrap; border: 1px solid var(--border); background: var(--surface); }
  .docs .ui { white-space: normal; }
}
.search-btn, .search__close, .dash-mobile { display: none; }
.search__close { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; }
@media (max-width: 600px) {
  .search-btn { display: inline-flex; padding: 8px; }
  .topbar--searching > :not(.search) { display: none; }
  .topbar--searching .search { display: flex; flex: 1; max-width: none; }
  .topbar--searching .search__close { display: grid; }
  .hero__edit, .dash-bar, .widget__tools, .dash-add { display: none !important; }
  .dash-mobile { display: flex; align-items: center; gap: 10px; }
  .dash-mobile svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
}
.search input:focus { box-shadow: none !important; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.device { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.device > svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.device__main { flex: 1; min-width: 0; }
.devices--admin { margin-bottom: 14px; }
.devices--admin .device > svg { width: 18px; height: 18px; }
.lang-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lang-pick__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); margin: 0; position: relative; }
.lang-pick__item input { position: absolute; top: 14px; right: 14px; }
.lang-pick__item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.lang-pick__item:has(input:disabled:not(:checked)) { opacity: .5; }
.lang-pick__flag { font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--primary); color: #fff; margin-bottom: 8px; }
/* rechten */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.role-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; }
.role-card b { font-size: 17px; color: var(--primary); }
.role-card:hover { border-color: var(--primary); }
.role-card.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-soft); }
.role-card--new { border-style: dashed; justify-content: center; }
.role-card--new input { padding: 8px 10px; font-size: 14px; }
.role-tabs { margin: 10px 0 18px; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.perm { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); margin: 0; }
.perm input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.perm--on { border-color: var(--primary); background: var(--primary-soft); }
.perm:has(input:disabled) { cursor: default; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.perm-group { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.perm-group__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.perm-group__head b { color: var(--primary); font-size: 16px; }
.perm-group__head .perm-all { margin-left: auto; }
.perm-group .perm { border: 0; padding: 8px 6px; border-radius: 10px; }
.perm-group .perm--on { background: var(--primary-soft); }
.hh__card--linked { background: var(--surface); border-style: dashed; }
.mp__family { margin: 4px 0 0; font-size: 17px; color: var(--muted); }
.shield { display: inline-flex; vertical-align: middle; margin-right: .25em; color: var(--accent); }
.shield--goud { color: #C9A45C; } .shield--blauw { color: #2563EB; } .shield--groen { color: #16A34A; }
.shield--rood { color: #DC2626; } .shield--paars { color: #7C3AED; } .shield--grijs { color: #6B7280; }
.badge-form { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.badge-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-swatch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--border); border-radius: 99px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.badge-swatch input { margin: 0; }
.badge-swatch:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.badge-swatch .shield { margin: 0; font-size: 18px; }
.badge-label { display: flex; align-items: center; gap: 8px; }
.badge-label span { white-space: nowrap; }
.shield svg { width: .85em; height: .85em; stroke-width: 2.5; }
.cat-rows { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.cat-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) 36px; gap: 6px; align-items: center; }
.cat-row input { padding: 8px 10px; font-size: 14px; }
.cat-row--head span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.steps { padding-left: 20px; margin: 0 0 12px; } .steps li { margin-bottom: 8px; line-height: 1.55; }
.import-table td, .import-table th { white-space: nowrap; font-size: 14px; }
.import-skip td { color: var(--muted); text-decoration: line-through; } .import-skip td:last-child { text-decoration: none; }
.badge--warn { background: #FEF3C7; color: #92400E; } .badge--danger { background: #FEE2E2; color: #991B1B; }
@media print { .sidebar, .topbar, .card:not(:last-of-type), .btn { display: none !important; } }
.import-table td:last-child { white-space: normal; min-width: 220px; }
.import-table td:last-child .badge { white-space: normal; text-align: left; }
.addr { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; gap: 0 12px; }
.addr__street { grid-column: span 4; } .addr__number { grid-column: span 2; }
.addr__postcode { grid-column: span 2; } .addr__city { grid-column: span 4; } .addr__country { grid-column: span 3; }
.addr .form-group:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .addr { grid-template-columns: 1fr 1fr; } .addr__street, .addr__city, .addr__country { grid-column: 1 / -1; } .addr__number, .addr__postcode { grid-column: span 1; } }
.pf__photo { position: relative; }
.pf__photo-del { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: var(--danger, #DC2626); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pf__photo-del svg { width: 16px; height: 16px; }
.pf__photo-del[hidden] { display: none; }
.shield { cursor: help; }
.tip { position: absolute; z-index: 100; max-width: 260px; padding: 7px 11px; border-radius: 8px; background: #1F2937; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #1F2937; }
.page-head .who-link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
/* welkom-blok */
.widget-welcome { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, white), var(--surface) 55%); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.welcome__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.welcome__head h2 { font-size: 24px; margin: 0 0 6px; }
.welcome__head p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 720px; }
.welcome__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.welcome__icon svg { width: 28px; height: 28px; }
.welcome__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.welcome__grid h3 { font-size: 16px; color: var(--primary); margin: 0 0 10px; }
.welcome__tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.welcome__tips li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.welcome__tips li > svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.welcome__tips a { font-weight: 600; }
.welcome__profile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.welcome__checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.welcome__checks li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.welcome__checks li svg { width: 18px; height: 18px; }
.welcome__checks li.ok { color: var(--success, #16A34A); font-weight: 600; }
.welcome__sign { margin: 16px 0 0; font-size: 16px; font-weight: 600; color: var(--primary); }
.welcome__sign span { font-weight: 400; color: var(--muted); }
@media (max-width: 800px) { .welcome__grid { grid-template-columns: 1fr; } .welcome__head h2 { font-size: 20px; } }
.welcome__phone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--primary); color: #fff; }
.welcome__phone > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.welcome__phone > div span { opacity: .9; }
.welcome__phone .btn--primary { background: #fff; color: var(--primary); }
.welcome__phone a { color: #fff; }
.welcome__phone-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex-shrink: 0; }
.welcome__phone-icon svg { width: 24px; height: 24px; }
.welcome__phone [hidden] { display: none !important; }
.app-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.app-steps h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-steps h2 svg { width: 22px; height: 22px; color: var(--primary); }
.app-steps ol { padding-left: 22px; margin: 12px 0 0; } .app-steps li { margin-bottom: 8px; line-height: 1.55; }
.app-qr img { display: block; margin-top: 8px; border: 1px solid var(--border); border-radius: 12px; }
/* reacties-overzicht */
.cdesk { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.cdesk__item { margin: 0; padding: 16px 18px; }
.cdesk__item--new { border-left: 4px solid var(--accent); }
.cdesk__head { display: flex; gap: 12px; align-items: flex-start; }
.cdesk__who { flex: 1; min-width: 0; }
.cdesk__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cdesk__text { margin: 10px 0 12px 48px; white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere; font-size: 16px; }
.cdesk__actions { margin-left: 48px; align-items: flex-start; }
.cdesk__reply { flex-basis: 100%; order: 9; } .cdesk__reply:not([open]) { flex-basis: auto; order: 0; }
.cdesk__reply summary { list-style: none; } .cdesk__reply summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) { .cdesk__text, .cdesk__actions { margin-left: 0; } }
.cdesk__head > a { text-decoration: none; }
.posts-search { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; max-width: 520px; }
.posts-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.posts-search input { flex: 1; border: 0; background: none; padding: 11px 0; font: inherit; outline: none; min-width: 0; }
.search-snip { margin-top: 3px; line-height: 1.45; }

/* eye button in password fields (partials/pw-eye) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-wrap input::-ms-reveal { display: none; } /* Edge has its own eye: one is enough */
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--primary); background: var(--primary-soft); }

/* type-ahead field with suggestions (map field in the post form) */
.combo { position: relative; }
.combo input { padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B736E' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 240px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.combo__list li { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 15px; }
.combo__list li svg { flex-shrink: 0; color: var(--muted); }
.combo__list li.on svg, .combo__list li:hover svg, .combo__list li.is-new svg { color: inherit; }
.combo__list li:hover, .combo__list li.on { background: var(--primary-soft); color: var(--primary); }
.combo__list li.is-new { color: var(--primary); border-top: 1px solid var(--border); margin-top: 2px; }
.combo__list li.is-new:first-child { border-top: 0; margin-top: 0; }
