/* Woningradar – rustig, licht, overzichtelijk. Typografie/spacing in de geest van Airbnb, blokken zoals Notion. */
:root, :root[data-theme="light"] {
  --bg: #eceae4;
  --panel: #f7f6f2;
  --panel-2: #e8e6df;
  --hover: #e9e7e0;
  --line: #d9d6ce;
  --line-2: #e2dfd8;
  --ink: #23221f;
  --ink-2: #393833;
  --muted: #5f5d57;
  --faint: #8a877f;
  --accent: #1c6f52;
  --accent-2: #165c44;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe3;
  --accent-line: #a9cfbc;
  --ok: #1c6f52; --ok-soft: #dcebe3;
  --warn: #a95306; --warn-soft: #f6e9d9; --warn-line: #e9c497;
  --bad: #b13c34; --bad-soft: #f5e2e0;
  --info: #2a62c4; --info-soft: #e1e9f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 10px rgba(0, 0, 0, .04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .16);
  --r: 14px;
  --r-sm: 10px;
  --font: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121212; --panel: #1b1b1b; --panel-2: #232323; --hover: #262626;
  --line: #2e2e2e; --line-2: #262626; --ink: #f2f2f2; --ink-2: #d6d6d6; --muted: #9a9a9a; --faint: #6b6b6b;
  --accent: #4cc794; --accent-2: #3bb382; --accent-ink: #0b2a1e; --accent-soft: rgba(76, 199, 148, .12); --accent-line: rgba(76, 199, 148, .35);
  --ok: #4cc794; --ok-soft: rgba(76, 199, 148, .12); --warn: #f0a04b; --warn-soft: rgba(240, 160, 75, .12); --warn-line: rgba(240, 160, 75, .35);
  --bad: #f07a72; --bad-soft: rgba(240, 122, 114, .12); --info: #7aa7f5; --info-soft: rgba(122, 167, 245, .12);
  --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 0.875rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: none; }
a.link, .link { color: var(--accent); }
a.link:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: 1.625rem; letter-spacing: -.02em; }
h2 { font-size: 1.125rem; }
h3 { font-size: 0.9375rem; }
p { margin: 0 0 8px; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.75rem; background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- icons ---------- */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 24px; height: 24px; }

