/* live-edit v2 — beheer (WordPress-achtig) + editor (Elementor-achtig).
   3.7: donker is de standaard, licht via <html data-theme="light"> (knop in het menu, per site onthouden).
   Glas alleen waar er iets achter zit: inlogscherm, menu, modals, menu's, toasts en de blokwerkbalk op de pagina. */
:root {
  color-scheme: dark;
  --bg: #09090b; --panel: #111114; --card: rgba(255,255,255,.028); --field: rgba(255,255,255,.04);
  --soft: rgba(255,255,255,.05); --hover: rgba(255,255,255,.07); --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #fafafa; --ink-2: #d4d4d8; --mute: #a1a1aa; --faint: #6e6e78; --on-ink: #09090b; --ink-hover: #e4e4e7;
  --acc: #8197ff; --acc-2: #a3b3ff; --acc-soft: rgba(129, 151, 255, .14);
  --sel: #3b5bfd; --tpl: #7c3aed;
  --ok: #4ade80; --ok-soft: rgba(74,222,128,.12); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.11); --bad: #f87171; --bad-soft: rgba(248,113,113,.12);
  --head: rgba(255,255,255,.025); --row: rgba(255,255,255,.025); --seg-on: rgba(255,255,255,.1);
  --canvas: #0c0c0e; --canvas-dot: rgba(255,255,255,.055); --ck1: #1c1c20; --ck2: #141417; --sw-line: rgba(255,255,255,.2);
  --scrim: rgba(3,3,5,.55); --glass: rgba(18,18,22,.58); --glass-2: rgba(22,22,27,.78); --glass-line: rgba(255,255,255,.09); --glass-hi: rgba(255,255,255,.07);
  --blur: blur(22px) saturate(160%);
  --glow1: rgba(88,110,255,.22); --glow2: rgba(168,85,247,.12); --glow3: rgba(20,184,166,.07);
  --r: 12px; --r-s: 8px;
  --shadow: 0 0 0 1px rgba(0,0,0,.25), 0 18px 44px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 32px 90px -28px rgba(0,0,0,.85);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f7; --panel: #fff; --card: rgba(255,255,255,.82); --field: #fff;
  --soft: #f3f3f5; --hover: #f0f0f2; --line: #e7e7eb; --line-2: #dcdce2;
  --ink: #0f0f12; --ink-2: #3f3f46; --mute: #71717a; --faint: #a1a1aa; --on-ink: #fff; --ink-hover: #27272a;
  --acc: #3b5bfd; --acc-2: #2a46e0; --acc-soft: rgba(59, 91, 253, .1);
  --ok: #15803d; --ok-soft: #eaf6ee; --warn: #b45309; --warn-soft: #fdf4e4; --bad: #dc2626; --bad-soft: #fdeeee;
  --head: #fcfcfd; --row: #fcfcfd; --seg-on: #fff;
  --canvas: #ececef; --canvas-dot: rgba(0,0,0,.06); --ck1: #ececef; --ck2: #f6f6f8; --sw-line: rgba(0,0,0,.14);
  --scrim: rgba(15,15,18,.28); --glass: rgba(255,255,255,.62); --glass-2: rgba(255,255,255,.82); --glass-line: rgba(15,15,18,.08); --glass-hi: rgba(255,255,255,.9);
  --glow1: rgba(59,91,253,.10); --glow2: rgba(168,85,247,.07); --glow3: rgba(20,184,166,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -12px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 80px -20px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::selection { background: var(--acc-soft); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--mute); }

/* ---------- knoppen & velden ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-weight: 500; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .45; cursor: default; background: var(--panel); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn.primary:disabled { background: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn.icon { width: 34px; padding: 0; }
.btn.icon.sm { width: 28px; }
.btn.on { background: var(--soft); border-color: var(--line-2); }
.field { display: block; margin: 0 0 14px; }
.field > span { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field > span em { font-style: normal; color: var(--faint); font-weight: 400; }
.input, .field input[type=text], .field input[type=url], .field input[type=number], .field textarea, .field select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--field); outline: none; transition: border-color .12s, box-shadow .12s; }
.field textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.row { display: flex; gap: 8px; align-items: center; }
.row > .field { flex: 1; margin-bottom: 0; }
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--soft); border-radius: 8px; }
.seg button { height: 28px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--mute); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; cursor: pointer; font-size: 13.5px; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked { background: var(--acc); }
.switch input:checked::after { transform: translateX(14px); }
.color { display: flex; gap: 6px; align-items: center; }
.color input[type=color] { width: 34px; height: 34px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--field); cursor: pointer; }
.color input[type=text] { flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--soft); color: var(--mute); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.empty { padding: 36px 20px; text-align: center; color: var(--mute); }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toasts & modals ---------- */
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--glass-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); color: var(--ink); border-radius: 11px; box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); font-size: 13.5px; animation: pop .18s ease-out; max-width: 420px; }
.toast.bad { background: rgba(185,28,28,.88); border-color: rgba(255,255,255,.14); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.modal-bg { position: fixed; inset: 0; z-index: 90; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 760px; max-height: min(84vh, 780px); display: flex; flex-direction: column; background: var(--glass-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-lg); overflow: hidden; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal.sm { max-width: 440px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 600; }
.modal-b { padding: 20px; overflow: auto; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--head); }

/* ---------- backend: schil ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.brand b { display: block; font-size: 13.5px; line-height: 1.2; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand small { color: var(--faint); font-size: 12px; }
.nav a, .nav button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; border: 0; background: none; cursor: pointer; width: 100%; font-weight: 500; font-size: 13.5px; }
.nav a:hover, .nav button:hover { background: var(--hover); color: var(--ink); }
.nav a.on { background: var(--soft); color: var(--ink); }
.nav a .count { margin-left: auto; font-size: 11.5px; color: var(--warn); background: var(--warn-soft); padding: 1px 7px; border-radius: 99px; }
.nav .sp { flex: 1; }
.nav form { margin: 0; }
.main { min-width: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 26px 36px 18px; max-width: 1160px; }
.bar h1 { margin: 0; flex: 1; font-size: 22px; letter-spacing: -.015em; font-weight: 650; }
.content { padding: 0 36px 60px; max-width: 1160px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stat { padding: 16px 18px; }
.stat span { color: var(--mute); font-size: 12.5px; }
.stat b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; margin-top: 2px; }
.stat b.warn { color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; flex: 1; font-size: 14px; font-weight: 600; }
.list { margin: 0; padding: 4px 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 12px; padding: 9px 18px; }
.list li + li { border-top: 1px solid var(--soft); }
.list .t { flex: 1; min-width: 0; }
.list .t a { font-weight: 500; text-decoration: none; }
.list .t a:hover { color: var(--acc); }
.list .t small { display: block; color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick { display: grid; gap: 8px; padding: 14px 18px 18px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-weight: 500; }
.quick a:hover { border-color: var(--line-2); background: var(--hover); }
.quick a small { margin-left: auto; color: var(--faint); font-weight: 400; }

/* pagina-tabel */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; }
.tabs button { height: 30px; padding: 0 11px; border: 0; background: none; border-radius: var(--r-s); cursor: pointer; color: var(--mute); font-weight: 500; font-size: 13px; }
.tabs button:hover { color: var(--ink); background: var(--hover); }
.tabs button.on { color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.tabs button i { font-style: normal; color: var(--faint); margin-left: 4px; }
.search { position: relative; margin-left: auto; width: 260px; }
.search svg { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.search input { padding-left: 32px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--mute); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--head); }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--row); }
.table .title a { font-weight: 550; text-decoration: none; }
.table .title a:hover { color: var(--acc); }
.table .title .mono { color: var(--faint); display: block; margin-top: 1px; }
.acts { display: flex; gap: 12px; margin-top: 4px; font-size: 12.5px; visibility: hidden; }
.table tr:hover .acts, .table tr:focus-within .acts { visibility: visible; }
.acts a, .acts button { color: var(--acc); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-size: 12.5px; }
.acts a:hover, .acts button:hover { text-decoration: underline; }
.acts .danger { color: var(--bad); }
.table .when { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--mute); font-size: 12.5px; }

