@font-face {
  font-family: "TT Norms Pro"; src: url("fonts/ttnorms-pro-var.woff2") format("woff2-variations"), url("fonts/ttnorms-pro-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
/* Munro Ventures: Dark Sea (Pantone 19-5025 TCX), Slate #4A666B, Mist #F5F5F5. Alleen licht thema. */
:root {
  color-scheme: light;
  --dark-sea: #1C373C; --slate: #4A666B; --mist: #F5F5F5;
  --bg: var(--mist); --surface: #fff; --fg: var(--dark-sea); --muted: var(--slate); --line: #DCDFDF;
  --accent: var(--dark-sea); --accent-soft: #E6ECEC; --error: #A33A2A; --ok: #2F6B4F;
  --radius: 10px;
  --sans: "TT Norms Pro", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 0 0 6px; }
h3.sub { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.section h3.sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.error { color: var(--error); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mark img { display: block; height: 22px; width: auto; }
.logout { display: flex; gap: 12px; align-items: center; font-size: 13px; }
button { font: inherit; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 500; }
button.secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { display: inline; width: auto; margin: 0 8px 0 0; accent-color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.narrow main.auth { max-width: 420px; margin: 10vh auto; }
.auth h1 { font-size: 34px; }
.auth form { margin-top: 20px; } .auth button.primary { width: 100%; margin-top: 6px; }

/* Intake */
.intake { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 48px; max-width: 1080px; margin: 0 auto; padding: 40px 24px 120px; }
.nav { position: sticky; top: 24px; align-self: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
progress { width: 80px; height: 6px; vertical-align: middle; accent-color: var(--accent); }
#toc { list-style: none; padding: 0; margin: 18px 0; }
#toc li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
#toc a { color: var(--fg); text-decoration: none; } #toc a:hover { color: var(--accent); }
#toc .count { color: var(--muted); font-size: 12px; } #toc .done .count { color: var(--ok); }
.hero { margin-bottom: 40px; } .hero p { font-size: 17px; max-width: 60ch; }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; scroll-margin-top: 20px; }
.section > .intro { color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.field { margin-bottom: 20px; }
.field .help { color: var(--muted); font-size: 13px; margin: 6px 0 0; font-weight: 400; }
.field .req { color: var(--muted); font-weight: 400; }
.unknown { font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 6px; display: flex; align-items: center; }
details.steps { margin-top: 8px; font-size: 13px; font-weight: 400; }
details.steps summary { cursor: pointer; color: var(--accent); }
details.steps ol { padding-left: 18px; color: var(--muted); }
.secret-state { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 13px; font-weight: 400; }
.secret-state .ok { color: var(--ok); }
.repeat-item { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 12px; }
.repeat-item header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.files li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files { list-style: none; padding: 0; }
.drop { border: 1px dashed var(--line); border-radius: 8px; padding: 24px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.submit { display: flex; gap: 16px; align-items: center; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--dark-sea); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Admin */
main.wide { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }
.row-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 28px; }
.row-form label { margin: 0; }
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.copy { font-family: ui-monospace, monospace; font-size: 13px; }
table.clients { width: 100%; border-collapse: collapse; }
.clients th, .clients td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.clients th { font-weight: 500; font-size: 12px; color: var(--muted); }
form.inline { display: flex; gap: 8px; align-items: center; }
form.inline input { margin: 0; padding: 6px 10px; font-size: 13px; }

@media (max-width: 800px) {
  .intake { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .nav { position: static; } #toc { display: none; }
  h1 { font-size: 32px; }
  .grid-2, .grid-3, .row-form { grid-template-columns: 1fr; }
  .section { padding: 20px 16px; }
  table.clients, .clients tbody, .clients tr, .clients td { display: block; } .clients thead { display: none; }
}

/* Koppelingsstatus en kostprijstabel */
.conn { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 13px; }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line); }
.conn.ok .dot { background: var(--ok); } .conn.bad .dot { background: var(--error); } .conn.partial .dot { background: #B7791F; }
.conn.bad { color: var(--error); }
table.costs { width: 100%; border-collapse: collapse; font-size: 14px; }
.costs th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.costs td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.costs td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.costs input { margin: 0; padding: 6px 8px; width: 96px; text-align: right; }
.costs tr.empty input { border-color: #E2B4AA; background: #FDF6F4; }
.costs .margin { color: var(--muted); }
.costs-wrap { overflow-x: auto; }
.empty-state { background: var(--accent-soft); border-radius: 8px; padding: 18px; color: var(--slate); }

.qr { display: block; margin: 16px auto; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
code { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }

/* "?" guides */
.lbl { font-size: 13px; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 2px; }
.lbl-row { display: flex; align-items: center; gap: 4px; }
.lbl-row label.unknown { margin: 0; }
.qwrap { position: relative; display: inline-flex; margin-left: 6px; }
.qbtn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--slate);
  font: 500 12px/1 var(--sans); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .15s, color .15s; }
.qbtn:hover, .qwrap.open .qbtn { background: var(--dark-sea); color: #fff; border-color: var(--dark-sea); }
.qpop { display: none; position: absolute; top: 28px; left: -12px; z-index: 30; width: 360px; max-width: 80vw;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 18px 40px -18px rgba(18,38,42,.35); font-weight: 400; color: var(--fg); text-transform: none; letter-spacing: 0; }
.qwrap.open .qpop { display: block; }
@media (hover: hover) { .qwrap:hover .qpop { display: block; } }
.qpop .qtitle { font-weight: 500; font-size: 13px; margin: 0 0 8px; }
.qpop ol { margin: 0 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--slate); }
.qpop li { margin-bottom: 4px; }
.qpop .qlink { display: inline-block; font-size: 13px; font-weight: 500; color: var(--dark-sea); margin-bottom: 10px; }
.qpop .qstuck { font-size: 12px; color: var(--muted); margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .qpop { position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-width: none; max-height: 70vh; overflow: auto; }
  .qwrap:hover .qpop { display: none; } .qwrap.open .qpop { display: block; }
}
.qpop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }

.fwrap { display: block; }
.fwarn { color: var(--error); font-size: 12px; font-weight: 400; margin: 6px 0 0; }

.note-box { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--fg); margin: 0 0 18px; line-height: 1.5; }
details.fold { margin-top: 4px; } details.fold summary { cursor: pointer; font-size: 13px; color: var(--slate); margin-bottom: 10px; }
.qpop li { white-space: pre-line; }
.qcopy { display: block; margin: 0 0 12px; font: 500 12px var(--sans); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

.qpop li { overflow-wrap: anywhere; }
.note-box p { margin: 0 0 8px; } .note-box ol { margin: 0 0 12px; padding-left: 20px; } .note-box li { margin-bottom: 6px; overflow-wrap: anywhere; }
.note-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .note-actions .qcopy { margin: 0; }
.note-actions .qlink { font-size: 13px; font-weight: 500; color: var(--dark-sea); }