/* ---------- shell / rail ---------- */
.shell { display: grid; grid-template-columns: 92px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-brand { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.25rem; margin-bottom: 10px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.rail-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 12px; color: var(--muted); font-size: 0.7188rem; font-weight: 500; text-align: center; line-height: 1.15; transition: color .15s, background .15s; }
.rail-item .ic { width: 23px; height: 23px; stroke-width: 1.5; }
.rail-item:hover { color: var(--ink); background: var(--hover); }
.rail-item.active { color: var(--ink); background: var(--panel-2); font-weight: 600; }
.rail-item.active .ic { stroke-width: 1.9; }
.rail-item .pill { position: absolute; top: 4px; right: 10px; }
.rail-sep { height: 1px; background: var(--line); margin: 6px 14px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding-top: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.topbar { display: none; }
.page { min-width: 0; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 36px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.appbar #menu-btn { display: none; }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.speed-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.7812rem; color: var(--muted); white-space: nowrap; }
.speed-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.speed-chip.fast::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.afford-chip { display: inline-flex; align-items: baseline; gap: 5px; margin-left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 0.7812rem; white-space: nowrap; cursor: default; }
.afford-chip:empty { display: none; }
.afford-chip .lbl { color: var(--muted); margin-right: 3px; }
.afford-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.afford-chip .x { color: var(--faint); font-size: 0.7188rem; margin-right: 6px; }
.afford-chip .x:last-child { margin-right: 0; }
.mode { display: flex; align-items: center; gap: 8px; }
.mode .seg button { display: inline-flex; align-items: center; gap: 6px; }
.mode .seg button.on.auto { background: var(--accent); color: var(--accent-ink); }
.mode select { height: 32px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 0 10px; font: inherit; font-size: 0.7812rem; }
main { padding: 28px 36px 56px; width: 100%; max-width: none; outline: none; min-width: 0; }

.pill { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 0.6562rem; font-weight: 700; line-height: 17px; text-align: center; background: var(--accent); color: var(--accent-ink); }
.pill:empty { display: none; }
.pill.warn { background: var(--warn); color: #fff; }

/* ---------- page head ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .emoji { font-size: 1.875rem; display: block; margin-bottom: 6px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; }

/* ---------- blocks ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card.tight { padding: 0; overflow: hidden; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card.tight .card-title { padding: 16px 20px 0; margin-bottom: 10px; }
.card-title h2, .card-title h3 { display: flex; align-items: center; gap: 8px; }
.card-title .more { font-size: 0.8125rem; color: var(--muted); }
.card-title .more:hover { color: var(--ink); }
.section { margin-top: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div + div { border-left: 1px solid var(--line-2); }

/* rij-lijst (Notion-achtig) */
.rows { display: flex; flex-direction: column; }
.rows > .r { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line-2); cursor: pointer; transition: background .12s; min-width: 0; }
.rows > .r:hover { background: var(--hover); }
.rows > .r .r-main { min-width: 0; flex: 1; }
.rows > .r .r-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows > .r .r-sub { font-size: 0.7812rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows > .r .r-end { font-size: 0.7812rem; color: var(--faint); white-space: nowrap; }
.favicon { width: 20px; height: 20px; border-radius: 5px; flex: none; background: var(--panel-2); object-fit: contain; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: var(--r-sm); padding: 0 16px; font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--hover); border-color: #d6d2ca; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 0.8125rem; border-radius: 9px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 0.75rem; border-radius: 8px; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn:disabled { opacity: .5; cursor: default; }

.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 0.8125rem; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { color: var(--faint); font-size: 0.75rem; }
.chip.on .n { color: inherit; opacity: .7; }

input, select, textarea { font: inherit; font-size: 0.875rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; height: 40px; width: 100%; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--accent); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.7812rem; color: var(--muted); }
label.field > span { font-weight: 600; color: var(--ink-2); font-size: 0.8125rem; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 0.875rem; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.form-col { display: flex; flex-direction: column; gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0 0 16px; background: var(--panel); }
legend { font-weight: 600; font-size: 0.875rem; padding: 0 6px; }
.hint { font-size: 0.7812rem; color: var(--muted); }

.switch { position: relative; display: inline-block; width: 36px; height: 21px; vertical-align: middle; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d9d6cf; border-radius: 99px; cursor: pointer; transition: background .15s; }
.switch span::before { content: ""; position: absolute; width: 17px; height: 17px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(15px); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--muted); cursor: pointer; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 500; line-height: 20px; padding: 0 8px; border-radius: 6px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.badge.groen, .badge.ok, .badge.laag, .badge.ja { background: var(--ok-soft); color: var(--ok); }
.badge.oranje, .badge.middel, .badge.bijna, .badge.warn, .badge.onbekend { background: var(--warn-soft); color: var(--warn); }
.badge.rood, .badge.hoog, .badge.ontbreekt, .badge.verlopen, .badge.bad, .badge.nee { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

/* ---------- toggles (Notion) ---------- */
details.toggle { border: 0; padding: 0; margin: 0; background: none; }
details.toggle > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-radius: 8px; font-weight: 500; }
details.toggle > summary::-webkit-details-marker { display: none; }
details.toggle > summary::before { content: "›"; display: inline-block; width: 14px; color: var(--faint); transition: transform .15s; font-size: 1rem; }
details.toggle[open] > summary::before { transform: rotate(90deg); }
details.toggle > summary:hover { background: var(--hover); }
details.toggle > .t-body { padding: 2px 4px 12px 26px; color: var(--ink-2); font-size: 0.8438rem; }
details { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--panel); margin-bottom: 8px; }
details summary { cursor: pointer; font-weight: 500; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.8438rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
tbody tr:hover { background: var(--hover); }
.table-wrap { overflow-x: auto; }
td.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- misc ---------- */
.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-sm); background: var(--panel-2); padding: 14px 16px; margin: 0 0 16px; font-size: 0.8438rem; color: var(--ink-2); }
.callout.info { background: var(--info-soft); } .callout.ok { background: var(--ok-soft); } .callout.bad { background: var(--bad-soft); } .callout.warn { background: var(--warn-soft); }
.callout ul { margin: 4px 0 0; padding-left: 18px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.progress { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.progress.thin { height: 5px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain.dense li { padding: 7px 0; font-size: 0.8438rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars { color: #e3a008; letter-spacing: 1px; font-size: 0.75rem; white-space: nowrap; }
.kpi .num, .stat .num { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .lbl, .stat .lbl { color: var(--muted); font-size: 0.8125rem; }
.stat { padding: 16px 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats > .stat + .stat { border-left: 1px solid var(--line-2); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 14px 34px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 0.75rem; }
.md { font-size: 0.875rem; }
.md h2, .md h3, .md h4 { font-size: 0.75rem; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.md h2:first-child, .md h3:first-child { margin-top: 0; }
.md ul, .md ol { margin: 2px 0 8px; padding-left: 20px; }
.md li { margin: 4px 0; }
.md p { margin: 4px 0 8px; }
.md em { color: var(--muted); }
.md.small { font-size: 0.8125rem; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--panel-2); border-radius: var(--r); padding: 10px; min-height: 260px; }
.col h3 { font-size: 0.8125rem; display: flex; justify-content: space-between; padding: 4px 6px 10px; color: var(--ink-2); }
.col.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; font-size: 0.8125rem; box-shadow: var(--shadow); }
.kcard .t { font-weight: 600; overflow-wrap: anywhere; }

/* documenten */
.doc-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-files { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.doc-file { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; flex-wrap: wrap; }
.doc-file select { height: 28px; font-size: 0.75rem; width: auto; }

/* ---------- overzicht ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.listing-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-2); cursor: pointer; position: relative; transition: background .12s; }
.listing-row:hover { background: var(--hover); }
.listing-row.unseen { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.listing-row.unseen::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.thumb { width: 88px; height: 66px; border-radius: 10px; background: var(--panel-2) center/cover no-repeat; display: grid; place-items: center; color: var(--faint); }
.lr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-sub { font-size: 0.8125rem; color: var(--muted); margin: 1px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.lr-end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lr-price { font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.goal { display: flex; align-items: center; gap: 12px; }
.goal .progress { width: 160px; }

/* ---------- aanbod (mailbox) ---------- */
.ab-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ab-toolbar .search { position: relative; flex: 1 1 220px; max-width: 320px; }
.ab-toolbar .search input { padding-left: 36px; height: 38px; border-radius: 999px; }
.ab-toolbar .search .ic { position: absolute; left: 12px; top: 10px; color: var(--muted); }
.ab-toolbar select { width: auto; height: 38px; border-radius: 999px; }
.inbox { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); height: calc(100vh - 150px); min-height: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.inbox-list { overflow-y: auto; border-right: 1px solid var(--line); scrollbar-width: none; }
.inbox-list::-webkit-scrollbar { display: none; }
.inbox-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; transition: background .12s; }
.inbox-item:hover { background: var(--hover); }
.inbox-item.sel { background: var(--panel-2); }
.inbox-item.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); }
.inbox-item.unread .it-title { color: var(--ink); }
.inbox-item.near { background: linear-gradient(90deg, var(--warn-soft), transparent 60%); }
.inbox-item.near:hover, .inbox-item.near.sel { background: var(--warn-soft); }
.inbox-item.near::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn-line); }
.inbox-item.dim { opacity: .45; }
.inbox-item.dim:hover, .inbox-item.dim.sel { opacity: .85; }
.it-thumb { width: 96px; height: 72px; border-radius: 10px; background: var(--panel-2) center/cover no-repeat; display: grid; place-items: center; color: var(--faint); }
.it-body { min-width: 0; }
.it-title { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-sub { font-size: 0.7812rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px; }
.it-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.it-tags .badge { line-height: 18px; font-size: 0.7188rem; padding: 0 6px; }
.it-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.it-price { font-weight: 600; font-size: 0.9062rem; font-variant-numeric: tabular-nums; }
.it-time { font-size: 0.7188rem; color: var(--faint); white-space: nowrap; }
.inbox-divider { position: sticky; top: 0; z-index: 1; background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); padding: 9px 14px; font-size: 0.7812rem; font-weight: 600; color: var(--warn); display: flex; justify-content: space-between; gap: 8px; }
.inbox-divider span { font-weight: 400; color: var(--muted); }
.inbox-preview { overflow-y: auto; min-width: 0; }
.pv-empty { height: 100%; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }
.pv { padding: 22px 26px 32px; display: flex; flex-direction: column; gap: 20px; }
.pv-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pv-title h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.pv-title .sub { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.pv-price { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; text-align: right; white-space: nowrap; }
.pv-price small { display: block; font-size: 0.7812rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pv-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.pv-side { display: flex; flex-direction: column; gap: 10px; }
.gallery { position: relative; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; width: 100%; border-radius: var(--r); background: var(--panel-2) center/cover no-repeat; cursor: zoom-in; overflow: hidden; }
.gallery-main .g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 0.75rem; padding: 3px 10px; border-radius: 99px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #222; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; transition: opacity .15s, transform .1s; }
.g-nav .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.gallery:hover .g-nav { opacity: 1; }
.g-nav:hover { transform: translateY(-50%) scale(1.06); }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip img { width: 76px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; flex: none; outline: 2px solid transparent; outline-offset: 1px; }
.gallery-strip img.on { opacity: 1; outline-color: var(--ink); }
.ph-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.minimap { height: 150px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); position: relative; }
.minimap .maplibregl-ctrl-attrib { display: none; }
.minimap-empty { height: 100%; display: grid; place-items: center; color: var(--faint); font-size: 0.7812rem; }
.verdict { border-radius: var(--r-sm); padding: 12px 14px; background: var(--panel-2); }
.verdict h4 { font-size: 0.7812rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.verdict ul { margin: 0; padding-left: 16px; font-size: 0.8125rem; color: var(--ink-2); }
.verdict li { margin: 2px 0; }
.verdict .ev { font-size: 0.8125rem; color: var(--ink-2); }
.verdict.groen, .verdict.ja { background: var(--ok-soft); }
.verdict.rood, .verdict.nee { background: var(--bad-soft); }
.verdict.oranje, .verdict.onbekend { background: var(--warn-soft); }
.scen { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.pv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pv-actions select { width: auto; height: 38px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.facts > div { background: var(--panel-2); border-radius: var(--r-sm); padding: 12px 14px; }
.facts .k { font-size: 0.75rem; color: var(--muted); }
.facts .v { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.desc { font-size: 0.875rem; color: var(--ink-2); white-space: pre-line; max-height: 180px; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--panel)); }
.sec-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.94); z-index: 80; display: grid; place-items: center; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; }
.lightbox .g-nav { opacity: 1; width: 48px; height: 48px; }
.lightbox .g-nav .ic { width: 20px; height: 20px; }
.lightbox .g-nav.prev { left: 24px; } .lightbox .g-nav.next { right: 24px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; color: #fff; background: rgba(255,255,255,.12); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-count { position: absolute; bottom: 20px; color: #ccc; font-size: 0.8125rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- DAK ---------- */
.big-progress { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ring { width: 120px; height: 120px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--panel-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s; }
.ring text { font: 600 24px var(--font); fill: var(--ink); }
.chance { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.8125rem; }
.chance .bar { width: 54px; height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.chance .bar span { display: block; height: 100%; border-radius: 99px; }

/* ---------- bronnen ---------- */
.src-table td { padding: 12px 16px; }
.src-table th { padding: 10px 16px; }
.src-row { cursor: pointer; }
.src-row.open { background: var(--hover); }
.src-name { font-weight: 600; }
.src-note { font-size: 0.7812rem; color: var(--muted); max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-detail td { background: var(--panel-2); padding: 16px 18px; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- strategie ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.plan-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.plan-card .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 0.8125rem; }
.plan-card h3 { font-size: 0.9375rem; }
.plan-card .act { font-size: 0.8125rem; color: var(--accent); font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tile .k { font-size: 0.7812rem; color: var(--muted); }
.tile .v { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }

/* ---------- profiel ---------- */
.prof-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.person { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.person .avatar { width: 42px; height: 42px; }

/* ---------- wizard ---------- */
.wizard { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.wz-main { overflow-y: auto; padding: 56px 8vw 40px; display: flex; flex-direction: column; }
.wz-main .wz-step { max-width: 620px; width: 100%; margin: 0 auto; flex: 1; }
.wz-main h1 { font-size: 1.875rem; margin-bottom: 8px; }
.wz-main .lead { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }
.wz-nav { max-width: 620px; width: 100%; margin: 28px auto 0; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.wz-side { background: var(--panel); border-left: 1px solid var(--line); padding: 56px 34px; overflow-y: auto; }
.wz-side .sec-label { margin-bottom: 18px; }
.stepper { list-style: none; margin: 0; padding: 0; }
.stepper li { position: relative; padding: 0 0 26px 38px; color: var(--muted); font-size: 0.875rem; cursor: pointer; }
.stepper li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.stepper li:last-child::before { display: none; }
.stepper li.done::before { background: var(--accent); }
.stepper .sd { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; font-size: 0.6875rem; color: transparent; transition: all .2s; }
.stepper li.done .sd { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.cur { color: var(--ink); font-weight: 600; }
.stepper li.cur .sd { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.stepper .sub { display: block; font-size: 0.7812rem; font-weight: 400; color: var(--faint); margin-top: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice { border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; cursor: pointer; background: var(--panel); text-align: left; font: inherit; color: var(--ink); transition: border-color .12s; }
.choice:hover { border-color: var(--ink-2); }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .e { font-size: 1.625rem; display: block; margin-bottom: 8px; }
.choice b { display: block; font-size: 0.9375rem; }
.choice span { font-size: 0.8125rem; color: var(--muted); }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--panel); border-radius: 18px; width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 24px 26px; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 1.125rem; }
.modal textarea { min-height: 280px; font-size: 0.875rem; }
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 0.875rem; box-shadow: var(--shadow-lg); max-width: 380px; }
.toast-link { border: 0; font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer; }
.toast-link:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .home-grid, .pv-top { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .g4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } .wizard { grid-template-columns: 1fr; } .wz-side { display: none; } }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox-preview { display: none; }
  .inbox.show-preview .inbox-list { display: none; }
  .inbox.show-preview .inbox-preview { display: block; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 40; width: 92px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .rail.open { transform: none; }
  .topbar { display: flex; gap: 8px; align-items: center; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  main { padding: 18px 16px 40px; }
  .appbar { padding: 8px 16px; }
  .appbar #menu-btn { display: inline-flex; }
  .speed-chip span { display: none; }
  .afford-chip { margin-left: 4px; padding: 4px 9px; } .afford-chip .lbl { display: none; }
  .afford-chip b:nth-of-type(2), .afford-chip .x:last-child { display: none; }
  .mode select { display: none; }
  .appbar { gap: 6px; }
  .appbar-right { gap: 6px; }
  .mode .seg button { padding: 6px 10px; font-size: 0.7812rem; }
  .appbar .avatar { width: 32px; height: 32px; font-size: 0.8125rem; }
  .g2, .g4, .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* bron-logo op kaart */
.it-src { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 0.6875rem; color: var(--muted); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.it-src img { width: 13px; height: 13px; border-radius: 3px; object-fit: contain; }
.it-right { justify-content: flex-start; }
/* dropdown met vinkjes */
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 230px; max-height: 340px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.dd-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 0.8438rem; cursor: pointer; }
.dd-item:hover { background: var(--hover); }
.dd-item img { width: 16px; height: 16px; border-radius: 4px; }
.dd-item span:first-of-type { flex: 1; }

.it-src img.also { margin-left: -7px; border: 1.5px solid var(--panel); border-radius: 50%; background: var(--panel); }
.avail { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.avail-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.8438rem; border-top: 1px solid var(--line-2); }
.avail-row:first-child { border-top: 0; }
.avail-row:hover { background: var(--hover); }
.avail-row img { width: 18px; height: 18px; border-radius: 4px; }

/* live */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; color: var(--muted); vertical-align: middle; margin-left: 10px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); letter-spacing: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: livering 2s ease-out infinite; }
@keyframes livering { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.inbox-item.arriving { animation: arrive .6s cubic-bezier(.2,.8,.2,1) both, glow 3.5s ease-out .2s both; overflow: hidden; }
@keyframes arrive { from { max-height: 0; opacity: 0; transform: translateY(-14px); padding-top: 0; padding-bottom: 0; } to { max-height: 140px; opacity: 1; transform: none; } }
@keyframes glow { 0% { box-shadow: inset 4px 0 0 var(--accent), 0 0 0 0 var(--accent-line); background-color: var(--accent-soft); } 60% { background-color: var(--accent-soft); } 100% { box-shadow: inset 0 0 0 transparent; background-color: transparent; } }
.inbox-item.pulse { animation: glow 2.5s ease-out both; }

/* beoordeling */
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7812rem; white-space: nowrap; min-width: 130px; }
.stars2 { letter-spacing: 1px; font-size: 0.8125rem; }
.stars2 .st { color: #d9d6cf; }
.stars2 .st.on { color: #00b67a; }
.stars2 .st.half { background: linear-gradient(90deg, #00b67a 50%, #d9d6cf 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spark { display: block; }

/* grote reageerknop */
.react-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); }
.btn.big { height: 52px; padding: 0 30px; font-size: 1rem; font-weight: 600; border-radius: 12px; box-shadow: 0 6px 18px rgba(31, 122, 90, .25); }
.btn.big .ic { width: 20px; height: 20px; }
.react-sub { display: flex; flex-direction: column; gap: 3px; font-size: 0.8125rem; color: var(--ink-2); }
.react-sub > span:last-child { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.react-done { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); font-size: 0.9375rem; }

/* reageren via account / originele aanbieder */
.react-cta .via { font-weight: 500; opacity: .85; font-size: 0.8125rem; margin-left: 4px; }
.react-via { display: flex; align-items: center; gap: 6px; font-size: 0.7812rem; color: var(--ink-2); margin-top: 8px; }
.react-via .ic { color: var(--accent); }

/* statistieken */
.bar-track { height: 6px; border-radius: 99px; background: var(--panel-2); margin: 6px 0 4px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.range-track { position: relative; height: 8px; border-radius: 99px; background: var(--panel-2); margin: 7px 0 4px; }
.range-track .iqr { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 99px; }
.range-track .med { position: absolute; top: -3px; width: 3px; height: 14px; margin-left: -1px; background: var(--accent); border-radius: 2px; }
.heat { display: grid; grid-template-columns: 120px repeat(24, minmax(0, 1fr)); gap: 3px; padding: 0 20px 18px; align-items: center; }
.heat .hh { font-size: 0.6562rem; color: var(--faint); text-align: center; }
.heat .hl { font-size: 0.7812rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat .hc { height: 18px; border-radius: 4px; background: var(--accent); }
@media (max-width: 760px) { .heat { grid-template-columns: 80px repeat(24, minmax(0, 1fr)); gap: 2px; padding: 0 12px 14px; } }

.seg-rel { font-size: 0.6875rem; font-weight: 500; color: var(--faint); margin-left: 2px; }
.seg button.on .seg-rel { color: var(--muted); }

/* complexen */
.cx-badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; font: inherit; font-size: 0.7188rem; font-weight: 600; cursor: pointer; }
.cx-badge:hover { background: var(--hover); color: var(--ink); }
.cx-units { margin: -2px 0 6px 0; padding: 4px 10px 8px 96px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.cx-unit { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto 16px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 0.8125rem; cursor: pointer; }
.cx-unit:hover { background: var(--hover); }
.cx-unit.sel { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cx-unit .cx-tags { display: flex; gap: 4px; white-space: nowrap; }
.cx-unit .cx-facts { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-unit .cx-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-unit img { width: 14px; height: 14px; border-radius: 3px; }
@media (max-width: 760px) { .cx-units { padding-left: 10px; } .cx-unit { grid-template-columns: 56px 1fr auto 16px; } .cx-unit .cx-tags { display: none; } }

.ahead { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.ahead .bar-track { flex: 1; margin: 0; }

/* bronnen: schakelaars in de rij */
.src-toggles { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tg-sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.tg.link { border-color: transparent; background: var(--panel-2); color: var(--ink-2); }
.tg.link:hover { background: var(--hover); color: var(--ink); }
.tg.link.strong { background: var(--ink); color: var(--panel); }
.tg { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 0.7812rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tg:hover { color: var(--ink); background: var(--hover); }
.tg.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.tg.ghost { border-style: dashed; }
.tg:disabled { opacity: .6; cursor: wait; }
.rows > .r.watched { box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 40%); }

.badge.avail { background: var(--bad-soft); color: var(--bad); font-weight: 600; }

.btn.paywall { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); font-weight: 700; }

/* nieuwe, nog niet bekeken woningen: duidelijk gemarkeerd tot je erop klikt */
.inbox-item.unread { background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, transparent) 70%); }
.inbox-item.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.inbox-item .it-price::after { content: none; display: none; visibility: hidden; margin-top: 3px; font-size: 0.6562rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); text-align: right; }
.inbox-item.unread:hover { background: var(--accent-soft); }

/* home-dashboard */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bento > .s3 { grid-column: span 3; } .bento > .s4 { grid-column: span 4; } .bento > .s5 { grid-column: span 5; } .bento > .s12 { grid-column: span 12; }
.bento .panel { margin: 0; min-width: 0; }
.bento .panel.center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tiles2 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile2 { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile2:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.tile2 .v { font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile2 .v small { font-size: 0.9375rem; color: var(--faint); font-weight: 500; }
.tile2 .k { font-size: 0.7812rem; color: var(--muted); margin-top: 3px; }
.tile2.accent { background: var(--accent-soft); border-color: var(--accent-line); } .tile2.accent .v { color: var(--accent); }
.tile2.ok .v { color: var(--ok); } .tile2.warn .v { color: var(--warn); }
.mini-list { display: flex; flex-direction: column; }
.mini { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line-2); cursor: pointer; position: relative; }
.mini:hover { background: var(--hover); }
.mini.unseen { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.mini.unseen::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.mthumb { width: 52px; height: 40px; border-radius: 8px; background: var(--panel-2) center/cover; display: grid; place-items: center; color: var(--faint); }
.mm { min-width: 0; } .mt { font-weight: 600; font-size: 0.8438rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.todo-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
.todo-ic.deadline { background: var(--bad-soft); color: var(--bad); } .todo-ic.dak, .todo-ic.account { background: var(--accent-soft); color: var(--accent); } .todo-ic.login, .todo-ic.extensie { background: var(--warn-soft); color: var(--warn); }
.ring2 { width: 132px; height: 132px; margin: 6px 0 10px; }
.ring2 circle { fill: none; stroke-width: 9; } .ring2 .bg { stroke: var(--panel-2); } .ring2 .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s; }
.ring2 text { text-anchor: middle; dominant-baseline: middle; font-size: 1.25rem; font-weight: 700; fill: var(--ink); } .ring2 text.sub { font-size: 0.5312rem; font-weight: 500; fill: var(--muted); }
.kv { display: flex; justify-content: space-between; width: 100%; font-size: 0.8125rem; padding: 5px 0; border-top: 1px solid var(--line-2); } .kv span { color: var(--muted); }
table.compact td, table.compact th { padding: 8px 12px; font-size: 0.8125rem; }
.bars { width: 100%; height: 150px; } .bars rect.a { fill: var(--accent); opacity: .85; } .bars rect.b { fill: var(--warn); } .bars text { font-size: 0.5rem; fill: var(--faint); text-anchor: middle; }
.legend { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; } .legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 6px; } .legend i.a { background: var(--accent); } .legend i.b { background: var(--warn); }
.budget { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.brow { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); } .bw { font-size: 0.7812rem; color: var(--muted); margin-bottom: 3px; }
.bv { display: flex; align-items: baseline; gap: 5px; } .bv b { font-size: 1.0625rem; font-weight: 650; font-variant-numeric: tabular-nums; } .bv span { font-size: 0.7188rem; color: var(--faint); margin-right: 10px; }
.rank { width: 20px; height: 20px; border-radius: 6px; background: var(--panel-2); font-size: 0.7188rem; font-weight: 700; display: grid; place-items: center; color: var(--muted); flex: none; }
@media (max-width: 1400px) { .bento > .s3 { grid-column: span 6; } .bento > .s4, .bento > .s5 { grid-column: span 6; } .tiles2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bento > * { grid-column: span 12 !important; } .tiles2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Aanbod: kop, filters en acties op één regel */
.ab-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: -8px 0 12px; }
.ab-title { display: flex; align-items: baseline; gap: 10px; flex: none; }
.ab-title h1 { font-size: 1.5rem; margin: 0; }
.ab-title .live { align-self: center; }
.ab-counts { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.ab-head .ab-toolbar { margin: 0; flex: 1 1 520px; flex-wrap: wrap; gap: 8px; }
.ab-head .ab-toolbar .search { max-width: 260px; }
.ab-head .ab-toolbar .search input, .ab-head .ab-toolbar select, .ab-head .chip { height: 34px; }
.ab-actions { display: flex; gap: 6px; margin-left: auto; flex: none; }
.btn.icon { width: 34px; padding: 0; justify-content: center; }
.hh .seg { padding: 2px; } .hh .seg button { padding: 5px 11px; font-size: 0.7812rem; }
@media (max-width: 760px) { .appbar { flex-wrap: wrap; } .hh { order: 10; width: 100%; overflow-x: auto; } .ab-actions { margin-left: 0; } }
.ab-head .ab-toolbar select { flex: none; width: auto; min-width: 0; max-width: 150px; padding-left: 14px; padding-right: 30px; }
.ab-head .ab-toolbar .search { flex: 1 1 180px; }
.ab-head .ab-toolbar .search { flex: 0 1 220px; min-width: 150px; }
.ab-head .ab-toolbar { flex: 1 1 auto; }
@media (min-width: 1640px) { .ab-head { flex-wrap: nowrap; } .ab-head .ab-toolbar { flex-wrap: nowrap; min-width: 0; } }
.ab-head .ab-toolbar select { max-width: none; min-width: 140px; }
.ab-head .chips { flex-wrap: nowrap; flex: none; }
.ab-head .chip, .ab-head .dd { white-space: nowrap; flex: none; }
.ab-head .ab-toolbar .search { min-width: 140px; }
@media (max-width: 1279px) and (min-width: 761px) {
  .ab-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title actions" "tool tool"; gap: 10px 12px; }
  .ab-title { grid-area: title; } .ab-actions { grid-area: actions; } .ab-head .ab-toolbar { grid-area: tool; flex-wrap: wrap; }
}
@media (max-width: 1639px) and (min-width: 1181px) { .inbox { height: calc(100vh - 196px); } }
/* lege sterren nauwelijks zichtbaar */
.stars2 .st { color: color-mix(in srgb, var(--line) 55%, transparent); }
.stars2 .st.half { background: linear-gradient(90deg, #00b67a 50%, color-mix(in srgb, var(--line) 55%, transparent) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Bronnen: verbindingen */
.conn-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.conn-col .sec-label { display: flex; align-items: center; gap: 6px; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: 0.7812rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.cchip img { width: 16px; height: 16px; border-radius: 4px; }
.cchip .cs { font-weight: 400; color: var(--muted); font-size: 0.7188rem; }
.cchip.in { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.cchip.acct { border-style: dashed; }
.cchip.trk.ok { background: var(--accent-soft); border-color: var(--accent-line); }
.cchip.trk.old, .cchip.trk.wait { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.conn { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.conn.in { background: var(--ok); color: #fff; } .conn.out { background: var(--panel-2); color: var(--muted); }
@media (max-width: 900px) { .conn-card { grid-template-columns: 1fr; } }
.react-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn.ghost-strong { background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.btn.ghost-strong:hover { background: var(--hover); }
.it-right { align-items: flex-end; }
.it-src { justify-content: flex-end; align-self: flex-end; margin-top: auto; }
.it-src img { width: 14px; height: 14px; }
.it-src img.also { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }

/* nieuws met afbeelding */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-2); color: var(--ink); align-items: start; }
.news-item:hover { background: var(--hover); }
.news-img { width: 112px; height: 74px; border-radius: 10px; background: var(--panel-2) center/cover; display: grid; place-items: center; }
.news-img img { width: 28px; height: 28px; border-radius: 6px; opacity: .8; }
.news-site { display: flex; justify-content: space-between; gap: 8px; font-size: 0.7188rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.news-site span { color: var(--faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.news-title { font-size: 0.8438rem; font-weight: 600; line-height: 1.3; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* home: eerste rij panelen blijft binnen het scherm */
.bento .mini-list { max-height: max(220px, calc(100vh - 380px)); overflow-y: auto; scrollbar-width: thin; }
.bento .panel .rows { max-height: max(220px, calc(100vh - 380px)); overflow-y: auto; scrollbar-width: thin; }
/* Reageren direct onder titel en prijs, altijd boven de vouw */
.react-cta.top { margin: 2px 0 14px; padding: 12px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line-2); }
.react-cta.top .react-btns .btn.big { height: 44px; font-size: 0.9375rem; }
.react-cta.top .react-sub { margin-top: 8px; }

/* home v3: rustig, twee rijen van drie gelijke panelen */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.home-head h1 { margin: 0 0 4px; }
.home-sum { margin: 0; color: var(--muted); font-size: 0.9062rem; } .home-sum strong { color: var(--ink); }
.sys-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7812rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.sys-pill.ok { color: var(--ok); } .sys-pill.warn { color: var(--warn); background: var(--warn-soft); }
.home3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.home3.row1 .panel3 { height: max(380px, calc(100vh - 250px)); }
.home3.row2 .panel3 { min-height: 300px; }
.panel3 { display: flex; flex-direction: column; padding: 0; overflow: hidden; margin: 0; }
.ph { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); }
.ph-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ph-t { min-width: 0; flex: 1; } .ph-t h3 { margin: 0; font-size: 0.9688rem; } .ph-t p { margin: 1px 0 0; font-size: 0.7812rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-link { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; } .ph-link:hover { color: var(--ink); }
.p-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.p-body.kans, .home3.row2 .p-body { padding: 12px 18px 16px; }
.p-foot { display: block; padding: 10px 18px; border-top: 1px solid var(--line-2); font-size: 0.8125rem; color: var(--muted); } .p-foot:hover { color: var(--ink); background: var(--hover); }
.panel3 .mini:first-child, .panel3 .news-item:first-child, .panel3 .rows > .r:first-child { border-top: 0; }
.panel3 .mini-list, .panel3 .rows { max-height: none; }
.kans-top { display: flex; align-items: center; gap: 16px; } .kans-top > div { flex: 1; }
.kans .ring2 { width: 104px; height: 104px; margin: 0; } .kans .ring2 text { font-size: 1.125rem; }
.kv b small { color: var(--faint); font-weight: 500; font-size: 0.6875rem; }
.home3 .bars { height: 120px; }
.home3 table.compact { width: 100%; }
@media (max-width: 1100px) { .home3 { grid-template-columns: 1fr 1fr; } .home3.row1 .panel3 { height: 420px; } }
@media (max-width: 760px) { .home3 { grid-template-columns: 1fr; } .home3.row1 .panel3 { height: auto; max-height: 520px; } }
.ext-banner { display: flex; align-items: center; gap: 8px; padding: 9px 36px; background: var(--warn-soft); color: var(--warn); font-size: 0.8125rem; border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.ext-banner strong { color: var(--ink); } .ext-banner code { background: var(--panel); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

/* ===== visuele aanwijzing: de belangrijkste actie zacht laten "ademen" ===== */
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cta-pulse { animation: ctaPulse 2.4s ease-out 3; }
.cta-pulse:hover { animation: none; }
.pill-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: rgba(255,255,255,.25); font-size: 0.6875rem; font-weight: 700; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .cta-pulse { animation: none; } }

/* ===== Bronnen als tabel ===== */
.src-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.src-bar .search { position: relative; margin-left: auto; width: 240px; } .src-bar .search input { padding-left: 34px; height: 36px; border-radius: 999px; } .src-bar .search .ic { position: absolute; left: 12px; top: 10px; color: var(--muted); }
.src-bar select { width: auto; height: 36px; border-radius: 999px; }
.src-table-wrap { overflow-x: auto; }
.src-tbl { width: 100%; border-collapse: collapse; font-size: 0.8438rem; }
.src-tbl thead th { position: sticky; top: 0; background: var(--panel); text-align: left; font-size: 0.7188rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); z-index: 1; }
.src-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.src-tbl th.c, .src-tbl td.c { text-align: center; width: 92px; }
.src-tbl tr.is-tracked td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.src-tbl tr.is-tracked { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.src-tbl tbody tr:hover { background: var(--hover); }
.src-name { display: flex; align-items: center; gap: 10px; min-width: 220px; white-space: normal !important; }
.src-name .favicon { width: 22px; height: 22px; border-radius: 6px; }
.src-name strong { display: block; font-weight: 600; } .src-name span { display: block; font-size: 0.75rem; color: var(--muted); }
.src-st { color: var(--ink-2); font-size: 0.8125rem; min-width: 150px; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.st-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); } .st-dot.bad { background: var(--bad); } .st-dot.wait { background: var(--warn); }
.st-bad { color: var(--bad); font-weight: 600; cursor: help; }
.acc.in { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: 0.8125rem; }
.rate-mini { color: #00b67a; font-weight: 600; font-size: 0.8125rem; }
.src-act { text-align: right; width: 80px; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; vertical-align: middle; }
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.icon-btn.open .ic { transform: rotate(90deg); } .icon-btn.spin .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.src-more td { background: var(--panel-2); white-space: normal; }
.src-more-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; padding: 6px 4px 10px; font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 1000px) { .src-more-in { grid-template-columns: 1fr 1fr; } }
/* koppelen-stappen */
.cw-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cw-dot { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; position: relative; }
.cw-dot img { width: 18px; height: 18px; border-radius: 4px; }
.cw-dot.cur { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cw-dot.ok::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 0.625rem; display: grid; place-items: center; }
.cw-card { text-align: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.cw-logo { width: 48px; height: 48px; border-radius: 12px; } .cw-card h3 { margin: 10px 0 4px; }
/* hidden-attribuut wint altijd van display-regels (tabbladen verbergen hun panelen) */
[hidden] { display: none !important; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ok); font-weight: 600; }
.save-state.busy { color: var(--muted); } .save-state.err { color: var(--bad); }

/* Mails & brieven */
.mail-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; height: calc(100vh - 190px); min-height: 520px; }
.mail-side { overflow-y: auto; padding-bottom: 8px; }
.mail-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 16px; border-left: 3px solid transparent; cursor: pointer; font: inherit; color: var(--ink); }
.mail-item strong { display: block; font-size: 0.8438rem; font-weight: 600; } .mail-item span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
.mail-item:hover { background: var(--hover); } .mail-item.on { background: var(--accent-soft); border-left-color: var(--accent); }
.mail-edit { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.mail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mail-body { flex: 1; min-height: 240px; width: 100%; resize: none; font: inherit; font-size: 0.9062rem; line-height: 1.6; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); }
.mail-body:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.mail-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; } .mail-actions .save-state { margin-right: auto; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .mail-grid { grid-template-columns: 1fr; height: auto; } .mail-body { min-height: 360px; } }

/* boven / onder de vouw */
.above-fold { min-height: calc(100vh - 57px - 28px - 24px); display: flex; flex-direction: column; }
.below-fold { padding-top: 28px; }
.fold-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.fold-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* DĀK */
.dak-bar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 12px; }
.dak-cell .sec-label { margin-bottom: 4px; }
.dak-stat { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid var(--line-2); }
.dak-stat b { font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; } .dak-stat b small { font-size: 0.8125rem; color: var(--faint); font-weight: 500; }
.dak-stat span { font-size: 0.75rem; color: var(--muted); }
.dak-table { flex: 1; display: flex; flex-direction: column; min-height: 300px; margin: 0; }
.table-scroll { flex: 1; overflow: auto; min-height: 0; }
.dak-table table thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.dak-table tr.reacted td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.dak-fold { height: calc(100vh - 57px - 28px - 24px); }
/* Reageren: één compacte rij onder de foto's, drie kolommen */
.react-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; margin: 14px 0 6px; }
.react-row .btn.big { height: 46px; font-size: 0.9375rem; justify-content: center; width: 100%; }
.react-meta { display: flex; flex-direction: column; gap: 3px; font-size: 0.7812rem; color: var(--ink-2); min-width: 0; }
.react-meta > span, .react-meta > a { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.react-meta .link-btn { align-self: flex-start; font-size: 0.7812rem; }
.react-row .react-done { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }
@media (max-width: 900px) { .react-row { grid-template-columns: 1fr 1fr; } .react-meta { grid-column: span 2; } }

/* ⚡ Auto-reageren: opvallende schakelaar in de bovenbalk */
.auto-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 0.8438rem; font-weight: 650; cursor: pointer; transition: all .2s; }
.auto-pill:hover { border-color: var(--accent-line); }
.auto-pill .ap-ic { font-size: 0.9375rem; filter: grayscale(1); opacity: .7; transition: all .2s; }
.auto-pill .ap-sw { width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.auto-pill .ap-sw span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.auto-pill.on { background: linear-gradient(135deg, #1f7a5a, #2fa97c); color: #fff; border-color: transparent; box-shadow: 0 4px 16px color-mix(in srgb, #2fa97c 45%, transparent); animation: autoGlow 3s ease-in-out infinite; }
.auto-pill.on .ap-ic { filter: none; opacity: 1; }
.auto-pill.on .ap-sw { background: rgba(255,255,255,.35); } .auto-pill.on .ap-sw span { transform: translateX(14px); }
@keyframes autoGlow { 0%, 100% { box-shadow: 0 4px 14px color-mix(in srgb, #2fa97c 35%, transparent); } 50% { box-shadow: 0 4px 22px color-mix(in srgb, #2fa97c 60%, transparent); } }
@media (prefers-reduced-motion: reduce) { .auto-pill.on { animation: none; } }
.mode { gap: 4px; }
/* Aanbod-filters: schakelaars naast elkaar */
.fit-seg button .n, .hh-inline .seg button .n { font-size: 0.7188rem; color: var(--faint); margin-left: 3px; }
.fit-seg button.on .n { color: var(--muted); }
.hh-inline .seg { flex-wrap: nowrap; }
.ab-head .ab-toolbar { align-items: center; }
.react-steps { margin: 4px 0 12px; padding-left: 20px; font-size: 0.8438rem; color: var(--ink-2); } .react-steps li { margin: 3px 0; }
/* gewone gebruikers: beheer-onderdelen weg */
body.is-user #nav-stats { display: none !important; }

/* DĀK-kaarten (je reacties, met foto) */
.dak-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dak-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.dak-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.dak-card.mine { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-soft); }
.dc-img { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2) center/cover; }
.dc-tag { position: absolute; top: 10px; left: 10px; } .dc-tag.r { left: auto; right: 10px; }
.dc-close { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.dc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dc-body h4 { margin: 0; font-size: 0.9375rem; } .dc-sub { font-size: 0.7812rem; color: var(--muted); }
.dc-pos { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; } .dc-pos b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; } .dc-pos b small { font-size: 0.8125rem; color: var(--muted); font-weight: 500; } .dc-pos span { font-size: 0.7812rem; color: var(--muted); }
.dc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; font-size: 0.7812rem; }
.dak-card.plan { background: var(--panel-2); cursor: default; } .dak-card.plan:hover { transform: none; }
.dak-tip { margin-left: auto; font-size: 0.7812rem; color: var(--muted); max-width: 360px; display: flex; gap: 6px; align-items: flex-start; }
.tthumb { width: 56px; height: 40px; border-radius: 7px; background: var(--panel-2) center/cover; }
.city-pick { position: relative; }
.city-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.city-btn:hover { border-color: var(--accent-line); }
.city-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }

/* ===== Duidelijke vormentaal: elk soort bediening een eigen vorm ===== */
/* Acties: rechthoekig, stevig */
.btn { border-radius: 10px; }
.btn.primary { box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent); font-weight: 650; }
.btn.primary:hover { box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
/* Filters: rechthoekige schakelaar, gekozen vak donker gevuld */
.seg { border-radius: 10px; padding: 3px; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button { border-radius: 7px; }
.fit-seg button.on { background: var(--ink); color: var(--panel); box-shadow: none; }
.fit-seg button.on .n { color: color-mix(in srgb, var(--panel) 70%, transparent); }
/* Met wie je huurt: groen, met persoonsicoontjes */
.hh-inline .seg, .home-head .seg { background: var(--panel); }
.hh-inline .seg button.on, .home-head .seg button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); font-weight: 650; }
/* Keuzelijsten: rechthoekig met pijltje */
select, .chip[data-dd-toggle], .city-btn { border-radius: 10px !important; }
.chip { border-radius: 10px; }
/* Zoeken */
.search input { border-radius: 10px !important; }
/* Labels/tags: klein en hoekig */
.badge { border-radius: 6px; }
/* Aan/uit blijft rond (de enige ronde vorm) */
.switch span, .auto-pill { border-radius: 999px; }
/* kleine groepslabels in de werkbalk */
.tb-lbl { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-right: -2px; }
/* Aanbod-detail: één actiebalk (reageren + overige acties), daaronder de kerncijfers */
.action-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); }
.action-bar .react-btns { display: grid; grid-template-columns: minmax(170px, 1fr) auto; gap: 8px; flex: 1 1 340px; }
.action-bar .btn.big { height: 46px; font-size: 0.9375rem; justify-content: center; }
.action-bar .ab-more { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.action-bar .ab-more select { height: 36px; max-width: 150px; }
.action-bar .react-done.big { flex: 1 1 340px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 650; }
.react-hint { font-size: 0.7812rem; color: var(--muted); margin: 2px 4px 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.facts.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.facts.strip > div { padding: 9px 12px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts.strip .k { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); } .facts.strip .v { font-weight: 650; font-size: 0.875rem; margin-top: 2px; }
.pv .gallery-main { aspect-ratio: 16 / 10; }
.keyfacts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 2px; font-size: 0.8125rem; color: var(--muted); }
.keyfacts b { color: var(--ink); font-weight: 650; }

/* Mijn reacties */
.rx-funnel { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rx-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.rx-step .rx-n { font-size: 1.625rem; font-weight: 700; line-height: 1; } .rx-step .rx-t { font-size: 0.7812rem; color: var(--muted); }
.rx-step.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .rx-step.empty .rx-n { color: var(--faint); }
.rx-step .rx-arrow { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 1.125rem; z-index: 1; }
.rx-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 14px; }
.rx-todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); cursor: pointer; }
.rx-todo-item > div { flex: 1; min-width: 0; } .rx-todo-item strong { display: block; font-size: 0.8438rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rx-todo-item span { font-size: 0.75rem; color: var(--muted); }
.rx-list { display: flex; flex-direction: column; gap: 8px; }
.rx-card { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rx-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.rx-card.gone { opacity: .6; }
.rx-img { width: 132px; height: 88px; border-radius: 10px; background: var(--panel-2) center/cover; display: grid; place-items: center; color: var(--faint); }
.rx-title { font-weight: 650; font-size: 0.9375rem; } .rx-sub { font-size: 0.8125rem; color: var(--ink-2); margin-top: 2px; } .rx-meta { font-size: 0.7812rem; color: var(--muted); margin-top: 6px; }
.rx-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .rx-act select { height: 34px; }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.rx-card.compact { grid-template-columns: 84px minmax(0, 1fr); } .rx-card.compact .rx-img { width: 84px; height: 60px; }
@media (max-width: 760px) { .rx-card { grid-template-columns: 90px 1fr; } .rx-img { width: 90px; height: 64px; } .rx-act { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: center; } }

/* "Nieuw" verspringt niet: stip op de foto, tekst blijft op zijn plek. */
.it-thumb { position: relative; overflow: visible; }
.inbox-item.unread .it-thumb::after { content: ""; position: absolute; top: -3px; left: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
/* Zoekbalk bovenin */
.top-search { position: relative; display: flex; align-items: center; flex: 0 1 340px; min-width: 160px; margin-left: 6px; }
.top-search .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.top-search input { height: 36px; padding-left: 36px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); width: 100%; font-size: 0.8438rem; }
.top-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
@media (max-width: 760px) { .top-search { order: 9; flex: 1 1 100%; margin: 4px 0 0; } }
/* Live-chip bovenin met vaste breedte; Aanbod-rij verspringt niet bij Passend/Bijna */
.appbar .speed-chip.live { margin-left: 4px; min-width: 196px; }
#live-txt { font-variant-numeric: tabular-nums; }
.ab-counts { min-width: 92px; }
.fit-seg .n { display: inline-block; min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.speed-chip.live::before { display: none; }
.speed-chip.live:not(.fast) .live-dot { background: var(--faint); }
.speed-chip.live:not(.fast) .live-dot::after { animation: none; }

/* Aanbod-kop: tellers klein onder de titel, vaste breedte zodat de rij niet verspringt */
.ab-title { flex-direction: column; align-items: flex-start; gap: 0; min-width: 150px; }
.ab-title h1 { line-height: 1.1; }
.ab-counts { font-size: 0.75rem; min-width: 0; margin-top: 2px; }
/* Prijsfilter boven de lijst */
.price-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.price-bar .pb-in { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 0.7812rem; color: var(--muted); }
.price-bar .pb-in input { width: 64px; border: 0; background: transparent; padding: 0; height: 28px; font-size: 0.8125rem; box-shadow: none; -moz-appearance: textfield; }
.price-bar .pb-in input::-webkit-outer-spin-button, .price-bar .pb-in input::-webkit-inner-spin-button { -webkit-appearance: none; }
.price-bar .pb-presets { display: inline-flex; gap: 4px; margin-left: 4px; flex-wrap: wrap; }
.pb-chip { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 0.75rem; cursor: pointer; color: var(--ink-2); }
.pb-chip:hover { border-color: var(--ink-2); }
.pb-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb-chip.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.danger-ghost { color: var(--bad); }
.btn.danger-ghost:hover { border-color: var(--bad); }
.btn.danger:not(.ghost) { background: var(--bad); border-color: var(--bad); color: #fff; }

/* Leesbaarheid: grotere basis (instelbaar in Instellingen → Weergave), ruimere regelafstand, duidelijke focus. */
html { font-size: 16px; }
html[data-size="normaal"] { font-size: 16px; }
html[data-size="groot"] { font-size: 17.5px; }
html[data-size="extra"] { font-size: 19px; }
html, body { line-height: 1.55; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.ab-head .ab-toolbar select { max-width: none; min-width: 9.5rem; }
body:not(.is-admin) #nav [data-view="beheer"], body:not(.is-admin) #nav-stats { display: none; }

/* ===== Ronde 17-10: strakker en compacter ===== */
/* Menubalk: vast formaat zoals eerst (schaalt niet mee), iets donkerder met een groene zweem */
:root, :root[data-theme="light"] { --rail: #dfe3dc; --rail-hover: #d3d9d0; --rail-active: #f4f5f1; }
:root[data-theme="dark"] { --rail: #161816; --rail-hover: #202320; --rail-active: #262a26; }
.rail { background: var(--rail); border-right-color: color-mix(in srgb, var(--line) 80%, #9aa79a); }
.rail-item { font-size: 11.5px; color: #555a53; }
:root[data-theme="dark"] .rail-item { color: var(--muted); }
.rail-item:hover { background: var(--rail-hover); }
.rail-item.active { background: var(--rail-active); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rail-brand { font-size: 20px; }

/* Aanbod-kop: label boven elk groepje, lucht tussen de groepen */
.ab-head { align-items: flex-end; gap: 12px 28px; margin: -8px 0 14px; }
.ab-title { align-self: flex-end; }
.ab-head .ab-toolbar { gap: 10px 26px; align-items: flex-end; flex-wrap: wrap; flex: 1 1 600px; }
.tb-grp { display: flex; flex-direction: column; gap: 5px; flex: none; }
.tb-grp > .tb-lbl { margin: 0 0 0 2px; line-height: 1; }
.ab-actions { align-self: flex-end; }
.price-in { display: flex; align-items: center; gap: 6px; }
.price-in .pb-in { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 0.75rem; color: var(--muted); }
.price-in .pb-in:focus-within { border-color: var(--accent); }
.price-in .pb-in input { width: 3.6rem; border: 0; background: transparent; padding: 0; height: 30px; font-size: 0.8125rem; box-shadow: none; -moz-appearance: textfield; }
.price-in .pb-in input:focus { outline: none; box-shadow: none; }
.price-in .pb-in input::-webkit-outer-spin-button, .price-in .pb-in input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ab-head .ab-toolbar select.pb-preset { min-width: 0; height: 34px; border-radius: 999px; padding-left: 12px; }

/* Woningkaart: lager, prijs boven, tijd + bron samen op één regel */
.inbox-item { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; padding: 9px 14px; align-items: center; }
.it-thumb { width: 84px; height: 60px; border-radius: 9px; }
.it-sub { margin: 1px 0 4px; }
.it-right { gap: 3px; justify-content: center; }
.it-meta { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.it-meta .it-src { margin-top: 0; }
.it-time { font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.it-time.age-fresh { color: var(--ok); }
.it-time.age-day { color: color-mix(in srgb, var(--ok) 60%, var(--muted)); }
.it-time.age-mid { color: var(--muted); font-weight: 500; }
.it-time.age-old { color: var(--faint); font-weight: 500; }

/* Actiebalk: alles op één rij; Reageren compacter maar hoger */
.action-bar { flex-wrap: nowrap; gap: 8px; padding: 10px; margin: 6px 0 0; }
.action-bar .react-btns { display: flex; flex: none; gap: 8px; }
.action-bar .btn.big { height: 52px; padding: 0 22px; font-size: 0.95rem; }
.action-bar .react-btns .btn.primary.big { min-width: 9.5rem; }
.action-bar .react-done.big, .action-bar .btn.paywall { flex: none; height: 52px; }
.action-bar .ab-more { flex-wrap: nowrap; margin-left: auto; gap: 4px; }
.action-bar .ab-more .btn { height: 40px; }
.action-bar .ab-more .btn.icon { width: 40px; padding: 0; justify-content: center; }
.action-bar .ab-more select { height: 40px; max-width: 9rem; }
@media (max-width: 1250px) { .action-bar { flex-wrap: wrap; } .action-bar .ab-more { margin-left: 0; } }

/* Blokken in de detailweergave: meer lucht */
.pv { gap: 18px; }
.pv-side { gap: 12px; }
.react-hint { margin: -8px 4px 0; }
.facts.strip { margin-bottom: 0; }
.pv > .callout { margin: 0; }
details.toggle + details.toggle { margin-top: -6px; }

/* ===== Ronde 17-10b: kleine lopende tekst, grote bediening, pakkende koppen, meer lucht ===== */
/* Bediening groot en goed te raken (vaste px, schaalt niet mee met tekst) */
.btn { height: 40px; font-size: 14px; padding: 0 16px; }
.btn.sm { height: 34px; font-size: 13px; }
.btn.xs { height: 28px; font-size: 12px; }
.btn.icon { width: 40px; } .btn.sm.icon { width: 34px; }
input, select, textarea { height: 42px; font-size: 14px; }
textarea { height: auto; }
.seg button { font-size: 13.5px; padding: 8px 16px; }
.chip { font-size: 13.5px; padding: 8px 14px; }
.ab-head .ab-toolbar select, .ab-head .chip, .price-in .pb-in, .ab-head .ab-toolbar select.pb-preset { height: 38px; }
.ab-head .seg button { padding: 7px 15px; }
/* Koppen: groter, zwaarder, strakker */
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
h2 { font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.ab-title h1 { font-size: 32px; }
.page-head { margin-bottom: 30px; }
.page-head p { font-size: 13.5px; margin-top: 6px; }
.card-title { margin-bottom: 16px; }
/* Belangrijke tekst groot: prijzen en titels */
.pv-title h2 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.pv-price { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.inbox-item .it-title { font-size: 14.5px; }
.it-price { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tile .v, .stat .v { letter-spacing: -.02em; }
/* Lopende/bijzaak-tekst iets kleiner */
.it-sub { font-size: 12.5px; }
.tb-lbl { font-size: 10.5px; letter-spacing: .07em; }
/* Meer lucht */
main { padding: 34px 44px 64px; }
.grid { gap: 20px; }
.card { padding: 24px; }
.ab-head { margin: -6px 0 22px; gap: 14px 36px; }
.ab-head .ab-toolbar { gap: 12px 30px; }
.pv { padding: 28px 32px 40px; gap: 22px; }
.pv-top { gap: 20px; }
.pv-side { gap: 14px; }
.verdict { padding: 14px 16px; }
@media (max-width: 900px) { main { padding: 22px 16px 48px; } h1, .ab-title h1 { font-size: 26px; } }
/* Kop op één rij houden; zijkolom compacter zodat Reageren boven de vouw blijft */
.ab-head { flex-wrap: nowrap; gap: 24px; }
.ab-title { min-width: 0; }
.ab-head .ab-toolbar { flex: 1 1 auto; gap: 10px 22px; min-width: 0; }
.ab-head .seg button { padding: 7px 13px; }
.ab-head .ab-toolbar select { min-width: 124px; }
.price-in .pb-in input { width: 3.1rem; }
.ab-head .ab-toolbar select.pb-preset { min-width: 0; width: 84px; padding-right: 22px; }

.pv { padding-top: 24px; }
.minimap { height: 124px; }
.pv-side .verdict { padding: 12px 14px; }
.pv-side .verdict ul { margin-top: 4px; }
.ab-head .ab-toolbar { gap: 10px 20px; }
.ab-head .seg button { padding: 7px 11px; }
.ab-head .ab-toolbar select[data-filter="sort"] { min-width: 0; width: 132px; }
.price-in .pb-in input { width: 3.4rem; }
.price-in .btn.icon.sm { width: 30px; height: 30px; }
.ab-head { gap: 20px; }
.ab-head .ab-toolbar { gap: 10px 16px; }
.action-bar .ab-more { gap: 6px; }

/* Aanbod: alleen de lijst en het detailpaneel scrollen, niet de hele pagina */
@media (min-width: 761px) {
.page:has(main > .inbox) { height: 100vh; overflow: hidden; }
main:has(> .inbox) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 24px; }
main:has(> .inbox) > * { flex: none; }
main:has(> .inbox) > .inbox { flex: 1 1 auto; height: auto; min-height: 0; }
}
/* Meer ruimte voor straatnamen in de lijst */
.inbox { grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); }
.inbox-item { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 11px; }
.it-thumb { width: 76px; height: 56px; }
.it-src { max-width: 88px; }

/* Reacties: kaarten in kolommen in plaats van brede rijen */
.rx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
.rx-list > .empty { grid-column: 1 / -1; }
.rx-card { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "img main" "img act"; align-items: start; gap: 6px 14px; padding: 12px; }
.rx-card .rx-img { grid-area: img; width: 120px; height: 100%; min-height: 96px; }
.rx-card .rx-main { grid-area: main; min-width: 0; }
.rx-card .rx-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-card .rx-act { grid-area: act; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.rx-card .rx-act select { width: auto; flex: 1 1 auto; max-width: 180px; height: 34px; }
.rx-card.compact { grid-template-areas: "img main"; }
.rx-card.compact .rx-img { height: 60px; min-height: 0; }
.rx-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rx-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; }
.rx-step { min-width: 0; }
@media (max-width: 760px) { .rx-funnel { grid-template-columns: repeat(2, 1fr); } .rx-list { grid-template-columns: 1fr; } }
.rx-card .rx-act .row { flex-wrap: nowrap; gap: 2px; }
.rx-card .rx-img { min-height: 88px; }
.rx-card { grid-template-columns: 104px minmax(0, 1fr); }
.rx-card .rx-img { width: 104px; }
.rx-card .rx-act select { min-width: 0; max-width: none; flex: 1 1 0; }
.rx-card .rx-act .row { flex: none; }

/* Profiel op één pagina */
.prof-sec-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 30px 0 12px 2px; }
.prof-one > .prof-sec-label:first-child { margin-top: 0; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.prof-grid.two { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.prof-grid .card h3 { margin-bottom: 4px; }
.prof-grid textarea { min-height: 150px; }
@media (max-width: 760px) { .prof-grid.two { grid-template-columns: 1fr; } }
/* Budget & strategie */
.budget-row { display: grid; grid-template-columns: minmax(240px, 1.1fr) 1fr 1fr; gap: 16px; align-items: stretch; }
.budget-hero { border-radius: var(--r); padding: 22px 24px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.budget-hero .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.budget-hero .v { font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.budget-hero .v span { font-size: 22px; color: var(--ink-2); font-weight: 650; }
.budget-hero .faint { font-size: 12px; }
.budget-row .card h3 { margin-bottom: 8px; }
.budget-row table td { padding: 5px 0; font-size: 13px; } .budget-row table td:last-child { text-align: right; }
@media (max-width: 1000px) { .budget-row { grid-template-columns: 1fr; } }

/* Bronnen-dropdown: groot, breed, twee kolommen, zoekveld; blijft open tijdens selecteren */
.src-menu { width: min(560px, 80vw); max-height: none; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.src-menu[hidden] { display: none; }
.src-menu-head { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line-2); }
.src-menu-head .src-q { flex: 1; height: 36px; border-radius: 9px; }
.src-menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 8px; max-height: min(64vh, 560px); overflow-y: auto; }
.src-menu-list .dd-item { font-size: 13px; padding: 8px 9px; }
.src-menu-list .dd-item[hidden] { display: none; }
.src-menu-list .dd-item:has(input:checked) { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.src-menu-list .dd-item span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .src-menu-list { grid-template-columns: 1fr; } }
.src-menu { left: auto; right: 0; }
.it-src-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-src { max-width: 104px; }
.budget-row .card { padding: 18px 20px; }

.src-menu-sep { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 12px 9px 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.src-menu-list .muted-item { color: var(--muted); cursor: default; }
.src-menu-list .muted-item:hover { background: none; }
.src-menu-list .muted-item img { opacity: .7; }
.dot-off { width: 13px; height: 13px; border-radius: 4px; border: 1.5px dashed var(--line); flex: none; }

/* Bronnen-dropdown: twee kolommen zonder horizontaal scrollen */
.src-menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: hidden; }
.src-menu-list .dd-item { min-width: 0; }
.src-menu-list .dd-item > span:first-of-type { min-width: 0; }
.src-menu-list .dd-item .faint { flex: none; }
/* Onbetrouwbare bron */
.warn-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; flex: none; cursor: help; vertical-align: 1px; }
/* Melden */
.report-opts { display: grid; gap: 8px; }
.report-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.report-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.report-opt input { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.report-opt strong { display: block; font-size: 14px; } .report-opt span { font-size: 12.5px; color: var(--muted); }
.btn.on-warn { color: var(--warn); }
.callout.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--ink); }
.src-menu-list .dd-item > span:first-of-type { flex: 1 1 auto; }

/* Rapporten */
.rap-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.rap-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.rap-nav button { text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); cursor: pointer; }
.rap-nav button:hover { background: var(--hover); }
.rap-nav button.on { background: var(--panel); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
.rap-tbl, .heat { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rap-tbl th, .heat th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
.rap-tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.heat td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; min-width: 26px; }
.heat td:first-child { text-align: left; white-space: nowrap; padding-right: 10px; }
@media (max-width: 900px) { .rap-layout { grid-template-columns: 1fr; } .rap-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* Sorteerbare tabellen */
table.sortable thead th:not([data-nosort]) { cursor: pointer; user-select: none; }
table.sortable thead th:not([data-nosort]):hover { color: var(--ink); }
table.sortable thead th.sort-asc::after { content: " ▲"; font-size: 9px; color: var(--accent); }
table.sortable thead th.sort-desc::after { content: " ▼"; font-size: 9px; color: var(--accent); }
/* Inloggen nodig */
.login-need { border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.ln-head { display: flex; gap: 10px; align-items: flex-start; color: var(--warn); }
.ln-head strong { display: block; color: var(--ink); font-size: 14.5px; } .ln-head span { font-size: 12.5px; color: var(--muted); }
.ln-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ln-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--ink); text-decoration: none; transition: border-color .12s, transform .05s; }
.ln-chip:hover { border-color: var(--warn); }
.ln-chip img { width: 16px; height: 16px; border-radius: 4px; }
.ln-chip span { color: var(--muted); font-size: 12px; }
.ln-chip em { font-style: normal; font-weight: 650; color: var(--warn); margin-left: 4px; }

/* DĀK-woningen: licht blauwe tint */
.inbox-item.src-dak { background: color-mix(in srgb, #4f8fe8 7%, transparent); }
.inbox-item.src-dak::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: color-mix(in srgb, #4f8fe8 55%, transparent); }
.inbox-item.src-dak:hover { background: color-mix(in srgb, #4f8fe8 12%, transparent); }
.inbox-item.src-dak.sel { background: color-mix(in srgb, #4f8fe8 15%, var(--panel-2)); }
.inbox-item.src-dak.unread { background: linear-gradient(90deg, color-mix(in srgb, #4f8fe8 14%, transparent), color-mix(in srgb, #4f8fe8 6%, transparent) 70%); }
/* Account nodig om te reageren */
.acct-need { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: var(--info-soft); color: var(--ink-2); font-size: 13px; margin-top: -8px; }
.acct-need span { flex: 1; min-width: 200px; }
.acct-need .ic { color: var(--info); }

/* Voortgang van een reactie, rechtsonder (zelfde opbouw als het paneel op de site van de verhuurder) */
#react-dock { position: fixed; right: 16px; bottom: 16px; z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.rd-card { pointer-events: auto; width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.2); overflow: hidden; animation: rdpop .18s ease-out; transition: opacity .25s, transform .25s; }
.rd-card.out { opacity: 0; transform: translateY(8px) scale(.98); }
@keyframes rdpop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.rd-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.rd-head b { font-size: 14.5px; flex: 1; }
.rd-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.rd-mode { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rd-x { border: 0; background: var(--panel-2); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 13px; color: var(--muted); }
.rd-body { padding: 0 16px 14px; }
.rd-title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rd-bar { height: 6px; border-radius: 99px; background: var(--panel-2); margin: 12px 0 10px; overflow: hidden; }
.rd-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.rd-card.needs .rd-bar span { background: var(--warn); } .rd-card.fail .rd-bar span { background: var(--bad); }
.rd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.rd-steps li { display: flex; align-items: center; gap: 8px; }
.rd-steps i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.rd-steps li.done { color: var(--ink-2); } .rd-steps li.done i { background: var(--accent); border-color: var(--accent); } .rd-steps li.done i::after { content: "✓"; color: #fff; font-weight: 800; }
.rd-steps li.now { color: var(--ink); font-weight: 600; } .rd-steps li.now i { border-color: var(--accent); border-top-color: transparent; animation: rdspin .8s linear infinite; }
.rd-steps li.stuck { color: var(--warn); font-weight: 600; } .rd-steps li.stuck i { border-color: var(--warn); } .rd-steps li.stuck i::after { content: "!"; color: var(--warn); font-weight: 800; }
@keyframes rdspin { to { transform: rotate(360deg); } }
.rd-msg { font-size: 12.5px; margin-top: 10px; color: var(--ink-2); }
.rd-msg:empty { display: none; }
.rd-card.ok .rd-msg { color: var(--ok); font-weight: 650; } .rd-card.needs .rd-msg { color: var(--warn); } .rd-card.fail .rd-msg { color: var(--bad); }
.rd-cta { padding: 10px 16px 14px; border-top: 1px solid var(--line-2); background: var(--panel-2); }
.rd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rd-b { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 4px; cursor: pointer; font: inherit; font-size: 11.5px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rd-b span { font-size: 15px; } .rd-b:hover { background: var(--hover); }
.rd-card.needs .rd-b[data-rd="tab"] { border-color: var(--warn); color: var(--warn); font-weight: 650; }

/* Woningruil-lint om de hoek van de kaart */
.inbox-item.has-ribbon { overflow: hidden; }
.inbox-item .ribbon { position: absolute; top: 12px; right: -34px; width: 120px; transform: rotate(45deg); background: #7c5cd6; color: #fff; text-align: center; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 0; box-shadow: 0 2px 6px rgba(0,0,0,.18); z-index: 2; pointer-events: none; }
.inbox-item.has-ribbon .it-right { padding-right: 18px; }
/* "Alles ▾": eigen selectie */
.fit-dd { position: relative; display: inline-flex; }
.fit-seg .fit-dd > button { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.fit-seg .fit-dd > button.on { background: var(--ink); color: var(--panel); }
.fit-seg .fit-dd > button.on .n { color: color-mix(in srgb, var(--panel) 70%, transparent); }
.fit-dd .chev { font-size: 10px; margin-left: 2px; opacity: .8; }
.fit-menu { width: 290px; padding: 6px; left: auto; right: 0; }
.fit-menu[hidden] { display: none; }
.fit-menu-h { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 6px 8px 4px; }
.fit-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.fit-opt:hover { background: var(--hover); }
.fit-opt input { width: 16px; height: 16px; flex: none; }
.fit-opt span { flex: 1; display: flex; flex-direction: column; } .fit-opt b { font-size: 13.5px; font-weight: 600; } .fit-opt small { font-size: 11.5px; color: var(--muted); }
.fit-opt em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fit-menu-f { border-top: 1px solid var(--line-2); margin-top: 4px; padding: 6px 4px 2px; display: flex; justify-content: flex-end; }
.inbox-item .ribbon { top: 9px; right: -38px; width: 118px; font-size: 8.5px; padding: 2px 0; }
.inbox-item.has-ribbon .it-right { padding-right: 24px; }
.ab-head .seg button, .fit-seg .fit-dd > button { padding: 7px 9px; }
.price-in .pb-in input { width: 2.9rem; }
.ab-head .ab-toolbar select[data-filter="sort"] { width: 120px; }

/* Samengevoegde plaatsingen: titel per site + reden */
.avail-item { border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.avail-item:last-child { border-bottom: 0; }
.avail-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 10px 2px 34px; font-size: 12.5px; color: var(--ink-2); }
.avail-title > span:first-child { font-style: italic; }
.avail-why { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--info-soft); color: var(--info); font-weight: 600; }
.avail-title .link-btn { font-size: 11.5px; color: var(--muted); }

/* Nieuwe woning die toch niet past: melding, dan wegschuiven */
.inbox-item.leaving { opacity: .75; }
.inbox-item .leave-note { position: absolute; right: 14px; bottom: 8px; font-size: 11px; font-weight: 700; color: var(--bad); background: var(--bad-soft); padding: 2px 8px; border-radius: 6px; z-index: 3; }
.inbox-item.gone-out { transition: opacity .4s, max-height .45s, padding .45s, transform .4s; opacity: 0; transform: translateX(-12px); max-height: 0 !important; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.inbox-item.leaving:not(.gone-out) { max-height: 140px; }

/* Advertentie: grote outline-knop naast Zelf invullen */
.action-bar .btn.adv-big { height: 52px; padding: 0 20px; font-size: 0.95rem; flex: none; }
/* Bewaren: hartje rechtsboven in het detailvenster */
.pv-top-right { display: flex; align-items: flex-start; gap: 14px; }
.fav-heart { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; flex: none; margin-top: 2px; }
.fav-heart svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; transition: fill .15s, stroke .15s; }
.fav-heart:hover { border-color: #e0567a; } .fav-heart:hover svg { stroke: #e0567a; }
.fav-heart:active { transform: scale(.9); }
.fav-heart.on { background: #fde8ee; border-color: #f3a3b8; } .fav-heart.on svg { fill: #e0567a; stroke: #e0567a; }

/* Gegevensblokken: losse tegels met ruimte ertussen */
.facts.strip { gap: 8px; border: 0; border-radius: 0; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.facts.strip > div { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); }
.facts.strip .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* DĀK: positie in de kaart, kans apart gelabeld */
.dak-pos { display: inline-flex; align-items: baseline; gap: 1px; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, #4f8fe8 14%, transparent); color: #2c62b8; font-variant-numeric: tabular-nums; }
.dak-pos small { font-weight: 600; font-size: 10.5px; opacity: .75; }
.dak-pos.good { background: var(--ok-soft); color: var(--ok); } .dak-pos.mid { background: var(--warn-soft); color: var(--warn); }
:root[data-theme="dark"] .dak-pos { color: #8db4f2; }
.chance-lbl { font-size: 10.5px; font-weight: 600; color: var(--faint); margin-left: 2px; text-transform: lowercase; }

/* Bronnen-knop met vaste breedte: het menu eronder verschuift niet als de tekst verandert */
#src-dd > .chip { width: 178px; justify-content: space-between; overflow: hidden; white-space: nowrap; }
.fit-seg .n, .fit-seg .fit-dd .n { display: inline-block; min-width: 4ch; text-align: center; }

/* Foto's / Plattegrond: zwevend linksboven op de foto, duwt niets omlaag */
.pv-top > div:first-child { position: relative; }
.ph-tabs.ph-float { position: absolute; top: 10px; left: 10px; z-index: 4; margin: 0; display: flex; gap: 4px; background: rgba(20,20,20,.45); backdrop-filter: blur(6px); padding: 3px; border-radius: 999px; }
.ph-tabs.ph-float .chip { height: 28px; padding: 0 11px; font-size: 12px; background: transparent; border: 0; color: #fff; }
.ph-tabs.ph-float .chip.on { background: #fff; color: #222; }
.ph-tabs.ph-float .chip .n { color: inherit; opacity: .7; }

/* Uitroepteken ook in de naamcel van de bronnentabel (algemene span-regel daar overschrijft anders) */
.src-name .warn-mark { display: inline-grid; color: #fff; font-size: 11px; font-weight: 800; width: 16px; height: 16px; margin-left: 4px; vertical-align: 1px; }
.off-why { font-size: 12px; color: var(--muted); line-height: 1.3; display: inline-block; max-width: 230px; }
.src-tbl td.src-st { white-space: normal !important; max-width: 230px; } .src-tbl td.src-st .off-why { display: block; overflow-wrap: anywhere; }

/* Premium-knop: subtiele, draaiende regenboogrand met zachte gloed */
@property --wj-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.auto-pill.premium-glow { position: relative; isolation: isolate; border-color: transparent; }
.auto-pill.premium-glow::before, .auto-pill.premium-glow::after { content: ""; position: absolute; border-radius: inherit; background: conic-gradient(from var(--wj-ang), #8b6cff, #45b8ff, #3fe0a8, #ffcf5c, #ff7eb6, #8b6cff); animation: wjSpin 7s linear infinite; pointer-events: none; }
.auto-pill.premium-glow::before { inset: -1.5px; padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; opacity: .9; }
.auto-pill.premium-glow::after { inset: -3px; filter: blur(9px); opacity: .22; z-index: -2; }
.auto-pill.premium-glow:hover::after { opacity: .38; }
.auto-pill.premium-glow.on::after { opacity: .3; }
@keyframes wjSpin { to { --wj-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .auto-pill.premium-glow::before, .auto-pill.premium-glow::after { animation: none; } }
.ap-pro { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg, #8b6cff, #45b8ff); color: #fff; }
.auto-pill.asked .ap-pro { background: var(--ok); }
/* Premium-venster */
.prem { max-width: 460px; }
.prem-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #8b6cff, #45b8ff 55%, #3fe0a8); margin-bottom: 10px; }
.prem h2 { font-size: 26px; margin-bottom: 6px; }
.prem-sub { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.prem-price { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 14px; }
.prem-price b { font-size: 32px; letter-spacing: -.03em; } .prem-price span { color: var(--muted); font-size: 13px; }
.prem-list { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.prem-need { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--info-soft); padding: 9px 12px; border-radius: 10px; margin: 0; }
.prem-go { background: linear-gradient(135deg, #7a5cf0, #3aa7f0); border: 0; }
.prem-go:hover { filter: brightness(1.06); }
.btn.primary.prem-go { background: linear-gradient(135deg, #7a5cf0, #3aa7f0); border: 0; box-shadow: 0 4px 16px rgba(90,110,240,.3); }

/* ===== Pixelkunst (huisstijl): harde pixels + zachte gloed ===== */
.px-stage { position: relative; flex: none; }
.px-stage canvas { position: absolute; left: 0; top: 0; }
.px-base { image-rendering: pixelated; image-rendering: crisp-edges; }
.px-glow { filter: blur(5px); mix-blend-mode: screen; pointer-events: none; }
/* Home: mascotte rechtsboven, zonder paneel – randen vloeien weg in de pagina */
.home-head.with-mascot { align-items: center; }
.home-mascot { margin: -18px -8px -10px auto; -webkit-mask-image: radial-gradient(ellipse 70% 72% at 55% 55%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 70% 72% at 55% 55%, #000 58%, transparent 100%); }
@media (max-width: 760px) { .home-mascot { display: none; } }
/* Premium-plaatje */
.prem-art { margin: -6px auto 14px; border-radius: 14px; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 62%, transparent 100%); }
.prem-feats { display: grid; gap: 10px; margin-bottom: 12px; }
.prem-feat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.prem-feat b { font-size: 14px; } .prem-feat span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.prem-need span { line-height: 1.45; }
.modal:has(.prem) { width: min(560px, 94vw); }
/* Wizard: welkomstscène */
.px-hero { margin: 0 0 18px; border-radius: 16px; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 62%, transparent 100%); }
.read-warn { font-size: 11.5px; color: var(--warn); font-weight: 600; margin-top: 3px; line-height: 1.3; }

/* Geen vignet-randen meer om de pixelscènes; laptop staat los op de pagina */
.home-mascot, .prem-art, .px-hero { -webkit-mask-image: none !important; mask-image: none !important; }
.home-mascot .px-glow { display: none; }
.home-mascot { margin: -14px 0 -8px auto; transition: transform .15s; }
.home-mascot:hover { transform: translateY(-2px); }
/* Hover op Auto-reageren: kleuren duidelijk zichtbaar als achtergrond */
.auto-pill.premium-glow:hover::before { -webkit-mask: none; mask: none; padding: 0; inset: 0; opacity: .38; }
.auto-pill.premium-glow:hover::after { opacity: .6; }
.auto-pill.premium-glow:hover { border-color: transparent; color: var(--ink); }

.keyfacts span { display: inline-flex; align-items: center; gap: 4px; }
.keyfacts .ic { width: 14px; height: 14px; color: var(--muted); }
.ab-head .ab-toolbar select[data-filter="sort"] { width: 142px; padding-right: 30px; }
/* DĀK-positie springt eruit in de kaart */
.dak-pos { background: #2c62b8; color: #fff; font-size: 12.5px; font-weight: 800; padding: 2px 8px; border-radius: 7px; gap: 3px; box-shadow: 0 1px 3px rgba(44,98,184,.35); letter-spacing: -.01em; }
.dak-pos i { font-style: normal; font-weight: 600; font-size: 10px; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.dak-pos small { font-weight: 600; font-size: 10.5px; opacity: .8; }
.dak-pos.good { background: var(--ok); color: #fff; box-shadow: 0 1px 3px rgba(31,122,90,.35); }
.dak-pos.mid { background: #d9822b; color: #fff; box-shadow: 0 1px 3px rgba(217,130,43,.35); }
:root[data-theme="dark"] .dak-pos { color: #fff; }

/* Melden: groot, naast Advertentie */
.action-bar .btn.flag-big { width: 52px; padding: 0; flex: none; color: var(--muted); }
.action-bar .btn.flag-big .ic { width: 20px; height: 20px; }
.action-bar .btn.flag-big:hover { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.action-bar .btn.flag-big.done { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
/* Auto-reageren-venster */
.modal:has(.am) { width: min(680px, 95vw); }
.am-hero { display: grid; place-items: center; padding: 6px 0 4px; }
.am-head { text-align: center; margin: 4px 0 16px; }
.am-head h2 { font-size: 26px; margin: 8px 0 6px; }
.am-head p { color: var(--muted); margin: 0 auto; max-width: 480px; font-size: 14px; }
.am-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.am-card b { font-size: 14.5px; } .am-card span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.am-art { margin-bottom: 4px; }
.am-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); counter-increment: am; }
.am-step .am-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.am-step .am-dot:empty::before { content: counter(am); }
.am-steps { counter-reset: am; }
.am-step.ok .am-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.am-step.todo .am-dot { background: var(--warn); border-color: var(--warn); color: #fff; }
.am-step b { display: block; font-size: 14px; } .am-step span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .am-cards { grid-template-columns: 1fr; } }
.am-art { display: flex; justify-content: center; padding: 8px 0; border-radius: 10px; background: var(--panel-2); }

/* Te doen: kaartjes met actie + kruisje */
.todo-panel .td-plan { padding: 0 18px 12px; }
.td-plan-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.td-plan-top b { color: var(--ink); }
.td-count { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.td-bar { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.td-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #5fd0a3); transition: width .5s ease; }
.td-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 14px 14px !important; overflow-y: auto; }
.td-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 36px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: transform .15s ease, box-shadow .15s ease, opacity .25s ease, max-height .25s ease, padding .25s ease, margin .25s ease; max-height: 260px; }
.td-item:hover { box-shadow: 0 4px 16px rgba(20, 40, 30, .08); transform: translateY(-1px); }
.td-item.td-click { cursor: pointer; }
.td-item.td-gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; border-width: 0; transform: translateX(16px); }
.td-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--panel-2); color: var(--muted); }
.td-item.deadline .td-ic { background: var(--bad-soft); color: var(--bad); }
.td-item.dak .td-ic { background: #e3edfb; color: #2c62b8; }
.td-item.account .td-ic { background: var(--accent-soft); color: var(--accent); }
.td-item.login .td-ic, .td-item.extensie .td-ic { background: var(--warn-soft); color: var(--warn); }
.td-item.profiel .td-ic { background: #efe9fb; color: #6b4fc4; }
.td-item.dak { border-left: 3px solid #2c62b8; } .td-item.deadline { border-left: 3px solid var(--bad); }
.td-body { min-width: 0; flex: 1; }
.td-title { font-weight: 650; font-size: 14px; line-height: 1.3; }
.td-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.td-acts { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.td-acts .btn.sm { height: 30px; }
.td-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--faint, var(--muted)); display: grid; place-items: center; cursor: pointer; opacity: .45; transition: opacity .15s, background .15s; }
.td-item:hover .td-x { opacity: 1; } .td-x:hover { background: var(--panel-2); color: var(--ink); }
@media (hover: none) { .td-x { opacity: .8; } }
.td-done { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; }
.td-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.td-empty { display: grid; place-items: center; gap: 4px; padding: 30px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.td-empty b { color: var(--ink); font-size: 15px; }
.td-empty-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
/* DĀK: auto-reageren bovenaan */
.dak-auto { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 18px 22px; margin: 0 0 14px; border: 1px solid #c9d6ee; background: linear-gradient(120deg, #eef3fb 0%, var(--panel) 60%); }
.dak-auto .da-art { border-radius: 12px; background: #fff; padding: 8px; box-shadow: inset 0 0 0 1px #dfe6f3; }
.dak-auto h3 { font-size: 19px; margin: 8px 0 6px; }
.dak-auto p { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 560px; }
.dak-auto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.dak-auto li { display: flex; gap: 6px; align-items: center; } .dak-auto li svg { color: #2c62b8; flex: none; }
.dak-auto .da-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.dak-auto.on { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: linear-gradient(120deg, var(--accent-soft) 0%, var(--panel) 60%); }
[data-theme="dark"] .dak-auto { background: linear-gradient(120deg, #1d2633 0%, var(--panel) 60%); border-color: #2f3d52; }
[data-theme="dark"] .dak-auto .da-art { background: #f4f6fa; }
@media (max-width: 860px) { .dak-auto { grid-template-columns: 1fr; } .dak-auto .da-cta { align-items: flex-start; text-align: left; } }

/* Home: teller bovenin het midden + wisselend paneel rechtsboven */
.home-head.with-mascot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.home-head .hh-mid { align-self: start; display: flex; justify-content: center; }
.home-head .home-pitch { justify-self: end; }
.pf-count { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 40, 30, .06); text-decoration: none; color: var(--ink); font-size: 13.5px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.pf-count:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 40, 30, .1); }
.pf-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.pf-main b, .pf-src b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 2px; }
.pf-sep { width: 1px; height: 20px; background: var(--line); }
.pf-src { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.pf-live { width: 8px; height: 8px; border-radius: 50%; background: #2fbf7c; box-shadow: 0 0 0 0 rgba(47, 191, 124, .6); animation: pfPulse 1.8s infinite; }
@keyframes pfPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 124, .55); } 70% { box-shadow: 0 0 0 8px rgba(47, 191, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 124, 0); } }
.pf-new { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }

@property --hp-a { syntax: '<color>'; inherits: true; initial-value: #2f8f6b; }
@property --hp-b { syntax: '<color>'; inherits: true; initial-value: #5fc49b; }
.home-pitch { position: relative; width: 380px; height: 128px; border-radius: 18px; padding: 18px 22px 14px; color: #fff; cursor: pointer; overflow: hidden; user-select: none;
  background: linear-gradient(125deg, var(--hp-a), var(--hp-b)); transition: --hp-a 1.2s ease, --hp-b 1.2s ease; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--hp-a) 70%, transparent); display: flex; flex-direction: column; }
.home-pitch::before { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.home-pitch::after { content: ''; position: absolute; width: 120px; height: 120px; right: 60px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hp-slide { position: relative; z-index: 1; flex: 1; }
.hp-slide h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.hp-slide p { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .9); max-width: 330px; }
.hp-slide.in h3 { animation: hpIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.hp-slide.in p { animation: hpIn .6s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hpIn { from { opacity: 0; transform: translateY(10px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.hp-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.hp-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hp-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: hpBar 5.2s linear both; }
.home-pitch.paused .hp-bar i { animation-play-state: paused; }
@keyframes hpBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hp-slide.in h3, .hp-slide.in p, .hp-bar i { animation: none; } }
@media (max-width: 1280px) { .home-head.with-mascot { grid-template-columns: minmax(0, 1fr) auto; } .home-head .hh-mid { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; } }
@media (max-width: 760px) { .home-head.with-mascot { grid-template-columns: 1fr; } .home-head .home-pitch { width: 100%; justify-self: stretch; } .pf-count { white-space: normal; flex-wrap: wrap; } }
.home-pitch { width: 400px; height: 146px; padding: 18px 22px 14px; }
.hp-slide h3 { font-size: 19px; }
.hp-slide p { font-size: 12.5px; }

/* Hart: rode rand; delen ernaast */
.fav-heart { border-color: #f0a3b4; }
.fav-heart svg { stroke: #e0567a; }
.pv-top-right { display: flex; align-items: flex-start; gap: 8px; }
.share-wrap { position: relative; }
.pv-share { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); margin-top: 2px; transition: border-color .12s, color .12s, transform .12s; }
.pv-share:hover { border-color: var(--accent); color: var(--accent); } .pv-share:active { transform: scale(.92); }
.pv-share .ic { width: 18px; height: 18px; }
.share-menu { position: absolute; right: 0; top: 48px; z-index: 50; min-width: 230px; padding: 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(20, 30, 25, .16); display: flex; flex-direction: column; }
.share-menu button, .share-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; background: none; border-radius: 9px; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; }
.share-menu button:hover, .share-menu a:hover { background: var(--panel-2); }
.sm-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 2px; }
.sm-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.sm-hint { font-size: 12px; color: var(--muted); padding: 8px 10px; line-height: 1.4; }
.badge.fav { background: #fde8ee; color: #c23a5e; }
.badge.shared { background: #e8eefb; color: #2c62b8; display: inline-flex; align-items: center; gap: 3px; }
.badge.shared .ic { width: 11px; height: 11px; }
.inbox-divider.pin { color: #c23a5e; display: flex; align-items: center; gap: 6px; }
.inbox-divider.pin .ic { width: 13px; height: 13px; }

/* Bron met probleem: klikbaar met uitleg */
.st-why { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.st-why:hover { text-decoration: underline; }
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 13px; }
.prob-list { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.prob-list.todo li::marker { color: var(--accent); }
.prob-raw { margin-top: 12px; font-size: 12px; color: var(--muted); }
.prob-raw code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); white-space: pre-wrap; word-break: break-all; }
@media (max-width: 640px) { .prob-grid { grid-template-columns: 1fr; } }
.inbox-divider.pin { justify-content: flex-start; }

/* Bronnenlijst: sorteren + betrouwbaarheid */
.src-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.src-tbl th.sh { cursor: pointer; user-select: none; white-space: nowrap; }
.src-tbl th.sh:hover { color: var(--ink); }
.src-tbl th.sh.on { color: var(--accent); }
.src-tbl th.r, .src-tbl td.r { text-align: right; }
.trust-pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.trust-pill.ok { background: var(--accent-soft); color: var(--accent); }
.trust-pill.mid { background: var(--warn-soft); color: var(--warn); }
.trust-pill.bad { background: var(--bad-soft); color: var(--bad); }
.rate-mini small { font-weight: 500; color: var(--muted); margin-left: 2px; }
.flags { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.45; }
.flags.bad li::marker { color: var(--bad); } .flags.good li::marker { color: var(--accent); }
.src-tbl td.src-st { min-width: 170px; }
.src-tbl .st-why, .src-tbl td.src-st > .faint { white-space: nowrap; }
.keyfacts .kf-prov { display: inline-flex; align-items: center; gap: 6px; }
.keyfacts .kf-prov img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.keyfacts .kf-prov .faint { font-weight: 500; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Veiligheidsmelding na aanmelden */
.modal:has(.safety) { width: min(480px, 94vw); padding: 0; overflow: auto; }
.safety { position: relative; padding: 0 24px 22px; display: flex; flex-direction: column; }
.sf-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); color: var(--muted); font-size: 15px; cursor: pointer; }
.sf-x:hover { background: rgba(0,0,0,.12); color: var(--ink); }
.sf-head { display: flex; gap: 14px; align-items: center; margin: 0 -24px 14px; padding: 24px 52px 18px 24px; background: var(--accent-soft); }
.sf-wave { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 26px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sf-head h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; color: var(--ink); }
.sf-head p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.sf-sub { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-bottom: 12px; }
.sf-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-tips li { display: flex; gap: 10px; align-items: flex-start; }
.sf-tips b { display: block; font-size: 14.5px; line-height: 1.3; }
.sf-tips span:not(.sf-check) { font-size: 13px; color: var(--muted); }
.sf-check { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.sf-community { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.sf-ok { margin-top: 16px; height: 46px; width: 100%; font-size: 15px; }

/* Alleen één bron bekijken */
.peek-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; margin-bottom: 10px; border-radius: 12px; background: #e8eefb; border: 1px solid #c9d6ee; font-size: 13.5px; color: var(--ink); }
.peek-bar img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.peek-bar span { flex: 1; }
[data-theme="dark"] .peek-bar { background: #1d2633; border-color: #2f3d52; }
.seen-link { font-weight: 700; color: var(--accent); text-decoration: none; padding: 3px 8px; border-radius: 8px; }
.seen-link:hover { background: var(--accent-soft); }
.peek-bar { margin: 0 0 12px; flex: none; }

/* Kaartweergave in het aanbod */
.view-seg button { display: inline-flex; align-items: center; gap: 5px; }
.inbox.map-mode .inbox-preview { overflow: hidden; padding: 0; }
.mv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; min-height: 0; }
.mv-map { position: relative; min-height: 0; height: 100%; background: #eef0f2; }
.mv-side { border-left: 1px solid var(--line); overflow-y: auto; background: var(--panel); min-height: 0; }
.mv-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.mv-card { display: flex; flex-direction: column; }
.mv-img { position: relative; height: 200px; background: var(--panel-2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); }
.mv-img-top { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.mv-img-top .fav-heart, .mv-img-top .pv-share { background: rgba(255, 255, 255, .92); }
.mv-img-top .share-menu { top: 46px; }
.mv-body { padding: 14px 16px 18px; }
.mv-price { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.mv-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.mv-body h3 { margin: 4px 0 2px; font-size: 16px; line-height: 1.3; }
.mv-addr { font-size: 12.5px; color: var(--muted); }
.mv-facts { flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 10px; }
.mv-fit { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-reasons { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.mv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mv-acts .btn.primary { flex: 1 1 100%; height: 44px; justify-content: center; }
.inbox-item.map-hover { background: var(--accent-soft) !important; box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 1180px) { .mv { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; } .mv-side { border-left: 0; border-top: 1px solid var(--line); max-height: 45%; } }
/* Home-kop: zelfde kolommen als de panelen eronder; het gekleurde paneel is even breed als de nieuwskolom */
.home-head.with-mascot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-head .home-pitch { justify-self: stretch; width: auto; height: 156px; }
.hp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hp-head h3 { margin: 0; }
.hp-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hp-ic .ic { width: 22px; height: 22px; stroke: #fff; color: #fff; }
.hp-slide.in .hp-ic { animation: hpIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.hp-slide p { max-width: none; }
@media (max-width: 1280px) { .home-head.with-mascot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .home-head.with-mascot { grid-template-columns: 1fr; } }

/* Wizard: jouw reactietekst + gratis vs. automatisch */
.wz-letter { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.wz-lt { margin: 10px 10px 0; }
.wz-letter-text { margin: 0; padding: 14px 16px 16px; max-height: 300px; overflow: auto; white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); transition: opacity .2s; }
.wz-letter-text.loading { opacity: .5; }
.wz-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wz-plan { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.wz-plan ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; color: var(--ink-2); }
.wz-plan-h { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.wz-plan.free .wz-plan-h { color: var(--accent); }
.wz-plan.pro { border-color: #d6c8f3; background: linear-gradient(135deg, #f6f1ff, var(--panel) 70%); }
.wz-plan.pro .wz-plan-h { color: #6b4fc4; }
.wz-plan-need { margin: 8px 0; font-size: 12px; color: var(--muted); }
[data-theme="dark"] .wz-plan.pro { background: linear-gradient(135deg, #251f35, var(--panel) 70%); border-color: #3a3150; }
@media (max-width: 640px) { .wz-plans { grid-template-columns: 1fr; } }
.no-price { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.badge.tgt { background: #eef1f6; color: #4a5568; } .badge.tgt.studenten { background: #e8eefb; color: #2c62b8; } .badge.tgt.senioren { background: #eaf5ec; color: #2f7a46; }
.choice-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .choice-grid.four { grid-template-columns: 1fr 1fr; } }

.ext-steps ol { list-style: none; counter-reset: es; margin: 0; padding: 0; display: grid; gap: 4px; }
.ext-steps li { counter-increment: es; display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line-2); }
.ext-steps li:last-child { border-bottom: 0; }
.ext-steps li::before { content: counter(es); grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.ext-steps li b { font-size: 14.5px; } .ext-steps li span { grid-column: 2; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ext-steps li .btn { grid-column: 3; grid-row: 1 / 3; }

/* Pixel-plaatjes passen altijd in de breedte (telefoon) */
.px-stage { max-width: 100%; }
.px-hero.px-stage, .px-hero .px-stage { height: auto !important; }
.px-stage canvas { max-width: 100%; }
.px-hero canvas { width: 100% !important; height: 100% !important; }
/* Hoge vensters: altijd van boven af te lezen, ook op een laag scherm */
.modal-back { overflow-y: auto; }
@media (max-height: 760px) { .modal-back { place-items: start center; } }
/* Home: grote knop naar het aanbod naast de begroeting */
.hh-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.hh-title h1 { margin: 0; }
.hh-cta { height: 46px; padding: 0 20px; font-size: 15px; font-weight: 700; border-radius: 12px; gap: 8px; display: inline-flex; align-items: center; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.hh-cta:hover { transform: translateY(-1px); }
.home-head .hh-mid { flex-direction: column; align-items: center; gap: 12px; }
.hh-cta { height: 52px; padding: 0 26px; font-size: 16px; }

/* DĀK koppelen (gebruikers) */
.dak-link { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding: 24px 26px; border: 1px solid #c9d6ee; background: linear-gradient(120deg, #eef3fb 0%, var(--panel) 55%); }
.dak-link h2 { margin: 0 0 6px; font-size: 22px; }
.dak-link p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 620px; line-height: 1.5; }
.dak-link .dl-art { border-radius: 14px; background: #fff; padding: 10px; box-shadow: inset 0 0 0 1px #dfe6f3; }
[data-theme="dark"] .dak-link { background: linear-gradient(120deg, #1d2633 0%, var(--panel) 55%); border-color: #2f3d52; }
@media (max-width: 760px) { .dak-link { grid-template-columns: 1fr; } }
.news-ago { font-weight: 600; } .news-ago.fresh { color: var(--accent); }

/* Laden: balkje bovenin + skelet */
body.loading::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; width: 40%; z-index: 9999; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: wjLoad 1s ease-in-out infinite; }
@keyframes wjLoad { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2) 0%, color-mix(in srgb, var(--panel-2) 60%, #fff) 50%, var(--panel-2) 100%); background-size: 200% 100%; animation: wjShimmer 1.2s ease-in-out infinite; }
@keyframes wjShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-page { display: grid; gap: 18px; }
.sk-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sk-card { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); min-height: 150px; }
.sk-inbox { display: grid; grid-template-columns: minmax(360px, 440px) 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; min-height: 60vh; }
.sk-list { border-right: 1px solid var(--line); }
.sk-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.sk-preview { padding: 20px; display: grid; gap: 10px; align-content: start; }
@media (max-width: 900px) { .sk-grid { grid-template-columns: 1fr; } .sk-inbox { grid-template-columns: 1fr; } .sk-preview { display: none; } }
@media (prefers-reduced-motion: reduce) { .sk, body.loading::before { animation: none; } }
/* "Aangepast": alles in één keer zichtbaar, geen scrollen */
.fit-menu { width: 340px; max-height: none; overflow: visible; left: 0; right: auto; }
.fit-opt { align-items: flex-start; }
.fit-opt span { min-width: 0; flex: 1; } .fit-opt small { display: block; white-space: normal; line-height: 1.35; }
.fit-opt em { flex: none; }
@media (max-width: 1180px) { .mv { grid-template-columns: 1fr; grid-template-rows: 1fr; } .mv-side { display: none; } }

/* Gebied tekenen */
.mv-tools { position: absolute; top: 10px; left: 10px; z-index: 5; display: flex; gap: 6px; }
.mv-tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mv-tool:hover { border-color: var(--accent); }
.mv-tool.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.mv-hint { position: absolute; top: 52px; left: 10px; z-index: 5; padding: 6px 10px; border-radius: 8px; background: rgba(27,27,27,.85); color: #fff; font-size: 12px; }
.area-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
/* Custom gebied in het zoekveld */
.top-search .ts-area { position: absolute; left: 30px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 6px 0 8px; border-radius: 8px; border: 0; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.top-search .ts-area .ic { position: static; color: var(--accent); }
.top-search .ts-area b { font-size: 11px; opacity: .7; margin-left: 2px; }
.top-search .ts-area:hover b { opacity: 1; }
.top-search.has-area input { padding-left: 168px; }

.rd-broken { display: block; width: 100%; margin-top: 8px; padding: 7px; border: 1px dashed var(--line); border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.rd-broken:hover { color: var(--bad); border-color: var(--bad); }
.rd-broken:disabled { opacity: .8; cursor: default; }
.inbox-divider.fit-h { color: var(--accent); }
.inbox-divider.fit-h.grens { color: var(--warn); }
/* Vlag (melden) in het detailpaneel: rode rand */
.action-bar .btn.flag-big { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); border-width: 1.5px; }
.action-bar .btn.flag-big .ic { stroke: var(--bad); }
/* Vlag: alleen het icoontje rood, knop zelf neutraal */
.action-bar .btn.flag-big, .action-bar .btn.flag-big:hover { color: var(--ink-2); border-color: var(--line); border-width: 1px; background: var(--panel); }
.action-bar .btn.flag-big .ic, .action-bar .btn.flag-big:hover .ic { stroke: var(--bad); color: var(--bad); }

.archive-bar { background: #f3ece4; border-color: #e3d3bf; }
[data-theme="dark"] .archive-bar { background: #2b2620; border-color: #45392b; }
.fit-archive { display: flex; align-items: center; gap: 8px; width: 100%; margin: 2px 0 6px; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.fit-archive small { font-weight: 500; color: var(--muted); }
.fit-archive:hover { background: var(--hover); }

/* Beheer → Bezoekers */
.an-chart{display:flex;align-items:flex-end;gap:3px;height:150px;padding:8px 0 0}
.an-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;min-width:3px}
.an-v{display:block;width:100%;background:color-mix(in srgb,var(--accent,#1f7a5a) 55%,transparent);border-radius:4px 4px 0 0;min-height:2px}
.an-col:hover .an-v{background:var(--accent,#1f7a5a)}
.an-s{position:absolute;top:-2px;font-size:10.5px;font-weight:700;color:#fff;background:var(--ok,#2fb67c);border-radius:999px;padding:0 5px;line-height:16px}
.an-axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted,#888);margin-top:6px}
.an-list{display:flex;flex-direction:column;gap:5px;margin-top:6px}
.an-row{position:relative;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;border-radius:8px;font-size:13.5px;overflow:hidden}
.an-row .an-bar{position:absolute;inset:0 auto 0 0;background:color-mix(in srgb,var(--accent,#1f7a5a) 12%,transparent);border-radius:8px;z-index:0}
.an-row .an-k,.an-row b{position:relative;z-index:1}.an-row .an-k{white-space:pre;overflow:hidden;text-overflow:ellipsis}
.an-live{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--ok,#2fb67c);margin-right:8px;vertical-align:middle;animation:anp 2s infinite}
@keyframes anp{0%{box-shadow:0 0 0 0 rgba(47,182,124,.6)}70%{box-shadow:0 0 0 8px rgba(47,182,124,0)}100%{box-shadow:0 0 0 0 rgba(47,182,124,0)}}

/* Klikbare verhuurder/bron + kaartje */
.prov-link { cursor: pointer; border-radius: 6px; transition: background .12s, color .12s; }
.prov-link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.kf-prov { display: inline-flex; align-items: center; gap: 5px; }
.kf-prov .prov-link { display: inline-flex; align-items: center; gap: 5px; padding: 1px 3px; margin: -1px -3px; }
.m-prov { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.m-prov .prov-link { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px; margin: -1px -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.m-prov img { width: 13px; height: 13px; border-radius: 3px; }
.pv { min-width: min(480px, 86vw); }
.pv-head { display: flex; gap: 12px; align-items: center; }
.pv-head img, .pv-ph { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); padding: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.pv-head h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.pv-warn { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdf1e3; color: #9a5a12; font-size: 14px; font-weight: 600; }
.pv-warn.bad { background: #fbe6df; color: #b23a25; }
.pv-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.pv-facts > div { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.pv-facts b { font-size: 20px; line-height: 1; }
.pv-facts small { font-size: 12px; color: var(--muted); }
.pv-facts .trust-pill { align-self: flex-start; }
.pv-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pv-revs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pv-rev { display: inline-flex; gap: 5px; align-items: baseline; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.pv-rev b { font-size: 15px; color: var(--ink); } .pv-rev span { color: var(--muted); }
.pv-flags { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-report { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pv-report > .faint { font-size: 13px; }
.pv-flag-btn { border-color: #e9b4a6; color: #b23a25; }
.pv-flag-btn:hover { background: #fbe6df; }
.pv-flag-btn .ic, .pv-flag-btn svg { color: #c4452f; }
.pv-done { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); width: 100%; }
.pv-done .btn { margin-left: auto; }
.pv-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.pv-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-reasons label { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13.5px; }
.pv-reasons label:has(input:checked) { border-color: #c4452f; background: #fbe6df; color: #b23a25; font-weight: 600; }
.pv-reasons input { display: none; }
.pv-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--panel); color: var(--ink); resize: vertical; }

/* Aanbod-kop compact: alles op één rij, labels alleen voor schermlezers (uitleg zit in de tooltip) */
.ab-head { gap: 8px 16px; align-items: center; }
.ab-title, .ab-actions { align-self: center; }
.ab-head .ab-toolbar { gap: 8px; align-items: center; }
@media (min-width: 761px) { .ab-head .ab-toolbar { flex: 1 1 0; min-width: 0; } }
@media (max-width: 760px) { .ab-head { flex-wrap: wrap; } .ab-head .ab-toolbar { flex: 1 1 100%; order: 3; } }
.tb-grp { flex-direction: row; align-items: center; }
.tb-grp > .tb-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ab-head .ab-toolbar select { min-width: 0; padding-left: 12px; padding-right: 26px; }
.price-in { gap: 4px; }
.price-in .pb-in input { width: 2.7rem; }
.view-seg button { padding: 0 10px; }
#src-dd > .chip { width: auto; gap: 6px; }
.ab-head .ab-toolbar select[data-filter="sort"] { width: auto; }
.ab-head .fit-seg button, .hh-inline .seg button { padding: 0 10px; }
.ab-head .ab-toolbar select, .ab-head .ab-toolbar .seg button, .ab-head .ab-toolbar .chip { font-size: 0.8125rem; }
.ab-head .ab-toolbar select { padding-left: 11px; padding-right: 24px; }

/* Gasten: alleen het aanbod, geen inkomensoordeel; inlogknoppen rechtsboven */
body.is-guest .fit-seg > [data-fitchip], body.is-guest #afford-chip, body.is-guest #nav-settings, body.is-guest .rail-sep { display: none !important; }
body.is-guest .badge.groen { display: none; }
.guest-cta, .guest-login { white-space: nowrap; }

/* Telefoon: de lijst niet breder dan het scherm (regel hierboven met minmax(380px) won van de mobiele 1fr) */
@media (max-width: 900px) { .inbox { grid-template-columns: minmax(0, 1fr); } }

.lazy-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; color: var(--muted); font-size: 0.8125rem; }

/* Feedbackknop rechtsonder: groot, als een chatvenster */
.fb-root { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fb-btn { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; box-shadow: 0 10px 28px rgba(0,0,0,.22); cursor: pointer; transition: transform .15s; }
.fb-btn:hover { transform: translateY(-2px); }
.fb-ic { font-size: 1.5rem; line-height: 1; }
.fb-root.open .fb-btn { padding: 0 20px; }
.fb-win { width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); overflow: hidden; }
.fb-win[hidden] { display: none; }
.fb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--accent); color: #fff; }
.fb-head b { display: block; font-size: 1rem; }
.fb-head span { font-size: 0.78rem; opacity: .85; }
.fb-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.fb-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: .85; }
.fb-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.fb-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.45; white-space: pre-wrap; }
.fb-msg.bot { align-self: flex-start; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border-bottom-left-radius: 4px; }
.fb-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.fb-msg.err { color: var(--bad, #b42318); }
.fb-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.fb-form textarea { grid-column: 1; resize: none; min-height: 44px; border-radius: 12px; }
.fb-form .fb-mail { grid-column: 1; grid-row: 2; font-size: 0.82rem; }
.fb-form .fb-mail[hidden] { display: none; }
.fb-send { grid-column: 2; grid-row: 1; align-self: end; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 760px) { .fb-root { right: 12px; bottom: 12px; } .fb-btn { height: 52px; padding: 0 16px; } .fb-root:not(.open) .fb-lbl { display: none; } }
@media print { .fb-root { display: none; } }
.fb-btn { order: 2; }
.fb-btn { position: relative; }
.fb-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--panel); }
.fb-badge[hidden] { display: none; }
.fb-pop { order: 1; max-width: 260px; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.15); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.fb-pop[hidden] { display: none; }
.fb-time { align-self: center; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.fb-msg.done { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); font-weight: 600; }
.fb-adm-reply, .fb-adm-claude { margin-top: 6px; padding: 6px 10px; border-radius: 10px; font-size: 0.82rem; background: var(--panel-2); border: 1px solid var(--line-2); }
.fb-adm-claude { background: color-mix(in srgb, #7c5cff 8%, var(--panel)); }
.fb-adm-claude.done { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
/* Meldingen-knop naast Auto-reageren */
.notif-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.notif-pill:hover { border-color: var(--accent); }
.notif-pill.on { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
#mode-switch { display: flex; align-items: center; gap: 8px; }
.notif-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.notif-steps li > div { margin-top: 6px; }
.np-topic { padding: 2px 6px; border-radius: 6px; background: var(--panel-2); }
@media (max-width: 760px) { .notif-pill .np-t { display: none; } .notif-pill { padding: 0 11px; } }
/* Community-oordeel bij de aanbieder */
.kf-trust { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; margin-left: 8px; border-radius: 999px; font-size: 0.78rem; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.kf-trust.ok { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.kf-trust.warn { background: #fff4e5; border-color: #f5c27a; color: #8a4b00; }
.kf-trust.bad { background: #fde8e8; border-color: #f2a3a3; color: #9b1c1c; }
.ok-big .n { font-size: 0.85rem; margin-left: 2px; }
.ok-big.done { background: color-mix(in srgb, var(--accent) 15%, var(--panel)); border-color: var(--accent); }

/* ---------- Telefoon: nette bovenbalk, leesbare lijst, detail als volledig scherm ---------- */
@media (max-width: 760px) {
  .appbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .appbar #menu-btn { order: 1; }
  .appbar .appbar-right { order: 2; margin-left: auto; gap: 6px; flex-wrap: nowrap; }
  .appbar .city-pick { order: 3; }
  .appbar .top-search { order: 4; flex: 1 1 0; min-width: 0; width: auto; }
  .appbar .speed-chip, .appbar .afford-chip { display: none !important; }
  #mode-switch { gap: 6px; }
  .auto-pill .ap-t, .auto-pill .ap-sw { display: none; }
  .auto-pill { height: 38px; padding: 0 12px; min-width: 0; }
  .guest-login { display: none; }
  .guest-cta { height: 38px; white-space: nowrap; }
  .it-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .it-src { max-width: 84px; }
}
@media (max-width: 900px) {
  .inbox.show-preview .inbox-list { display: block; }
  .inbox.show-preview .inbox-preview { display: block; position: fixed; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); padding: 0 14px 110px; border-radius: 0; }
  body.pv-open { overflow: hidden; }
  .pv-mbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; height: 54px; margin: 0 -14px 12px; padding: 0 12px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .pv-mbar-t { flex: 1; min-width: 0; font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-top { grid-template-columns: minmax(0, 1fr) !important; }
  .pv-top > *, .pv .gallery, .pv .gallery-strip, .pv-side, .pv-side > * { min-width: 0; max-width: 100%; }
  .pv-title { flex-direction: column; gap: 10px; }
  .pv-title > div:first-child { width: 100%; min-width: 0; }
  .pv-title h2 { font-size: 1.35rem; line-height: 1.25; }
  .pv-top-right { width: 100%; justify-content: space-between; }
  .pv .keyfacts { flex-wrap: wrap; gap: 6px 12px; }
  .kf-prov { flex-wrap: wrap; }
  .action-bar { flex-wrap: wrap; }
  .action-bar .react-btns { width: 100%; }
  .action-bar .react-btns > * { flex: 1 1 0; min-width: 0; }
  .action-bar .ab-more { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .facts.strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fb-root { bottom: 14px; }
}
@media (max-width: 900px) {
  .action-bar { display: flex; flex-wrap: wrap; gap: 8px; }
  .action-bar .react-btns { display: flex; gap: 8px; width: 100%; }
  .action-bar .react-btns .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 0.95rem; white-space: nowrap; }
  .action-bar .adv-big { flex: 1 1 0; min-width: 0; }
  .action-bar .ok-big, .action-bar .flag-big { flex: 0 0 56px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .inbox-preview .pv { padding-left: 0; padding-right: 0; }
  .action-bar .react-btns .btn, .action-bar .adv-big { min-width: 0 !important; }
}
/* Telefoon: reageren en auto-reageren voorlopig alleen op desktop (het invullen werkt via de extensie);
   op mobiel is "Advertentie" de groene hoofdknop. */
@media (max-width: 900px) {
  .action-bar .react-btns, #mode-switch .auto-pill, #mode-switch [data-act="auto-react"], #mode-switch #dak-strat { display: none !important; }
  .action-bar .adv-big { order: -1; flex: 1 1 0; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
  .action-bar .adv-big:hover { filter: brightness(1.05); }
  .action-bar .adv-big .ic { stroke: #fff; }
}
/* Skelet nooit breder dan het scherm (vaste balkbreedtes zoals 420px op een telefoon) */
.sk { max-width: 100%; }
.sk-page, .sk-head, .sk-inbox, .sk-list, .sk-row { min-width: 0; max-width: 100%; }
.sk-row > * { min-width: 0; }
@media (max-width: 900px) { .sk-inbox { grid-template-columns: minmax(0, 1fr); } }
