/* Huisstijl &samm (ensamm.nl): limoengeel op donker navy, wit met veel afronding, pilvormige knoppen,
   Outfit voor koppen en Inter voor tekst. Opzet zoals de Momus-backend: zijbalk, kaarten, statuspillen, initialen-avatars. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap");
:root {
  --navy: #0a1e2a; --navy-2: #0e3042; --navy-3: #16425a;
  --lime: #dee061; --lime-2: #d2d44a; --lime-soft: #f4f7d7; --lime-ink: #5c5e12;
  --brand: var(--navy-2); --brand-dark: var(--navy); --brand-soft: var(--lime-soft); --brand-ink: var(--navy);
  --gold: #6b7a1f; --gold-soft: var(--lime-soft);
  --bg: #f5f6f0; --side: var(--navy); --panel: #ffffff; --ink: #1e1e1e; --ink-2: #212529; --muted: #6c7680; --line: #e6e8e1; --line-2: #cfd3c9;
  --ok: #1f7a3f; --ok-soft: #e2f4e8; --warn: #9a6700; --warn-soft: #fff1cc; --err: #b4261f; --err-soft: #fde7e5; --info: #0e3042; --info-soft: #e3edf3;
  --radius: 20px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(10,30,42,.04), 0 8px 24px rgba(10,30,42,.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--head);
  --mono: "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
button, input, select, textarea, optgroup { font-family: inherit; }
td, th, .n, .big { font-variant-numeric: tabular-nums; }
b, strong { font-weight: 700; }
html, body { margin: 0; background: var(--bg); color: var(--ink-2); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; line-height: 1.12; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; letter-spacing: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.eyebrow, .label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 8px; }
.label { color: var(--muted); letter-spacing: .1em; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--side); color: rgba(255,255,255,.78); padding: 20px 16px 20px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logo { display: block; padding: 4px 12px 12px; }
.side-logo img { height: 30px; width: auto; display: block; }
.side-cta { display: flex; flex-direction: column; gap: 8px; }
.side-cta .btn { justify-content: center; width: 100%; }
.side-cta .row .btn { flex: 1; justify-content: center; background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.14); }
.side-cta .row .btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.4); padding: 0 12px; margin: 8px 0 8px; }
.nav-group a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-group a .ic { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.62); }
.nav-group a:hover .ic { color: #fff; }
.nav-group a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-group a.active { background: rgba(222,224,97,.16); color: var(--lime); font-weight: 600; }
.nav-group a.active .ic { color: var(--lime); }
.nav-group a .count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--lime); border-radius: 10px; min-width: 18px; height: 18px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; padding: 0 12px; color: rgba(255,255,255,.5); }
.sidebar-foot a { color: rgba(255,255,255,.55); }
.sidebar-foot .pill { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); white-space: normal; line-height: 1.35; align-self: flex-start; max-width: 100%; }
.sidebar-foot .pill-ok { color: var(--lime); }
.sidebar-foot .pill-warn { color: #f3d27a; }
.main { flex: 1; min-width: 0; }
.topbar { background: transparent; padding: 16px 36px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.wordmark { font-family: var(--head); font-size: 15px; letter-spacing: .02em; color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark img { height: 16px; width: auto; }
.topbar .crumbs a { color: var(--muted); text-decoration: none; }
.topbar .crumbs a:hover { color: var(--ink); }
.topbar .crumbs span { margin: 0 8px; color: var(--line-2); }
.topbar .crumbs .wordmark + span { margin-left: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; min-width: 240px; box-shadow: var(--shadow); }
.search input[type=text] { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; padding: 0; border-radius: 0; }
.search input[type=text]:focus { outline: 0; border: 0; }
.search kbd { font: 600 11px var(--font); color: var(--muted); background: var(--lime-soft); border-radius: 4px; padding: 2px 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--navy); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.avatar.gold { background: var(--lime-soft); color: var(--navy-2); }
.content { padding: 24px 36px 70px; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* layout helpers */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } .content { padding: 20px; } .sidebar { display: none; } .topbar { padding: 16px 20px 0; } }
.card { background: var(--panel); border: 1px solid rgba(0,0,0,.02); border-radius: var(--radius); padding: 24px 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid > .card { margin-top: 0; }
.card.tight { padding: 16px 16px; }
.card.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 120%); color: #fff; border: 0; position: relative; overflow: hidden; }
.card.hero::after { content: ""; position: absolute; right: -30px; top: -40px; width: 220px; height: 220px; background: url("/static/brand/samm-mark.svg") no-repeat center / contain; opacity: .08; pointer-events: none; }
.card.hero .eyebrow { color: var(--lime); }
.card.hero h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.card.hero p { color: rgba(255,255,255,.82); margin: 0 0 20px; max-width: 520px; }
.card.hero .btn { background: var(--lime); border-color: var(--lime); color: var(--navy); position: relative; }
.card.hero .btn:hover { background: #fff; border-color: #fff; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n { font-family: var(--head); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat .icon { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 15px; }

/* buttons: pillen */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--navy); border: 1px solid var(--lime); border-radius: 999px; padding: 8px 20px; font: 600 13px var(--font); cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 2px rgba(10,30,42,.08); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }
.btn-navy { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-navy:hover { background: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line-2); box-shadow: none; }
.btn-outline:hover { background: var(--lime-soft); border-color: var(--navy-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--lime-soft); color: var(--navy); border-color: transparent; }
.btn-danger { background: #fff; color: var(--err); border-color: #f0cfcc; box-shadow: none; }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-soft { background: var(--lime-soft); color: var(--navy); border-color: var(--lime-soft); box-shadow: none; }
.btn-soft:hover { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 14px; }
form.inline { display: inline; }
.quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 20px 0 24px; }
.quick .label { margin: 0 8px 0 0; }
.quick .btn { background: #fff; color: var(--ink); border-color: var(--line); }
.quick .btn:hover { border-color: var(--navy-2); background: var(--lime-soft); color: var(--navy); }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
label.plainlabel { font-weight: 500; font-size: 13px; }
label.btn { margin: 0; color: var(--navy); cursor: pointer; }
.rec-actions { margin-top: 12px; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec-actions .btn { min-height: 40px; }
.btn .i-rec, .btn .i-stop { display: inline-flex; }
.btn .i-rec[hidden], .btn .i-stop[hidden] { display: none; }
input[type=text], input[type=search], input[type=url], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=file], select, textarea {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(222,224,97,.45); border-color: var(--navy-2); }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 240px; }
input[type=color] { width: 42px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: #fff; }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fields-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.fields-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
@media (max-width: 900px) { .fields-2, .fields-3, .fields-4 { grid-template-columns: 1fr; } }
fieldset { border: 0; border-radius: var(--radius); padding: 20px 24px 8px; margin: 0 0 16px; background: #fff; box-shadow: var(--shadow); }
legend { font-weight: 700; padding: 0; font-size: 14px; float: left; width: 100%; margin-bottom: 16px; }
legend + * { clear: both; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; color: var(--ink); }
.check input { width: auto; }

/* tables */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 12px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
table.list td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr:hover td { background: #f9faf3; }
table.list a { color: var(--ink); font-weight: 600; }
table.list a:hover { color: var(--brand); text-decoration: none; }
.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; background: #f0eeed; border: 1px solid var(--line); }
.thumb-lg { width: 100%; max-height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #f0eeed; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0e8; color: var(--ink-2); white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-err { background: var(--err-soft); color: var(--err); }
.pill-accent, .pill-info { background: var(--info-soft); color: var(--info); }
.pill-grey { background: #eef0e8; color: var(--ink-2); }
.pill-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; box-shadow: var(--shadow); }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-error { background: var(--err-soft); color: var(--err); }

/* tabs */
.tabs { display: flex; gap: 4px; background: #e9ebe2; border-radius: 999px; padding: 4px; margin-bottom: 20px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs a { text-decoration: none; padding: 8px 16px; color: var(--ink-2); border-radius: 999px; white-space: nowrap; font-weight: 500; font-size: 13px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* misc */
.swatches { display: flex; gap: 4px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.08); display: inline-block; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.checks li:last-child { border-bottom: 0; }
.check-ok { color: var(--ok); font-weight: 700; }
.check-bad { color: var(--err); font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { color: var(--muted); font-size: 12px; }
.product-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.product-pick label { display: flex; gap: 12px; align-items: center; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px; font-weight: 500; cursor: pointer; font-size: 13px; color: var(--ink); background: #fff; }
.product-pick .thumb { flex: 0 0 auto; width: 36px; height: 36px; }
.pp-name { min-width: 0; flex: 1 1 auto; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pp-name .small { display: block; }
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pp-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.pp-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pp-search input { width: 100%; padding-left: 36px; }
.pp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pp-nav .btn[disabled] { opacity: .4; cursor: default; }
.product-pick label[hidden] { display: none; }
.product-pick label:has(input:checked) { border-color: var(--navy-2); background: var(--lime-soft); }
.product-pick input { width: auto; }
.login { max-width: 420px; margin: 12vh auto; padding: 36px 36px; }
/* Bewerken links, voorbeeld rechts: het voorbeeld blijft in beeld en scrolt zelfstandig */
.split-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 660px); gap: 20px; align-items: start; }
.split-edit.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-edit > .side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-gutter: stable; }
.voorbeeld-wrap { background: #e9ebe2; border-radius: var(--radius); padding: 12px; position: sticky; top: 16px; }
.voorbeeld-wrap .vb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.voorbeeld-wrap .vb-head .subject { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.voorbeeld-wrap .vb-frame { display: flex; justify-content: center; background: #dfe2d6; border-radius: 12px; overflow: hidden; }
.voorbeeld-wrap iframe { display: block; width: 100%; height: calc(100vh - 110px); min-height: 560px; border: 0; background: #fff; transition: width .2s ease; }
.voorbeeld-wrap.mobiel iframe { width: 390px; max-width: 100%; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; gap: 2px; flex-shrink: 0; }
.seg a { text-decoration: none; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg a.on { background: var(--navy); color: #fff; }
.seg.seg-grey { background: #e9ebe2; }
.seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--navy); color: #fff; }
@media (max-width: 1180px) {
  .split-edit, .split-edit.even { grid-template-columns: minmax(0, 1fr); }
  .split-edit > .side, .voorbeeld-wrap { position: static; max-height: none; }
  .voorbeeld-wrap iframe { height: 80vh; }
}
/* Social-voorbeeld als echte post */
.post-mock { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.post-mock .pm-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.post-mock .pm-avatar { width: 38px; height: 38px; border-radius: 50%; background: #f1ede8; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.post-mock .pm-avatar img { width: 80%; height: 80%; object-fit: contain; }
.post-mock .pm-name { font-weight: 700; font-size: 14px; line-height: 1.2; } .post-mock .pm-meta { font-size: 12px; color: var(--muted); }
.post-mock .pm-body { padding: 0 16px 12px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.post-mock .pm-tags { color: #2b5ea8; }
.post-mock .pm-img { background: #eef0e8; aspect-ratio: 1.91 / 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 13px; }
.post-mock .pm-img img { width: 100%; height: 100%; object-fit: cover; }
.post-mock.instagram .pm-img { aspect-ratio: 1 / 1; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
code { background: #eef0e8; padding: 1px 8px; border-radius: 5px; font-family: var(--mono); font-size: 13px; }
pre { background: var(--navy); color: #eef0e8; padding: 12px 16px; border-radius: 12px; overflow: auto; font-size: 13px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding-left: 36px; position: relative; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--navy); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.progress { height: 7px; background: #e9ebe2; border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--lime); border-radius: 4px; }
.kind-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.kind-tile:hover { border-color: var(--navy-2); text-decoration: none; }
.kind-tile .icon { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.kind-tile strong { font-size: 15px; }
.kind-tile span { color: var(--muted); font-size: 13px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .dow { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.cal .day { min-width: 0; min-height: 112px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px 12px; background: #fff; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.other { background: #f9faf5; color: var(--muted); }
.cal .day .d { font-size: 12px; font-weight: 700; margin-bottom: 4px; font-family: var(--head); }
.cal .day.today .d { color: var(--navy); } .cal .day.today .d > span:first-child { background: var(--lime); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; margin: -3px 0 0 -4px; }
.cal .ev { display: block; font-size: 12px; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; background: #f1ede8; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cal .ev.social { background: var(--info-soft); } .cal .ev.blog { background: var(--ok-soft); } .cal .ev.ads { background: var(--warn-soft); } .cal .ev.mailing { background: var(--lime-soft); }
.post-voorbeeld { border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; background: #fff; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.article { font-size: 15px; line-height: 1.7; max-width: 760px; }
.article h2 { font-size: 22px; margin: 24px 0 8px; } .article h3 { font-size: 16px; margin: 16px 0 8px; } .article p { margin: 0 0 12px; } .article ul { padding-left: 24px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.num { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.listrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.listrow:last-child { border-bottom: 0; }
.listrow .grow { flex: 1; min-width: 0; }
.listrow .t { font-weight: 600; color: var(--ink); text-decoration: none; }
.listrow .t:hover { color: var(--brand); }
.listrow .s { color: var(--muted); font-size: 13px; }
@media print { .sidebar, .topbar, .no-print { display: none !important; } .content { padding: 0; } .card { box-shadow: none; } }

/* ---- planning / kalender ---- */
.cal .day.past { background: #fbfcf8; }
.cal .day .d { display: flex; }
.cal .day .day-add { display: none; gap: 4px; }
.cal .day:hover .day-add { display: inline-flex; }
.cal .day .day-add a { color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.cal .day .day-add a:hover { background: var(--lime); color: var(--navy); }
.cal .evs { min-height: 20px; }
.cal .ev[draggable], #unplanned .ev[draggable] { cursor: grab; }
.ev.dragging { opacity: .4; }
.cal .day.drop-over, #unplanned.drop-over { outline: 2px dashed var(--navy-2); outline-offset: -3px; background: var(--lime-soft); }
.cal .ev.st-gepubliceerd, .cal .ev.st-verzonden { opacity: .55; text-decoration: line-through; }
.cal .ev.st-ingepland, .cal .ev.st-goedgekeurd { box-shadow: inset 3px 0 0 var(--ok, #2e8b57); }
.cal .ev.st-ter-goedkeuring { box-shadow: inset 3px 0 0 var(--warn, #d98c00); }
#unplanned .ev { display: block; font-size: 12px; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; background: #f1ede8; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#unplanned .ev.social { background: var(--info-soft); } #unplanned .ev.blog { background: var(--ok-soft); } #unplanned .ev.ads { background: var(--warn-soft); } #unplanned .ev.mailing { background: var(--lime-soft); }
.datepick .dp-quick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.datepick .dp-quick .btn { padding: 4px 8px; font-size: 12px; }
.plan-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #f9faf3; }
.plan-box .field { margin-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; opacity: 0; transition: all .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #b3261e; }
table.list input[type=date].inline-date { padding: 2px 8px; font-size: 12px; max-width: 140px; }
.ev .cl { font-size: 11px; background: rgba(0,0,0,.08); border-radius: 4px; padding: 1px 4px; margin-right: 2px; font-weight: 700; letter-spacing: .04em; }

/* login */
body.login-page { background: var(--navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; width: min(920px, 100%); background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login-side { background: var(--navy-2); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; background: url("/static/brand/samm-mark.svg") no-repeat center / contain; opacity: .1; }
.login-side img { height: 40px; width: auto; align-self: flex-start; }
.login-side h2 { color: #fff; font-size: 28px; font-weight: 500; line-height: 1.2; margin: 0 0 12px; font-family: var(--head); }
.login-side p { color: rgba(255,255,255,.7); margin: 0; max-width: 340px; }
.login-side .tag { color: var(--lime); font-family: var(--head); font-size: 14px; letter-spacing: .04em; }
.login { padding: 44px 40px; }
.login h1 { font-size: 28px; }
@media (max-width: 760px) { .login-wrap { grid-template-columns: 1fr; } .login-side { display: none; } }
.print-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.print-head img { height: 26px; width: auto; }
/* tabelrijen: acties rechts, alles verticaal gecentreerd */
table.list td.actions { text-align: right; white-space: nowrap; }
table.list td.actions > * { display: inline-block; vertical-align: middle; margin-left: 4px; }
table.list td.actions form.inline { display: inline-block; }
table.list th:last-child, table.list td:last-child { padding-right: 4px; }
table.list td .pill { vertical-align: middle; }

/* filterbalken en keuzelijsten in dezelfde pilstijl als de knoppen */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.filters select, select.pill-select, .page-head .actions select, .cal-actions select {
  width: auto; min-width: 150px; padding: 8px 36px 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 600 13px var(--font); color: var(--navy); box-shadow: 0 1px 2px rgba(10,30,42,.05); cursor: pointer; }
.filters select:hover, .page-head .actions select:hover { border-color: var(--navy-2); background-color: var(--lime-soft); }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230a1e2a' stroke-width='1.8' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
select[multiple] { background-image: none; padding-right: 12px; }
input[type=date] { font: inherit; }
/* spacing: consistente ritmes */
.page-head { margin-bottom: 20px; }
.page-head .sub { margin: 4px 0 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card + .card, .card + form.card, form.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.tabs { margin-bottom: 20px; }
.flash + .page-head { margin-top: 4px; }
h1 + .sub { margin-top: 2px; }
.eyebrow + h1 { margin-top: 0; }
details.card summary { cursor: pointer; }
details.card[open] summary { margin-bottom: 12px; }
.listrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.listrow:last-child { border-bottom: 0; padding-bottom: 0; }
.listrow:first-of-type { padding-top: 4px; }
.kv { row-gap: 8px; }
fieldset + fieldset { margin-top: 4px; }
.hint { line-height: 1.45; }
.quick { margin: 16px 0 20px; }
.logo-pick { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; cursor: pointer; }
.logo-pick img { max-height: 40px; max-width: 150px; }
.logo-pick input { display: none; }
.logo-pick:has(input:checked) { border-color: var(--navy-2); background: var(--lime-soft); }
/* zichtbaarheidsscan */
.audit-top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .audit-top { grid-template-columns: 1fr; } }
.audit-score { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.audit-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), #e9ebe2 0); }
.audit-ring span { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 600 32px var(--head); color: var(--navy); }
.audit-bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 34px; gap: 12px; align-items: center; margin: 8px 0; font-size: 13px; }
.audit-bar .v { text-align: right; font-weight: 600; color: var(--navy); }
.kansen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.kans { border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; display: flex; flex-direction: column; gap: 8px; background: #fcfdf8; }
.pill-err { background: var(--err-soft); color: var(--err); }
.logo-show { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.logo-show > div { border-radius: 12px; height: 92px; display: grid; place-items: center; padding: 12px; }
.logo-show .on-light { background: #fff; border: 1px solid var(--line); }
.logo-show .on-dark { background: var(--navy); }
.logo-show img { max-height: 60px; max-width: 100%; object-fit: contain; }
.audit-top > .card { margin: 0; }

/* Foto kiezen (upload of webadres) */
.fotokeuze { display: flex; gap: 16px; align-items: flex-start; }
.fotokeuze .fk-thumb { width: 112px; height: 112px; border-radius: 12px; background: #f1ede8; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.fotokeuze .fk-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fotokeuze .fk-thumb span { font-size: 12px; color: var(--muted); text-align: center; padding: 8px; }
.fotokeuze .fk-fields { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.fotokeuze .fk-btn { cursor: pointer; }
.fotokeuze .fk-name { margin: 0; }

/* Resultaten */
.res-kpis { margin-top: 20px; }
.res-kpi { display: flex; flex-direction: column; gap: 4px; background: #f7f8f2; border-radius: 14px; padding: 16px 20px; min-width: 0; }
.res-kpi .eyebrow { margin-bottom: 4px; }
.res-kpi .n { font-family: var(--head); font-size: 32px; font-weight: 600; color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; }
.res-kpi .n.muted-n { color: #b9bdb0; }
.res-kpi .l { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.res-kpi .small { margin-top: 4px; line-height: 1.45; }
.res-table td { vertical-align: top; }
.src-pill { margin: 0 4px 4px 0; }
.res-dialog:not([open]) { display: none !important; }
.res-dialog { text-align: left; border: 0; border-radius: 18px; padding: 24px 24px; width: min(620px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10,30,42,.25); }
.res-dialog::backdrop { background: rgba(10,30,42,.35); }
.res-dialog .hint { display: block; margin-top: 4px; }
.meet-rows { display: flex; flex-direction: column; }
.meet-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.meet-row:last-child { border-bottom: 0; }
.meet-row > .pill { justify-self: start; margin-top: 2px; }
.meet-row p { margin: 4px 0 0; }
@media (max-width: 700px) { .meet-row { grid-template-columns: 1fr; gap: 8px; } }

/* AI kijkt mee */
.flash-ai { background: var(--lime-soft); color: var(--navy); border: 1px solid #dfe3a6; }
.ai-card { border: 1px solid #e3e7b4; background: linear-gradient(180deg, #fbfcef 0%, #fff 70%); }
.ai-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ai-cols ul { padding-left: 20px; margin: 8px 0 0; } .ai-cols li { margin-bottom: 8px; }
.zeker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.zeker.laag { background: #f1ede8; color: #8a7f73; } .zeker.middel { background: var(--warn-soft); color: var(--warn); } .zeker.hoog { background: var(--ok-soft); color: var(--ok); }
.ai-acties { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.ai-actie { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; background: #fff; }
.ai-actie p { margin: 0; } .ai-actie .btn { align-self: flex-start; margin-top: auto; }
.leerpunten label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.leerpunten input { width: auto; margin-top: 4px; }
@media (max-width: 900px) { .ai-cols { grid-template-columns: 1fr; } }

/* Mailontwerpen: drie gelijke keuzetegels naast elkaar, formulier eronder */
.design-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.ds-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 20px 20px; color: var(--ink); min-height: 150px;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.ds-tile:hover { border-color: var(--navy-2); }
.ds-tile[aria-selected="true"] { border: 2px solid var(--navy); padding: 16px 20px; background: var(--lime-soft); box-shadow: 0 4px 14px rgba(10,30,42,.08); }
.ds-tile .icon { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.ds-tile strong { font-size: 15px; }
.ds-tile span:not(.icon) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.ds-kies { margin: 12px 2px 0; }
.ds-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px; background: #fcfcf8; }
@media (max-width: 700px) { .design-start { grid-template-columns: 1fr; } .ds-tile { min-height: 0; } }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.design-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.dc-thumb { display: block; height: 300px; overflow: hidden; background: #e9ebe2; position: relative; }
.dc-thumb iframe { width: 680px; height: 1100px; border: 0; transform: scale(0.37); transform-origin: 0 0; pointer-events: none; background: #fff; }
.dc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 16px; flex: 1; }
.check-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.check-list li { padding: 4px 0; }
.vb-tabs { display: flex; gap: 8px; }
.orig-img { display: block; max-width: 100%; margin: 0 auto; background: #fff; }
.vb-frame[hidden] { display: none !important; }
.design-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.design-pick select { max-width: 280px; }

/* Nieuwe mailing: eerst klant kiezen */
.pick-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pick-client { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.pick-client:hover { border-color: var(--navy-2); text-decoration: none; background: var(--lime-soft); }
.pc-logo { height: 44px; display: flex; align-items: center; margin-bottom: 8px; font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--navy); }
.pc-logo img { max-height: 44px; max-width: 150px; object-fit: contain; }
.client-switch { display: flex; align-items: center; gap: 12px; }
.client-switch img { max-height: 34px; max-width: 120px; object-fit: contain; }
.fotokeuze .fk-thumb .fk-pdf { font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff; background: #c0392b; padding: 8px 12px; border-radius: 8px; }

/* Controleur en klik-editor bij mailontwerpen */
.review-card { border: 1px solid var(--line); box-shadow: none; }
.review-bars { display: grid; gap: 8px; margin-top: 12px; }
.review-bars > div { display: grid; grid-template-columns: 210px minmax(0, 1fr) 42px; gap: 12px; align-items: center; font-size: 13px; }
.review-bars b { text-align: right; }
.review-list { margin: 12px 0 0; padding-left: 20px; } .review-list li { margin-bottom: 4px; } .review-list .rv-slot { color: var(--err); }
.voorbeeld-wrap .vb-head { flex-wrap: wrap; }
.voorbeeld-wrap.editing { position: static; }
.ed-panel { background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 12px; }
.ed-grid > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ed-grid .lbl { width: 98px; color: var(--muted); }
.ed-grid button { width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; }
.ed-grid button:hover { background: var(--lime-soft); border-color: var(--navy-2); }
.ed-grid button:disabled { opacity: .35; cursor: default; }
.ed-grid b { min-width: 42px; text-align: center; font-weight: 600; }
.ed-grid label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin-right: 8px; }
.ed-grid input[type=color] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.ed-ai { display: flex; gap: 8px; margin-top: 12px; } .ed-ai input { flex: 1; }
@media (max-width: 700px) { .ed-grid { grid-template-columns: 1fr; } .review-bars > div { grid-template-columns: 1fr 42px; } .review-bars > div > span { grid-column: 1 / -1; } }
.ed-grid button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Logo kiezen in het profiel */
.logo-picker { display: flex; flex-direction: column; gap: 8px; }
.lp-preview { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; max-width: 520px; text-align: center; }
.lp-preview > span.on-light, .lp-preview > span.on-dark { height: 96px; border-radius: 12px; display: grid; place-items: center; padding: 12px; }
.lp-preview .on-light { background: #fff; border: 1px solid var(--line); } .lp-preview .on-dark { background: var(--navy); }
.lp-preview img { max-height: 64px; max-width: 100%; object-fit: contain; }
.lp-preview em { color: var(--muted); font-size: 13px; }
.lp-preview .lp-edit { position: absolute; right: 8px; bottom: 8px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.lp-preview:hover .on-light, .lp-preview:hover .on-dark { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.lp-dialog { width: min(720px, calc(100vw - 32px)); }
.lp-section { padding: 12px 0; border-top: 1px solid var(--line); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.lp-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.lp-choice img { height: 54px; max-width: 100%; object-fit: contain; }
.lp-choice span { font-size: 11px; color: var(--muted); word-break: break-all; line-height: 1.3; }
.lp-choice:hover { border-color: var(--navy-2); background: var(--lime-soft); }
.lp-choice.on { border: 2px solid var(--navy); padding: 8px; }

/* Klantenoverzicht als logowand */
.client-wall .pick-client { min-height: 176px; }
.client-wall .pc-logo { height: 52px; margin-bottom: 8px; }
.client-wall .pc-logo img { height: 48px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; }
.pc-initial[hidden] { display: none; }
.client-wall .pc-site { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; margin-top: auto; padding-top: 8px; }
.pc-initial { width: 48px; height: 48px; border-radius: 12px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 22px; font-weight: 700; }
.pc-new { border: 2px dashed var(--line) !important; box-shadow: none !important; background: transparent !important; }
.pc-new:hover { border-color: var(--navy-2) !important; background: var(--lime-soft) !important; }
.pc-plus { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }

/* ---------- blogeditor ---------- */
.be { position: relative; border: 1px solid var(--line, #dfe3e6); border-radius: 12px; background: #fff; }
.be-toolbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line, #dfe3e6); background: #f7f8f5; border-radius: 12px 12px 0 0; }
.be-toolbar button, .be-imgbar button { font: inherit; font-size: 13px; border: 0; background: transparent; padding: 8px 8px; border-radius: 7px; cursor: pointer; color: inherit; }
.be-toolbar button:hover, .be-imgbar button:hover, .be-toolbar button.on, .be-imgbar button.on { background: #e6e9df; }
.be-toolbar .be-photo { background: var(--navy); color: #fff; font-weight: 600; }
.be-toolbar .be-photo:hover { background: var(--navy); opacity: .9; }
.be-sep { width: 1px; height: 20px; background: var(--line, #dfe3e6); margin: 0 4px; }
.be-edit { min-height: 480px; max-height: 72vh; overflow: auto; padding: 20px 24px; outline: none; font-size: 16px; line-height: 1.7; }
.be-edit:focus { box-shadow: inset 0 0 0 2px #cfe0ff; border-radius: 0 0 12px 12px; }
.be-edit::after { content: ""; display: table; clear: both; }
.be-edit blockquote { border-left: 3px solid #cfd4c6; margin: 16px 0; padding-left: 16px; color: #555; }
.be-edit figure { margin: 16px 0; cursor: pointer; border-radius: 10px; outline: 2px solid transparent; outline-offset: 3px; }
.be-edit figure img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; }
.be-edit figure figcaption { font-size: 13px; color: #777; text-align: center; margin-top: 8px; }
.be-edit figure.alignleft { float: left; width: 44%; margin: 4px 20px 12px 0; }
.be-edit figure.alignright { float: right; width: 44%; margin: 4px 0 12px 20px; }
.be-edit figure.aligncenter { width: 80%; margin-left: auto; margin-right: auto; }
.be-edit figure:hover { outline-color: #b9c7ff; }
.be-edit figure.be-selected { outline-color: #3b6cff; }
.be-edit figure.beeld-nodig { min-height: 110px; border: 2px dashed #c3c8bb; background: #fafbf7; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #6c7263; font-size: 14px; width: auto; float: none; }
.be-edit figure.beeld-nodig::before { content: "+ Foto kiezen voor: " attr(data-beeld-nodig); font-weight: 600; }
.be-edit figure.beeld-nodig:hover { background: #f1f4ea; border-color: #8f9a7d; }
.be-code { width: 100%; min-height: 480px; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; border: 0; border-radius: 0 0 12px 12px; padding: 16px; }
.be-imgbar { position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; background: #0a1e2a; color: #fff; padding: 4px; border-radius: 10px; box-shadow: 0 8px 24px rgba(10,30,42,.25); width: max-content; max-width: calc(100% - 16px); }
.be-imgbar[hidden] { display: none; }
.be-imgbar button { color: #fff; }
.be-imgbar button:hover, .be-imgbar button.on { background: rgba(255,255,255,.18); }
.be-imgbar button:disabled { opacity: .35; cursor: default; background: transparent; }
.be-imgbar .danger { color: #ffb4a8; }
.be-imgbar .be-sep { background: rgba(255,255,255,.25); }

/* ---------- beeld kiezen voor een veld ---------- */
.beeldpick { display: flex; gap: 16px; align-items: center; }
.bp-thumb { width: 150px; height: 96px; flex: none; border: 1px dashed #c3c8bb; border-radius: 10px; background: #fafbf7; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; padding: 0; font: inherit; font-size: 12px; color: #6c7263; text-align: center; }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-thumb span { padding: 8px; } .bp-thumb em { font-size: 11px; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bp-actions .hint { flex-basis: 100%; }

/* ---------- beeldkiezer ---------- */
.mk-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.mk-idea { background: #fff8db; color: #6b5400; padding: 8px 12px; border-radius: 10px; font-size: 14px; margin: 8px 0 12px; }
.mk-tabs { margin: 8px 0 12px; }
.mk-filter { width: 100%; margin-bottom: 12px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; max-height: 34vh; overflow: auto; padding: 2px; }
.mk-tile { position: relative; border: 2px solid transparent; border-radius: 10px; background: #f3f4ef; padding: 0; cursor: pointer; text-align: left; font: inherit; overflow: hidden; }
.mk-tile img { width: 100%; height: 96px; object-fit: cover; display: block; background: #e9ebe2; }
.mk-tile span { display: block; font-size: 12px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tile em { position: absolute; top: 6px; left: 6px; background: rgba(10,30,42,.75); color: #fff; font-size: 11px; font-style: normal; padding: 2px 8px; border-radius: 99px; }
.mk-tile:hover { border-color: #b9c7ff; } .mk-tile.on { border-color: #3b6cff; box-shadow: 0 0 0 3px rgba(59,108,255,.2); }
.mk-tile.broken { display: none; }
.mk-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px; border: 2px dashed #c3c8bb; border-radius: 14px; background: #fafbf7; cursor: pointer; text-align: center; padding: 20px; }
.mk-drop.over { background: #eef3ff; border-color: #3b6cff; }
.mk-chosen { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #dfe3e6); align-items: flex-start; }
.mk-chosen img { width: 170px; height: 120px; object-fit: cover; border-radius: 10px; flex: none; background: #eee; }
.mk-fields { flex: 1; min-width: 0; } .mk-fields .field { margin-bottom: 8px; } .mk-fields input { width: 100%; }
.mk-align button { font-size: 13px; }

/* ---------- blogvoorbeeld (echte websiteweergave, geschaald) ---------- */
.blog-vb .vb-frame { position: relative; overflow: hidden; height: calc(100vh - 150px); min-height: 560px; display: block; }
.blog-vb iframe { transform-origin: 0 0; height: 100%; min-height: 0; }
.blog-vb.mobiel .vb-frame { display: flex; justify-content: center; }
.blog-vb.mobiel iframe { width: 390px; height: 100%; transform: none; }
@media (max-width: 1100px) { .beeldpick { flex-wrap: wrap; } .mk-chosen { flex-direction: column; } }

/* ---------- paginering: nergens eindeloze lijsten ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pager-links { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager-n { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.pager-n:hover { background: #eef0e8; } .pager-n.on { background: var(--navy); color: #fff; }
.pager-gap { color: var(--muted); padding: 0 2px; }
.pager .disabled { opacity: .35; pointer-events: none; }
.more-list > summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 8px 0 2px; list-style: none; }
.more-list > summary::-webkit-details-marker { display: none; }
.more-list > summary:hover { color: var(--ink); }
.more-list[open] > summary { display: none; }

/* ---------- kalender: wie, werkverdeling, pijplijn per klant ---------- */
.ev .who { float: right; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(10,30,42,.12); border-radius: 99px; padding: 1px 4px; margin-left: 4px; letter-spacing: .03em; }
.load-row { display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 10px; text-decoration: none; color: inherit; font-size: 14px; }
.load-row:hover { background: #f3f4ef; } .load-row.on { background: var(--lime-soft); }
.load-row .avatar { flex: none; }
.load-row .s { font-size: 12px; color: var(--muted); }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pipe-col { background: #f7f8f3; border-radius: 14px; padding: 12px; min-width: 0; }
.pipe-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pipe-head b { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.pipe-goedkeuring { background: var(--warn-soft); } .pipe-klaar { background: var(--ok-soft); } .pipe-live { background: #eef0f4; }
.pipe-item { display: block; background: #fff; border-radius: 9px; padding: 8px 8px; margin-bottom: 8px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(10,30,42,.05); }
.pipe-item:hover { box-shadow: 0 2px 8px rgba(10,30,42,.12); }
.pipe-item .t { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-item .s { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1000px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- beeldbank: mappen ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.folder { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px; background: #f7f8f3; text-decoration: none; color: inherit; border: 2px solid transparent; position: relative; }
.folder:hover { background: #eff1e8; } .folder.on { border-color: var(--navy); background: #fff; }
.folder .f-cover { height: 78px; border-radius: 10px; background: #e9ebe2; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.folder .f-cover img { width: 100%; height: 100%; object-fit: cover; }
.folder .f-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 32px; }
.folder .f-n { position: absolute; right: 12px; bottom: 9px; font-size: 12px; color: var(--muted); }
.folder-new summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.folder-new summary::-webkit-details-marker { display: none; }
.folder-new[open] { grid-column: span 2; background: #fff; border-color: var(--line-2); }
.inline-details > summary { list-style: none; } .inline-details > summary::-webkit-details-marker { display: none; }
.asset-tile { position: relative; display: block; cursor: pointer; }
.asset-tile input[type=checkbox] { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; z-index: 2; accent-color: var(--navy); }
.asset-tile:has(input:checked) .thumb-lg { outline: 3px solid var(--navy); outline-offset: -3px; }
.move-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 10px 30px rgba(10,30,42,.25); font-size: 13px; }
.move-bar[hidden] { display: none; }
.move-bar select, .move-bar input { max-width: 200px; padding: 8px 12px; }
.move-bar .muted { color: rgba(255,255,255,.65); }
.move-bar .btn { background: var(--lime); color: var(--navy); }
.mk-folders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mk-folders button { font: inherit; font-size: 12px; border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.mk-folders button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- credits ---------- */
.credit-chip { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; margin: 8px 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.credit-chip:hover { background: rgba(255,255,255,.1); }
.credit-chip .cc-n { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--lime); }
.credit-chip .cc-l { font-size: 12px; opacity: .75; }
.credit-chip .cc-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.credit-chip .cc-bar span { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.credit-chip.low .cc-n { color: #ffcf6e; } .credit-chip.low .cc-bar span { background: #ffcf6e; }
.credit-chip.empty .cc-n { color: #ff9c8f; }
.credit-hero { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; }
.credit-hero .big { font-family: var(--head); font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.meter { height: 12px; border-radius: 99px; background: #eceee6; overflow: hidden; margin: 16px 0 8px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #2d5b73); border-radius: 99px; }
.meter.low span { background: #d98c00; }
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }
.tariff-grid .t { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tariff-grid .t b { font-family: var(--head); white-space: nowrap; }
.tariff-grid input { width: 80px; text-align: right; padding: 4px 8px; }
.sysadmin-only { border: 1px dashed #b9a24c; background: #fffdf0; }
.sysadmin-only .eyebrow { color: #8a6d00; }
@media (max-width: 1000px) { .credit-hero { grid-template-columns: 1fr 1fr; } }
.trend { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding-top: 8px; }
.tr-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.tr-bar { width: 100%; max-width: 44px; background: var(--navy); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.tr-col:last-child .tr-bar { background: var(--lime); }
.tr-l { font-size: 11px; color: var(--muted); }

/* AI aan het werk */
.ai-work { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: rgba(10,30,42,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.ai-work.on { opacity: 1; }
.aiw-card { width: min(520px, calc(100vw - 32px)); background: #fff; border-radius: 22px; padding: 28px 28px 24px; box-shadow: 0 24px 70px rgba(10,30,42,.35); transform: translateY(10px); transition: transform .3s ease; }
.ai-work.on .aiw-card { transform: none; }
.aiw-card h2 { margin: 8px 0 16px; font-size: 22px; }
.ai-top { display: flex; align-items: center; gap: 12px; }
.ai-orb { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(222,224,97,.7); animation: aiPulse 1.4s ease-out infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(222,224,97,.75); } 100% { box-shadow: 0 0 0 14px rgba(222,224,97,0); } }
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; transition: color .25s; }
.ai-steps li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; transition: all .25s; }
.ai-steps li.busy { color: var(--ink); font-weight: 600; }
.ai-steps li.busy i { border-color: var(--navy-2); border-right-color: transparent; animation: aiSpin .8s linear infinite; }
.ai-steps li.done { color: var(--ink-2); }
.ai-steps li.done i { background: var(--navy-2); border-color: var(--navy-2); }
.ai-steps li.done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--lime); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-bar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 20px; overflow: hidden; }
.ai-bar span { display: block; height: 100%; width: 3%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-2), var(--lime)); transition-property: width; transition-timing-function: cubic-bezier(.25,.6,.3,1); }
.rewrite-diff { border: 1px solid var(--line); box-shadow: none; }
.diff { line-height: 1.7; color: var(--ink-2); }
.diff del { color: var(--err); background: var(--err-soft); text-decoration: line-through; border-radius: 4px; padding: 0 2px; }
.diff ins { color: var(--ok); background: var(--ok-soft); text-decoration: none; border-radius: 4px; padding: 0 2px; font-weight: 600; }
.idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.idea-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.idea-list li .btn { flex: none; }
/* tabbladen: op een laptopscherm netjes op twee regels in plaats van afgesneden */
@media (max-width: 1700px) {
  .tabs { flex-wrap: wrap; border-radius: 22px; overflow-x: visible; gap: 2px; }
  .tabs a { padding: 8px 8px; font-size: 13px; }
}
.intake-upd { align-items: flex-start; margin-bottom: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; }
.intake-upd > span { display: grid; gap: 4px; }
.iu-list { margin: 2px 0 2px; padding-left: 20px; }
.iu-list li { margin: 2px 0; }
.iu-new { color: var(--ink); font-weight: 600; }
.iu-new em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--lime); color: var(--navy); border-radius: 99px; padding: 1px 8px; margin-right: 4px; }
.iu-tag { color: var(--ok); font-weight: 600; }

/* vaste witruimte tussen blokken: overal 16px, ook tussen een kaart en een raster (en omgekeerd) */
:is(.card, .grid, .pipe-wrap, details.card, form.card, .credit-hero, .tabs + .card) + :is(.card, .grid, details.card, form.card, .credit-hero) { margin-top: 16px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.grid > div > .card + .card, .grid > div > .card + form.card, .grid > div > form.card + .card, .grid > div > .card + details.card { margin-top: 16px; }

/* nalopen opmaak (september): kleine knoppen niet tegen elkaar, lange koppen netjes */
.datepick .dp-quick { gap: 8px; }
.pager-links { gap: 8px; }
.pill + .pill { margin-left: 4px; }
.tariff-grid .t { align-items: center; }
.tariff-grid .t > span:first-child { flex: 1; min-width: 0; }
.tariff-grid .t-in { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tariff-grid .t-in input { width: 64px; }
.team-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.team-grid table.list th { white-space: nowrap; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: 1fr; } }
.card table.list { max-width: 100%; }
/* beeldbank: gelijke tegels, naam op één regel, verwijderknop in de hoek, logo's heel in beeld */
.asset-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asset-tile .thumb-lg { height: 150px; max-height: none; }
.asset-tile .thumb-lg.is-logo { object-fit: contain; padding: 16px; background: #f4f5ef; }
.asset-tile .thumb-lg.on-dark { background: var(--navy); }
.asset-tile .at-cap { display: block; margin-top: 8px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-tile .at-meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-tile .at-del { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--err); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 3px rgba(0,0,0,.15); z-index: 2; }
.asset-tile:hover .at-del, .asset-tile:focus-within .at-del { opacity: 1; }
/* kalender: titels op maximaal twee regels in plaats van na drie letters afgekapt; iets meer lucht tussen items */
.cal .ev { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; padding: 4px 8px; margin-bottom: 8px; }
.cal .ev .cl { font-weight: 700; }
.cal .day.today .d > span:first-child { margin: -3px 0 0 -2px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table.list td.actions > * + * { margin-left: 8px; }
form.inline.row { display: inline-flex; }
.btn { white-space: normal; text-align: center; }
code + code { margin-left: 4px; }
p > code, li > code { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
p:has(> code), li:has(> code), div.flash:has(> code) { line-height: 1.85; }
@media (max-width: 1360px) { .team-grid { grid-template-columns: 1fr; } }
.table-scroll > table.list { width: 100%; }
.table-scroll.wide > table.list { min-width: 860px; }

/* Logo's van klanten: altijd leesbaar. Lichte logo's (bijv. &samm-geel) krijgen een donker vlak. */
.client-wall .pc-logo { width: 100%; height: 76px; margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; background: #f6f6f1; justify-content: center; }
.client-wall .pc-logo img { height: 100%; width: 100%; max-width: 100%; object-position: center; }
.client-wall .pc-logo.is-light { background: var(--navy); }
.client-wall .pc-new .pc-logo { background: transparent; justify-content: flex-start; padding-left: 0; }
.logo-chip { width: 64px; height: 44px; flex: 0 0 64px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; }
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-chip.is-light { background: var(--navy); border-color: var(--navy); }
.head-logo { display: inline-flex; align-items: center; }
.head-logo img { max-height: 44px; max-width: 150px; }
.head-logo.is-light { background: var(--navy); border-radius: 10px; padding: 8px 12px; }
.head-logo.is-light img { max-height: 32px; }
.pc-logo.is-light { background: var(--navy); border-radius: 10px; padding: 8px 12px; }

/* Stapels: vaste, gelijke witruimte tussen blokken (ook als er blokken wegvallen) */
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.kal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .kal-grid { grid-template-columns: 1fr; } }
/* Kalenderblokjes: precies twee regels, geen halve derde regel zichtbaar */
.cal .ev { padding-bottom: 0; border-bottom: 4px solid transparent; }
.cal .ev.st-ingepland, .cal .ev.st-goedgekeurd, .cal .ev.st-ter-goedkeuring { background-clip: border-box; }
.load-row .grow { min-width: 0; }
.cal-legend { padding: 0 4px; }
.cal-legend .cl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-legend .ev { display: inline-block; font-size: 12px; padding: 4px 8px; border-radius: 6px; background: #f1ede8; color: var(--ink); }
.cal-legend .ev.social { background: var(--info-soft); } .cal-legend .ev.blog { background: var(--ok-soft); } .cal-legend .ev.ads { background: var(--warn-soft); } .cal-legend .ev.mailing { background: var(--lime-soft); }
/* Nog inplannen: titel op één regel met initialen rechts ernaast */
#unplanned .ev { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
#unplanned .ev .evt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#unplanned .ev .who { float: none; flex: none; margin-left: 0; }
.head-logo img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.head-logo.is-light img { height: 30px; max-width: 140px; }
.audit-top > .card { margin-top: 0 !important; }
.pick-clients:not(.client-wall) .pc-logo img { height: 40px; width: auto; }
.pick-clients:not(.client-wall) .pc-logo.is-light { height: auto; min-height: 44px; }
.pick-clients:not(.client-wall) .pc-logo.is-light img { height: 30px; max-width: 140px; }

/* Kaarten direct in een raster of rij: de rastertussenruimte bepaalt de afstand, nooit een extra marge bovenaan */
.grid > .card, .grid > form.card, .grid > details.card, .credit-hero > .card { margin-top: 0 !important; }
/* Kop na een tabel in dezelfde kaart: duidelijk nieuw blok */
.card table + h3, .card .table-scroll + h3, .card .tbl-wrap + h3 { margin-top: 28px; }

/* ---- telefoon en tablet: menu als schuiflade, niets breder dan het scherm ---- */
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--navy); flex: none; }
.nav-backdrop { display: none; }
a.avatar { text-decoration: none; }
.error-wrap { max-width: 520px; margin: 12vh auto; padding: 36px 36px; }
.error-wrap .error-logo { height: 28px; margin-bottom: 24px; }
.error-wrap h1 { margin: 4px 0 12px; }
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,30,42,.45); z-index: 55; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar .crumbs { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar > .row { flex: 1 1 100%; order: 3; flex-wrap: nowrap; }
  .search { min-width: 0; flex: 1 1 auto; }
  .search kbd { display: none; }
  .grid[style*="grid-template-columns"], .fields-2[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .content { overflow-x: hidden; overflow-x: clip; }
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-head { flex-wrap: wrap; gap: 12px; }
  .row { flex-wrap: wrap; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
  img, video, iframe { max-width: 100%; }
}

.inline-details { display: inline-block; vertical-align: middle; }
.inline-details > summary { list-style: none; cursor: pointer; }
.inline-details > summary::-webkit-details-marker { display: none; }
td.nowrap { white-space: nowrap; }

.signal-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.signal-list li { padding-left: 16px; position: relative; font-size: 14px; line-height: 1.45; }
.signal-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2, #ccc); }
.signal-list li.sig-kans::before { background: var(--lime, #DEE061); }
.signal-list li.sig-letop::before { background: #e8894a; }
.signal-list li.sig-goed::before { background: var(--ok, #3a9d5d); }
.signal-list a { text-decoration: none; color: inherit; }
.signal-list a:hover { text-decoration: underline; }
.pill-danger { background: #fde4df; color: #b3261e; }
/* Eén maat voor kaarttitels: de eerste kop van een kaart is altijd 18px, ook als het (om semantische redenen) een h3 is. */
.card > h3:first-child, .card > .row:first-child > h3, .card > .row:first-child > div > h3:first-child,
.card > .eyebrow:first-child + h3, .card > .row:first-child > div > .eyebrow + h3 { font-size: 18px; }

/* SVG-iconen: overal dezelfde lijndikte, netjes op de tekstlijn */
svg.ico { flex: none; display: inline-block; vertical-align: -0.2em; }
.btn svg.ico { margin: 0 -2px 0 -4px; }
.btn-sm svg.ico { margin-left: -2px; }
.search > .muted { display: inline-flex; }
.avatar svg.ico, .stat .icon svg.ico, .kind-tile .icon svg.ico { vertical-align: 0; }
.kind-tile .icon, .stat .icon { width: 40px; height: 40px; }
.day-add a { display: inline-flex; align-items: center; }
.ev svg.ico, .pipe-item svg.ico { vertical-align: -2px; margin-right: 2px; }
.testfase-banner { display: flex; gap: 12px; align-items: flex-start; max-width: 520px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); border: 1px solid #f3d27a; }
.testfase-banner strong { display: block; font-family: var(--head); font-size: 18px; color: #6b4a00; margin-bottom: 4px; }
.testfase-banner span { display: block; font-size: 13px; color: #6b4a00; }
.testfase-banner svg.ico { margin-top: 2px; }
/* beeldbank: groot bekijken (lightbox) */
.asset-tile .at-zoom { position: absolute; top: 112px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(10,30,42,.72); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: zoom-in; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.asset-tile .at-zoom:hover { background: var(--navy); }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(6,16,22,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 72px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.4); }
.lb .lb-cap { color: #fff; font-size: 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.lb .lb-cap a { color: var(--lime); }
.lb .lb-n { color: rgba(255,255,255,.6); font-size: 13px; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.24); }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-close { top: 16px; right: 16px; width: 40px; height: 40px; }
@media (max-width: 700px) { .lb { padding: 64px 12px 24px; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 16px; transform: none; } }
/* inklapbare uitleg: kort en rustig; details alleen op verzoek */
details.why { margin: 4px 0 0; }
details.why > summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
details.why > summary::-webkit-details-marker { display: none; }
details.why > summary::after { content: "▾"; font-size: 10px; }
details.why[open] > summary::after { content: "▴"; }
details.why > p, details.why > span { display: block; margin: 4px 0 0; }
details.meten > summary { cursor: pointer; list-style: none; }
details.meten > summary::-webkit-details-marker { display: none; }
details.meten > summary::after { content: "▾"; margin-left: 8px; color: var(--muted); }
details.meten[open] > summary::after { content: "▴"; }
details.meten[open] > summary { margin-bottom: 12px; }

/* telefoon: lijstregels (Komende 14 dagen, Laatst bewerkt, …) netjes onder elkaar in plaats van één smalle kolom */
@media (max-width: 640px) {
  .listrow { flex-wrap: wrap; row-gap: 4px; }
  .listrow > .s:first-child { width: 100% !important; order: -1; }
  .listrow .grow { flex: 1 1 calc(100% - 64px); }
  .listrow > .pill, .listrow > .btn, .listrow > form { margin-left: 42px; }
  .listrow .avatar { flex: 0 0 auto; }
}

/* Nergens tekst buiten een vak: rasterkolommen mogen krimpen, lange woorden/URL's breken netjes af. */
.grid > *, .fields-2 > *, .kv > * { min-width: 0; }
.kv { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); }
.kv dd, .kind-tile strong, .kind-tile span, .card h3, .card h2 { overflow-wrap: break-word; hyphens: auto; }
.kv dd a { overflow-wrap: anywhere; }
.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* Brede tabellen in een smalle kaart: binnen de kaart scrollen in plaats van eruit steken. */
.tbl-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.tbl-wrap > table.list { width: 100%; }
@media (max-width: 1200px) { .hide-md { display: none; } }
@media (max-width: 1100px) and (min-width: 901px) { .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } }
@media (max-width: 1200px) { table.list td.actions { white-space: normal; } table.list td.actions > *, table.list td.actions form.inline { display: block; margin: 4px 0 0 0; } }
p > code, li > code, dd > code, td > code { overflow-wrap: anywhere; }

/* Voorstellen: AI-posts om uit te kiezen */
.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; margin: 0; }
.mode-opt input { margin-top: 3px; flex: none; }
.mode-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mode-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; font-weight: 400; }
.mode-opt.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.vs-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: stretch; }
.vs-grid > .card { margin-top: 0; min-width: 0; }
.vs-card { border: 2px solid transparent; transition: border-color .15s; }
.vs-card.on { border-color: var(--navy); }
.vs-card textarea { min-height: 180px; }
.vs-keep { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; margin: 0; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--brand-soft, #f3f5dc); }
.vs-card.on .vs-keep { background: var(--lime); }
.vs-qa { color: var(--warn, #8a5a00); margin: 6px 0 0; }
.vs-bar { margin-top: 16px; }
.open-vs .row + .row { margin-top: 8px; }
[data-mode][hidden] { display: none !important; }
.vs-grid > .card.vs-card { margin-top: 0 !important; }
.vs-card .pill { white-space: normal; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.vs-card .row > * { min-width: 0; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* voorstellen: kaarten even hoog, onderkant gelijk; per kanaal gegroepeerd */
.vs-card { display: flex; flex-direction: column; }
.vs-card .vs-text { flex: 1 1 auto; display: flex; flex-direction: column; }
.vs-card .vs-text textarea { flex: 1 1 auto; }
.vs-card .vs-foot { margin-top: 4px; min-height: 64px; }
.vs-card .vs-foot p { margin: 0 0 6px; }
.vs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; min-height: 26px; }
.vs-group + .vs-group { margin-top: 28px; }
.vs-group-head { margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.vs-group-head h2 { margin: 0; font-size: 20px; }
.vs-group-head h2 .muted { font-weight: 400; font-size: 15px; }
/* aantallen per kanaal */
.ch-counts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.ch-count { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.ch-count.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.ch-name { font-weight: 700; display: flex; flex-direction: column; min-height: 36px; }
.ch-name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input[type=number] { width: 56px; text-align: center; padding: 6px 4px; -moz-appearance: textfield; appearance: textfield; }
.stepper input[type=number]::-webkit-outer-spin-button, .stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .btn { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 18px; line-height: 1; }
.ch-count .stepper { margin-top: auto; }

/* ---- kanalen: officiële icoontjes + eigen kleur ---- */
.kanaal { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.kanaal img { flex: none; border-radius: 4px; }
.ch-name { flex-direction: row !important; align-items: center; gap: 10px; min-height: 0 !important; }
.ch-name img { flex: none; }
.ch-count.on { border-color: var(--kc); background: var(--kc-zacht); box-shadow: 0 0 0 1px var(--kc) inset; }
.ch-count.on .stepper input { border-color: var(--kc); }

/* ---- keuzescherm: per kanaal een eigen blok ---- */
.vs-group { background: var(--kc-zacht); border-radius: 18px; padding: 20px; border-left: 6px solid var(--kc); }
.vs-group + .vs-group { margin-top: 28px; }
.vs-group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vs-group-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.vs-count-pill { background: var(--kc); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 2px 10px; }
.vs-card { border: 2px solid transparent; border-top: 4px solid var(--kc); }
.vs-card.on { border-color: var(--kc); box-shadow: 0 0 0 1px var(--kc); }
.vs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vs-ch { border-radius: 4px; }
.vs-card .vs-keep { background: #fff; border: 1px solid var(--line); }
.vs-card.on .vs-keep { background: var(--kc); border-color: var(--kc); color: #fff; }
.vs-meta { margin: 10px 0 12px; }
.vs-bar-sticky { position: sticky; bottom: 12px; z-index: 5; margin-top: 24px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(10, 30, 42, .18);
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vs-when { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.vs-when label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; }
.vs-when input[type=date] { width: auto; }
.vs-when input[type=number] { width: 64px; }
.vs-other { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 640px) { .vs-group { padding: 12px; border-left-width: 4px; } .vs-bar-sticky .btn-lg { width: 100%; } }
.open-vs-t { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .open-vs-t img { border-radius: 3px; }
@media (max-width: 640px) { .vs-bar-sticky { padding: 10px; gap: 8px; } .vs-when { flex-wrap: nowrap; gap: 8px; } .vs-when label { font-size: 13px; gap: 4px; } .vs-when input[type=date] { width: 138px; padding: 6px 8px; } .vs-when input[type=number] { width: 44px; padding: 6px; } .vs-bar-sticky .btn-lg { padding-top: 10px; padding-bottom: 10px; } }
/* keuzescherm: kleine groepen naast elkaar, grote groepen over de hele breedte */
.vs-groups { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.vs-groups > .vs-group { flex: var(--n, 1) 1 calc(var(--n, 1) * 250px + 46px); min-width: 0; display: flex; flex-direction: column; }
.vs-groups > .vs-group + .vs-group { margin-top: 0; }
.vs-groups > .vs-group > .vs-grid { flex: 1 1 auto; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 640px) { .vs-groups { gap: 16px; } .vs-groups > .vs-group { flex-basis: 100%; } }
.vs-groups > .vs-group.vs-wide { flex-basis: 100%; }
/* keuzescherm: per post datum + doorzetten */
.vs-actions { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.vs-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; }
.vs-date input[type=date] { width: auto; min-width: 0; flex: 0 1 170px; padding: 6px 10px; }
.vs-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.vs-card.klaar { border-color: var(--kc); background: #fbfbf8; }
.vs-card.klaar input, .vs-card.klaar textarea { background: #f4f4f0; color: var(--muted); }
.vs-done { background: var(--kc); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.vs-status { color: var(--muted); font-size: 14px; font-weight: 600; }
.vs-dialog { border: 0; border-radius: 16px; padding: 16px; width: min(460px, 92vw); box-shadow: 0 20px 60px rgba(10, 30, 42, .35); }
.vs-dialog::backdrop { background: rgba(10, 30, 42, .45); }
.vs-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.vs-dialog .pm-body { max-height: 50vh; overflow: auto; }
.vs-btns [hidden], .vs-bar-sticky [hidden] { display: none !important; }
.vs-date { white-space: nowrap; }
.vs-date input[type=date] { flex: 1 1 auto; max-width: 170px; }
.vs-top { flex-wrap: wrap; }
.vs-done { white-space: nowrap; font-size: 12.5px; padding: 5px 10px; }
/* foto bij voorstellen + label 'Nog geen foto' */
.vs-foto .beeldpick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vs-foto .bp-thumb { width: 100%; max-width: none; aspect-ratio: 16 / 9; height: auto; }
.vs-foto .bp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-foto-klaar { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #eef0e8; }
.vs-foto-klaar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.geen-foto { margin-left: 4px; vertical-align: middle; font-size: 11px; }
.geen-foto-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn, #9a6700); margin: 0 3px 1px 2px; vertical-align: middle; box-shadow: 0 0 0 2px #fff; }
.btn[hidden], button[hidden], a[hidden] { display: none !important; }
.content-table td .pill { white-space: normal; text-align: left; } .content-table td.actions { white-space: normal; width: 44px; } .content-table td.actions > * { display: block; margin: 4px 0 0 0 !important; }
@media (min-width: 1181px) { .split-edit:not(.even) { grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); } }
.socials-dd { display: flex; flex-wrap: wrap; gap: 6px 14px; } .socials-dd a { text-decoration: none; color: inherit; }
/* metaregel onder een paginatitel: status, kanaal, labels en tekst netjes op één lijn, alles even hoog */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; line-height: 1.2; }
.meta-row > .pill, .meta-row > .kanaal { height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; font-size: 12.5px; font-weight: 600; border-radius: 999px; margin: 0; line-height: 1; white-space: nowrap; }
.meta-row > .kanaal { background: #fff; border: 1px solid var(--line); color: var(--ink); padding-left: 6px; }
.meta-row > .kanaal img { width: 16px; height: 16px; }
.meta-row > .geen-foto { margin-left: 0; }
.listrow .s .kanaal, .listrow .s .pill { vertical-align: middle; } .listrow .s .geen-foto { font-size: 11px; padding: 2px 8px; margin-left: 4px; } .content-table .geen-foto { font-size: 11px; padding: 2px 8px; }
.koppel-mist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; } .koppel-mist .pill { text-decoration: none; }

/* makelaar-tool: beelden van een woningpost naast elkaar (carrousel) */
.woning-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.woning-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--line, #eee); }
.woning-strip a:hover img { outline: 2px solid var(--navy, #123); outline-offset: 2px; }
