/* Ness Planner — klantoppervlak (boek.html / code.html).
   Mobile first (375px), 18px basis, hoog contrast voor fel daglicht, geen externe fonts. */

:root {
  --green: #0F6E56;
  --green-2: #0B5A46;
  --green-l: #E6F4EF;
  --green-b: #BFE3D5;
  --amber: #B45309;
  --amber-l: #FEF3E6;
  --amber-b: #F5CFA0;
  --ink: #111827;
  --mut: #5B6472;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --line: #E3E7EC;
  --line-2: #B9C4CE;
  --ok: #15803D;
  --bad: #B91C1C;
  --bad-l: #FEECEC;
  --bad-b: #F3B4B4;
  --info: #1D4ED8;
  --r-card: 14px;
  --r-ctl: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --font: -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--green);
  --sheet-w: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 18px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 10px; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-2); }
b, strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
button { font: inherit; }

svg.i { width: 22px; height: 22px; flex: 0 0 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: var(--r-ctl); z-index: 60; }
.skip:focus-visible { left: 12px; }

.mut { color: var(--mut); }
.small { font-size: 16px; }
.nowrap { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- lay-out ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.stack > * + * { margin-top: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card > * + * { margin-top: 12px; }
.card-hd { display: flex; align-items: center; gap: 10px; }
.card-hd svg.i { color: var(--green); }
.sub-hd { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.sub-hd svg.i { color: var(--green); width: 20px; height: 20px; flex-basis: 20px; }
.sub-hd h2 { font-size: 19px; }
.when { font-size: 17px; color: var(--mut); font-weight: 600; margin-top: 2px; }
.trust-line { font-size: 17px; line-height: 1.45; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--green-l); color: var(--green-2); }
.trust-line b { font-family: var(--mono); letter-spacing: .03em; overflow-wrap: anywhere; }
.trust-line a { color: inherit; font-weight: 700; }
.other-link { display: inline-block; min-height: 44px; line-height: 1.4; padding: 8px 0; font-weight: 600; }
.moved-old { font-size: 17px; color: #7C3A0B; background: var(--amber-l); border: 1px solid var(--amber-b); padding: 10px 14px; border-radius: var(--r-ctl); }
.quiet-phone { text-align: center; }

/* ---------- koptekst ---------- */
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.brand img { height: 42px; width: auto; max-width: 210px; display: block; }
.mono {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 24px; flex: 0 0 44px;
}
.brand-name { font-weight: 800; font-size: 20px; line-height: 1.2; }
.mandate { flex: 1 0 100%; font-size: 15px; font-weight: 600; color: var(--mut); line-height: 1.35; padding: 6px 0 4px; }
.langs { display: flex; align-items: center; margin-left: auto; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: var(--r-ctl);
  font-size: 16px; font-weight: 600; color: var(--mut); text-decoration: none;
}
.langs a:hover { background: var(--card); color: var(--green); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.langs .sep { color: var(--line-2); padding: 0 2px; }

/* ---------- voortgangsrail ---------- */
.rail { display: flex; align-items: center; margin-top: 10px; font-size: 15px; color: var(--mut); font-weight: 600; }
.rail li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.rail li:not(:last-child) { flex: 1 1 auto; }
.rail li:not(:last-child)::after { content: ""; flex: 1 1 10px; min-width: 8px; height: 2px; margin: 0 6px; background: var(--line-2); }
.rail .n {
  width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--mut); line-height: 1;
}
.rail li[aria-current="step"] { color: var(--green-2); }
.rail li[aria-current="step"] .n { background: var(--green); border-color: var(--green); color: #fff; }
.rail li.done { color: var(--ink); }
.rail li.done .n { background: var(--green-l); border-color: var(--green); color: var(--green); }

/* ---------- meldingen ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 17px; line-height: 1.45; }
.alert svg.i { margin-top: 2px; }
.alert.bad { background: var(--bad-l); border-color: var(--bad-b); color: #7F1D1D; }
.alert.warn { background: var(--amber-l); border-color: var(--amber-b); color: #7C3A0B; }
.alert.ok { background: var(--green-l); border-color: var(--green-b); color: var(--green-2); }
.alert b { display: block; margin-bottom: 2px; }
.alert a { color: inherit; }

/* ---------- dagstrook ---------- */
.days-wrap { position: relative; margin: 0 -20px; }
.days-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 12px; width: 44px; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--card) 80%); transition: opacity .15s; }
.days-wrap.at-end::after { opacity: 0; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 6px 20px 12px; scroll-padding: 0 20px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.days::-webkit-scrollbar { height: 6px; }
.days::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.days > li { flex: 0 0 auto; scroll-snap-align: start; display: flex; }
.days .mo-lbl { align-items: center; justify-content: center; width: 30px; margin-right: 2px; border-left: 2px solid var(--line); }
.days .mo-lbl:first-child { border-left: 0; width: 26px; }
.days .mo-lbl span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); line-height: 1; }
.days-nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -25px; padding: 0;
  display: none; align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--green); cursor: pointer; box-shadow: var(--shadow);
}
.days-nav.prev { left: 2px; } .days-nav.next { right: 2px; }
.days-nav:hover { background: var(--green-l); border-color: var(--green-b); }
.days-nav:disabled { opacity: .35; cursor: default; box-shadow: none; }
.days-nav svg.i { width: 24px; height: 24px; flex-basis: 24px; }
.days-nav .chev-l { transform: rotate(90deg); } .days-nav .chev-r { transform: rotate(-90deg); }
.day {
  width: 92px; min-height: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: 10px 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); text-decoration: none; text-align: center; line-height: 1.2; cursor: pointer;
}
.day:hover { border-color: var(--line-2); }
.day .wd { font-size: 15px; font-weight: 600; color: var(--mut); text-transform: capitalize; }
.day .dn { font-size: 28px; font-weight: 800; line-height: 1.1; margin: 1px 0; }
.day .mo { font-size: 15px; color: var(--mut); }
.day .fc { font-size: 13px; font-weight: 700; color: var(--green-2); margin-top: 6px; background: var(--green-l); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.day[aria-current="date"] { border-color: var(--green); background: var(--green); color: #fff; }
.day[aria-current="date"] .wd, .day[aria-current="date"] .mo { color: #DDF0E8; }
.day[aria-current="date"] .fc { background: var(--card); color: var(--green-2); }
.day:focus-visible { box-shadow: var(--focus); border-radius: 12px; }

/* ---------- tijdkeuze ---------- */
.grp + .grp { margin-top: 16px; }
.grp-hd { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.grp-hd svg.i { width: 18px; height: 18px; flex-basis: 18px; }
.slots { display: grid; grid-template-columns: 1fr; gap: 10px; }
.slot { position: relative; display: block; margin: 0; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.slot .box {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer;
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.slot .box::before {
  content: ""; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; flex: 0 0 22px;
}
.slot .to { font-weight: 500; color: var(--mut); }
.slot .box:hover { border-color: var(--line-2); }
.slot input:checked + .box { border-color: var(--green); background: var(--green-l); color: var(--green-2); }
.slot input:checked + .box .to { color: var(--green-2); }
.slot input:checked + .box::before { border: 7px solid var(--green); }
.slot input:focus-visible + .box { box-shadow: var(--focus); outline: 3px solid transparent; outline-offset: 2px; }
.slot.cur .box { cursor: default; border-style: dashed; border-color: var(--line-2); background: var(--bg); color: var(--mut); }
.slot.cur .box::before { border-color: var(--line); background: var(--bg); }
.slot .chip { margin-left: auto; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); background: var(--card); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 999px; }
@media (min-width: 480px) { .slots { grid-template-columns: 1fr 1fr; } }

/* ---------- formulier ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field .lbl { display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.field .lbl .opt { font-weight: 400; color: var(--mut); }
.field .hint { display: block; font-size: 15px; color: var(--mut); margin-bottom: 6px; line-height: 1.35; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--ink);
  border: 2px solid var(--line-2); border-radius: var(--r-ctl); background: var(--card);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 22px; padding-right: 46px; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-l); }
.field.err input, .field.err select { border-color: var(--bad); background: #FFF8F8; }
.field .msg { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--bad); line-height: 1.4; }
.field .msg svg.i { width: 18px; height: 18px; flex-basis: 18px; margin-top: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 20px; border-radius: var(--r-ctl); border: 2px solid var(--green);
  background: var(--green); color: #fff; font: inherit; font-weight: 700; font-size: 18px; line-height: 1.25;
  text-decoration: none; cursor: pointer; width: 100%; text-align: center;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn.sec { background: var(--card); color: var(--green); }
.btn.sec:hover { background: var(--green-l); color: var(--green-2); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--card); }
.btn.danger { background: var(--card); border-color: var(--bad-b); color: var(--bad); }
.btn.danger:hover { background: var(--bad-l); border-color: var(--bad); color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger.solid:hover { background: #991B1B; border-color: #991B1B; }
.btn.big { min-height: 60px; font-size: 19px; }
.btn.sm { min-height: 48px; width: auto; min-width: 0; padding: 8px 16px; font-size: 17px; }
.btn-row { display: grid; gap: 10px; }
@media (min-width: 480px) { .btn-row.two { grid-template-columns: 1fr 1fr; } }

/* ---------- stap 3: bevestigen (in de flow zonder JS, onderaan vast met JS) ---------- */
.sheet { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-hd .sum { font-weight: 700; font-size: 18px; line-height: 1.35; }
.sheet-hd .sum.empty { font-weight: 400; color: var(--mut); }
.sheet-hd .chg { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 16px; font-weight: 700; }
.sheet-hd .chg svg.i { width: 18px; height: 18px; flex-basis: 18px; }
.sheet-body { margin-top: 14px; }
.sheet-body h3 { margin-bottom: 10px; }
.prefilled { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.prefilled b { font-weight: 700; }
.edit-contact { margin-top: 10px; }
.edit-contact > summary { list-style: none; display: inline-flex; }
.edit-contact > summary::-webkit-details-marker { display: none; }
.edit-contact > summary svg.i { width: 18px; height: 18px; flex-basis: 18px; }
.edit-contact[open] > summary { margin-bottom: 12px; }
.edit-contact .edit-in { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); }
.remark-wrap { margin-top: 14px; }
.remark-wrap > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--green); font-weight: 600; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; line-height: 1.35; }
.remark-wrap > summary::-webkit-details-marker { display: none; }
.remark-wrap > summary svg.i { width: 20px; height: 20px; flex-basis: 20px; }
.remark-wrap[open] > summary { text-decoration: none; margin-bottom: 8px; }
.channel { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--green-l); color: var(--green-2); font-size: 16px; line-height: 1.4; }
.channel.none { background: var(--amber-l); color: #7C3A0B; }
.channel svg.i { width: 20px; height: 20px; flex-basis: 20px; margin-top: 2px; }
.sheet-ft { margin-top: 14px; }

.backdrop { display: none; }
.js .sheet:not(.open) { display: none; }
.js .sheet.open:focus-visible { box-shadow: 0 -8px 30px rgba(16, 24, 40, .18); }
.js .backdrop.on { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(17, 24, 39, .42); }
.js .sheet.open {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0; border: 0; padding: 0;
  display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh;
  background: var(--card); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(16, 24, 40, .18);
  animation: rise .22s ease-out;
}
.js .sheet.open::before { content: ""; align-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 8px 0 0; flex: 0 0 auto; }
.js .sheet.open .sheet-hd { flex: 0 0 auto; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.js .sheet.open .sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0; padding: 14px 18px 20px; overscroll-behavior: contain; }
.js .sheet.open .sheet-ft { flex: 0 0 auto; margin: 0; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
@media (min-width: 640px) {
  .js .sheet.open { left: 50%; right: auto; width: var(--sheet-w); transform: translateX(-50%); }
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { @keyframes rise { from { transform: translate(-50%, 24px); opacity: .6; } to { transform: translateX(-50%); opacity: 1; } } }

/* ---------- bevestigd ---------- */
.panel-ok { background: var(--green-l); border-color: var(--green-b); }
.panel-ok .card-hd h1 { color: var(--green-2); }
.panel-ok .card-hd { align-items: flex-start; }
.panel-ok .card-hd svg.i { width: 30px; height: 30px; flex-basis: 30px; margin-top: 1px; }
.big-when { font-size: 23px; font-weight: 800; line-height: 1.3; }
.big-when small { display: block; font-size: 20px; font-weight: 700; color: var(--green-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 17px; margin: 0; }
.kv dt { color: var(--mut); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.refcode { font-family: var(--mono); font-weight: 800; font-size: 18px; letter-spacing: .05em; background: var(--card); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--green-b); white-space: nowrap; }
.next li { display: flex; gap: 10px; align-items: flex-start; }
.next li + li { margin-top: 8px; }
.next svg.i { color: var(--green); margin-top: 3px; }
.panel-ok h3 { margin-top: 18px; }

/* ---------- checklist ---------- */
.check li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.check li + li { border-top: 1px solid var(--line); }
.check .tick { width: 28px; height: 28px; border-radius: 8px; background: var(--green-l); color: var(--green); display: grid; place-items: center; flex: 0 0 28px; margin-top: 1px; }
.check .tick svg.i { width: 18px; height: 18px; flex-basis: 18px; }

/* ---------- keuzekaarten (melding) ---------- */
.choice { position: relative; display: block; margin: 0; }
.choice + .choice { margin-top: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice .box {
  display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer;
}
.choice .box::before { content: ""; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; flex: 0 0 22px; }
.choice .box b { display: block; line-height: 1.3; }
.choice .box em { display: block; font-style: normal; font-size: 15px; color: var(--mut); line-height: 1.3; }
.choice input:checked + .box { border-color: var(--green); background: var(--green-l); }
.choice input:checked + .box::before { border: 7px solid var(--green); }
.choice input:focus-visible + .box { box-shadow: var(--focus); outline: 3px solid transparent; outline-offset: 2px; }

details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; min-height: 44px; margin: -4px 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary svg.i { color: var(--green); }
details.card > summary .chev { margin-left: auto; color: var(--mut); transition: transform .15s; transform-origin: 50% 50%; transform-box: fill-box; }
details.card[open] > summary .chev { transform: rotate(180deg); }
details.card[open] > summary { margin-bottom: 8px; }

/* ---------- vertrouwen & identiteit ---------- */
.trust .id { display: grid; gap: 10px; }
.trust .id li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.trust .id svg.i { color: var(--green); margin-top: 3px; }
.trust .id .k { color: var(--mut); }
.trust .id .hrs { display: block; font-size: 16px; }
.never { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--green-2); background: var(--green-l); padding: 12px 14px; border-radius: var(--r-ctl); }

/* ---------- voettekst ---------- */
.ftr { text-align: center; font-size: 15px; color: var(--mut); padding: 24px 0 8px; line-height: 1.45; }
.ftr > * + * { margin-top: 6px; }
.ftr a { color: var(--mut); }

/* ---------- annuleren (details zonder JS, dialoog met JS) ---------- */
.btn-row details { min-width: 0; }
.btn-row details[open] { grid-column: 1 / -1; }
.cancel > summary { list-style: none; }
.cancel > summary::-webkit-details-marker { display: none; }
.cancel > .dlg-in { margin-top: 12px; padding: 18px; border: 1px solid var(--bad-b); border-radius: var(--r-card); background: #fff; }
.dlg-in .card-hd svg.i { color: var(--bad); }
.move-instead { padding: 12px 14px; border-radius: var(--r-ctl); background: var(--green-l); }
.move-instead .btn { width: 100%; min-height: 52px; }
.move-instead p { margin-top: 8px; color: var(--green-2); }

dialog.dlg { border: 0; border-radius: var(--r-card); padding: 0; max-width: min(92vw, 480px); width: 100%; box-shadow: 0 20px 50px rgba(16, 24, 40, .25); color: var(--ink); font: inherit; }
dialog.dlg::backdrop { background: rgba(17, 24, 39, .45); }
dialog.dlg .dlg-in { padding: 22px; margin: 0; border: 0; }
dialog.dlg:not([open]) { display: none; }

/* ---------- code-pagina ---------- */
.code-in { font-family: var(--mono); font-size: 26px; letter-spacing: .2em; text-align: center; text-transform: uppercase; min-height: 62px; }
.code-in::placeholder { letter-spacing: .2em; color: #6B7480; }

/* ---------- desktop ---------- */
@media (min-width: 640px) {
  .page { padding: 8px 16px 48px; }
  h1 { font-size: 28px; }
  .card { padding: 24px; }
  .days-wrap { margin: 0 -24px; }
  .days { padding: 6px 56px 12px; scroll-padding: 0 56px; }
  .js .days { scrollbar-width: none; }
  .js .days::-webkit-scrollbar { display: none; }
  .days-wrap::after { width: 56px; }
  .js .days-nav { display: inline-flex; }
  .btn { width: auto; min-width: 200px; }
  .btn.block, .sheet .btn, .btn-row .btn, .btn-row summary.btn { width: 100%; }
  .sheet .btn.sm { width: auto; }
  .hdr { padding: 16px 0 0; }
  .mandate { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .sheet, .langs, .skip, .backdrop, details.card, .other-link { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
