@font-face {
  font-family: 'Satoshi';
  src: url('/portal-assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/portal-assets/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/portal-assets/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/portal-assets/fonts/Satoshi-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #FBFBF9;
  --ink: #011920;
  --surface: #FFFFFF;
  --surface-2: #F4F6F4;
  --line: #E2E6E5;
  --line-strong: #CFD6D5;
  --text: #011920;
  --muted: #526167;
  --dim: #7C8D92;
  --accent: #FF6B2B;
  --accent-ink: #C2410C;
  --good: #1C6B45;
  --warn: #B4560A;
  --crit: #8A211F;
  --page-pad: clamp(22px, 4vw, 68px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: 'Satoshi', Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  height: 80px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(18px);
}

.brand,
.account-area,
.nav-tabs,
.mobile-nav,
.button,
.team-list li,
.completed-list li,
.delivery-topline,
.meter-legend,
.eyebrow-row,
.section-heading,
.site-footer,
.welcome-line {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  width: max-content;
}

.logo-shell {
  position: relative;
  display: block;
  width: 68px;
  height: 25px;
  overflow: hidden;
  background: transparent;
}

.logo-shell::after { display: none; }

.logo-shell img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-shell > span { display: none; }

.brand-name {
  border-left: 1px solid var(--line);
  padding-left: 11px;
  margin-left: 3px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.brand-name strong {
  color: var(--ink);
  font-weight: 900;
}

.nav-tabs {
  align-self: stretch;
  gap: 7px;
}

.nav-tabs a {
  position: relative;
  display: grid;
  height: 100%;
  padding: 0 13px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-tabs a:hover,
.nav-tabs a[aria-current='page'] {
  color: var(--text);
}

.nav-tabs a[aria-current='page']::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  content: '';
}

.account-area {
  justify-self: end;
  gap: 13px;
}

.tier-chip,
.count-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tier-chip {
  padding: 7px 11px;
}

.tier-chip span {
  color: var(--dim);
}

.company-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.avatar,
.member-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #E6EAE9;
  background: linear-gradient(145deg, #FFFFFF, #F0F3F2);
  font-size: 12px;
}

.mobile-menu,
.mobile-nav {
  display: none;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: clamp(24px, 3vw, 46px);
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 36px var(--page-pad) 72px;
}

.main-column {
  min-width: 0;
}

.welcome-line {
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--dim);
  font-size: 12px;
}

.welcome-line p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(155deg, rgb(255 255 255 / 73%), rgb(255 255 255 / 96%) 48%);
  box-shadow: 0 24px 70px rgb(1 25 32 / 14%);
}

.points-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 45px);
}

.points-card::before {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 350px;
  height: 250px;
  border: 1px solid rgb(28 107 69 / 6%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(28 107 69 / 6%), transparent 68%);
  content: '';
  transform: rotate(-12deg);
}

.eyebrow-row,
.section-heading,
.welcome-line,
.site-footer {
  justify-content: space-between;
}

.eyebrow,
.points-heading p,
.forecast p,
.attention-bar p,
.timezone-note p,
.error-state p {
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.reset-label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.points-heading {
  position: relative;
  z-index: 1;
  margin: 30px 0 36px;
}

.points-heading h1,
.section-heading h2,
.side-heading h2,
.attention-bar h2,
.error-state h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
}

.points-heading h1 {
  max-width: 760px;
  font-size: clamp(34px, 5.2vw, 67px);
}

.points-heading h1 span {
  color: var(--accent);
}

.points-heading p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}

.meter {
  position: relative;
  z-index: 1;
  display: flex;
  height: 13px;
  overflow: hidden;
  border: 1px solid rgb(1 25 32 / 7%);
  border-radius: 999px;
  background: #F4F6F4;
  box-shadow: inset 0 1px 4px rgb(1 25 32 / 14%);
}

.meter span {
  min-width: 2px;
}

.meter span + span {
  border-left: 1.5px solid var(--surface);
}

.meter-used {
  background: #C4CDCB;
}

.meter-rollover {
  background: rgb(255 107 43 / 40%);
}

.meter-remaining {
  background: var(--accent);
}

