:root {
  --navy: #141752; --mid: #4F517D; --grey: #8A8BA9; --ice: #D9FBFF; --aqua: #89EFFC; --blue: #155DE9;
  --paper: #ffffff; --bg: #F4F5F9; --line: #D5D6E3; --text: #141752;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.55; }
h1, h2, h3, .kicker, .box-title, .steps-title, th, .nav-group, .btn, .ex-title { font-weight: 700; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* kop */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.top .logo { height: 34px; width: auto; display: block; }
.top .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.top .brand span { font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tools button, .nav-tools button, #btn-menu { font: inherit; font-size: 14px; font-weight: 700; background: transparent; color: #fff; border: 1px solid var(--grey); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.tools button:hover, #btn-menu:hover { background: var(--mid); }
.top .lang { margin-left: 8px; flex: none; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--grey); border-radius: 6px; padding: 7px 10px; }
.top .lang:hover { background: var(--mid); }
body.gated .top .lang { margin-left: auto; }
.top .lang .l-short { display: none; }
#btn-menu { display: none; }
.notice { background: var(--ice); color: var(--navy); padding: 10px 16px; font-size: 15px; }

/* opbouw */
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; gap: 28px; padding: 24px 16px 48px; }
#nav { position: sticky; top: 74px; align-self: start; max-height: calc(100vh - 90px); overflow: auto; font-size: 15px; }
.nav-group { color: var(--mid); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 6px; }
.nav-group:first-child { margin-top: 0; }
#nav ul { list-style: none; margin: 0; padding: 0; }
.nav-tools { display: none; }
#nav a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--navy); text-decoration: none; }
#nav a:hover { background: #E6E8F2; }
#nav a.active { background: var(--navy); color: #fff; }

.page { background: var(--paper); border-radius: 10px; padding: 36px 40px; box-shadow: 0 1px 2px rgba(20, 23, 82, .06), 0 4px 18px rgba(20, 23, 82, .05); }
.kicker { color: var(--blue); font-size: 13px; letter-spacing: .12em; }
h2 { font-size: 32px; line-height: 1.2; margin: 4px 0 18px; }
h3 { font-size: 15px; letter-spacing: .04em; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.todo { color: #B00020; font-style: italic; }
.small { font-size: 13px; }

.box { background: var(--ice); border-left: 4px solid var(--aqua); border-radius: 6px; padding: 16px 18px; margin: 20px 0; }
.box-title { font-size: 14px; letter-spacing: .05em; margin-bottom: 6px; }
.box p:last-child { margin-bottom: 0; }

.steps { margin: 22px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.steps-title { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .08em; padding: 10px 14px; }
.step { display: grid; grid-template-columns: 36px 120px 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: baseline; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.step-name { font-weight: 700; }

.tablewrap { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .06em; }
tbody th { white-space: nowrap; }

.cta { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cta p { margin: 0; flex: 1 1 260px; }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; border: 0; border-radius: 6px; padding: 11px 16px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn:hover { background: var(--navy); }
.btn-disabled { background: var(--grey); cursor: not-allowed; }
.btn-disabled:hover { background: var(--grey); }

blockquote.quote { margin: 30px 0; padding: 28px; background: var(--navy); color: #fff; border-radius: 10px; font-size: 22px; line-height: 1.4; }
blockquote.quote p:last-child { margin: 0; color: var(--aqua); }

/* invullen */
.q { margin: 18px 0; }
.q-label, .f-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
textarea, input[type=text], input[type=email], input[type=date], input[type=time], select {
  width: 100%; font: inherit; font-weight: 300; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
textarea { resize: vertical; line-height: 1.6; background-image: linear-gradient(transparent calc(1.6em + 9px), var(--line) 0); background-size: 100% 1.6em; background-position: 0 1px; min-height: 3.5em; }
textarea:focus, input:focus, select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(21, 93, 233, .18); }
.f { margin: 14px 0; }

.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li.done .cl-title { text-decoration: line-through; text-decoration-color: var(--grey); }
.cl-title { font-weight: 700; }
.cl-sub { color: var(--mid); font-size: 15px; }
.cl-note { color: var(--mid); font-size: 14px; font-style: italic; margin-top: 2px; }
.chk { position: relative; display: inline-block; width: 26px; height: 26px; flex: none; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chk .box-ui { position: absolute; inset: 0; border: 2px solid var(--mid); border-radius: 5px; background: #fff; }
.chk input:checked + .box-ui { background: var(--blue); border-color: var(--blue); }
.chk input:checked + .box-ui::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.chk input:focus-visible + .box-ui { outline: 3px solid var(--blue); outline-offset: 2px; }

.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-cell { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 6px; }
.gl-m { font-weight: 700; font-size: 14px; color: var(--mid); }

/* wiel */
.wheel { max-width: 460px; margin: 10px auto; }
.wheel-svg { width: 100%; height: auto; display: block; }
.w-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.w-outer { fill: none; stroke: var(--navy); stroke-width: 2; }
.w-spoke { stroke: var(--navy); stroke-width: 1.5; }
.w-label { font-family: var(--font); font-weight: 700; font-size: 15px; fill: var(--navy); }
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.score { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.score select { width: auto; padding: 6px 8px; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; font-size: 14px; }
.lg { border-radius: 6px; padding: 8px 10px; display: grid; }
.lg-n { font-weight: 700; }
.lg0 { background: #E8E8F0; } .lg1 { background: var(--ice); } .lg2 { background: var(--aqua); } .lg3 { background: var(--blue); color: #fff; }

/* waarden */
.values { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.val { font: inherit; font-size: 15px; font-weight: 300; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.val.on { border: 2px solid var(--blue); background: var(--ice); font-weight: 700; padding: 7px 13px; }

/* week */
.week-top, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.habits { display: grid; gap: 6px; }
.hb-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(7, 34px); gap: 6px; align-items: center; }
.hb-head span { text-align: center; font-weight: 700; font-size: 14px; color: var(--mid); }
.hb { width: 30px; height: 30px; justify-self: center; }

/* uitleg */
details.uitleg { margin-top: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; background: #FAFBFD; }
details.uitleg summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style-position: inside; }
details.uitleg[open] { padding-bottom: 12px; }
.gids { color: var(--grey); font-weight: 300; font-size: 14px; }
.example { background: var(--ice); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.ex-title { font-size: 13px; letter-spacing: .08em; color: var(--blue); margin-bottom: 6px; }
.ex-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 4px 0; }
.ex-k { font-weight: 700; }

/* agenda */
.agenda { margin: 18px 0 8px; }
.ag-row { margin: 14px 0; max-width: 320px; }
.ag-row label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ag-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.ag-item legend { font-weight: 700; padding: 0 6px; }
.ag-desc { color: var(--mid); font-size: 15px; margin: 0 0 8px; }
.ag-ctrls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 15px; }
.ag-ctrls select, .ag-ctrls input[type=time] { width: auto; padding: 6px 8px; margin-left: 4px; }
.ag-msg { margin-top: 12px; color: var(--blue); font-weight: 700; }
.howto dt { font-weight: 700; margin-top: 12px; }
.howto dd { margin: 2px 0 0; }

/* aanmelden */
body.gated .tools, body.gated #btn-menu, body.gated #nav { display: none; }
body.gated .layout { grid-template-columns: 1fr; max-width: 680px; }
.gate .btn { margin-top: 6px; }
.vink { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; }
.vink input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.gate-privacy { color: var(--mid); margin-top: 18px; }
.gate-more { margin-top: 10px; font-size: 14px; color: var(--mid); }
.gate-more summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.gate-more h3 { font-size: 15px; margin: 14px 0 4px; }

/* bladeren, voet */
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.pn { text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 0; }
.foot { color: var(--mid); font-size: 13px; text-align: center; padding: 0 16px 32px; }
#toast { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 40; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.dlg { position: fixed; inset: 0; background: rgba(20, 23, 82, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.dlg[hidden] { display: none; }
.dlg-card { background: #fff; border-radius: 10px; padding: 22px; max-width: 420px; }
.dlg-card .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dlg-card .no { background: #fff; color: var(--navy); border: 1px solid var(--line); }
#print { display: none; }


/* volledige planner */
.cols { display: grid; gap: 0 18px; }
.cols2 { grid-template-columns: 1fr 1fr; }
.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.col { min-width: 0; }
.grp { border: 1px solid var(--line); border-radius: 8px; padding: 4px 14px; margin: 12px 0; }
.grp-t { font-weight: 700; font-size: 14px; letter-spacing: .05em; color: var(--blue); margin: 10px 0 0; }
.grp .q { margin: 10px 0; }
.sec { margin: 34px 0 6px; padding-top: 18px; border-top: 2px solid var(--navy); }
.sec-k { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.sec-t { font-size: 22px; letter-spacing: 0; margin: 4px 0 10px; }
.hint { color: var(--mid); font-size: 14px; margin: 4px 0 8px; }
.ifthen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 14px 0; }
.ifthen label { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; }
ol.lines { margin: 8px 0 14px; padding-left: 26px; display: grid; gap: 8px; }
ol.lines li::marker { font-weight: 700; color: var(--mid); }
.pairs { display: grid; gap: 8px; margin: 10px 0 16px; }
.pr-head, .pr-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.pr-head { font-weight: 700; font-size: 14px; color: var(--mid); }
.dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chk.dot { width: 38px; height: 38px; }
.chk.dot .box-ui { border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--mid); }
.chk.dot input:checked + .box-ui { color: #fff; }
.chk.dot input:checked + .box-ui::after { content: none; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 20px; }
.ch-l { font-weight: 700; font-size: 15px; margin-right: 4px; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
table.track { width: auto; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.track th, table.track td { padding: 4px 3px; border-bottom: 1px solid var(--line); text-align: center; }
table.track thead th { background: var(--navy); color: #fff; font-size: 12px; letter-spacing: 0; min-width: 30px; }
table.track .tr-n { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 150px; text-align: left; padding: 4px 6px; }
table.track thead .tr-n { background: var(--navy); }
table.track .tr-n input { padding: 6px 8px; font-size: 14px; }
.chk.tk { width: 26px; height: 26px; }
.chk.tk .box-ui { border-radius: 4px; border-width: 1.5px; }
.chk.tk input:checked + .box-ui::after { left: 7px; top: 3px; width: 6px; height: 11px; }
.cal { min-width: 640px; display: grid; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(88px, 1fr)); }
.cal-head span { background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 8px; }
.cal-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: grid; gap: 2px; }
.cal-row .cal-cell:last-child { border-right: 0; }
.cal-cell .cal-d { width: 46px; padding: 2px 6px; font-size: 13px; font-weight: 700; border-color: transparent; background: var(--bg); }
.cal-cell textarea { border: 0; padding: 2px 4px; font-size: 14px; min-height: 3.2em; background-image: none; resize: none; }
.rings { max-width: 380px; margin: 10px auto 4px; }
.rings-svg { width: 100%; height: auto; display: block; }
.rg-l { font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.rg-n { font-family: var(--font); font-size: 14px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.bd-f { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); display: grid; }
.bd-f img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bd-f input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; }
.bd-rm { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(20, 23, 82, .8); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.bd-add { margin: 4px 0 10px; }
table.cmp td { text-align: center; }
.cmp-d { margin-top: 18px; }
.gids-more { margin-top: 10px; font-weight: 700; }
.codeform { max-width: 420px; }
.codeform input { text-transform: uppercase; letter-spacing: .04em; }
.gate-code { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.gate-code h3 { margin-top: 0; }
#nav details.nav-d { margin: 2px 0; }
#nav details.nav-d > summary { cursor: pointer; padding: 8px 10px; margin: 0; border-radius: 6px; list-style: none; display: flex; justify-content: space-between; }
#nav details.nav-d > summary::-webkit-details-marker { display: none; }
#nav details.nav-d > summary::after { content: "+"; font-size: 15px; }
#nav details.nav-d[open] > summary::after { content: "–"; }
#nav details.nav-d > summary:hover { background: #E6E8F2; }
#nav details.nav-d ul { padding-left: 8px; margin-bottom: 8px; }

/* smal scherm */
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  #btn-menu { display: inline-block; }
  #nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; max-height: none; background: var(--paper); padding: 76px 16px 24px; z-index: 15; }
  body.nav-open #nav { display: block; }
  .tools { display: none; }
  .top .lang { margin-left: auto; }
  .nav-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
  .nav-tools button { color: var(--navy); border-color: var(--line); background: var(--bg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding: 24px 18px; border-radius: 8px; }
  h2 { font-size: 26px; }
  .step { grid-template-columns: 32px 1fr; }
  .step-txt { grid-column: 2; }
  .scores, .legend { grid-template-columns: 1fr 1fr; }
  .glance, .week-top, .grid2, .grid3, .days { grid-template-columns: 1fr; }
  .cols2, .cols3, .ifthen { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .pr-head { display: none; }
  .pr-row { grid-template-columns: 1fr; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  table.track .tr-n { min-width: 120px; }
  .sec-t { font-size: 20px; }
  .hb-row { grid-template-columns: minmax(80px, 1fr) repeat(7, 28px); gap: 4px; }
  .hb { width: 26px; height: 26px; }
  .ex-row { grid-template-columns: 1fr; gap: 0; }
  .pager { flex-direction: column; }
  .tools { gap: 4px; }
  .top .lang .l-long { display: none; }
  .top .lang .l-short { display: inline; }
}

/* afdrukken en opslaan als pdf */
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; font-size: 11pt; }
  .top, .layout, .foot, .notice, #toast, .dlg { display: none !important; }
  #print { display: block; }
  .print-head { font-weight: 700; color: var(--mid); font-size: 10pt; margin-bottom: 8mm; }
  #print .page { box-shadow: none; padding: 0; border-radius: 0; break-after: page; }
  #print .page:last-child { break-after: auto; }
  .pv { white-space: pre-wrap; border-bottom: 1px solid var(--line); padding: 2px 0 6px; min-height: 1.6em; }
  .pv.line { display: block; }
  .q, .f, .box, .step, tr, .score, .gl-cell, .ex-row { break-inside: avoid; }
  h2, h3, .q-label, .f-label { break-after: avoid; }
  .val { border: 1px solid var(--line); padding: 3px 10px; }
  .val.on { border: 2px solid #000; }
  blockquote.quote { background: none; color: var(--navy); border: 2px solid var(--navy); }
  blockquote.quote p:last-child { color: var(--navy); }
  .steps-title, thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wheel { max-width: 110mm; }
  .wheel path { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .habits .box-ui, .chk .box-ui, .rings-svg, .cal-head span, table.track thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .scrollx { overflow: visible; border: 0; }
  .cal { min-width: 0; }
  .cal-row { grid-template-columns: repeat(7, 1fr); }
  table.track { font-size: 8pt; }
  table.track .tr-n { min-width: 30mm; position: static; }
  .chk.tk { width: 14px; height: 14px; }
  .board { grid-template-columns: repeat(3, 1fr); }
}

/* 17 nov: bladwijzers, terug, hulpje, afspraken, startdag, beginscherm */
.pg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pg-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: none; max-width: 55%; padding-top: 2px; }
.bm, .tour-btn { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.bm.on { background: var(--ice); border-color: var(--blue); }
.tour-btn { background: var(--blue); color: #fff; border-color: var(--blue); }
.tour-btn:hover { background: var(--navy); }
.back { margin: 0 0 12px; }
.back a { display: inline-block; font-weight: 700; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.hoort { font-weight: 700; margin: 4px 0 18px; }
a.al { text-decoration-style: dotted; text-underline-offset: 3px; }
.nav-bm { color: var(--blue); }
.week-btn { font: inherit; font-size: 14px; font-weight: 700; background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 8px 12px; cursor: pointer; flex: none; margin-left: auto; }
.week-btn[hidden] { display: none; }
body.full .tools { margin-left: 8px; }
.week-btn:hover { background: var(--mid); }
.has-tip { position: relative; }
.has-tip > .q-label, .has-tip > .f-label, .has-tip > legend, .has-tip > h3, .has-tip > .hint { padding-right: 34px; }
.has-tip:not(.q):not(.f):not(.ag-item):not(.ag-row):not(.cal-w):not(.track-w):not(.lines-w):not(.afspr):not(.aps) { padding-right: 34px; }
.tipq { position: absolute; top: -2px; right: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; z-index: 2; }
.tipq:hover { background: var(--ice); }
.aps > .tipq, .afspr > .tipq { top: 4px; }
.tipb { position: relative; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 14px; margin: 8px 0 10px; font-size: 15px; line-height: 1.5; font-weight: 300; }
.tipb::before { content: ""; position: absolute; top: -7px; left: 18px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--navy); }
.tipb p { margin: 0; }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tb-n { font-size: 13px; color: var(--aqua); margin-right: auto; }
.tipb button { font: inherit; font-size: 14px; font-weight: 700; border-radius: 6px; padding: 6px 10px; border: 1px solid var(--grey); background: transparent; color: #fff; cursor: pointer; }
.tipb .tb-next { background: var(--blue); border-color: var(--blue); }
.tipb .tb-off { margin-top: 8px; padding: 4px 8px; font-size: 13px; font-weight: 300; }
.tip-on { outline: 3px solid rgba(21, 93, 233, .35); outline-offset: 6px; border-radius: 6px; }
.nudge { background: #FFF6D6; border: 1px solid #E9C46A; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.nudge p { margin: 0 0 10px; }
.nudge .row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-2 { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-2:hover { background: var(--bg); color: var(--navy); }
.sd .f { max-width: 260px; }
.sd-msg { font-weight: 700; margin: 8px 0 0; }
.f-date input { max-width: 220px; }
.afspr { border: 1px dashed var(--blue); border-radius: 8px; padding: 8px 14px; margin: 10px 0 18px; }
.afspr summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.af-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0; }
.af-row input[type=date] { width: auto; }
.af-row label { font-weight: 700; font-size: 15px; }
.tp { display: inline-flex; align-items: center; gap: 4px; }
.tp select { width: auto; padding: 6px 8px; font-weight: 700; }
.tp-c { font-weight: 700; }
.ag-ctrls .tp select { margin-left: 0; }
.aps { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.ap { font: inherit; font-size: 14px; text-align: left; border: 1px solid var(--line); background: var(--ice); color: var(--navy); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.ap-t { font-weight: 700; }
.ap-add { font: inherit; font-size: 14px; font-weight: 700; border: 1px dashed var(--blue); background: #fff; color: var(--blue); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.ap-add:hover { background: var(--ice); }
.aps-s { gap: 3px; margin: 2px 0 0; }
.aps-s .ap, .aps-s .ap-add { font-size: 12px; padding: 2px 5px; width: 100%; }
.ap-card { width: min(420px, 100%); }
.ap-card h3 { margin: 0 0 2px; }
.ap-date { color: var(--mid); margin: 0 0 8px; }
.ap-cal { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.ap-card .row { margin-top: 12px; }
.day .q { margin-bottom: 4px; }
.cal-top { display: flex; align-items: center; gap: 4px; }
.cal-dl { display: none; }
.cal-cell textarea { border: 1px solid var(--line); border-radius: 4px; background: #fff; min-height: 3.4em; }
.cal-out { background: var(--bg); }
.cal-auto .cal-out > * { visibility: hidden; }
.cal-out textarea, .cal-out .cal-d { opacity: .55; }
@media (max-width: 860px) {
  .week-btn { margin-left: auto; padding: 7px 10px; }
  body.full .top .lang { margin-left: 8px; }
}
@media (max-width: 640px) {
  .pg-head { flex-direction: column; gap: 6px; }
  .pg-tools { max-width: none; justify-content: flex-start; margin-bottom: 14px; }
  .cal-w .scrollx { border: 0; overflow: visible; }
  .cal { min-width: 0; }
  .cal-head { display: none; }
  .cal-row { grid-template-columns: 1fr; }
  .cal-cell { border-right: 0; padding: 8px 0; gap: 6px; }
  .cal-auto .cal-out { display: none; }
  .cal-dl { display: inline; font-weight: 700; font-size: 15px; }
  .cal-auto .cal-d { display: none; }
  .cal-hint { display: none; }
  .aps-s .ap, .aps-s .ap-add { font-size: 14px; padding: 4px 8px; width: auto; }
  .top .brand span { display: none; }
}
@media print { .pg-tools, .tipq, .tipb, .back, .nudge, .ap-add, .afspr, .cal-dl { display: none !important; } }
/* Mijn dag */
.today-btn { background: transparent; border: 1px solid var(--aqua); }
.today-btn + .wk { margin-left: 0; }
body.gated .week-btn { display: none; }
.vd-date { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.vd-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.vd-tools [hidden] { display: none; }
.vd-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.vd-card h3 { margin: 0 0 8px; }
.vd-ap { list-style: none; padding: 0; margin: 0 0 8px; }
.vd-ap li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.vd-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vd-row:last-child { border-bottom: 0; }
.vd-l { font-weight: 700; font-size: 15px; }
.vd-e { color: var(--grey); font-style: italic; }
.vd-hab { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vd-hab li { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .vd-row { grid-template-columns: 1fr; gap: 2px; } .week-btn { font-size: 13px; padding: 7px 8px; } }
.tipb .tb-mic{font-size:.85em;opacity:.8;margin:.4em 0 0}

/* ---------- snufjes (17 nov) ---------- */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 34px; line-height: 1; font-weight: 400; cursor: pointer; box-shadow: 0 4px 14px rgba(20, 23, 82, .3); display: grid; place-items: center; }
.fab:hover { background: var(--navy); }
body.gated .fab { display: none; }
@media print { .fab { display: none !important; } }
.layout { padding-bottom: 96px; }
.qa-card { width: min(520px, 100%); max-width: 520px; }
.qa-card input[type="text"], .qa-card input[type="date"] { width: 100%; }
.qa-res { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; }
.qa-ans { font-weight: 700; margin: 6px 0; }
.qa-ans:empty, #qa-msg:empty { display: none; }
.ap-rep { border-style: dashed; }
.ap-r { font-size: .9em; opacity: .8; }
/* zoeken */
.srch { margin: 0 0 12px; }
.srch input { width: 100%; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); }
#srch-res ul { list-style: none; margin: 0 0 8px; padding: 0; }
#srch-res a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--navy); text-decoration: none; }
#srch-res a:hover { background: #E6E8F2; }
.sr-p { display: block; font-weight: 700; font-size: 14px; }
.sr-s { display: block; font-size: 13px; color: var(--mid); line-height: 1.4; }
.sr-s mark { background: var(--aqua); color: var(--navy); border-radius: 2px; }
.sr-none { color: var(--mid); font-size: 14px; padding: 4px 10px; }
.hit { outline: 3px solid var(--aqua) !important; outline-offset: 3px; transition: outline-color .4s; }
/* vandaag */
.vd-hi { font-size: 15px; color: var(--mid); margin: 0; }
.vd-wek { border-left: 4px solid var(--aqua); }
.vd-wek p { margin: 4px 0; }
.vd-prog { list-style: none; margin: 0; padding: 0; }
.vd-prog li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vd-prog li span:last-child { font-weight: 700; white-space: nowrap; }
.row-l { display: flex; flex-wrap: wrap; gap: 8px; }
.steen-ok { margin: -4px 0 14px; }
/* statistieken */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.st-tile { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.st-v { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.st-l { font-size: 14px; color: var(--mid); }
.st-sub { white-space: nowrap; }
.st-h { margin-top: 28px; }
.st-t { border-collapse: collapse; width: 100%; font-size: 15px; }
.st-t th, .st-t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-t thead th { font-size: 13px; color: var(--mid); background: transparent; font-weight: 700; }
.st-strip { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.st-sn { width: 120px; flex: none; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cells { display: grid; grid-template-columns: repeat(52, 1fr); gap: 2px; flex: 1; min-width: 0; }
.st-cells i { display: block; height: 14px; border-radius: 2px; }
.st-cells .lvx { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.st-cells .lv0 { background: #E6E8F2; }
.st-cells .lv1 { background: #BBD0FA; }
.st-cells .lv2 { background: #7FA5F3; }
.st-cells .lv3 { background: #4A80EE; }
.st-cells .lv4 { background: #155DE9; }
.st-sps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; margin: 10px 0; }
.st-sp { margin: 0; }
.st-sp figcaption { font-size: 14px; display: flex; justify-content: space-between; }
.st-last { font-weight: 700; }
.st-sp svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-sp path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-sp circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.st-sp .st-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.st-ex { margin: 10px 0; }
.st-bar { height: 10px; background: #E6E8F2; border-radius: 5px; overflow: hidden; margin: 4px 0; }
.st-bar span { display: block; height: 100%; background: var(--blue); border-radius: 5px; }
.st-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 120px; margin: 8px 0 4px; }
.st-b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.st-bf { width: 100%; max-width: 26px; background: var(--blue); border-radius: 4px 4px 0 0; }
.st-bn { font-size: 12px; color: var(--mid); }
.st-bl { font-size: 11px; color: var(--mid); margin-top: 3px; }
/* week in een blik */
.wk-days { display: grid; gap: 8px; margin: 12px 0; }
.wk-day { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.wk-day.now { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }
.wk-dl { font-weight: 700; margin-bottom: 4px; }
.wk-note { margin: 0 0 6px; font-size: 15px; white-space: pre-line; }
/* hoogtepunten */
.hl-l li { margin: 4px 0; }
/* instellingen */
.set-row { display: flex; padding: 8px 0; }
.kl-form .f { max-width: 280px; }
.lock form { max-width: 320px; }
.lock .row { display: flex; gap: 8px; flex-wrap: wrap; }
/* weergave */
html.dark { filter: invert(.9) hue-rotate(180deg); background: #fff; }
html.dark img, html.dark .top, html.dark .board-w img { filter: invert(1) hue-rotate(180deg); }
html.dark .top img { filter: none; }
html.groot #main, html.groot .dlg-card { zoom: 1.15; }
@media (max-width: 640px) {
  .fab { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .st-sn { width: 84px; }
  .st-cells i { height: 12px; }
  .st-t { font-size: 14px; }
}
.dlg-card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }

[hidden] { display: none !important; }

/* 17 nov: controle voor verkoop */
@media (max-width: 700px) {
  #main input[type=checkbox]:not(.chk input) { width: 24px; height: 24px; flex: none; }
  .vink { min-height: 32px; align-items: center; }
  #main { padding-bottom: 96px; }
  .trk-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
  .trk-bar .btn { min-width: 44px; min-height: 40px; padding: 4px 12px; }
  .trk-l { font-weight: 600; }
  table.track.trk-on { width: 100%; min-width: 0; table-layout: fixed; }
  table.track.trk-on th, table.track.trk-on td { padding: 3px 1px; min-width: 0; }
  table.track.trk-on th.tr-n { width: 34%; min-width: 0; padding: 3px 4px; }
  table.track.trk-on .tr-n input { width: 100%; min-width: 0; }
}

/* ---------- nieuwe start (18 nov 2026) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* knop Bewaren in de kopbalk */
.bewaar { position: relative; }
.bewaar-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(20, 23, 82, .18); padding: 6px; display: grid; gap: 2px; min-width: 230px; z-index: 30; }
.bewaar-menu[hidden] { display: none; }
.tools .bewaar-menu button { color: var(--navy); border: 0; background: transparent; text-align: left; padding: 9px 10px; font-weight: 300; width: 100%; border-radius: 6px; }
.tools .bewaar-menu button:hover { background: var(--bg); }
@media (max-width: 860px) { .nav-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nav-tools button { font-size: 13px; padding: 7px 6px; } }
.nav-tools-t { grid-column: 1 / -1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--mid); }
/* startpad in het menu */
.pad { background: var(--ice); border-radius: 10px; padding: 12px 12px 8px; margin: 0 0 16px; }
.pad-t { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pad ol { list-style: none; margin: 0; padding: 0; counter-reset: pd; }
.pad li { counter-increment: pd; }
#nav .pad li a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 6px; color: var(--navy); text-decoration: none; font-size: 15px; }
.pad li a::before { content: counter(pd); flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--grey); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pad li.klaar a::before { content: "✓"; background: var(--navy); border-color: var(--navy); color: #fff; }
#nav .pad li.klaar a { color: var(--mid); }
#nav .pad li a:hover { background: rgba(255, 255, 255, .6); }
#nav .pad li a.nu { background: #fff; color: var(--navy); font-weight: 700; }
/* startpagina boven het aanmeldformulier */
.gate h2 { text-wrap: balance; }
.gate h3 { margin: 26px 0 8px; }
.gate-lead { font-size: 19px; }
.gate-codelink { font-size: 15px; margin-top: -4px; }
.gate-voor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gv { background: var(--ice); border-radius: 8px; padding: 12px 14px; }
.gv-t { font-weight: 700; margin-bottom: 2px; }
.gv p { margin: 0; font-size: 15px; line-height: 1.5; }
.gate-stap { list-style: none; padding: 0; margin: 0; counter-reset: gs; display: grid; gap: 10px; }
.gate-stap li { counter-increment: gs; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.gate-stap li::before { content: counter(gs); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.gate-hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 0; }
.gate .gate-form-t { margin-top: 22px; }
/* rondleiding */
.tour { z-index: 60; }
.tour-card { width: 100%; max-width: 480px; padding: 24px 24px 20px; }
.tour-card h2 { font-size: 24px; margin: 4px 0 12px; text-wrap: balance; }
.tour-body { min-height: 210px; }
.tour-body p { margin: 0 0 10px; }
.tour-wiel { display: block; margin: 0 auto 12px; }
.tour-stappen { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.tour-stappen li { display: grid; grid-template-columns: 124px 1fr; gap: 8px; padding: 4px 8px; border-radius: 6px; font-size: 15px; }
.tour-stappen li.nu { background: var(--ice); }
.ts-n { font-weight: 700; }
.tour-voet { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.tour-voet .row { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-dots { display: flex; gap: 6px; }
.tour-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.tour-dot.aan { background: var(--blue); }
/* welkomstpagina */
.begin { background: var(--ice); border-color: var(--aqua); }
.begin .row, .savetip .row { display: flex; gap: 8px; flex-wrap: wrap; }
details.handig { border: 1px solid var(--line); border-radius: 8px; margin: 20px 0; }
details.handig > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
details.handig[open] > summary { border-bottom: 1px solid var(--line); }
.handig-in { padding: 4px 16px 4px; }
/* bewaartip en uitnodiging */
.savetip { background: var(--ice); border-color: var(--aqua); }
.verder { background: var(--ice); border-color: var(--aqua); margin-top: 28px; }
@media (max-width: 640px) {
  .gate-voor { grid-template-columns: 1fr; }
  .gate-lead { font-size: 17px; }
  .tour { place-items: end stretch; padding: 0; }
  .tour-card { max-width: none; border-radius: 16px 16px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .tour-stappen li { grid-template-columns: 118px 1fr; font-size: 14.5px; }
}
@media print { .pad, .tour, .verder, .begin, .savetip { display: none !important; } }
/* 18 nov: hulpballon in een raster (wiel-cijfers, overzicht) over de volle breedte, niet in een vakje */
.has-tip > .tipb { grid-column: 1 / -1; }
/* 19 nov: Help me-knop als aan/uit-knop, donker zolang de hulp loopt */
.tour-btn.aan { background: var(--navy); border-color: var(--navy); }
/* 19 nov: hulpknop ook in de kop (Hulp / Stop hulp), alleen op pagina's met hulp */
.hulp-top { font: inherit; font-size: 14px; font-weight: 700; background: transparent; color: #fff; border: 1px solid var(--grey); border-radius: 6px; padding: 7px 10px; cursor: pointer; flex: none; margin-left: auto; white-space: nowrap; }
.hulp-top[hidden], body.gated .hulp-top { display: none; }
.hulp-top:hover { background: var(--mid); }
.hulp-top.aan { background: var(--blue); border-color: var(--blue); }
.hulp-top:not([hidden]) ~ .tools { margin-left: 6px; }
body.full .hulp-top { margin-left: 8px; }
@media (max-width: 860px) { .hulp-top:not([hidden]) ~ .lang { margin-left: 8px; } body.full .hulp-top { margin-left: 8px; } }
@media (max-width: 640px) { .hulp-top { font-size: 13px; padding: 7px 8px; } }
@media print { .hulp-top { display: none !important; } }
@media (max-width: 380px) { .top { gap: 6px; padding: 10px; } #btn-menu, .week-btn, .hulp-top, .top .lang { font-size: 12px; padding: 6px 7px; } body.full .hulp-top, body.full .top .lang, .hulp-top:not([hidden]) ~ .lang { margin-left: 2px; } }