/* media */
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--mute); margin-bottom: 16px; background: var(--card); transition: border-color .12s, background .12s; }
.drop.over { border-color: var(--acc); background: var(--acc-soft); color: var(--ink); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft) repeating-conic-gradient(var(--ck1) 0 25%, var(--ck2) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .12s; }
.tile:hover span { opacity: 1; }
.tile.sel { outline: 2px solid var(--acc); outline-offset: 2px; }
.tile.up { display: grid; place-items: center; cursor: default; }
.mdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mdetail .prev { background: var(--soft); border-radius: var(--r); display: grid; place-items: center; min-height: 220px; overflow: hidden; }
.mdetail .prev img { max-width: 100%; max-height: 360px; }
.kv { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav .brand { padding: 0 8px 0 0; }
  .nav a, .nav button { width: auto; }
  .nav .sp { display: none; }
  .bar, .content { padding-left: 16px; padding-right: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid2, .mdetail { grid-template-columns: 1fr; }
  .search { width: 100%; margin-left: 0; }
  .acts { visibility: visible; }
  .table .when, .table th.when { display: none; }
}

/* ---------- editor ---------- */
body.le-view-edit { overflow: hidden; }
.ed { display: grid; grid-template-columns: 312px 1fr; height: 100vh; }
.ed-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
.ed-head { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.ed-page { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: var(--r-s); border: 0; background: none; cursor: pointer; text-align: left; }
.ed-page:hover { background: var(--hover); }
.ed-page .t { flex: 1; min-width: 0; }
.ed-page b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-page small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); }
.ed-tabs button { flex: 1; height: 34px; border: 0; background: none; cursor: pointer; color: var(--mute); font-weight: 500; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ed-tabs button:hover { color: var(--ink); }
.ed-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ed-body { flex: 1; overflow: auto; padding: 16px; }
.ed-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; margin: 10px 10px 0; }
.ed-note button { margin-left: auto; }
.ed-foot { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 10px; }
.ed-foot .row { justify-content: space-between; }
.ed-status { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.ed-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ed-status .dot.dirty { background: var(--warn); }
.ed-status .dot.ok { background: var(--ok); }
.ed-save { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.ed-save .btn { height: 38px; }

.sect { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--soft); }
.sect:last-child { border-bottom: 0; margin-bottom: 0; }
.sect h3 { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.el-kind { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.el-kind .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; color: var(--ink-2); }
.el-kind b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.el-kind small { color: var(--mute); font-size: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.crumbs button { height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); font-size: 11.5px; font-family: var(--mono); color: var(--mute); cursor: pointer; }
.crumbs button:hover { color: var(--ink); border-color: var(--line-2); }
.crumbs button.on { color: var(--ink); background: var(--soft); }
.fmt { display: flex; gap: 4px; margin-bottom: 14px; }
.imgprev { border-radius: var(--r-s); background: var(--soft) repeating-conic-gradient(var(--ck1) 0 25%, var(--ck2) 0 50%) 0 0 / 14px 14px; border: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.imgprev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hint { color: var(--mute); font-size: 12.5px; margin: 0 0 12px; }
.help-empty { text-align: center; padding: 36px 12px; color: var(--mute); }
.help-empty .ic { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--ink-2); }
.help-empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-2); background: var(--panel); }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 calc(8px + var(--d, 0) * 14px); border-radius: var(--r-s); cursor: pointer; color: var(--ink-2); font-size: 13px; }
.tree li:hover { background: var(--hover); }
.tree li.on { background: var(--acc-soft); color: var(--ink); }
.tree li.off .n { color: var(--faint); text-decoration: line-through; }
.tree .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .n small { color: var(--faint); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.tree button { width: 26px; height: 26px; border: 0; background: none; border-radius: 6px; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.tree button:hover { background: var(--hover); color: var(--ink); }
.revs { list-style: none; margin: 0; padding: 0; }
.revs li { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; }
.revs li + li { border-top: 1px solid var(--soft); }
.revs li span { flex: 1; }
.revs li small { color: var(--faint); }
.counter { font-size: 11.5px; color: var(--faint); }
.counter.over { color: var(--warn); }

.ed-canvas { position: relative; min-width: 0; background: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--canvas); display: flex; justify-content: center; overflow: hidden; }
.ed-frame { position: relative; height: 100%; width: 100%; background: #fff; transition: width .25s ease; }
.ed-frame.tablet, .ed-frame.mobile { height: calc(100% - 40px); margin-top: 20px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -20px rgba(0,0,0,.55); }
.ed-frame.tablet { width: 834px; }
.ed-frame.mobile { width: 390px; }
.ed-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ed-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ed-box { position: absolute; border: 1px solid var(--sel); border-radius: 2px; transition: all .06s linear; }
.ed-box.hover { border-style: dashed; opacity: .7; }
.ed-box.sel { border-width: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.ed-box.editing { border-color: var(--sel); box-shadow: 0 0 0 4px rgba(59,91,253,.18); }
.ed-box .lbl { position: absolute; left: -2px; top: -22px; height: 20px; padding: 0 7px; border-radius: 5px 5px 5px 0; background: var(--sel); color: #fff; font: 600 11px/20px var(--font); white-space: nowrap; }
.ed-box.flip .lbl { top: auto; bottom: -22px; border-radius: 0 5px 5px 5px; }
.ed-ghost { position: absolute; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.72) 0 8px, rgba(240,240,244,.72) 8px 16px); border: 1px dashed var(--faint); display: flex; align-items: flex-start; justify-content: flex-end; }
.ed-ghost span { margin: 8px; padding: 3px 8px; border-radius: 99px; background: #0f0f12; color: #fff; font: 600 11px/1.4 var(--font); }
.ed-loading { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--canvas) 72%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pop { position: absolute; z-index: 50; left: 10px; right: 10px; top: 54px; background: var(--glass-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); padding: 8px; max-height: 60vh; display: flex; flex-direction: column; }
.pop .input { margin-bottom: 6px; }
.pop ul { list-style: none; margin: 0; padding: 0; overflow: auto; }
.pop li a { display: block; padding: 7px 8px; border-radius: 6px; text-decoration: none; }
.pop li a:hover, .pop li a.on { background: var(--hover); }
.pop li a b { display: block; font-size: 13px; font-weight: 500; }
.pop li a small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
@media (max-width: 760px) {
  .ed { grid-template-columns: 1fr; grid-template-rows: 50vh 1fr; }
  .ed-panel { order: 2; border-right: 0; border-top: 1px solid var(--line); }
}

/* ---------- inloggen + beveiliging (edit.robinwessels.com) ---------- */
body.le-auth { min-height: 100vh; position: relative; overflow-x: hidden; background: #060608; }
:root[data-theme="light"] body.le-auth { background: #f3f3f6; }
/* drie zachte lichtvlekken achter het glas; bewegen heel langzaam (uit bij reduced motion) */
body.le-auth::before, body.le-auth::after, .auth::before { content: ""; position: fixed; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform; }
body.le-auth::before { width: 52vmax; height: 52vmax; left: -10vmax; top: -18vmax; background: radial-gradient(circle, rgba(88,110,255,.55), transparent 66%); animation: drift1 26s ease-in-out infinite alternate; }
body.le-auth::after { width: 46vmax; height: 46vmax; right: -12vmax; bottom: -16vmax; background: radial-gradient(circle, rgba(168,85,247,.42), transparent 66%); animation: drift2 32s ease-in-out infinite alternate; }
.auth::before { width: 30vmax; height: 30vmax; left: 50%; top: 50%; margin: -22vmax 0 0 -4vmax; background: radial-gradient(circle, rgba(56,189,248,.20), transparent 66%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-5vmax, -6vmax) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { body.le-auth::before, body.le-auth::after, .auth::before { animation: none; } }
.auth { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { position: relative; width: 100%; max-width: 392px; padding: 34px 32px 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow-lg); animation: rise .35s ease-out; }
:root[data-theme="light"] .auth-card { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.8); box-shadow: inset 0 1px 0 #fff, var(--shadow-lg); }
.auth-card .field input, .auth-card .input { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
:root[data-theme="light"] .auth-card .field input, :root[data-theme="light"] .auth-card .input { background: #fff; border-color: var(--line-2); }
.auth-card .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 22px; box-shadow: 0 8px 24px -8px rgba(129,151,255,.55); }
.auth-card h1 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 2px; }
.auth-card .auth-site { color: var(--mute); margin: 0 0 22px; font-family: var(--mono); font-size: 12.5px; }
.auth-card .step { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.auth-card .hint { color: var(--mute); font-size: 13.5px; margin: 0 0 16px; }
.auth-card .field input { height: 40px; }
.auth-card .btn.big { width: 100%; height: 42px; font-size: 14px; }
.auth-card .otp { font-family: var(--mono); font-size: 20px !important; letter-spacing: .18em; text-align: center; height: 48px !important; }
.auth-card .err { color: var(--bad); font-size: 13px; margin: 12px 0 0; }
.auth-card .dev { color: var(--acc); font: 600 13px var(--mono); margin: 10px 0 0; }
.auth-card .alt { margin: 14px 0 0; text-align: center; }
.auth-card .note { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; }
.auth-card .note a { color: inherit; font-weight: 600; }
.link { border: 0; background: none; padding: 0; color: var(--mute); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--ink); }
.link:disabled { opacity: .45; cursor: default; }
.codes { list-style: none; margin: 0 0 14px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: var(--soft); border-radius: var(--r-s); font: 600 14px/1.6 var(--mono); text-align: center; }
.check { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 13.5px; cursor: pointer; }
.auth-foot { color: var(--faint); font-size: 12px; margin: 16px 0 0; }
.auth-card .spin { margin: 12px auto; }
main.auth[data-mode="beheer"] .auth-card { max-width: 640px; }
.bsec { padding: 18px 0; border-top: 1px solid var(--soft); }
.bsec h2 { font-size: 14px; margin: 0 0 10px; }
.blist { list-style: none; margin: 0 0 12px; padding: 0; }
.blist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.blist li span { flex: 1; min-width: 0; }
.blist li small { display: block; color: var(--mute); font-size: 12px; }
.btable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.btable td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
.btable td small { color: var(--mute); }
.sites { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sites a { font: 12px var(--mono); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.sites a:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- blokken-editor (3.1) ---------- */
.ed-box.blk { border-color: var(--sel); opacity: .35; }
.ed-tools { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 3px 0 10px; border-radius: 9px; background: rgba(12,12,15,.8); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255,255,255,.12); color: #fff; font: 600 11.5px/1 var(--font); pointer-events: auto; box-shadow: 0 8px 22px -8px rgba(0,0,0,.45); }
.ed-tools span { margin-right: 6px; white-space: nowrap; }
.ed-tools button { width: 26px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.ed-tools button:hover { background: rgba(255,255,255,.14); }
.ed-tools button:disabled { opacity: .35; cursor: default; background: transparent; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.types .type { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); cursor: pointer; }
.types .type:hover { border-color: var(--acc); background: var(--acc-soft); }
.types .type svg { color: var(--ink-2); margin-top: 1px; }
.types .type b { display: block; font-size: 13.5px; font-weight: 600; }
.types .type small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }
.tree li .n small { font-family: var(--font); }
.tree button:disabled { opacity: .3; cursor: default; background: none; }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }
.ed-ins { position: absolute; height: 0; z-index: 4; display: flex; justify-content: center; pointer-events: none; }
.ed-ins button { pointer-events: auto; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 2px solid #fff; background: var(--sel); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0,0,0,.4); transition: transform .12s; }
.ed-ins button:hover { transform: scale(1.12); }
.ed-ins::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sel); opacity: 0; transition: opacity .12s; }
.ed-ins:has(button:hover)::before { opacity: 1; }

/* ---------- templates (3.2) ---------- */
.tpl-note { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 14px; border-radius: var(--r-s); background: var(--acc-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.35; }
.tpl-note svg { color: var(--acc); }
.tpl-note span { flex: 1; min-width: 0; }
.tpl-note a { color: var(--acc); font-weight: 500; text-decoration: none; white-space: nowrap; }
.ed-box.sel.tpl { border-color: var(--tpl); }
.ed-box.sel.tpl .lbl { background: var(--tpl); }
.card.tpl { margin-bottom: 14px; padding-bottom: 16px; }
.card.tpl > :not(.card-h) { margin-left: 18px; margin-right: 18px; }
.card.tpl .tgrid { margin-top: 16px; }
.card.tpl .tname { font-weight: 600; max-width: 320px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tops { margin-top: 12px; font-size: 12.5px; color: var(--mute); }
.tops summary { cursor: pointer; }
.tops ul { margin: 8px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .tgrid { grid-template-columns: 1fr; } }

/* 3.4: nieuwe pagina's en doorverwijzingen */
.types .type.on { border-color: var(--acc); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc); }
.addr { display: flex; align-items: center; gap: 8px; }
.addr > .mono { color: var(--faint); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.addr > .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }
.rform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px 18px 4px; }
.rform .btn { margin-bottom: 14px; }
@media (max-width: 640px) { .rform { grid-template-columns: 1fr; } }

/* 3.5: Elementor-paneel — bibliotheek, slepen, navigator, rechtsklikmenu */
.lib-h { margin: 2px 0 12px; }
.lib-h b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.lib-h small { display: block; margin-top: 3px; color: var(--mute); font-size: 12px; line-height: 1.45; }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.lib-tile { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 8px 9px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: grab; text-align: left; font: 500 12.5px/1.2 var(--font); color: var(--ink-2); transition: border-color .12s, box-shadow .12s, transform .12s; }
.lib-tile:hover { border-color: var(--acc); box-shadow: 0 6px 18px -10px rgba(59,91,253,.45); transform: translateY(-1px); }
.lib-tile:active { cursor: grabbing; }
.lib-tile .th { width: 100%; height: auto; aspect-ratio: 80 / 44; border-radius: 6px; background: var(--soft); }
.th rect { fill: var(--ink-2); opacity: .85; }
.th .soft { opacity: .35; }
.th .acc { fill: var(--acc); opacity: 1; }
.th .img { fill: var(--line-2); opacity: 1; }
.th .line { fill: none; stroke: var(--line-2); stroke-width: 1.4; opacity: 1; }
.ed-drop { position: absolute; z-index: 6; height: 0; border-top: 3px solid var(--sel); pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.ed-drop[hidden] { display: none; }
.ed-drop span { position: absolute; left: 50%; top: -13px; transform: translateX(-50%); padding: 3px 9px; border-radius: 99px; background: var(--sel); color: #fff; font: 600 11px/1.3 var(--font); white-space: nowrap; }
.ed-tools .grip { cursor: grab; }
.ed-tools .grip:active { cursor: grabbing; }
.tree li .gr { display: grid; place-items: center; width: 14px; color: var(--faint); cursor: grab; flex: none; }
.tree li[draggable="true"]:hover .gr { color: var(--ink-2); }
.tree li.drop-b { box-shadow: inset 0 2px 0 var(--acc); }
.tree li.drop-a { box-shadow: inset 0 -2px 0 var(--acc); }
.ctx { position: fixed; z-index: 120; min-width: 220px; padding: 5px; background: var(--glass-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 12px; box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-lg); animation: fade .1s; }
.ctx button { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: 500 13px/1 var(--font); cursor: pointer; text-align: left; }
.ctx button:hover:not(:disabled), .ctx button:focus-visible { background: var(--hover); outline: none; }
.ctx button:disabled { color: var(--faint); cursor: default; }
.ctx button svg { color: var(--mute); flex: none; }
.ctx button span { flex: 1; }
.ctx button.danger { color: var(--bad); }
.ctx button.danger svg { color: var(--bad); }
.ctx kbd { font: 500 11px/1 var(--mono); color: var(--faint); }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* 3.6: ontwerpsysteem — sitekleuren, stijl per apparaat, blokstijl, Mijn blokken */
.sw { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.swc { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--sw-line); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); cursor: pointer; display: grid; place-items: center; color: var(--mute); background: var(--panel); }
.swc:hover { transform: scale(1.12); }
.swc.on { outline: 2px solid var(--acc); outline-offset: 2px; }
.swc.none { background: repeating-linear-gradient(45deg, var(--soft) 0 4px, var(--panel) 4px 8px); }
.swi { width: 84px; height: 26px; font-family: var(--mono); font-size: 12px; margin-left: auto; }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { font-size: 12px; }
.devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.devs button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); color: var(--ink-2); font: 500 12px/1 var(--font); cursor: pointer; }
.devs button.off { background: var(--soft); color: var(--faint); border-style: dashed; }
.devs button.off span { text-decoration: line-through; }
.dev-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 8px 10px; border-radius: var(--r-s); background: var(--acc-soft); color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.dev-note svg { flex: none; margin-top: 1px; color: var(--acc); }
.lib-tile.glob { border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.lib-tile .gl { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--acc); background: var(--acc-soft); padding: 1px 5px; border-radius: 99px; margin-left: 3px; }

/* 3.7: donker + glas — achtergrondgloed in de beheerschermen, kaarten met een randje licht */
body:not(.le-auth):not(.le-view-edit) { min-height: 100vh; background: radial-gradient(1100px 700px at -10% -20%, var(--glow1), transparent 62%), radial-gradient(900px 620px at 110% -12%, var(--glow2), transparent 62%), radial-gradient(900px 700px at 60% 125%, var(--glow3), transparent 62%), var(--bg); background-attachment: fixed; }
.card, .table, .drop { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
:root[data-theme="light"] .card, :root[data-theme="light"] .table, :root[data-theme="light"] .drop { box-shadow: none; }
.nav a.on { box-shadow: inset 0 0 0 1px var(--line); }
.bar h1 { font-weight: 650; letter-spacing: -.022em; }
.stat b { letter-spacing: -.03em; }
.ed-panel { background: var(--panel); }
.ed-head, .ed-tabs, .ed-foot { border-color: var(--line); }
.theme-btn svg { transition: transform .3s ease; }
.theme-btn:hover svg { transform: rotate(-18deg); }

/* 3.7: kleurveld + kiezer (sleepvlak, tint, dekking, hex, sitekleuren) */
.cf { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--field); transition: border-color .12s, box-shadow .12s; }
.cf:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line-2)); }
.cf.open, .cf:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.cf-sw { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#c9c9cf 0 25%, #fff 0 50%) 0 0 / 8px 8px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); }
.cf.empty .cf-sw { opacity: .75; }
.cf-hex { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 500 13px/1 var(--mono); letter-spacing: .02em; text-transform: lowercase; }
.cf-hex::placeholder { color: var(--faint); text-transform: none; font-family: var(--font); font-weight: 400; }
.cf-tag { flex: none; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11px/1 var(--mono); color: var(--acc); background: var(--acc-soft); padding: 4px 6px; border-radius: 6px; }
.cf-x { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; }
.cf-x:hover { background: var(--hover); color: var(--ink); }
.cpop { position: fixed; z-index: 130; width: 248px; padding: 12px; display: grid; gap: 10px; background: var(--glass-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-lg); animation: rise .14s ease-out; }
.cp-sv { position: relative; height: 150px; border-radius: 9px; cursor: crosshair; touch-action: none; background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); }
.cp-sv i { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.35); pointer-events: none; }
.cp-bar { position: relative; height: 12px; border-radius: 99px; cursor: pointer; touch-action: none; box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); }
.cp-hue { background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
.cp-al { background: repeating-conic-gradient(#c9c9cf 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.cp-al b { position: absolute; inset: 0; border-radius: inherit; }
.cp-bar i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.cp-in { display: flex; align-items: center; gap: 8px; }
.cp-in .input { flex: 1; height: 32px; font: 500 13px var(--mono); text-transform: lowercase; }
.cp-prev { flex: none; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#c9c9cf 0 25%, #fff 0 50%) 0 0 / 8px 8px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); }
.cp-pct { flex: none; width: 38px; text-align: right; font: 500 12px var(--mono); color: var(--mute); }
.cp-site small { display: block; margin: 2px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.cp-sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cp-sw button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#c9c9cf 0 25%, #fff 0 50%) 0 0 / 8px 8px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); transition: transform .1s; }
.cp-sw button:hover { transform: scale(1.1); }
.cp-sw button.on { outline: 2px solid var(--acc); outline-offset: 2px; }

/* 3.7: lijsten als accordeon ("Vraag 1" + dupliceren/verwijderen; klik = velden) */
.sect h3 .counter { float: right; font-weight: 500; letter-spacing: 0; text-transform: none; }
.li-list { display: grid; gap: 6px; }
.li { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); transition: border-color .12s, box-shadow .12s; }
.li.open { border-color: var(--line-2); box-shadow: 0 0 0 1px var(--line-2); }
.li.drop-b { box-shadow: inset 0 2px 0 var(--acc); }
.li.drop-a { box-shadow: inset 0 -2px 0 var(--acc); }
.li-h { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 4px; cursor: pointer; user-select: none; }
.li-h:hover { background: var(--hover); border-radius: var(--r-s); }
.li.open .li-h { border-bottom: 1px solid var(--line); border-radius: var(--r-s) var(--r-s) 0 0; }
.li-grip { display: grid; place-items: center; width: 18px; height: 28px; color: var(--faint); cursor: grab; flex: none; }
.li-grip:active { cursor: grabbing; }
.li-h b { flex: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.li-h small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: 12px; }
.li-h button { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity .12s; }
.li-h:hover button, .li.open .li-h button, .li-h button:focus-visible { opacity: 1; }
.li-h button:hover { background: var(--hover); color: var(--ink); }
.li-h button.danger:hover { color: var(--bad); }
.li-h button:disabled { opacity: .3 !important; cursor: default; }
.li-chev { flex: none; display: grid; place-items: center; width: 20px; color: var(--faint); transition: transform .15s; }
.li.open .li-chev { transform: rotate(180deg); }
.li-b { padding: 12px 12px 2px; }
.li-b .field { margin-bottom: 12px; }
.li-add { width: 100%; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.li-img { display: flex; align-items: center; gap: 10px; }
.li-img img, .li-img > span { width: 56px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--soft); display: grid; place-items: center; color: var(--faint); border: 1px solid var(--line); }
.rte-wrap { border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--field); overflow: hidden; }
.rte-wrap:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.rte-bar { display: flex; gap: 2px; padding: 3px; border-bottom: 1px solid var(--line); }
.rte-bar button { width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--mute); cursor: pointer; }
.rte-bar button:hover { background: var(--hover); color: var(--ink); }
.rte { min-height: 64px; max-height: 240px; overflow: auto; padding: 8px 10px; outline: none; font-size: 13.5px; line-height: 1.55; }
.rte a { color: var(--acc); }
.rte p { margin: 0 0 8px; }
.ed-box.open-item { border-style: solid; opacity: 1; border-width: 1.5px; }
.inv-sites { margin-top: 2px; }
.inv-sites label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
#invBox { margin: 6px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--soft); }
#invOut .row { margin: 8px 0 14px; }
#invOut .input { flex: 1; font: 12px var(--mono); }

/* 3.7: rol redacteur — publiceren en site-instellingen zijn van de beheerder (de server weigert ze ook) */
.role-editor #publish, .role-editor [data-act="pubAll"], .role-editor [data-act="pubTpl"], .role-editor [data-act="pub"], .role-editor #pubAll, .role-editor #tPub,
.role-editor .nav a[href$="/redirects"], .role-editor .nav a[href$="/inbox"], .role-editor [data-pg="del"], .role-editor [data-pg="path"], .role-editor #pgNoindex, .role-editor .acts .danger,
.role-editor [data-page="discard"] + .x, .role-editor .admin-only { display: none !important; }
.role-editor .ed-save { grid-template-columns: 1fr; }
.ed-save .auto { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); margin-top: -4px; }

/* 3.7: conflictmelding, revisies, vergelijken */
.ed-note.bad { background: var(--bad-soft); color: var(--bad); flex-wrap: wrap; }
.revs li { gap: 6px; }
.revs li span small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
.revs .badge { height: 18px; font-size: 10.5px; font-style: normal; vertical-align: 1px; }
.cmp-h { margin: 0 0 10px; font-size: 13.5px; }
.cmp-sum { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; font-size: 12.5px; font-weight: 600; }
.cmp { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.cmp li { display: flex; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.cmp li:first-child { border-top: 0; }
.cmp li i { flex: none; width: 18px; font-style: normal; font-weight: 700; text-align: center; }
.cmp li span { min-width: 0; }
.cmp li small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.k-add { color: var(--ok); } .k-del { color: var(--bad); } .k-chg { color: var(--warn); } .k-mov { color: var(--acc); }
.cmp li.k-add i { color: var(--ok); } .cmp li.k-del i { color: var(--bad); } .cmp li.k-chg i { color: var(--warn); } .cmp li.k-mov i { color: var(--acc); }
.cmp li b { color: var(--ink); font-weight: 550; }

/* 3.7 F: kolommen + onderdelen */
.lay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lay button { height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; color: var(--faint); transition: border-color .12s, color .12s; }
.lay button svg { width: 100%; height: 100%; fill: currentColor; }
.lay button:hover { color: var(--ink-2); border-color: var(--line-2); }
.lay button.on { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }
.li.col > .li-b { padding: 10px; }
.li.w { background: var(--field); }
.li.w .li-h { height: 38px; }
.wic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--soft); color: var(--ink-2); flex: none; }
.wl { min-height: 8px; border-radius: var(--r-s); }
.wl.drop-in { box-shadow: 0 0 0 2px var(--acc); }
.wpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; animation: fade .12s; }
.wpick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 58px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--ink-2); font: 500 11.5px/1.1 var(--font); cursor: pointer; }
.wpick button:hover { border-color: var(--acc); background: var(--acc-soft); color: var(--ink); }
.sub { display: grid; gap: 6px; }
.sub-r { display: flex; gap: 4px; align-items: center; }
.sub-r .input { height: 32px; }
.li-list { grid-template-columns: minmax(0, 1fr); }
.li { min-width: 0; }
.li-h { height: auto; min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
.li.w .li-h { height: auto; min-height: 42px; }
.li-t { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.3; }
.li-t b { font-size: 13px; font-weight: 600; color: var(--ink); }
.li-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: 12px; }