.meter-legend {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 11px 24px;
  margin-top: 15px;
}

.meter-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.meter-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.meter-legend strong {
  color: var(--text);
  font-weight: 700;
}

.legend-used { background: #C4CDCB; }
.legend-rollover { background: rgb(255 107 43 / 45%); }
.legend-remaining { background: var(--accent); }

.forecast {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 31px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.forecast-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgb(28 107 69 / 25%);
  border-radius: 8px;
  background: rgb(28 107 69 / 7%);
  color: var(--good);
  font-size: 13px;
}

.forecast p {
  max-width: 690px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.forecast strong {
  color: var(--text);
}

.werk-section {
  margin-top: 48px;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h2,
.side-heading h2 {
  margin-top: 7px;
  font-size: 25px;
}

.count-chip {
  padding: 6px 10px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}

.werk-leeg {
  margin: 0;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.werk-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgb(255 255 255 / 76%);
}

.delivery-row {
  padding: 24px 26px 22px;
}

.delivery-row + .delivery-row {
  border-top: 1px solid var(--line);
}

.delivery-topline {
  justify-content: space-between;
  gap: 18px;
}

.delivery-title h3,
.delivery-title span,
.delivery-meta dt,
.delivery-meta dd,
.member-details strong,
.member-details small,
.complete-main strong,
.complete-main small {
  display: block;
}

.delivery-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.delivery-title span {
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
}

.delivery-points {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.delivery-points span {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.delivery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 17px 0 23px;
}

.delivery-meta div {
  min-width: 82px;
}

.delivery-meta dt {
  margin-bottom: 3px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.delivery-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.delivery-meta .waiting-state dd {
  color: var(--warn);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  position: relative;
  padding-top: 19px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.stepper li::before {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: var(--line);
  content: '';
}

.stepper li:first-child::before {
  display: none;
}

.step-dot {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.stepper .done::before,
.stepper .active::before {
  background: var(--good);
}

.stepper .done .step-dot {
  background: var(--good);
  box-shadow: 0 0 0 1px var(--good);
}

.stepper .active,
.stepper .done {
  color: var(--muted);
}

.stepper .active .step-dot {
  background: var(--good);
  box-shadow: 0 0 0 2px rgb(28 107 69 / 22%), 0 0 17px rgb(28 107 69 / 55%);
}

.stepper .active.waiting {
  color: var(--warn);
}

.stepper .active.waiting .step-dot {
  background: var(--warn);
  box-shadow: 0 0 0 2px rgb(180 86 10 / 20%), 0 0 17px rgb(180 86 10 / 55%);
}

.attention-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin-top: 19px;
  padding: 20px 22px;
  border: 1px solid rgb(180 86 10 / 26%);
  border-radius: 14px;
  background: linear-gradient(100deg, rgb(180 86 10 / 12%), rgb(180 86 10 / 5%));
}

.attention-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(180 86 10 / 30%);
  border-radius: 50%;
  background: rgb(180 86 10 / 10%);
}

.attention-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 13px rgb(180 86 10 / 65%);
}

.attention-bar .eyebrow {
  color: var(--warn);
}

.attention-bar h2 {
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: -.02em;
}

.attention-bar p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar {
  min-width: 0;
}

.side-actions {
  display: grid;
  gap: 9px;
  margin: 28px 0 18px;
}

/* WorkTask-tab: knoppenrij boven de voortgangslijst. Op smal onder elkaar. */
.worktask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.worktask-actions .button {
  flex: 1 1 auto;
}

.worktask-page .attention-bar {
  margin-bottom: 22px;
}

.button {
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.nav-tabs a:focus-visible,
.brand:focus-visible,
.mobile-menu:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.button-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(255 107 43 / 15%);
}

.button-accent:active {
  background: var(--accent-ink);
  transform: translateY(1px);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-ghost:active {
  background: rgb(1 25 32 / 5%);
}

.button-light {
  min-width: 108px;
  min-height: 38px;
  background: var(--ink);
  color: #FFFFFF;
}

.plus {
  font-size: 18px;
  font-weight: 500;
  line-height: .7;
}

.side-card {
  padding: 24px;
}

.side-card + .side-card {
  margin-top: 17px;
}

.side-heading {
  margin-bottom: 20px;
}

.side-heading h2 {
  font-size: 22px;
}

.team-list,
.completed-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-list li {
  position: relative;
  gap: 11px;
  padding: 10px 0;
}

.team-list li + li,
.completed-list li + li {
  border-top: 1px solid rgb(255 255 255 / 65%);
}

.member-avatar {
  width: 34px;
  height: 34px;
  background: #E6EAE9;
  color: #526167;
  font-size: 9px;
}

.member-1 { background: linear-gradient(145deg, #715548, #EEF1F0); }
.member-2 { background: linear-gradient(145deg, #526167, #EEF1F0); }
.member-3 { background: linear-gradient(145deg, #526167, #EEF1F0); }

.member-details {
  min-width: 0;
}

.member-details strong,
.complete-main strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-details small,
.complete-main small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
}

.contact-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 9px rgb(28 107 69 / 45%);
}

.timezone-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.time-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(1 25 32 / 14%);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.timezone-note p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.completed-list li {
  gap: 10px;
  padding: 12px 0;
}

.complete-check {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgb(28 107 69 / 24%);
  border-radius: 50%;
  background: rgb(28 107 69 / 7%);
  color: var(--good);
  font-size: 9px;
}

.complete-main {
  min-width: 0;
  flex: 1;
}

.complete-main strong {
  font-size: 10px;
}

.complete-points {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.site-footer {
  min-height: 64px;
  padding: 18px var(--page-pad);
  border-top: 1px solid rgb(255 255 255 / 45%);
  color: var(--dim);
  font-size: 9px;
}

.site-footer span:first-child {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.boot-state,
.error-state {
  display: grid;
  min-height: 100vh;
  place-content: center;
  place-items: center;
  gap: 15px;
  text-align: center;
}

.boot-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px 6px 16px 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -.07em;
}

.boot-state p {
  color: var(--muted);
  font-size: 13px;
}

.error-state {
  padding: 30px;
}

.error-state h1 {
  font-size: 34px;
}

.error-state p {
  color: var(--muted);
}

.request-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 34px var(--page-pad) 88px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: color 150ms ease;
}

.back-link:hover {
  color: var(--text);
}

.request-intro {
  max-width: 760px;
  margin: 45px 0 37px;
}

.request-intro h1 {
  margin: 9px 0 13px;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

.request-intro > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

.request-form {
  overflow: hidden;
  background: rgb(255 255 255 / 78%);
}

.form-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 17px;
  margin: 0;
  padding: 31px 34px;
  border: 0;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.section-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(255 255 255 / 42%);
  color: var(--dim);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}

.form-section-content {
  min-width: 0;
}

.field-label {
  display: block;
  margin: 5px 0 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.015em;
}

.field-label span {
  margin-left: 5px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
}

.field-hint {
  margin: 9px 0 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.5;
}

.field-hint.above {
  margin: -5px 0 14px;
}

.request-form select,
.request-form textarea,
.request-form input[type='text'] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: #FFFFFF;
  color: var(--text);
  font-size: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.request-form select,
.request-form input[type='text'] {
  height: 47px;
  padding: 0 15px;
}

.request-form textarea {
  min-height: 112px;
  padding: 14px 15px;
  line-height: 1.55;
  resize: vertical;
}

.request-form select:focus,
.request-form textarea:focus,
.request-form input[type='text']:focus {
  border-color: #D7DEDD;
  box-shadow: 0 0 0 3px rgb(1 25 32 / 14%);
}

.request-form [aria-invalid='true'] {
  border-color: var(--crit);
}

.request-form ::placeholder {
  color: var(--dim);
  opacity: .72;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: '';
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.request-form select {
  padding-right: 38px;
  appearance: none;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.choice-chip,
.radio-card {
  position: relative;
  cursor: pointer;
}

.choice-chip input,
.radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-chip > span {
  display: grid;
  min-height: 57px;
  place-content: center;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 43%);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.choice-chip:hover > span,
.radio-card:hover > span {
  transform: translateY(-1px);
  border-color: #E6EAE9;
}

.choice-chip strong {
  font-size: 12px;
  font-weight: 900;
}

.choice-chip small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.choice-chip input:checked + span {
  border-color: rgb(28 107 69 / 47%);
  background: rgb(28 107 69 / 8%);
  box-shadow: inset 0 0 0 1px rgb(28 107 69 / 7%);
}

.choice-chip input:checked + span strong,
.choice-chip input:checked + span small {
  color: var(--good);
}

.choice-chip input:focus-visible + span,
.radio-card input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.urgency-grid {
  display: grid;
  gap: 8px;
}

.radio-card > span {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 11px 15px 11px 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 43%);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.radio-card > span::before {
  position: absolute;
  left: 17px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  content: '';
}

.radio-card > span::after {
  position: absolute;
  left: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  content: '';
  opacity: 0;
  transform: scale(.35);
  transition: opacity 140ms ease, transform 140ms ease;
}

.radio-card strong {
  font-size: 11px;
  font-weight: 700;
}

.radio-card small {
  color: var(--dim);
  font-size: 9px;
}

.radio-card input:checked + span {
  border-color: rgb(28 107 69 / 38%);
  background: rgb(28 107 69 / 7%);
}

.radio-card input:checked + span::before {
  border-color: var(--good);
}

.radio-card input:checked + span::after {
  opacity: 1;
  transform: scale(1);
}

.field-error {
  margin: 8px 0 0;
  color: var(--crit);
  font-size: 9px;
  font-weight: 700;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 25px 34px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 50%);
}

.form-submit-row p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.submit-button {
  flex: 0 0 auto;
  min-width: 185px;
}

.button:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.calculator-column {
  position: sticky;
  top: 112px;
}

.calculator-card {
  padding: 27px;
  background: linear-gradient(155deg, rgb(255 255 255 / 94%), rgb(255 255 255 / 98%));
}

.calculator-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.calculator-heading h2 {
  margin: 7px 0 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.balance-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgb(28 107 69 / 24%);
  border-radius: 999px;
  background: rgb(28 107 69 / 7%);
  color: var(--good);
  font-size: 9px;
  font-weight: 900;
}

.calculation-lines {
  display: grid;
  gap: 14px;
  margin: 23px 0 0;
}

.calculation-lines div,
.calculation-total,
.remaining-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.calculation-lines dt,
.calculation-lines dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.calculation-lines dt span {
  color: var(--dim);
  font-size: 8px;
}

.calculation-lines dd {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 900;
}

.calculation-lines .free-label {
  color: var(--good);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.calculation-total {
  margin-top: 24px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculation-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.calculation-total strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.remaining-box {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin-top: 17px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 40%);
}

.remaining-box span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.remaining-box strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.remaining-box.is-short {
  border-color: rgb(180 86 10 / 32%);
  background: rgb(180 86 10 / 6%);
}

.remaining-box.is-short strong {
  color: var(--warn);
}

.shortage-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 13px;
  padding: 13px;
  border: 1px solid rgb(180 86 10 / 26%);
  border-radius: 10px;
  background: rgb(180 86 10 / 7%);
}

.shortage-warning[hidden] {
  display: none;
}

.warning-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgb(180 86 10 / 32%);
  border-radius: 50%;
  color: var(--warn);
  font-size: 9px;
  font-weight: 900;
}

.shortage-warning strong {
  display: block;
  color: var(--warn);
  font-size: 10px;
}

.shortage-warning p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.policy-note {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.55;
  text-align: center;
}

.success-dialog {
  position: fixed;
  z-index: 50;
  right: 25px;
  bottom: 25px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  width: min(560px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgb(28 107 69 / 34%);
  border-radius: 14px;
  background: #EEF1F0;
  box-shadow: 0 25px 70px rgb(255 255 255 / 45%);
}

.success-dialog[hidden] {
  display: none;
}

.success-dialog.is-error {
  border-color: rgb(138 33 31 / 35%);
}

.success-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--good);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.success-dialog.is-error .success-icon {
  background: var(--crit);
}

.success-dialog strong,
.success-dialog p {
  display: block;
  margin: 0;
}

.success-dialog strong {
  font-size: 11px;
  font-weight: 900;
}

.success-dialog p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.success-dialog .button {
  min-height: 36px;
  font-size: 9px;
}

.stub-shell {
  display: grid;
  grid-template-rows: auto 1fr;
}

.stub-state {
  display: grid;
  min-height: calc(100vh - 80px);
  padding: 40px var(--page-pad);
  place-items: center;
  text-align: center;
}

.stub-state p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    order: 3;
    grid-column: 1 / -1;
    height: 42px;
    justify-content: center;
  }

  .topbar {
    height: 116px;
    padding-top: 12px;
  }

  .company-name {
    display: none;
  }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }

  .side-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }

  .side-card + .side-card {
    margin-top: 0;
  }

  .request-layout {
    grid-template-columns: 1fr;
  }

  .calculator-column {
    position: static;
    order: -1;
  }

  .calculator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .calculator-heading,
  .policy-note,
  .shortage-warning {
    grid-column: 1 / -1;
  }

  .calculation-total {
    align-self: end;
  }
}

@media (max-width: 650px) {
  :root {
    --page-pad: 18px;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    height: 68px;
    padding-top: 0;
  }

  .brand-name,
  .tier-chip,
  .account-area .avatar,
  .nav-tabs {
    display: none;
  }

  .account-area {
    justify-self: end;
  }

  .company-name {
    display: block;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu {
    display: grid;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }

  .mobile-menu span {
    width: 15px;
    height: 1px;
    background: var(--text);
  }

  .mobile-nav {
    position: sticky;
    z-index: 19;
    top: 68px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 13px 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-nav a[aria-current='page'] {
    color: var(--accent);
  }

  .dashboard {
    padding-top: 20px;
  }

  .points-card {
    border-radius: 14px;
  }

  .points-heading {
    margin: 24px 0 28px;
  }

  .meter-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .delivery-row {
    padding: 21px 17px;
  }

  .delivery-meta {
    gap: 10px 20px;
  }

  .step-label {
    display: none;
  }

  .stepper li {
    padding-top: 10px;
  }

  .attention-bar {
    grid-template-columns: auto 1fr;
  }

  .attention-bar .button {
    grid-column: 1 / -1;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .side-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .request-page {
    padding-top: 23px;
  }

  .request-intro {
    margin: 34px 0 27px;
  }

  .request-intro h1 {
    font-size: 42px;
  }

  .form-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 25px 18px;
  }

  .section-number {
    width: 27px;
    height: 27px;
  }

  .ratio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }

  .form-submit-row p {
    max-width: none;
  }

  .calculator-card {
    display: block;
    padding: 22px;
  }

  .calculator-heading {
    gap: 9px;
  }

  .balance-pill {
    display: none;
  }

  .success-dialog {
    right: 18px;
    bottom: 18px;
    grid-template-columns: auto 1fr;
  }

  .success-dialog .button {
    grid-column: 1 / -1;
  }

  .stub-state {
    min-height: calc(100vh - 68px);
  }
}

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

/* ---------- Opleveringen en Facturen ---------- */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px var(--page-pad) 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-heading {
  margin-bottom: 6px;
}

.page-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
}

.page-intro {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.maand-blok {
  padding: 20px 22px;
}

.maand-kop {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.maand-kop h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.maand-kop .count-chip {
  margin-left: auto;
}

.oplevering-lijst {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oplevering-lijst li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.oplevering-lijst li:last-child {
  border-bottom: 0;
}

.opl-titel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.opl-titel strong {
  font-size: 14px;
  font-weight: 700;
}

.opl-titel small {
  color: var(--dim);
  font-size: 12px;
}

.opl-punten {
  margin-left: auto;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.opl-punten span {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: .04em;
}

.betwist-chip {
  padding: 4px 9px;
  border: 1px solid rgb(180 86 10 / 32%);
  border-radius: 999px;
  background: rgb(180 86 10 / 8%);
  color: var(--warn);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tabel-blok {
  padding: 6px 0 0;
}

.tabel-scroll {
  overflow-x: auto;
}

.factuur-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.factuur-tabel th,
.factuur-tabel td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.factuur-tabel thead th {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.factuur-tabel tbody th {
  font-weight: 700;
}

.factuur-tabel .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.factuur-tabel tbody tr:last-child th,
.factuur-tabel tbody tr:last-child td {
  border-bottom: 0;
}

.tabel-noot {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
}

.kaart-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.kaart-link:hover {
  text-decoration: underline;
}

/* ---------- Inloggen en geen toegang ---------- */
.poort {
  max-width: 420px;
  margin: 0 auto;
  padding: 18vh 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.poort-merk {
  width: 92px;
  height: auto;
  margin-bottom: 10px;
}

.poort h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.03em;
}

.poort p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.poort .button {
  margin-top: 10px;
  min-width: 190px;
}

.uitlog-link {
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.uitlog-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.betwist-knop {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 120ms ease, color 120ms ease;
}

.betwist-knop:hover {
  border-color: var(--warn);
  color: var(--warn);
}

.betwist-knop:disabled {
  opacity: .6;
}

/* ---------- Punten en abonnement zelf regelen ---------- */
.beheer-blok {
  padding: 22px 24px 24px;
}

.beheer-rij {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.beheer-rij.kolom {
  flex-direction: column;
  gap: 14px;
}

.beheer-rij h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.beheer-rij p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.bijkoop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Stepper in huisstijl: input[type=number] kreeg elders geen stijl mee en
   viel daardoor terug op de kale browserweergave. */
.bijkoop-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.bijkoop-stepper .stap {
  width: 38px;
  border: none;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.bijkoop-stepper .stap:hover {
  background: rgb(255 107 43 / 10%);
  color: var(--accent-ink);
}

.bijkoop-stepper .stap:active {
  background: rgb(255 107 43 / 18%);
}

.bijkoop-veld {
  width: 58px;
  height: 43px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  outline: none;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.bijkoop-veld::-webkit-outer-spin-button,
.bijkoop-veld::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bijkoop-veld:focus {
  box-shadow: inset 0 0 0 2px rgb(255 107 43 / 35%);
}

.bijkoop-prijs {
  min-width: 62px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bijkoop-knop {
  min-height: 43px;
}

.tier-lijst {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-optie {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tier-optie.is-huidig {
  border-color: var(--accent);
  background: rgb(255 107 43 / 5%);
}

.tier-naam {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.tier-detail {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tier-huidig {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.btn-klein {
  margin-top: auto;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 120ms ease, background 120ms ease;
}

.btn-klein:hover {
  border-color: var(--accent);
  background: rgb(255 107 43 / 6%);
}

.btn-klein:disabled {
  opacity: .6;
}

.visueel-verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .beheer-rij { flex-direction: column; }
  .bijkoop { margin-left: 0; flex-wrap: wrap; }
}

/* ---------- Modaal venster + toast (huisstijl) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(1 25 32 / 44%);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

.modal-kaart {
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgb(1 25 32 / 24%);
  transform: translateY(10px) scale(.98);
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1);
}

.modal-overlay.is-open .modal-kaart {
  transform: translateY(0) scale(1);
}

.modal-kop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-kop h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
}

.modal-sluit {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.modal-sluit:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.modal-uitleg {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-uitleg strong {
  color: var(--ink);
  font-weight: 800;
}

.modal-label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.modal-textarea {
  width: 100%;
  min-height: 108px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.modal-textarea:focus {
  border-color: #D7DEDD;
  box-shadow: 0 0 0 3px rgb(1 25 32 / 12%);
}

.modal-textarea::placeholder {
  color: var(--dim);
  opacity: .72;
}

.modal-fout {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgb(138 33 31 / 8%);
  color: var(--crit);
  font-size: 13px;
  font-weight: 700;
}

.modal-fout[hidden] {
  display: none;
}

.modal-acties {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-acties .button {
  min-width: 118px;
}

.portal-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgb(1 25 32 / 28%);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease;
}

.portal-toast.is-op {
  transform: translate(-50%, 0);
  opacity: 1;
}

.portal-toast.is-fout {
  background: var(--crit);
}

@media (max-width: 560px) {
  .modal-acties {
    flex-direction: column-reverse;
  }
  .modal-acties .button {
    width: 100%;
  }
}
