/* Magneet design system — the ONE style file for every page in this prototype.
   Rule: one component per thing. Need a variant? Add a modifier here, never a second
   component and never a style attribute in a page (check.py guards this).
   Overview of every component: onderdelen.html */

/* ---------- 1 · tokens ---------- */
:root {
  --bg: #faf7f3; --paper: #fff; --ink: #414142; --dark: #1c1c1c; --taupe: #b9ac9b; --taupe2: #d0c6bb;
  --sand: #f0ede9; --line: #e4ded6; --orange: #ff7610; --mute: #8d867e;
  --warn: #c9540a; --warn-bg: #fde8d6; --ok: #3c8a5a; --card: #fcfbf9; --rail-line: rgba(255,255,255,.12);
  --shadow: 0 1px 0 rgba(65,65,66,.04), 0 12px 32px -24px rgba(65,65,66,.35);
  --img1: url(https://magneetmakelaars.nl/wp-content/uploads/2025/07/Wonen.jpg);
  --img2: url(https://magneetmakelaars.nl/wp-content/uploads/2025/07/Nieuwbouw-1024x683.jpg);
  --img3: url(https://magneetmakelaars.nl/wp-content/uploads/2025/07/Bedrijven-1024x576.jpg);
  --img4: url(https://magneetmakelaars.nl/wp-content/uploads/2025/06/FPW-Magneet-high-res-68.jpg);
  --map: url(https://magneetmakelaars.nl/wp-content/uploads/2025/07/kaart.jpg);
  /* motion: one curve, two speeds */
  --ease: cubic-bezier(.2, .7, .2, 1); --fast: .15s; --slow: .32s;
  --lift: 0 2px 0 rgba(65,65,66,.04), 0 22px 40px -26px rgba(65,65,66,.55);
}

/* ---------- 2 · base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 15px/1.5 "Mona Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg);
  height: 100svh; overflow: hidden; display: grid; grid-template-columns: 256px minmax(0, 1fr); -webkit-font-smoothing: antialiased;
}
body > * { animation: rise var(--slow) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.96); box-shadow: 0 0 0 3px var(--orange); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
h1, h2, h3, p { margin: 0; }

/* ---------- 3 · type ---------- */
/* label: small spaced capitals */
.caps { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; color: var(--mute); }
.caps.ink { color: var(--ink); white-space: nowrap; }
/* title: light spaced capitals, sized by modifier */
.title { font-size: var(--t, 22px); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; color: var(--dark); }
.title.t-xl { --t: 30px; } .title.t-lg { --t: 26px; }
.title.t-sm { --t: 19px; font-weight: 500; letter-spacing: -.005em; text-transform: none; } .title.t-xs { --t: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.title i { font-style: normal; color: var(--taupe); margin-right: 10px; font-weight: 300; } .title i:empty { display: none; }
/* figure: big light number */
.num, .kpi > b { display: block; font-size: var(--n, 40px); font-weight: 200; line-height: 1.05; color: var(--dark); white-space: nowrap; }
.num.md { --n: 32px; } .num.sm { --n: 22px; font-weight: 300; } .num.xs { --n: 18px; font-weight: 300; }
.num.att, .kpi.att > b { color: var(--orange); } .num.off { color: var(--taupe2); }
.sub { color: var(--mute); font-size: 13px; }
.warn { color: var(--warn); }
blockquote { margin: 14px 0 0; padding: 14px 16px; background: var(--sand); font-size: 14px; color: var(--ink); font-style: italic; }

/* ---------- 4 · shell ---------- */
.side { background: var(--ink); color: #fff; display: flex; flex-direction: column; min-width: 0; overflow-y: auto; }
.logo { --lb: 27px; --ls: 10px; margin: 28px 24px 34px; background: var(--taupe); padding: calc(var(--lb) * .45) calc(var(--lb) * .5) 0; display: inline-flex; flex-direction: column; align-items: flex-end; align-self: flex-start; }
.logo b { font-weight: 300; font-size: var(--lb); letter-spacing: .06em; line-height: 1; color: #fff; }
.logo span { background: #fff; color: var(--ink); font-size: var(--ls); letter-spacing: .3em; font-weight: 600; padding: .3em .4em .3em .8em; margin: .6em -.4em -.5em 0; }
.logo.sm { --lb: 13px; --ls: 6px; margin: 0; flex: none; } .logo.lg { --lb: 44px; --ls: 13px; margin: 0; }
.nav { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 11px 24px; letter-spacing: .01em; font-size: 14px; color: #d9d3cb; border-left: 3px solid transparent; text-decoration: none; transition: color var(--fast), background var(--fast), border-color var(--fast); }
.nav i { font-style: normal; font-size: 11px; color: var(--taupe); width: 18px; flex: none; }
.nav:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav[aria-current="page"] { color: #fff; border-left-color: var(--orange); background: rgba(255,255,255,.07); }
.nav.roi { margin-top: 18px; border-top: 1px solid var(--rail-line); padding-top: 16px; padding-bottom: 16px; color: #fff; } .nav.roi i { color: var(--orange); font-size: 14px; }
.nav.sw { margin-top: auto; border-top: 1px solid var(--rail-line); padding: 16px 24px; font-size: 11px; color: var(--taupe); }
.navsep { margin: 18px 24px 6px; padding-top: 14px; border-top: 1px solid var(--rail-line); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.tenant { text-decoration: none; display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 14px 12px 18px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); color: #fff; }
.tenant:hover { background: rgba(255,255,255,.06); } .tenant > i { font-style: normal; margin-left: auto; color: var(--taupe); }
.tcap { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.25; } .tcap small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.tcap > span { font-weight: 500; overflow-wrap: anywhere; }
.tmenu { margin: -12px 12px 14px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
.tmenu button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; font-size: 13px; border-top: 1px solid var(--line); }
.tmenu button:hover { background: var(--sand); } .tmenu button.on { box-shadow: inset 3px 0 0 var(--orange); font-weight: 600; } .tmenu small { color: var(--mute); }
.tmenu .adm { background: var(--dark); color: #fff; } .tmenu .adm:hover { background: #000; }
.sw-c { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
body.admin .tt, body:not(.admin) .ta { display: none !important; }
body.admin .side { background: var(--dark); } body.admin .logo { background: none; border: 1px solid #fff; padding: 7px 8px; } body.admin .logo span { background: none; color: var(--taupe); margin: 2px 0 0; padding: 0; }

.main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.head { padding: 26px 40px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: space-between; }
.head p { color: var(--mute); max-width: 60ch; margin-top: 4px; }
.head .caps { display: block; margin-bottom: 4px; }
.head .btns { margin-top: 0; }
.top { display: flex; align-items: center; gap: 14px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.2; } .who > b { width: 34px; height: 34px; display: grid; place-items: center; background: var(--taupe); color: #fff; font-weight: 500; }
.who small { display: block; font-size: 11px; color: var(--mute); }
.scroll { overflow-y: auto; overflow-x: hidden; padding: 30px 40px 56px; min-height: 0; }
.scroll > .view { max-width: 1320px; margin: 0 auto; }
.view { display: none; } .view.on { display: block; }
.view.on > * { animation: rise var(--slow) var(--ease) both; }
.view.on > :nth-child(2) { animation-delay: 40ms; } .view.on > :nth-child(3) { animation-delay: 80ms; } .view.on > :nth-child(4) { animation-delay: 120ms; }
.view.on > :nth-child(5) { animation-delay: 160ms; } .view.on > :nth-child(n+6) { animation-delay: 200ms; }
/* drawer: a dossier that slides in over the screen — you never leave the page */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(28,28,28,.35); animation: fade var(--slow) var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(480px, 100%); background: var(--bg); box-shadow: -30px 0 60px -30px rgba(0,0,0,.45); overflow-y: auto; animation: slide var(--slow) var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer > header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 28px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.drawer > div { padding: 20px 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.drawer .panel { padding: 18px 20px; }
/* toast: a short confirmation at the bottom */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 18px; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); animation: rise var(--slow) var(--ease); }
.toast::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 10px; }

/* ---------- 5 · layout helpers ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.g-side { grid-template-columns: minmax(0, 1fr) minmax(90px, 150px); align-items: start; }
.sec { margin: 40px 0 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mt { margin-top: 20px; } .mt-s { margin-top: 12px; } .mb { margin-bottom: 20px; } .mb-s { margin-bottom: 10px; } .flat { margin-top: 0; }
.push { margin-right: auto; margin-left: 16px; }
.tw { container-type: inline-size; }
@container (max-width: 640px) { .lo { display: none; } }
@container (max-width: 430px) { .mid { display: none; } }

/* ---------- 6 · surfaces ---------- */
/* photo: any image area */
.img { background: var(--taupe2) center / cover no-repeat; }
.i1 { background-image: var(--img1); } .i2 { background-image: var(--img2); } .i3 { background-image: var(--img3); } .i4 { background-image: var(--img4); } .imap { background-image: var(--map); }
/* panel: the white box */
.panel { background: var(--paper); border: 1px solid var(--line); padding: 24px; min-width: 0; box-shadow: var(--shadow); }
.panel > .caps { display: block; margin-bottom: 12px; }
.panel.flush { padding: 0; } .panel.list { padding-top: 4px; padding-bottom: 4px; }
/* media: photo next to text (woning, klant preview) */
.media { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); width: 100%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.media > .img { min-height: 210px; }
.media > div:not(.img) { padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.media > div > .btn { align-self: flex-start; }
button.media:hover { border-color: var(--ink); }
/* tile: photo on top, text below */
/* tile: photo on top, text and one action below — the start of a task */
.tile { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease), border-color var(--fast); }
.tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--lift); }
.tile .img { aspect-ratio: 16 / 7; filter: saturate(.85); transition: filter var(--slow); } .tile:hover .img { filter: none; }
.tile > div:last-child { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile .num { margin-top: 4px; } .tile .btn { margin-top: auto; align-self: flex-start; }
.tile .sub + .btn { margin-top: 12px; }
/* note: side remark */
.note { margin-top: 28px; border-left: 3px solid var(--taupe); background: var(--sand); padding: 16px 20px; }
.note ul { margin: 8px 0 0; padding-left: 18px; } .note li { margin: 4px 0; }
/* info bar */
.api { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 12px 16px; background: var(--sand); margin-bottom: 20px; }

/* ---------- 7 · lists ---------- */
/* row: a line in a list — optional lead (number), text, trailing status or button */
.row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child, .panel > .caps + .row { border-top: 0; }
.row > div { min-width: 0; flex: 1 1 150px; }
.row > .lead { flex: none; width: 34px; }
.row > i.lead { font-style: normal; font-weight: 300; font-size: 20px; color: var(--taupe); }
.row > .num.lead { width: 64px; }
.row > .img { flex: none; width: 58px; height: 44px; }
button.row { width: 100%; text-align: left; transition: background var(--fast); } button.row:hover { background: var(--sand); }
.row.sep { border-top: 3px solid var(--line); margin-top: 6px; }
.row b, td b { font-weight: 600; color: var(--dark); }
.row > .num { font-weight: 200; }
.row > .num.att { color: var(--orange); } .row > .num.off { color: var(--taupe2); }
/* mark: the orange edge for "selected" or "needs attention" */
.mark { box-shadow: inset 3px 0 0 var(--orange); }
.row.mark { background: var(--sand); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
/* obj: a woning line with thumbnail */
.obj { display: grid; grid-template-columns: 92px minmax(0, 1.3fr) minmax(0, 2fr) auto; gap: 18px; align-items: center; padding: 12px 22px 12px 12px; border-top: 1px solid var(--line); width: 100%; transition: background var(--fast); }
.obj:first-child { border-top: 0; } .obj:hover { background: var(--sand); }
.obj .caps.ink { transition: transform var(--fast) var(--ease); } .obj:hover .caps.ink { transform: translateX(4px); }
.obj .img { aspect-ratio: 4 / 3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 6px 0; }
/* table */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; padding: 0 10px 10px 0; }
td { padding: 13px 10px 13px 0; border-top: 1px solid var(--line); vertical-align: top; }
th.r { text-align: right; }
td.r { text-align: right; white-space: nowrap; font-weight: 600; color: var(--dark); } tr.tot td { border-top: 2px solid var(--ink); font-size: 17px; }
tr.k { cursor: pointer; } tr.k td { transition: background var(--fast); } tr.k:hover td { background: var(--sand); }
/* who: a name that opens the dossier */
.who-l { font-weight: 600; color: var(--dark); text-decoration: underline; text-decoration-color: var(--taupe2); text-underline-offset: 3px; transition: text-decoration-color var(--fast); }
.who-l:hover { text-decoration-color: var(--orange); }

/* ---------- 8 · status ---------- */
/* st: status with a square dot */
.st { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.st::before { content: ""; width: 8px; height: 8px; background: var(--ink); flex: none; }
.st.wait { color: var(--mute); } .st.wait::before { background: none; border: 1px solid var(--taupe); }
.st.att { color: var(--warn); } .st.att::before { background: var(--orange); }
.st.ai { color: var(--mute); } .st.ai::before { background: var(--taupe); }
.st.ok::before { background: var(--ok); }
.st.live::before { animation: pulse 1.6s ease-in-out infinite; }
/* tag: a filled chip on a card */
.tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; background: var(--sand); color: var(--ink); }
.tag.att { background: var(--warn-bg); color: var(--warn); } .tag.ok { background: var(--ink); color: #fff; }

/* ---------- 9 · actions ---------- */
.btn { display: inline-block; letter-spacing: .01em; font-size: 14px; font-weight: 600; padding: 11px 18px; border: 1px solid var(--ink); color: var(--ink); text-align: center; text-decoration: none; transition: background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:hover { background: var(--sand); }
.btn.pri { background: var(--ink); color: #fff; } .btn.pri:hover { background: var(--dark); }
.btn.acc { background: var(--orange); border-color: var(--orange); } .btn.acc.ok { background: var(--ink); border-color: var(--ink); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.lg { padding: 16px 26px; font-size: 16px; }
.btn.rec-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btns.tight { gap: 6px; margin-top: 8px; }
/* tabs: switch between views */
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs.bare { margin: 0; border: 0; }
.tab { padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--mute); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color var(--fast), border-color var(--slow) var(--ease); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--dark); border-bottom-color: var(--orange); }
/* steps: where a process stands */
.steps { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 22px; border: 1px solid var(--line); background: var(--paper); }
.steps span { flex: 1 1 120px; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--taupe); border-right: 1px solid var(--line); border-bottom: 3px solid transparent; }
.steps .done { color: var(--ink); border-bottom-color: var(--ink); }
.steps .now { color: var(--dark); border-bottom-color: var(--orange); background: var(--sand); }
/* seg: compact on/off pair in a toolbar */
.zoom { display: inline-flex; align-items: center; gap: 8px; }
.zoom span { min-width: 44px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.seg { display: inline-flex; align-items: center; }
.seg button { padding: 7px 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--ink); text-align: center; transition: background var(--fast), color var(--fast); }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
/* fee: pick one of a few described options (abonnement, template) */
.fee { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 10px; }
.fee button { border: 1px solid var(--line); padding: 10px; font-size: 15px; color: var(--dark); transition: border-color var(--fast), background var(--fast); } .fee button:hover { border-color: var(--ink); }
.fee button.on { border-color: var(--orange); box-shadow: inset 0 -3px 0 var(--orange); background: var(--sand); }
.fee b { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .fee small { display: block; font-size: 11px; color: var(--mute); line-height: 1.3; margin-top: 2px; }

/* ---------- 10 · figures ---------- */
/* kpis: a strip of figures; a kpi can be a button and can ask attention */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi { background: var(--paper); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.kpi.att { box-shadow: inset 0 3px 0 var(--orange); }
button.kpi { transition: background var(--fast); } button.kpi:hover { background: var(--sand); }
.kpi em { font-style: normal; font-weight: 600; color: var(--ink); } .kpi em.up::before { content: "▲ "; font-size: 9px; color: var(--orange); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 8px; border-bottom: 1px solid var(--ink); }
.bars i { flex: 1; background: var(--taupe2); } .bars i.now { background: var(--orange); } .bars i.off { background: var(--line); }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }
.fun { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 0; font-size: 13px; }
.fun span { grid-column: 1 / -1; color: var(--mute); } .fun i { height: 14px; background: var(--taupe2); } .fun i.now { background: var(--ink); }
.rec { display: flex; align-items: center; gap: 3px; height: 54px; margin: 16px 0 6px; }
.rec i { flex: 1; background: var(--taupe); min-width: 2px; transform-origin: center; transition: background var(--fast); }
.rec.live i { background: var(--orange); animation: wave .5s ease-in-out infinite alternate; }
.rec.live i:nth-child(3n) { animation-duration: .38s; } .rec.live i:nth-child(4n+1) { animation-duration: .62s; }

/* ---------- 11 · forms ---------- */
/* one look for every text box */
input[type=text], input[type=number], input:not([type]), textarea, select { display: block; width: 100%; min-width: 0; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--dark); background: var(--paper); border: 1px solid var(--taupe2); border-radius: 0; padding: 9px 10px; }
textarea { min-height: 64px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); outline-offset: -1px; }
input[type=checkbox], input[type=range] { accent-color: var(--orange); }
.search { width: 300px; max-width: 40vw; font-size: 13px; border-color: var(--line); padding-left: 32px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238d867e' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.5 9.5 13 13'/%3E%3C/svg%3E") 11px 50% no-repeat; }
/* fld: label above a control */
.fld { display: block; margin-bottom: 14px; min-width: 0; transition: box-shadow .2s; }
.fld:last-child { margin-bottom: 0; }
.fld > .caps { display: block; margin-bottom: 6px; }
/* fld line: a setting in a list — text left, value right, slider below */
.fld.line { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; } .panel > .caps + .fld.line { border-top: 0; }
.fld.line output { float: right; font-weight: 600; color: var(--dark); }
.fld.line input[type=range] { display: block; width: 100%; margin-top: 8px; }
.fld.line input[type=number] { float: right; width: 110px; padding: 6px 8px; text-align: right; }
.hl { box-shadow: 0 0 0 3px var(--orange); }
.inl { display: flex; gap: 10px; align-items: stretch; } .inl > input { flex: 1; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
/* drop: where files land */
.drop { border: 2px dashed var(--taupe); background: var(--paper); padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.drop .rec { width: min(520px, 100%); margin: 6px 0 0; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--sand); }
.drop span:not(.btn) { color: var(--mute); max-width: 62ch; }
.drop.sm { padding: 34px 16px; gap: 4px; background: var(--sand); font-weight: 500; } .drop.sm.over { background: var(--paper); }
.drop.sm span:first-child { color: var(--ink); }

/* ---------- 12 · opvolging board ---------- */
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.kcol { background: var(--sand); border: 1px solid var(--line); padding: 16px; min-height: 320px; transition: border-color var(--fast), background var(--fast); }
.kcol.over { border-color: var(--orange); background: #fbefe4; }
.kcol h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.kc { background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; margin-top: 10px; cursor: grab; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; transition: transform var(--fast) var(--ease), border-color var(--fast), box-shadow var(--slow); }
.kc.flash { animation: pop .6s var(--ease); }
.kc:not(.mark) { box-shadow: 0 8px 20px -18px rgba(65,65,66,.5); }
.kc:hover { border-color: var(--ink); transform: translateY(-2px); } .kc.drag { opacity: .4; }
.kn { font-size: 13px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 6px; width: 100%; }
[data-col="gebeld"] .kc .who-l { text-decoration: line-through; color: var(--mute); } [data-col="gebeld"] .kc { box-shadow: none; }

/* ---------- 13 · mapje cover ---------- */
.mini-cover { aspect-ratio: 210 / 297; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.mini-cover .img { flex: 1; }
.mini-cover div:last-child { padding: 8px 10px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 14 · brochure editor ---------- */
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 0; }
.editor { overflow-y: auto; overflow-x: hidden; padding: 24px 28px 56px; border-right: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.preview { overflow: auto; min-height: 0; background: #ece7e0; }
.pv-tool .btns { margin: 0; gap: 8px; }
.pv-tool { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pv-body { padding: 24px 24px 56px; }
/* sect: a folding panel — every part of the editor on one screen, open what you need */
.sect { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sect > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; }
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary::after { content: "+"; margin-left: auto; font-size: 18px; line-height: 1; color: var(--mute); transition: transform var(--slow) var(--ease); }
.sect[open] > summary::after { transform: rotate(45deg); }
.sect > summary:hover { background: var(--card); }
.sect > div { padding: 4px 20px 20px; animation: rise var(--slow) var(--ease); }
/* ph: a photo in the brochure picker — click to put it in or out */
.phgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ph { display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: opacity var(--fast); }
.ph > .img { position: relative; aspect-ratio: 4 / 3; width: 100%; outline: 2px solid var(--orange); outline-offset: -2px; transition: filter var(--slow), opacity var(--slow), outline-color var(--fast); cursor: pointer; }
.ph > .img i { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; display: grid; place-items: center; background: var(--orange); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; transition: transform var(--fast) var(--ease); }
.ph.off > .img { filter: grayscale(1); opacity: .45; outline-color: transparent; } .ph.off > .img i { transform: scale(0); }
.ph.wide { grid-column: span 2; } .ph.wide > .img { aspect-ratio: 8 / 3; }
.ph > div { display: flex; gap: 6px; } .ph select { flex: 1; min-width: 0; padding: 5px 6px; font-size: 12px; } .ph .btn { white-space: nowrap; } .ph input { padding: 6px 8px; font-size: 12px; }
.ph .btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ph.drag { opacity: .35; } .ph.over > .img { box-shadow: -5px 0 0 var(--orange); }
/* scard: an editable block inside a panel */
.scard { border: 1px solid var(--line); background: var(--card); padding: 12px; margin-bottom: 12px; transition: box-shadow .2s; }
.scard .top { gap: 8px; margin-bottom: 8px; } .scard .top input { flex: 1; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; margin-bottom: 8px; }

/* ---------- 15 · brochure pages (A4 portrait 595 x 842, also the print layout) ---------- */
.spreads { zoom: .5; }
.spread { position: relative; display: flex; width: 1190px; height: 842px; margin: 0 auto 22px; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.15); --fs: 12px; }
.spread.flash { animation: fl 1.3s ease-out; }
@keyframes fl { 0%, 55% { outline: 5px solid var(--orange); outline-offset: 4px; } 100% { outline: 5px solid transparent; outline-offset: 4px; } }
.spread.wide .fold { display: none; }
.spread.wide::after { content: "Spread · één foto over 2 pagina's"; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 6px 12px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity var(--fast); pointer-events: none; }
.spread.wide:hover::after { opacity: 1; }
.fold { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(65,65,66,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.35); z-index: 6; pointer-events: none; }
body.single .spreads { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
body.single .spread { display: contents; }
body.single .page { box-shadow: 0 2px 14px rgba(0,0,0,.15); animation-name: none; }
body.single .spread.flash { animation: none; }
body.single .spread.flash > .page { animation: fl 1.3s ease-out; }
body.single .fold { display: none; }
.page { width: 595px; height: 842px; flex: none; position: relative; overflow: hidden; background: #fff; font-size: var(--fs); line-height: 1.65; color: var(--ink); }
.page .title { --t: 28px; line-height: 1.2; }
.page .img { background-color: var(--taupe); }
.page [data-f] { cursor: pointer; }
.page [data-f]:hover { outline: 2px solid var(--orange); outline-offset: 2px; }
.pn { position: absolute; bottom: 24px; font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.page:nth-child(odd) .pn { left: 40px; } .page:nth-child(even) .pn { right: 40px; }
.pg-cover { position: absolute; inset: 0; padding: 48px; display: flex; flex-direction: column; gap: 26px; }
.ctag { font-size: 28px; font-weight: 300; line-height: 1.25; color: var(--dark); max-width: 85%; margin-top: 8px; }
.cph { flex: 1; min-height: 0; }
.cadr { text-transform: uppercase; letter-spacing: .3em; font-size: 14px; font-weight: 600; color: var(--ink); }
.curl { font-size: 12px; letter-spacing: .1em; color: var(--mute); margin-top: -14px; padding-bottom: 6px; }
.pg-text { padding: 70px 56px 60px; height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.pg-text .body p { margin: 0 0 1em; }
.pg-photos { position: absolute; inset: 0; padding: 56px 48px 64px; display: flex; flex-direction: column; gap: 22px; }
.pg-photos figure { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-photos.one figure { flex: 0 0 68%; }
.pg-photos .img { flex: 1; min-height: 0; }
.pg-photos figcaption { font-size: 11px; color: var(--mute); letter-spacing: .04em; min-height: 14px; }
.full { position: absolute; inset: 0; }
.kbox { position: absolute; right: 0; bottom: 56px; width: 66%; padding: 22px 28px; background: rgba(28,28,28,.93); color: #fff; }
.kbox .caps { color: var(--taupe); display: block; margin-bottom: 8px; }
.kbox div.kr { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.kbox div.kr:last-child { border-bottom: 0; }
.kbox div.kr b { font-weight: 300; text-align: right; }
.spancap { position: absolute; left: 40px; bottom: 44px; color: #fff; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.pg-plan { position: absolute; inset: 0; padding: 64px 48px 64px; display: flex; flex-direction: column; gap: 14px; }
.plbox { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.plin { width: 74%; line-height: 0; transform-origin: center; }
.plin svg, .plin img { width: 100%; height: auto; display: block; }
.back { height: 100%; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 56px 52px; }
.back .title { --t: 24px; color: #fff; margin-top: 18px; }
.back p { color: var(--taupe2); }
.back small { color: var(--mute); font-size: 10px; margin-top: 30px; }

/* ---------- 16 · small screens ---------- */
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 10px; }
  .logo:not(.sm):not(.lg) { --lb: 18px; --ls: 8px; margin: 4px 100% 10px 6px; }
  .tenant { width: 100%; margin: 4px 0 8px; } .search, .who span { display: none; }
  .navsep { display: none; }
  .nav { width: auto; padding: 6px 8px; font-size: 11px; gap: 6px; border-left: 0; border-bottom: 2px solid transparent; }
  .nav i { width: auto; } .nav[aria-current="page"] { border-bottom-color: var(--orange); }
  .nav.roi, .nav.sw { margin-top: 0; border-top: 0; padding: 6px 8px; }
  .head, .scroll { padding-left: 16px; padding-right: 16px; }
  .title.t-xl { --t: 22px; }
  .g2, .g3, .media, .kb { grid-template-columns: minmax(0, 1fr); }
  .drawer { width: 100%; } .phgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcol { min-height: 0; }
  .media > .img { min-height: 140px; }
  .obj { grid-template-columns: 64px minmax(0, 1fr); } .obj .chips, .obj .caps { grid-column: 1 / -1; }
  body.ed { display: block; height: auto; min-height: 100svh; overflow-x: hidden; overflow-y: auto; }
  body.ed .main, body.ed .work { display: block; }
  body.ed .editor { overflow: visible; padding: 16px; border-right: 0; }
  body.ed .preview { overflow: visible; }
  .pv-tool { padding: 10px 16px; } .pv-body { padding: 16px 16px 40px; }
  .panel { padding: 16px; } .row.mark { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}

/* ---------- 17 · print (brochure only) ---------- */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { height: auto !important; overflow: visible !important; background: #fff; display: block !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .head, .editor, .pv-tool { display: none !important; }
  .main, .work, .preview, .pv-body { display: block !important; overflow: visible !important; padding: 0 !important; background: #fff; height: auto !important; }
  .spreads { zoom: 1 !important; display: block !important; }
  body .spread { display: flex !important; zoom: .94; margin: 0 !important; box-shadow: none !important; break-after: page; page-break-after: always; animation: none !important; outline: 0 !important; }
  body .spread:last-child { break-after: auto; page-break-after: auto; }
  body .spread .page { box-shadow: none !important; animation: none !important; }
  .fold { display: none !important; }
  .page [data-f]:hover { outline: 0 !important; }
}

/* ---------- 18 · less motion when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
