body.portaal {
  background: var(--bg);
}
body.portaal .app {
  background:
    radial-gradient(
      1200px 600px at 85% -10%,
      rgba(212, 176, 120, .08),
      transparent 60%),
    var(--bg);
  color: var(--ink);
}
body.portaal .main {
  padding: 30px clamp(16px, 3vw, 40px) 120px;
}
body.portaal .main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  letter-spacing: .01em;
  color: var(--heat);
  margin: 0;
}
body.portaal .main h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--heat);
  font-size: 1.45rem;
}
body.portaal .main h3 {
  color: var(--heat);
}
body.portaal .main .top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
body.portaal .main .top .sp {
  flex: 1;
}
body.portaal .panel {
  background:
    linear-gradient(
      180deg,
      rgba(255, 239, 210, .035),
      rgba(255, 239, 210, 0) 40%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
  color: var(--ink);
}
body.portaal .panel p,
body.portaal .main li {
  color: var(--ink-2);
}
body.portaal .muted,
body.portaal .note {
  color: var(--stone) !important;
}
body.portaal .note {
  background: rgba(212, 176, 120, .06);
  border-left: 2px solid var(--amber);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}
body.portaal a {
  color: var(--amber);
}
body.portaal .side {
  background: var(--bg);
  box-shadow: inset -1px 0 0 var(--line);
  height: 100vh;
  height: 100dvh;
}
body.portaal .side a {
  border-radius: 0 10px 10px 0;
}
body.portaal .side .badge {
  margin-left: auto;
  background: var(--amber);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.portaal .app .btn-o {
  color: var(--ink);
  border-color: var(--line);
}
body.portaal .app .btn-o:hover {
  border-color: var(--amber);
  background: rgba(212, 176, 120, .08);
}
body.portaal .app .btn-d {
  background: var(--surface);
  color: var(--heat);
  border: 1px solid var(--line);
}
body.portaal .app .btn-d:hover {
  background: var(--surface);
}
body.portaal .btn,
body.portaal button {
  min-height: 44px;
}
body.portaal .btn-s {
  min-height: 40px;
}
body.portaal table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}
body.portaal th {
  color: var(--stone);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
body.portaal td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
body.portaal tr.klik {
  cursor: pointer;
}
body.portaal tr.klik:hover td {
  background: rgba(212, 176, 120, .05);
}
body.portaal td a {
  color: var(--heat);
}
body.portaal .tbl-w {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.portaal .main input,
body.portaal .main select,
body.portaal .main textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  min-height: 46px;
  font-size: 16px;
  padding: 10px 12px;
  width: 100%;
}
body.portaal .main input[type=checkbox],
body.portaal .main input[type=radio] {
  width: 22px;
  height: 22px;
  min-height: 0;
  accent-color: var(--amber);
}
body.portaal .main label {
  color: var(--ink-2);
  font-size: .86rem;
  display: block;
  margin: 10px 0 6px;
}
body.portaal .main label.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  cursor: pointer;
}
body.portaal .main input:focus,
body.portaal .main select:focus,
body.portaal .main textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
body.portaal .pill {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
body.portaal .pill.p-ok {
  background: rgba(201, 180, 140, .14);
  color: var(--glass);
  border-color: rgba(201, 180, 140, .35);
}
body.portaal .pill.p-warn {
  background: rgba(212, 176, 120, .14);
  color: #f2c27a;
  border-color: rgba(212, 176, 120, .4);
}
body.portaal .pill.p-info {
  background: rgba(120, 160, 200, .12);
  color: #b8cfe6;
  border-color: rgba(120, 160, 200, .3);
}
body.portaal .pill.p-err {
  background: rgba(220, 90, 70, .14);
  color: #f0a597;
  border-color: rgba(220, 90, 70, .35);
}
body.portaal .pill.p-gold {
  background: rgba(212, 176, 120, .1);
  color: var(--amber);
}
body.portaal .kpis {
  gap: 14px;
}
body.portaal .kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
body.portaal .kpi:before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px;
  height: 160px;
  background:
    radial-gradient(
      closest-side,
      rgba(212, 176, 120, .18),
      transparent);
  pointer-events: none;
}
body.portaal .kpi small {
  color: var(--stone);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8125rem;
}
body.portaal .kpi b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.1rem;
  color: var(--heat);
  margin-top: 6px;
  line-height: 1.1;
}
body.portaal .tl li:before {
  background: var(--surface);
}
body.portaal .tl li:after {
  background: var(--surface);
  border-color: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}
