/* ---------- Huisstijl Den Hartog Riet (afgeleid van hartogriet.nl) ---------- */
@font-face { font-family: Akatab; font-weight: 400; font-display: swap; src: url(assets/fonts/Akatab-Regular.woff2) format("woff2"); }
@font-face { font-family: Akatab; font-weight: 500; font-display: swap; src: url(assets/fonts/Akatab-Medium.woff2) format("woff2"); }
@font-face { font-family: Akatab; font-weight: 600; font-display: swap; src: url(assets/fonts/Akatab-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Akatab; font-weight: 700; font-display: swap; src: url(assets/fonts/Akatab-Bold.woff2) format("woff2"); }

:root {
  --navy: #151a42;
  --navy-2: #1e3562;
  --navy-soft: #2a3060;
  --gold: #e1a928;
  --gold-hover: #cf9918;
  --gold-soft: #f7ecd0;
  --olive: #918f23;
  --olive-dark: #6e6c12;
  --olive-soft: #eeedd6;
  --cream: #f5f3ec;
  --cream-2: #faf9f6;
  --white: #fff;
  --line: #e4dfd0;
  --line-2: #efebe1;
  --muted: #676b84;
  --rust: #b0472d;
  --rust-soft: #f8e6df;
  --serif: "Noto Serif JP", Georgia, Cambria, "Times New Roman", serif;
  --sans: Akatab, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-top: 54px;
  --safe-bottom: 30px;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex: none; }

/* ---------- Bureaublad-podium ---------- */
.stage {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 480px) auto;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  padding: 20px 32px;
  background:
    radial-gradient(1200px 700px at 85% 50%, rgba(225, 169, 40, .10), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
}
.brief { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 0; max-height: 920px; }
.brief__logo { width: 200px; }
.brief__body { margin: 24px 0; }
.suptitle { margin: 0 0 10px; color: var(--olive); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.brief h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
.brief__lead { font-size: 17px; line-height: 1.55; margin: 0 0 28px; color: #2b3058; }
.brief__steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.brief__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; color: #2b3058; }
.brief__steps li p { margin: 3px 0 0; }
.brief__steps li span {
  width: 28px; height: 28px; display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: var(--navy); color: var(--gold);
}
.brief__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.brief__foot { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 420px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 20px; font-weight: 500; font-size: 16px; line-height: 1;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--navy); color: var(--gold); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(21, 26, 66, .25); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--navy); }

/* ---------- iPhone ---------- */
.device-wrap { width: calc(433px * var(--s, 1)); height: calc(882px * var(--s, 1)); position: relative; }
.device {
  position: absolute; left: 0; top: 0;
  width: 433px; height: 882px; padding: 15px;
  transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 68px;
  background: linear-gradient(145deg, #4a4a4f, #1d1d20 40%, #2c2c30 70%, #4b4b50);
  box-shadow:
    inset 0 0 0 1.5px #66666c,
    inset 0 0 0 6px #121214,
    0 50px 90px -30px rgba(21, 26, 66, .55),
    0 25px 40px -20px rgba(21, 26, 66, .35);
}
.device__btn { position: absolute; width: 4px; background: #3a3a3e; border-radius: 2px; }
.device__btn--action { left: -3px; top: 150px; height: 32px; }
.device__btn--vol-up { left: -3px; top: 210px; height: 58px; }
.device__btn--vol-down { left: -3px; top: 282px; height: 58px; }
.device__btn--power { right: -3px; top: 240px; height: 92px; }

.screen {
  position: relative; width: 403px; height: 852px; overflow: hidden;
  border-radius: 54px; background: #000; isolation: isolate;
  container-type: inline-size;
}

/* Statusbalk */
.statusbar {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: var(--safe-top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 30px 0 46px; pointer-events: none;
  color: var(--navy); transition: color .3s;
}
.status-light .statusbar { color: #fff; }
.statusbar__time { font-family: -apple-system, "SF Pro Text", var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -.01em; width: 54px; text-align: center; }
.statusbar__icons { display: flex; gap: 6px; align-items: center; }
.statusbar__icons svg { fill: currentColor; }
.island {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  width: 124px; height: 36px; border-radius: 20px; background: #000;
}
.home-indicator {
  position: absolute; z-index: 60; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 140px; height: 5px; border-radius: 3px; background: rgba(21, 26, 66, .9);
  opacity: 0; pointer-events: none; transition: opacity .3s, background .3s;
}
.home-indicator::before { content: ""; position: absolute; inset: -14px -20px; }
.app-open .home-indicator { opacity: 1; pointer-events: auto; }
.app-open.status-light .home-indicator { background: rgba(255, 255, 255, .85); }
.home-indicator:hover { background: var(--gold) !important; }

/* ---------- Beginscherm ---------- */
.home {
  position: absolute; inset: 0;
  padding: calc(var(--safe-top) + 14px) 24px 0;
  background: #2a2a2a url(assets/img/wallpaper.jpg) center / cover;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .35));
}
.home > * { position: relative; }
.app-open .home { transform: scale(.92); filter: blur(4px) brightness(.8); }

.home__widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 6px 0 22px; }
.widget {
  height: 158px; border-radius: 22px; padding: 14px 15px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-family: -apple-system, "SF Pro Text", var(--sans);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}
.widget__day { color: #e5484d; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.widget__date { font-size: 30px; line-height: 1; font-weight: 400; color: #1c1c1e; margin: 2px 0 10px; }
.widget__event { display: flex; gap: 7px; margin-top: 6px; }
.widget__event i { width: 3.5px; border-radius: 2px; background: var(--gold); }
.widget__event--alt i { background: var(--olive); }
.widget__event b { display: block; font-size: 12px; color: #1c1c1e; }
.widget__event span { display: block; font-size: 11px; color: #6c6c70; }
.widget--weather { background: linear-gradient(180deg, #5d7ea8, #8ea7c4); color: #fff; }
.widget__place { font-size: 13px; font-weight: 600; }
.widget__temp { font-size: 42px; font-weight: 300; line-height: 1.05; }
.widget__sun { margin-top: 12px; }
.widget__desc { font-size: 11px; font-weight: 600; margin-top: 4px; line-height: 1.35; }

.home__grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 20px; column-gap: 8px; justify-items: center; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.app__icon {
  width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22); transition: transform .15s;
}
.app__icon svg { width: 36px; height: 36px; }
.app:active .app__icon { transform: scale(.92); }
.app__label { font-family: -apple-system, "SF Pro Text", var(--sans); font-size: 11.5px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); white-space: nowrap; }
.app.bump .app__icon { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(.88); } }

.app--dhr .app__icon { background: var(--navy); }
.app--dhr .app__icon img { width: 100%; height: 100%; border-radius: 15px; }
.app__hint {
  position: absolute; top: 96px; left: 50%; transform: translateX(-24px); z-index: 2;
  background: var(--gold); color: var(--navy); font-family: var(--sans); font-weight: 600; font-size: 13px;
  padding: 7px 10px; white-space: nowrap; pointer-events: none;
  animation: hint 1.8s ease-in-out infinite;
}
.app__hint::after { content: ""; position: absolute; left: 18px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--gold); }
.app--dhr .app__icon::after {
  content: ""; position: absolute; inset: -5px; border-radius: 19px; border: 2px solid var(--gold);
  animation: ring 1.8s ease-out infinite; pointer-events: none;
}
.app--dhr .app__icon { position: relative; overflow: visible; }
.app--dhr.seen .app__icon::after, .app--dhr.seen .app__hint { display: none; }
@keyframes hint { 50% { transform: translate(-24px, 4px); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.2); } }

.ic-camera { background: linear-gradient(#e9e9ec, #c9c9ce); }
.ic-photos { background: #fff; }
.ic-maps { background: linear-gradient(135deg, #9fd59a, #63b0e5); }
.ic-notes { background: linear-gradient(#ffd85a 0 26%, #fffdf6 26%); }
.ic-clock { background: #111; }
.ic-calc { background: #1c1c1e; }
.ic-settings { background: linear-gradient(#8e8e93, #636366); }
.ic-phone { background: linear-gradient(#5ef37c, #29c24a); }
.ic-browser { background: #fff; }
.ic-messages { background: linear-gradient(#5ef37c, #29c24a); }
.ic-mail { background: linear-gradient(#5ab8ff, #1f7ae0); }

.home__search {
  margin: auto auto 14px; display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 20px; font-family: -apple-system, var(--sans); font-size: 13px; font-weight: 500;
  color: #fff; background: rgba(255, 255, 255, .26); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dock {
  margin: 0 -12px 12px; padding: 16px 18px; border-radius: 36px;
  display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center;
  background: rgba(255, 255, 255, .25); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

/* ---------- App-venster ---------- */
.appwin {
  position: absolute; inset: 0; z-index: 20;
  background: var(--cream-2); overflow: hidden;
  border-radius: 54px;
  opacity: 0; pointer-events: none;
  transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(.14);
  transition: transform .5s var(--ease), opacity .25s, border-radius .5s var(--ease);
}
.app-open .appwin { opacity: 1; pointer-events: auto; transform: none; border-radius: 0; }
.splash {
  position: absolute; inset: 0; z-index: 40; background: var(--cream-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  transition: opacity .4s;
}
.splash img { width: 230px; }
.splash__bar { width: 120px; height: 3px; background: var(--line); overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.splash.gone { opacity: 0; pointer-events: none; }

.views { position: absolute; inset: 0; overflow: hidden; }
.view {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--cream-2); overflow: hidden;
  transition: transform .42s var(--ease), filter .42s var(--ease);
  will-change: transform;
}
.view.is-right { transform: translateX(100%); }
.view.is-left { transform: translateX(-30%); filter: brightness(.94); }
.view.is-up { transform: translateY(100%); }
.view.no-anim { transition: none; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* Kop */
.hdr { padding: calc(var(--safe-top) + 4px) 16px 14px; background: var(--cream-2); border-bottom: 1px solid var(--line); flex: none; }
.hdr__back {
  display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px -6px; padding: 4px 6px;
  font-size: 16px; font-weight: 500; color: var(--navy-2);
}
.hdr__back svg { width: 22px; height: 22px; }
.hdr__back:active { opacity: .6; }
.hdr h1 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 0; }
.hdr h1 .nr { color: var(--olive-dark); }
.hdr__sub { margin: 3px 0 0; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Inloggen ---------- */
.login { background: var(--cream); }
.login__hero { height: 300px; position: relative; flex: none; background: url(assets/img/login-hero.jpg) center 35% / cover; }
.login__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 26, 66, .55) 0%, rgba(21, 26, 66, .05) 45%, rgba(21, 26, 66, .0) 70%); }
.login__card { position: relative; margin: -86px 16px 0; background: #fff; padding: 26px 22px 22px; box-shadow: 0 14px 40px -18px rgba(21, 26, 66, .35); }
.login__card .logo { width: 170px; margin: 0 0 20px; }
.login__card h1 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin: 0 0 4px; }
.login__card > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
.field__ctrl { position: relative; display: block; }
.input {
  width: 100%; height: 50px; padding: 0 14px; font-size: 16px; color: var(--navy);
  border: 1px solid #d5d0c1; background: var(--cream-2); border-radius: 2px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(225, 169, 40, .35); }
.input.has-error { border-color: var(--rust); }
.field__eye { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); }
.field__eye svg { width: 20px; height: 20px; }
.btn-primary {
  width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: var(--navy); font-weight: 600; font-size: 17px;
  transition: background .2s, color .2s, opacity .2s;
}
.btn-primary:active { background: var(--navy); color: var(--gold); }
.btn-primary[disabled], .btn-primary.is-disabled { opacity: .45; }
.btn-primary svg { width: 20px; height: 20px; }
.link { display: block; margin: 16px auto 0; color: var(--navy-2); font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; margin: 0 0 14px; font-size: 14px; line-height: 1.4; background: var(--rust-soft); color: #7d2d19; }
.alert svg { width: 18px; height: 18px; margin-top: 1px; }
.alert--ok { background: var(--olive-soft); color: #4b4a0c; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo { padding: 22px 16px calc(var(--safe-bottom) + 10px); }
.demo__title { color: var(--olive-dark); font-weight: 600; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 10px 2px; }
.demo__list { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.demo__list::-webkit-scrollbar { display: none; }
.persona {
  flex: none; width: 112px; padding: 12px 10px 11px; background: #fff; border: 1px solid var(--line);
  text-align: left; transition: border-color .15s, transform .1s;
}
.persona:active { transform: scale(.97); }
.persona.is-active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.persona img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.persona b { display: block; font-size: 13.5px; line-height: 1.2; font-weight: 600; }
.persona span { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 6px; background: var(--cream); }
.persona span.r-Uitvoerder { background: var(--navy); color: var(--gold); }
.persona span.r-Geblokkeerd { background: var(--rust-soft); color: var(--rust); }

/* ---------- Projecten ---------- */
.proj-hdr { background: var(--navy); color: #fff; padding: calc(var(--safe-top) + 6px) 16px 16px; flex: none; position: relative; overflow: hidden; }
.proj-hdr::after {
  content: ""; position: absolute; right: -40px; top: 10px; width: 210px; height: 210px; opacity: .08;
  background: url(assets/img/apple-touch-icon.png) center / contain no-repeat; pointer-events: none;
}
.proj-hdr__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.proj-hdr__hello { font-size: 15px; color: rgba(255, 255, 255, .75); }
.proj-hdr__hello b { color: var(--gold); font-weight: 600; }
.proj-hdr h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 2px 0 14px; position: relative; z-index: 1; }
.avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.search { position: relative; z-index: 1; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; height: 46px; border-color: transparent; background: #fff; }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: none; place-items: center; color: var(--muted); }
.search__clear svg { position: static; transform: none; width: 16px; height: 16px; }
.search.has-value .search__clear { display: grid; }
.proj-hdr .search .input:focus { box-shadow: 0 0 0 3px rgba(225, 169, 40, .55); }

.seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding: 3px; background: rgba(255, 255, 255, .1); position: relative; z-index: 1; }
.seg button { height: 36px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .8); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.is-active { background: var(--gold); color: var(--navy); font-weight: 600; }
.seg button em { font-style: normal; font-size: 12px; opacity: .75; }

.list-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 8px; font-size: 13px; color: var(--muted); }
.list-meta b { color: var(--olive-dark); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.projects { padding: 0 12px calc(var(--safe-bottom) + 16px); display: grid; gap: 10px; }
.pcard { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.pcard__body { min-width: 0; padding: 12px 14px 10px; cursor: pointer; }
.pcard__body:active { background: var(--cream-2); }
.pcard__head { display: flex; align-items: center; gap: 6px; }
.pcard__title { font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--olive-dark); margin: 7px 0 5px; }
.pcard__row { display: flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1.35; color: #3b4062; margin-top: 2px; }
.pcard__row svg { width: 14px; height: 14px; color: var(--olive); flex: none; }
.pcard__row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__nr { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; background: var(--navy); color: #fff; }
.pcard__pending { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; background: var(--gold-soft); color: #7a5a08; }
.pcard__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 10px 10px 14px; }
.pcard__book, .pcard__eye { height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 15px; font-weight: 600; }
.pcard__book { background: var(--gold); color: var(--navy); }
.pcard__book:active { background: var(--navy); color: var(--gold); }
.pcard__eye { padding: 0 14px; border: 1px solid var(--line); color: var(--navy); background: var(--cream-2); }
.pcard__book svg, .pcard__eye svg { width: 19px; height: 19px; }
.pcard__eye:active { background: var(--navy); color: var(--gold); }
.empty { text-align: center; padding: 40px 28px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.empty svg { width: 34px; height: 34px; color: var(--olive); margin: 0 auto 10px; display: block; }
mark { background: var(--gold-soft); color: inherit; padding: 0 1px; }

/* ---------- Materialen boeken ---------- */
.badge { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--navy); color: var(--gold); }
.badge.pop { animation: pop .4s; }
@keyframes pop { 40% { transform: scale(1.35); } }
.review__list { background: #fff; border-top: 1px solid var(--line); }
.btn-primary .badge { margin-left: 2px; }

.phase-h {
  position: sticky; top: 0; z-index: 2;
  padding: 12px 16px 6px; background: var(--cream-2); border-bottom: 1px solid var(--line);
}
.phase-h__cols { margin-top: 4px !important; }
.phase-h__name { font-weight: 600; font-size: 14px; }
.phase-h__name em { font-style: normal; color: var(--olive-dark); margin-right: 6px; font-weight: 700; }
.phase-h__col { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-align: right; text-transform: uppercase; }
.phase-h__col--tb { text-align: center; }

.pline { padding: 10px 16px 11px; border-bottom: 1px solid var(--line-2); background: #fff; transition: background .4s; }
.pline.flash { background: var(--gold-soft); }
.pline__desc { font-size: 15px; line-height: 1.3; font-weight: 500; }
.pline__grid { display: grid; grid-template-columns: 1fr 46px 56px 72px 74px; column-gap: 6px; align-items: center; margin-top: 6px; }
.unit { font-size: 12.5px; color: var(--muted); }
.unit b { display: inline-block; font-weight: 600; color: var(--navy); background: var(--cream); padding: 1px 6px; margin-right: 6px; }
.num { text-align: right; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.num--muted { color: var(--muted); }
.qty {
  width: 100%; height: 40px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid #d5d0c1; background: var(--cream-2); border-radius: 2px; outline: none; padding: 0 4px;
}
.qty:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(225, 169, 40, .35); }
.qty.is-neg { color: var(--rust); }
.qty.shake { animation: shake .35s; border-color: var(--rust); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.save-btn { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 600; }
.save-btn svg { width: 16px; height: 16px; }
.save-btn:active { background: var(--navy); color: var(--gold); }
.pline__note { margin-top: 6px; font-size: 12.5px; color: #7a5a08; display: flex; gap: 5px; align-items: center; }
.pline__note svg { width: 14px; height: 14px; }

.tline { display: grid; grid-template-columns: 1fr 82px 34px; gap: 8px; align-items: center; padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--line-2); }
.tline.new { animation: newrow 1.2s; }
@keyframes newrow { from { background: var(--gold-soft); } to { background: #fff; } }
.tline__desc { font-size: 14.5px; line-height: 1.3; font-weight: 500; }
.tline__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tline__meta .ret { color: var(--rust); font-weight: 600; }
.tline__meta .extra { color: var(--olive-dark); font-weight: 600; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { color: var(--rust); }
.tphase { padding: 8px 16px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive-dark); background: #fff; }

.toolbar {
  flex: none; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; align-items: center;
  padding: 8px 12px calc(var(--safe-bottom) + 4px); background: var(--navy);
}
.tool { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; font-size: 12px; font-weight: 500; }
.tool svg { width: 22px; height: 22px; color: var(--gold); }
.tool:active { opacity: .7; }
.tool--main { flex-direction: row; gap: 8px; background: var(--gold); color: var(--navy); font-size: 15px; font-weight: 600; }
.tool--main svg { color: var(--navy); }
.tool--main.is-disabled { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .45); }
.tool--main.is-disabled svg { color: rgba(255, 255, 255, .45); }
.tool--main .badge { background: var(--navy); color: var(--gold); height: 22px; min-width: 22px; font-size: 12px; }
.tool--main.is-disabled .badge { display: none; }

/* ---------- Materialen zoeken ---------- */
.search-row { display: grid; grid-template-columns: 1fr 46px; gap: 8px; margin-top: 12px; }
.hdr .search .input { background: #fff; border-color: #d5d0c1; }
.fav-toggle { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #d5d0c1; background: #fff; color: var(--muted); transition: background .2s, color .2s; }
.fav-toggle svg { width: 22px; height: 22px; }
.fav-toggle.is-on { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.arts { background: #fff; }
.art { display: grid; grid-template-columns: 1fr 44px 20px; gap: 6px; align-items: center; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line-2); width: 100%; text-align: left; }
.art:active { background: var(--cream-2); }
.art__desc { font-size: 15.5px; line-height: 1.3; font-weight: 500; }
.art__meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.star { width: 44px; height: 44px; display: grid; place-items: center; color: #c7c1ae; }
.star svg { width: 22px; height: 22px; }
.star.is-on { color: var(--gold); }
.star.pop svg { animation: pop .4s; }
.chev { color: #c7c1ae; }
.chev svg { width: 18px; height: 18px; }

/* ---------- Materiaal toevoegen ---------- */
.add { padding: 18px 16px 24px; }
.add__card { background: #fff; border: 1px solid var(--line); padding: 18px 16px; }
.add__eyebrow { color: var(--olive-dark); font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.add__title { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; margin: 6px 0 10px; }
.add__facts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 4px 9px; background: var(--cream); font-weight: 500; }
.chip b { font-weight: 700; }
.section-label { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.section-label span { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.req { color: var(--rust); }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; background: #fff; border: 1px solid var(--line); }
.stepper button { height: 64px; display: grid; place-items: center; color: var(--navy); }
.stepper button svg { width: 24px; height: 24px; }
.stepper button:active { background: var(--cream); }
.stepper input { border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 26px; font-weight: 600; outline: none; min-width: 0; font-variant-numeric: tabular-nums; background: #fff; }
.stepper input:focus { background: var(--cream-2); }
.stepper input.is-neg { color: var(--rust); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 2px 0; line-height: 1.4; }
.hint.err { color: var(--rust); font-weight: 600; }
.phases { background: #fff; border: 1px solid var(--line); }
.phases.has-error { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.phase-opt { display: grid; grid-template-columns: 48px 1fr 24px; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.phase-opt:last-child { border-bottom: 0; }
.phase-opt__code { font-weight: 700; color: var(--olive-dark); font-variant-numeric: tabular-nums; }
.phase-opt__desc { font-size: 15.5px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7c1ae; display: grid; place-items: center; }
.phase-opt.is-on { background: var(--cream-2); }
.phase-opt.is-on .radio { border-color: var(--navy); }
.phase-opt.is-on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.footer-cta { flex: none; padding: 12px 16px calc(var(--safe-bottom) + 6px); background: var(--cream-2); border-top: 1px solid var(--line); }

/* ---------- Geboekte materialen ---------- */
.banner {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 12px 0; padding: 12px 14px;
  background: var(--olive); color: #fff; font-size: 14.5px; line-height: 1.4;
  animation: bannerIn .45s var(--ease);
  transition: opacity .4s, margin .4s, padding .4s, max-height .4s; max-height: 120px; overflow: hidden;
}
.banner svg { width: 20px; height: 20px; margin-top: 1px; }
.banner b { display: block; font-weight: 600; font-size: 15.5px; }
.banner.gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; }
@keyframes bannerIn { from { transform: translateY(-14px); opacity: 0; } }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 12px 4px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 10px 12px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.bphase { margin-top: 12px; }
.bline { padding: 10px 16px 10px; border-bottom: 1px solid var(--line-2); background: #fff; }
.bline__grid { display: grid; grid-template-columns: 1fr 52px 58px 78px; column-gap: 6px; align-items: center; margin-top: 4px; }
.bline__tb { text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.bline__tb.is-neg { color: var(--rust); }
.bline__tb.is-zero { color: var(--olive-dark); }
.bar { height: 4px; background: var(--line-2); margin-top: 8px; position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--olive); }
.bar i.over { background: var(--rust); }
.bar s { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, var(--gold) 0 4px, #f2d38a 4px 8px); }
.syncing { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: #7a5a08; font-weight: 500; }
.syncing .spinner { width: 12px; height: 12px; border-width: 2px; }
.unplanned { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--olive-dark); background: var(--olive-soft); padding: 1px 5px; margin-left: 4px; text-transform: uppercase; vertical-align: 1px; }
.legend { padding: 14px 18px calc(var(--safe-bottom) + 18px); font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Overlays: dialoog, sheet, toast, loader ---------- */
.overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(21, 26, 66, .45); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.scrim.in { opacity: 1; }
.dialog {
  position: absolute; left: 32px; right: 32px; top: 50%; transform: translateY(-46%) scale(.96); opacity: 0;
  background: #fff; padding: 24px 20px 18px; text-align: center; pointer-events: auto;
  transition: transform .3s var(--ease), opacity .2s;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.dialog.in { transform: translateY(-50%); opacity: 1; }
.dialog__icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--gold-soft); color: #8a6206; border-radius: 50%; }
.dialog__icon svg { width: 26px; height: 26px; }
.dialog__icon--warn { background: var(--rust-soft); color: var(--rust); }
.dialog h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 6px; }
.dialog p { margin: 0 0 20px; color: #3b4062; font-size: 15.5px; line-height: 1.45; }
.dialog__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog__btns button { height: 50px; font-weight: 600; font-size: 16px; }
.dialog__no { box-shadow: inset 0 0 0 1px #cfc9b8; }
.dialog__yes { background: var(--gold); color: var(--navy); }
.dialog__yes:active { background: var(--navy); color: var(--gold); }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--cream-2); pointer-events: auto;
  padding: 10px 18px calc(var(--safe-bottom) + 14px); transform: translateY(100%); transition: transform .38s var(--ease);
  border-radius: 18px 18px 0 0;
}
.sheet.in { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: #d6d1c3; margin: 0 auto 16px; }
.profile { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--gold); }
.profile h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0; }
.profile p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.kv { background: #fff; border: 1px solid var(--line); margin-bottom: 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.role { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 7px; margin-left: 4px; background: var(--cream); }
.role--Uitvoerder { background: var(--navy); color: var(--gold); }
.role--Beheerder { background: var(--olive); color: #fff; }
.btn-outline { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 0 0 1px #cfc9b8; font-weight: 600; background: #fff; }
.btn-outline svg { width: 18px; height: 18px; }
.version { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

.toast {
  pointer-events: none; z-index: 35;
  position: absolute; left: 50%; bottom: 112px; transform: translate(-50%, 16px); opacity: 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 500; padding: 11px 16px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), opacity .25s;
}
.toast svg { width: 18px; height: 18px; color: var(--gold); }
.toast.in { transform: translate(-50%, 0); opacity: 1; }

.loader {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(250, 249, 246, .94); pointer-events: auto; opacity: 0; transition: opacity .25s; text-align: center;
}
.loader.in { opacity: 1; }
.loader .spinner { width: 38px; height: 38px; border-width: 3px; color: var(--gold); }
.loader b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.loader span { color: var(--muted); font-size: 14.5px; margin-top: -10px; }
.loader__steps { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); text-align: left; }
.loader__steps div { display: flex; gap: 8px; align-items: center; opacity: .35; transition: opacity .3s; }
.loader__steps div.done { opacity: 1; color: var(--navy); }
.loader__steps svg { width: 16px; height: 16px; color: var(--olive); }

@media (max-width: 900px) and (min-width: 561px) {
  .stage { grid-template-columns: auto; }
  .brief { display: none; }
}
/* ---------- Kleine schermen: echte telefoon, geen frame ---------- */
@media (max-width: 560px) {
  .stage { display: block; padding: 0; }
  .brief { display: none; }
  .device-wrap { width: 100vw !important; height: 100dvh !important; }
  .device { width: 100vw; height: 100dvh; padding: 0; border-radius: 0; transform: none; background: none; box-shadow: none; }
  .device__btn { display: none; }
  .screen { width: 100vw; height: 100dvh; border-radius: 0; }
  .statusbar, .island { display: none; }
  :root { --safe-top: max(env(safe-area-inset-top), 14px); --safe-bottom: max(env(safe-area-inset-bottom), 16px); }
  .appwin { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