/* 3.7 H: inbox */
.ib { overflow: hidden; }
.ib-r + .ib-r { border-top: 1px solid var(--line); }
.ib-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; }
.ib-h:hover { background: var(--row); }
.ib-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: transparent; }
.ib-r.new .ib-dot { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.ib-t { flex: 1; min-width: 0; display: grid; }
.ib-t b { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.ib-r.new .ib-t b { font-weight: 650; color: var(--ink); }
.ib-t small { color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-p { color: var(--faint); max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-at { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.ib-b { padding: 4px 18px 18px 38px; }
.ib-b .kv { grid-template-columns: minmax(90px, auto) 1fr; }
@media (max-width: 900px) { .ib-p { display: none; } }

/* 3.7 G: menu-items */
.mn .li .mn-b { display: none; }
.mn .li.open .mn-b { display: block; }
.mn .li.off .li-t b { text-decoration: line-through; color: var(--faint); }
.mn .li-h button { opacity: .7; }

/* 3.7 I: toestemmingsscherm MCP */
.consent .check { align-items: flex-start; line-height: 1.45; margin: 8px 0; }
.consent .check input { margin-top: 3px; }
.consent .row .btn { flex: 1; }
.consent .inv-sites { display: flex; flex-wrap: wrap; gap: 6px; }