body.portaal .tl li.done:after {
  background: var(--glass);
}
body.portaal .tl li b {
  color: var(--ink);
}
body.portaal .tl li small {
  color: var(--stone);
}
.pt-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.pt-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: filter 1.2s var(--ease), transform 8s ease-out;
}
.pt-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(9, 6, 5, .92) 0%,
      rgba(9, 6, 5, .6) 45%,
      rgba(9, 6, 5, .1) 100%);
}
.pt-hero .in {
  padding: 26px 28px;
  max-width: 620px;
}
.pt-hero .eyebrow {
  color: var(--amber);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: .8125rem;
}
.pt-hero h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem) !important;
  margin: .3em 0 .4em;
}
.pt-hero p {
  color: var(--on-dark-2) !important;
  margin: 0 0 14px;
}
.pt-hero .licht {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(9, 6, 5, .6);
  border: 1px solid var(--line);
  color: var(--heat);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .8125rem;
  backdrop-filter: blur(6px);
}
.pt-hero.uit img {
  filter: brightness(.45) saturate(.6);
}
@media (prefers-reduced-motion:no-preference) {
  .pt-hero:hover img {
    transform: scale(1.03);
  }
}
.acties {
  display: grid;
  gap: 10px;
}
.actie {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  min-height: 56px;
}
.actie:hover {
  border-color: var(--amber);
}
.actie i {
  font-style: normal;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212, 176, 120, .12);
  color: var(--amber);
  flex: none;
}
.actie b {
  display: block;
  color: var(--heat);
  font-weight: 600;
}
.actie span {
  color: var(--stone);
  font-size: .86rem;
}
.actie .pijl {
  margin-left: auto;
  color: var(--amber);
}
.stap {
  display: flex;
  gap: 4px;
  margin: 14px 0 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
}
.stap span {
  flex: 1 0 34px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface);
}
.stap span.done {
  background: var(--glass);
}
.stap span.now {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(212, 176, 120, .7);
}
.bel {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--heat);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.1rem;
}
.bel em {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--amber);
  color: var(--accent-text);
  font-style: normal;
  font-weight: 700;
  font-size: .8125rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.meld {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meld.nieuw b {
  color: var(--heat);
}
.meld.nieuw:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 8px;
  flex: none;
}
.boom {
  list-style: none;
  padding: 0;
  margin: 0;
}
.boom li {
  margin: 0;
}
.boom .rm {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.boom .rm > b {
  color: var(--heat);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
}
.boom .wd {
  margin: 10px 0 0 14px;
  padding-left: 14px;
  border-left: 1px dashed var(--line);
}
.platen {
  display: flex;
  gap: 4px;
  margin: 10px 0 4px;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 4px;
}
.platen .pl {
  background-size: cover;
  background-position: center;
  border: 1px solid #6b5140;
  border-radius: 2px;
  color: var(--text);
  font-size: .8125rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3px 4px;
  text-shadow: 0 1px 2px #000;
  flex: none;
  box-shadow: 0 0 18px -6px rgba(212, 176, 120, .6);
}
.rev {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rev .nr {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--amber);
  min-width: 42px;
}
.rev .diff {
  font-size: .84rem;
  color: var(--stone);
}
.rev .diff ins {
  color: var(--glass);
  text-decoration: none;
}
.rev .diff del {
  color: #f0a597;
}
.sig {
  position: relative;
  border: 1px dashed #6b5140;
  border-radius: 12px;
  background: var(--bg);
  touch-action: none;
}
.sig canvas {
  display: block;
  width: 100%;
  height: 150px;
  border-radius: 12px;
  cursor: crosshair;
}
.sig .lbl {
  position: absolute;
  left: 14px;
  bottom: 10px;
  color: #6b5140;
  font-size: .8125rem;
  pointer-events: none;
}
.sig button {
  position: absolute;
  right: 8px;
  top: 8px;
}
body.portaal .paym {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
body.portaal .paym label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 52px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
}
body.portaal .paym label:has(input:checked) {
  border-color: var(--amber);
  background: rgba(212, 176, 120, .08);
}
body.portaal .modal .box {
  background: var(--bg);
  color: var(--ink);
  border-radius: 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--amber);
}
body.portaal .modal .box h2 {
  color: var(--heat);
  font-family: var(--serif);
  font-weight: 400;
}
.chat {
  display: grid;
  gap: 12px;
  max-height: 55vh;
  overflow: auto;
  padding: 4px 2px;
}
.bub {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  line-height: 1.5;
}
.bub.zij {
  justify-self: start;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bub.ik {
  justify-self: end;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #d9842a);
  color: var(--accent-text);
  border-bottom-right-radius: 4px;
}
.bub small {
  display: block;
  opacity: .7;
  font-size: .8125rem;
  margin-bottom: 2px;
}
.bub .bijl {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bub .bijl span,
.bub .bijl img {
  border-radius: 8px;
  font-size: .8125rem;
  background: rgba(0, 0, 0, .25);
  padding: 4px 8px;
}
.bub .bijl img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  padding: 0;
}
.chat-proj {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chat-proj button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
}
.chat-proj button.on {
  border-color: var(--amber);
  color: var(--heat);
  background: rgba(212, 176, 120, .08);
}
.wm {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.wm img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: saturate(1.05);
}
.wm:after {
  content: "CASFER · PREVIEW";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .28);
  font-family: var(--serif);
  letter-spacing: .4em;
  font-size: .9rem;
  transform: rotate(-18deg);
  pointer-events: none;
}
.wm figcaption {
  padding: 10px 12px;
  font-size: .82rem;
  color: var(--stone);
}
.soort {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.soort label {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 0 !important;
  cursor: pointer;
  display: block !important;
  min-height: 44px;
}
.soort label:has(input:checked) {
  border-color: var(--amber);
  background: rgba(212, 176, 120, .07);
}
.soort input {
  position: absolute;
  opacity: 0;
}
.soort b {
  display: block;
  color: var(--heat);
  margin-bottom: 4px;
}
.toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.toggle button {
  background: transparent;
  border: 0;
  color: var(--ink-2);
  padding: 8px 16px;
  cursor: pointer;
}
.toggle button.on {
  background: var(--amber);
  color: var(--accent-text);
  font-weight: 600;
}
body.portaal .grid.g2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
body.portaal .login .fm {
  background: var(--bg);
  color: var(--on-dark);
}
.tabbar {
  display: none;
}
@media (max-width:900px) {
  body.portaal .main {
    padding: 18px 16px calc(110px + env(safe-area-inset-bottom));
  }
  body.portaal .grid.g2 {
    grid-template-columns: 1fr;
  }
  .soort {
    grid-template-columns: 1fr;
  }
  .pt-hero {
    min-height: 300px;
  }
  .pt-hero .in {
    padding: 20px;
  }
  .pt-hero:after {
    background:
      linear-gradient(
        0deg,
        rgba(9, 6, 5, .95) 10%,
        rgba(9, 6, 5, .5) 60%,
        rgba(9, 6, 5, .15));
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(8, 6, 5, .94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a,
  .tabbar button {
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--on-dark-3);
    text-decoration: none;
    font-size: .8125rem;
    min-height: 52px;
    justify-content: center;
    position: relative;
  }
  .tabbar a span,
  .tabbar button span {
    font-size: 1.15rem;
  }
  .tabbar a.on {
    color: var(--amber);
  }
  .tabbar a em {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    background: var(--amber);
    color: var(--accent-text);
    font-style: normal;
    font-size: .8125rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
  }
  body.portaal .bub {
    max-width: 92%;
  }
  body.portaal .paym {
    grid-template-columns: 1fr;
  }
  body.portaal td,
  body.portaal th {
    padding: 10px 8px;
  }
  body.portaal .modal .box {
    padding: 22px 18px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .pt-hero img {
    transition: none;
  }
}
body.portaal a.btn-g,
body.portaal .btn-g {
  color: var(--accent-text);
}
body.portaal a.btn-o {
  color: var(--ink);
}
body.portaal a.btn-d {
  color: var(--heat);
}
body.portaal .side a {
  color: var(--on-dark-2);
}
body.portaal .side a.on,
body.portaal .side a:hover {
  color: var(--heat);
}
body.portaal .tabbar a,
body.portaal .tabbar button {
  color: var(--on-dark-3);
}
body.portaal .tabbar a.on {
  color: var(--amber);
}
body.portaal .actie {
  color: var(--ink);
}
.pt-eyebrow {
  color: var(--amber);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: .8125rem;
  font-weight: 600;
}
.recht th {
  white-space: normal;
  line-height: 1.3;
  min-width: 84px;
}
.mob-top .bel {
  margin-left: auto;
  width: 44px;
  height: 44px;
}
@media (max-width:900px) {
  body.portaal .main .top > .bel {
    display: none;
  }
  body.portaal .main h1 {
    font-size: 2rem;
  }
  .pt-hero:after {
    background:
      linear-gradient(
        0deg,
        rgba(9, 6, 5, .96) 0%,
        rgba(9, 6, 5, .78) 45%,
        rgba(9, 6, 5, .45) 100%);
  }
  .soort {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .soort label {
    padding: 12px;
  }
  .soort label .muted {
    display: none;
  }
}
body.portaal .tl li.now:after {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(212, 176, 120, .25), 0 0 16px rgba(212, 176, 120, .8);
}
body.portaal .tl li.now b {
  color: var(--heat);
}
body.portaal .chk-l li {
  color: var(--ink-2);
}
body.portaal .chk-l li.nee:before {
  background: transparent !important;
  border: 2px solid var(--line-strong) !important;
  color: transparent !important;
}
@media (max-width:900px) {
  body.portaal .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
  }
}
