.nbmb-page {
  min-height: 100dvh;
  background: #f7f1ec;
  color: #302b28;
}

/* Persistente berichtenlijst en gespreksdetail. */
.nbmb-bc-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.nbmb-bc-list>li+li{border-top:1px solid rgba(218,194,184,.58)}
.nbmb-bc-message-row{display:grid;grid-template-columns:minmax(0,1fr) 30px 34px;align-items:center;transition:background .18s ease,opacity .18s ease}
.nbmb-bc-message-row:hover{background:rgba(255,248,244,.62)}
.nbmb-bc-message-row.is-handled .nbmb-bc-message{opacity:.66}
.nbmb-bc-message{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;gap:18px;align-items:center;width:100%;padding:17px 18px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:background .18s ease}
.nbmb-bc-message:hover{background:transparent}
.nbmb-bc-message:focus-visible{outline:3px solid rgba(190,111,94,.25);outline-offset:-3px}
.nbmb-bc-message-main{display:grid;gap:5px;min-width:0}
.nbmb-bc-item-heading{display:flex;align-items:center;gap:9px;min-width:0}
.nbmb-bc-source{flex:0 0 auto;padding:3px 7px;border:1px solid #ead7cf;border-radius:999px;background:#faf0ec;color:#9a5a4d;font-size:10px;font-weight:650;line-height:1}
.nbmb-bc-detail-source{margin:0 0 12px;color:#8c7770;font-size:12px;font-weight:600}
.nbmb-bc-item-subject{font-size:14px;font-weight:680;color:#332b28}
.nbmb-bc-item-body{overflow:hidden;color:#756a65;font-size:12.5px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.nbmb-bc-message-meta{display:grid;justify-items:end;gap:6px;color:#847772;font-size:11px;white-space:nowrap}
.nbmb-bc-status,.nbmb-bc-unread{padding:4px 8px;border-radius:999px;background:rgba(242,228,222,.74);color:#8f5a50;font-size:10px;font-weight:700}
.nbmb-bc-unread{background:#e7efe8;color:#55705a}
.nbmb-bc-chevron{color:#a76053;transition:transform .18s ease}.nbmb-bc-message:hover .nbmb-bc-chevron{transform:translateX(3px)}
.nbmb-bc-delete{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#9b8b85;cursor:pointer;transition:background .18s ease,color .18s ease}
.nbmb-bc-delete svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nbmb-bc-delete:hover{background:#f6e8e3;color:#a65e51}
.nbmb-bc-delete:focus-visible{outline:3px solid rgba(190,111,94,.22)}
.nbmb-bc-delete:disabled{opacity:.45;cursor:wait}
.nbmb-bc-handled{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#aa9a94;cursor:pointer;transition:background .18s ease,color .18s ease}
.nbmb-bc-handled svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nbmb-bc-handled:hover{background:#f3e9e5;color:#9d5d51}
.nbmb-bc-handled[aria-pressed="true"]{background:#e8f0e9;color:#55725b}
.nbmb-bc-handled:focus-visible{outline:3px solid rgba(190,111,94,.22)}
.nbmb-bc-handled:disabled{opacity:.45;cursor:wait}
.nbmb-bc-modal{position:fixed;z-index:2100;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(37,27,23,.42);backdrop-filter:blur(8px)}
.nbmb-bc-modal.is-open{display:flex}
.nbmb-bc-dialog{width:min(720px,100%);max-height:min(84vh,820px);overflow:hidden;border:1px solid rgba(229,204,194,.9);border-radius:20px;background:rgba(255,252,249,.98);box-shadow:0 28px 80px rgba(42,28,23,.25)}
.nbmb-bc-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:21px 23px;border-bottom:1px solid rgba(225,202,193,.72)}
.nbmb-bc-dialog-head span{display:block;margin-bottom:4px;color:#a65e51;font-size:10px;font-weight:750;letter-spacing:.09em;text-transform:uppercase}
.nbmb-bc-dialog-head h2{margin:0;font-family:Lora,Georgia,serif;font-size:25px;font-weight:500}
.nbmb-bc-dialog-head button{display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:50%;background:#f7ece8;color:#4b3c37;font-size:21px;cursor:pointer}
.nbmb-bc-dialog-head button:focus-visible{outline:3px solid rgba(190,111,94,.25)}
.nbmb-bc-thread{display:grid;gap:13px;max-height:calc(84vh - 80px);overflow-y:auto;padding:23px}
.nbmb-bc-bubble{max-width:82%;padding:14px 16px;border:1px solid #eadbd5;border-radius:15px;background:#fff}
.nbmb-bc-bubble.is-sent{justify-self:end;background:#f8e9e4;border-color:#e5c4ba}
.nbmb-bc-bubble.is-received{justify-self:start}
.nbmb-bc-bubble>div{display:flex;justify-content:space-between;gap:20px;align-items:baseline}.nbmb-bc-bubble strong{font-size:12px}.nbmb-bc-bubble time{color:#8a7e79;font-size:10px}
.nbmb-bc-bubble p{margin:8px 0 0;color:#514743;font-size:13px;line-height:1.6}
@media(max-width:620px){.nbmb-bc-message{grid-template-columns:minmax(0,1fr) 18px;gap:10px}.nbmb-bc-message-meta{grid-column:1/-1;grid-row:2;justify-items:start;grid-auto-flow:column;justify-content:start}.nbmb-bc-chevron{grid-column:2;grid-row:1}.nbmb-bc-bubble{max-width:94%}}

.nbmb-page > footer { display: none; }

.nbmb-dashboard-app {
  min-height: calc(100dvh - 72px);
  padding: clamp(14px, 2vw, 28px);
  background:
    linear-gradient(180deg, rgba(251, 246, 241, .34), rgba(248, 241, 235, .22)),
    url("../../images/berichten-premium-background.png") center 54% / cover no-repeat;
}

.nbmb-dashboard-main {
  width: min(100%, 1500px);
  max-width: 1500px;
  padding: clamp(24px, 2.4vw, 36px);
  border-color: rgba(224, 197, 186, .72);
  background: rgba(255, 252, 249, .92);
  box-shadow: 0 20px 55px rgba(65, 43, 35, .11);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nbmb-bc-head h1 { color: #272321; font-weight: 650; letter-spacing: -.025em; }
.nbmb-bc-head p,
.nbmb-bc-contact-copy span,
.nbmb-bc-item-body,
.nbmb-bc-feature p { color: #716965; }

.nbmb-bc-contact {
  min-height: 86px;
  margin: 18px 0 16px;
  padding: 16px 20px;
  border-color: rgba(222, 180, 166, .68);
  background: rgba(255, 247, 243, .79);
  box-shadow: 0 10px 26px rgba(89, 57, 47, .045);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nbmb-bc-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border-color: rgba(214, 142, 126, .55);
  background: rgba(255, 252, 249, .82);
  color: #bd6f61;
}

.nbmb-bc-contact-icon svg { width: 21px; height: 21px; }
.nbmb-bc-contact-main { gap: 14px; }
.nbmb-bc-contact-copy strong { font-size: 14px; font-weight: 650; }
.nbmb-bc-contact-copy span { font-size: 12.5px; line-height: 1.55; }
.nbmb-bc-banner-art { display: none; }

.nbmb-bc-contact-button {
  min-height: 42px;
  border-color: #ca7769;
  background: #ca7769;
  box-shadow: 0 7px 18px rgba(159, 85, 72, .13);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nbmb-bc-contact-button:hover {
  border-color: #b86659;
  background: #b86659;
  box-shadow: 0 9px 22px rgba(159, 85, 72, .18);
}

.nbmb-bc-contact-button:focus-visible,
.nbmb-bc-tab:focus-visible,
.nbmb-bc-sort:focus-visible {
  outline: 3px solid rgba(190, 111, 96, .28);
  outline-offset: 2px;
}

.nbmb-bc-tabs { margin-bottom: 13px; }
.nbmb-bc-tab {
  padding: 8px 14px;
  border-color: rgba(226, 207, 198, .9);
  background: rgba(255, 253, 251, .85);
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nbmb-bc-tab.is-active {
  border-color: rgba(207, 124, 105, .72);
  background: rgba(251, 232, 225, .74);
  box-shadow: none;
}

.nbmb-bc-tab-count { background: rgba(239, 229, 224, .86); }
.nbmb-bc-sort {
  min-height: 38px;
  border-color: rgba(226, 207, 198, .9);
  background-color: rgba(255, 253, 251, .88);
}

.nbmb-bc-empty {
  min-height: 270px;
  gap: 8px;
  padding: 28px 24px 30px;
  border-style: solid;
  border-color: rgba(222, 196, 186, .72);
  background: rgba(255, 253, 251, .87);
  box-shadow: 0 12px 30px rgba(72, 48, 41, .05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nbmb-bc-empty-art {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  color: #bd6f61;
}

.nbmb-bc-empty strong { color: #2f2a27; font-size: 18px; font-weight: 650; }
.nbmb-bc-empty span { color: #716965; }
.nbmb-bc-empty-action { min-width: 190px; margin-top: 7px; }
.nbmb-bc-handnote { display: none !important; }

.nbmb-bc-list { max-height: 300px; overflow-y: auto; }
.nbmb-bc-item {
  border-color: rgba(226, 207, 198, .85);
  background: rgba(255, 253, 251, .89);
  box-shadow: 0 8px 22px rgba(72, 48, 41, .04);
}
.nbmb-bc-item-subject { font-weight: 650; }

.nbmb-bc-features { gap: 14px; margin-top: 16px; }
.nbmb-bc-feature {
  min-height: 86px;
  gap: 13px;
  padding: 14px 16px;
  border-color: rgba(226, 207, 198, .78);
  background: rgba(255, 253, 251, .86);
  box-shadow: 0 9px 24px rgba(72, 48, 41, .045);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nbmb-bc-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  color: #bd6f61;
}

.nbmb-bc-feature-icon svg { width: 23px; height: 23px; stroke-width: 1.55; }
.nbmb-bc-feature strong { color: #332e2b; font-size: 13px; font-weight: 650; }
.nbmb-bc-feature p { margin-top: 2px; font-size: 11.5px; line-height: 1.45; }

@media (min-width: 901px) and (max-height: 820px) {
  .nbmb-page { height: 100dvh; overflow: hidden; }
  .nbmb-dashboard-app { height: calc(100dvh - 72px); min-height: 0; padding-top: 10px; padding-bottom: 10px; overflow: hidden; }
  .nbmb-dashboard-main { padding-top: 22px; padding-bottom: 22px; }
  .nbmb-bc-contact { margin-top: 14px; margin-bottom: 13px; }
  .nbmb-bc-empty { min-height: 230px; padding-top: 22px; padding-bottom: 22px; }
  .nbmb-bc-empty-art { width: 62px; height: 62px; }
  .nbmb-bc-features { margin-top: 13px; }
  .nbmb-bc-feature { min-height: 76px; padding-top: 11px; padding-bottom: 11px; }
}

@media (max-width: 900px) {
  .nbmb-dashboard-app { min-height: calc(100dvh - 65px); background-position: 58% center; }
  .nbmb-dashboard-main { padding: 22px; }
}

/* Berichten: eenvoudig archief links, permanent verzendformulier rechts. */
.nbmb-bc-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .95fr);
  gap: clamp(18px, 2vw, 28px);
  min-height: 0;
}

.nbmb-bc-history,
.nbmb-bc-compose-card {
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(218, 195, 185, .64);
  border-radius: 16px;
  background: rgba(255, 252, 249, .63);
}

.nbmb-bc-list-title,
.nbmb-bc-compose-card h2 {
  margin: 0 0 14px;
  color: #342e2b;
  font-size: 20px;
  font-weight: 650;
}

.nbmb-bc-compose-card > p {
  margin: -7px 0 19px;
  color: #756b66;
  font-size: 13px;
}

.nbmb-bc-panel {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(218, 195, 185, .54);
  border-radius: 13px;
  background: rgba(255, 253, 251, .55);
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-list {
  max-height: min(52vh, 500px);
  overflow-y: auto;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-empty {
  min-height: 218px;
  align-content: center;
  padding: 30px 22px;
}

.nbmb-bc-load-error {
  display: grid;
  gap: 5px;
  margin: 18px;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(248, 235, 230, .56);
  color: #796c67;
  font-size: 12.5px;
}

.nbmb-bc-load-error strong { color: #5a4d48; font-size: 13px; }

.nbmb-bc-compose {
  display: grid;
  gap: 16px;
  padding: 0;
}

.nbmb-bc-compose > label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #403834;
  font-size: 13px;
  font-weight: 650;
}

.nbmb-bc-compose input,
.nbmb-bc-compose select,
.nbmb-bc-compose textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dfcec7;
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  color: #302b28;
  font: inherit;
  font-weight: 400;
}

.nbmb-bc-compose textarea { min-height: 168px; resize: vertical; line-height: 1.55; }
.nbmb-bc-compose :is(input, select, textarea):focus { outline: 3px solid rgba(190,111,94,.2); border-color: #c97969; }
.nbmb-bc-compose-actions { display: flex; justify-content: flex-end; margin: 0; }
.nbmb-bc-compose-actions .nbmb-bc-contact-button { min-width: 122px; }
.nbmb-bc-form-error,
.nbmb-bc-form-success { margin: 0; padding: 10px 12px; border-radius: 9px; font-size: 12px; }
.nbmb-bc-form-success { display: grid; gap: 2px; border: 1px solid #ceddce; background: #f1f7f1; color: #55705a; }
.nbmb-bc-form-success[hidden], .nbmb-bc-form-error[hidden] { display: none; }
.nbmb-bc-form-success strong { font-size: 12.5px; }

@media (max-width: 900px) {
  .nbmb-bc-columns { grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); }
}

@media (max-width: 720px) {
  .nbmb-bc-columns { display: flex; flex-direction: column; }
  .nbmb-bc-compose-card { order: -1; }
  .nbmb-bc-history, .nbmb-bc-compose-card { padding: 18px; }
}

/* Berichten is een persoonlijk archief van uitsluitend verstuurde aanvragen. */
.nbmb-bc-list-title {
  margin: 2px 0 12px;
  color: #342e2b;
  font-size: 20px;
  font-weight: 650;
}
.nbmb-bc-panel { border: 1px solid rgba(218,195,185,.58); border-radius: 15px; overflow: hidden; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-list { max-height: min(54vh, 520px); padding: 0; }
.nbmb-bc-list > li + li { border-top: 1px solid rgba(218,194,184,.58); }
.nbmb-bc-message { grid-template-columns:minmax(0,1fr) 22px; padding:18px 20px; }
.nbmb-bc-message-main time { color:#847772; font-size:11.5px; }
.nbmb-bc-item-body { display:-webkit-box; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.nbmb-bc-chevron { align-self:center; font-size:24px; line-height:1; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-empty { min-height:220px; border-radius:15px; }
.nbmb-bc-empty .nbmb-bc-contact-button { margin-top:8px; }

.nbmb-bc-dialog-head time { display:block; margin-top:6px; color:#847772; font-size:12px; }
.nbmb-bc-dialog-head .nbmb-bc-back {
  display:inline-flex; width:auto; height:auto; margin:0 0 10px; padding:0;
  border-radius:0; background:transparent; color:#9b5e51; font-size:12.5px; font-weight:650;
}
.nbmb-bc-thread h3 { margin:0; font-size:14px; }
.nbmb-bc-message-body { padding:16px; border:1px solid #eadbd5; border-radius:13px; background:#fff; color:#514743; font-size:14px; line-height:1.65; }
.nbmb-bc-email-note { margin:4px 0 0; color:#786d68; font-size:12.5px; }

.nbmb-bc-compose { padding-bottom:22px; }
.nbmb-bc-compose > label { display:grid; gap:7px; margin:18px 23px 0; color:#403834; font-size:13px; font-weight:650; }
.nbmb-bc-compose input,.nbmb-bc-compose select,.nbmb-bc-compose textarea {
  width:100%; padding:11px 13px; border:1px solid #dfcec7; border-radius:10px;
  background:#fff; color:#302b28; font:inherit; font-weight:400;
}
.nbmb-bc-compose textarea { resize:vertical; line-height:1.55; }
.nbmb-bc-compose :is(input,select,textarea):focus { outline:3px solid rgba(190,111,94,.2); border-color:#c97969; }
.nbmb-bc-compose-actions { display:flex; justify-content:flex-end; gap:10px; margin:20px 23px 0; }
.nbmb-bc-compose-actions > button { min-height:42px; padding:9px 17px; border:1px solid #dfcec7; border-radius:999px; background:#fff; color:#403834; font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.nbmb-bc-compose-actions > .nbmb-bc-contact-button { border-color:#ca7769; background:#ca7769; color:#fff; }
.nbmb-bc-form-error { margin:14px 23px 0; padding:9px 11px; border:1px solid #e4afa4; border-radius:9px; background:#fff3ef; color:#a44f43; font-size:12px; }
.nbmb-bc-contact-button:disabled { opacity:.58; cursor:wait; transform:none; }

@media (max-width:640px) {
  .nbmb-bc-list-title { margin-top:4px; }
  .nbmb-bc-message { padding:16px 14px; }
  .nbmb-bc-compose-actions { flex-wrap:wrap; }
}

/* Rondleiding: toon de berichtenomgeving als heldere productpreview zonder een
   tweede sfeerfoto. De echte Berichten-pagina behoudt haar huidige opmaak. */
html.nbmb-tour-preview-mode,
html.nbmb-tour-preview-mode body.nbmb-page {
  width: 1180px !important;
  min-width: 1180px !important;
  height: 760px !important;
  min-height: 760px !important;
  background: #f4ede7 !important;
}

html.nbmb-tour-preview-mode .nbmb-page .nbmb-dashboard-preview.nbmb-dashboard-app {
  width: 1180px !important;
  min-width: 1180px !important;
  height: 760px !important;
  min-height: 760px !important;
  margin: 0 !important;
  padding: 24px 28px !important;
  background: #f4ede7 !important;
}

html.nbmb-tour-preview-mode .nbmb-page .nbmb-bc-shell {
  width: 100% !important;
  max-width: none !important;
  background: #fffaf5 !important;
}

@media (max-width: 640px) {
  .nbmb-dashboard-app { padding: 0; background-attachment: fixed; }
  .nbmb-dashboard-main { min-height: calc(100dvh - 65px); border: 0; border-radius: 0; }
  .nbmb-bc-contact { padding: 16px; }
  .nbmb-bc-empty { min-height: 285px; }
  .nbmb-bc-features { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .nbmb-bc-contact-button,
  .nbmb-bc-tab { transition: none; }
}

/* Dezelfde premium page-shell als Overzicht: fotografie volgt de viewport,
   terwijl alle functionele content exact binnen dezelfde 1500px-lijn valt. */
.nbmb-page .nbmb-dashboard-preview.nbmb-dashboard-app {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  padding: clamp(14px, 2vh, 24px) clamp(22px, 3.2vw, 48px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(250,244,239,.28), rgba(247,241,235,.08)),
    url("../../images/berichten-premium-background.png") center 54% / cover no-repeat;
}

.nbmb-page .nbmb-dashboard-main {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nbmb-page .nbmb-dashboard-main > :is(.nbmb-bc-head,.nbmb-bc-contact,.nbmb-bc-tabs,#bcPanel,.nbmb-bc-features) {
  width: min(100%, 1500px);
  margin-right: auto;
  margin-left: auto;
}

.nbmb-bc-head {
  padding: 13px 17px;
  border: 1px solid rgba(222, 196, 186, .68);
  border-radius: 15px;
  background: rgba(255, 252, 249, .82);
  box-shadow: 0 9px 26px rgba(72, 48, 41, .05);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.nbmb-bc-contact {
  min-height: 76px;
  margin-top: 14px;
  margin-bottom: 13px;
  padding: 13px 17px;
}

.nbmb-bc-tabs {
  gap: 0;
}

.nbmb-bc-tab {
  border-radius: 0;
}

.nbmb-bc-tab:first-child {
  border-radius: 999px 0 0 999px;
}

.nbmb-bc-tab:nth-child(2) {
  margin-left: -1px;
  border-radius: 0 999px 999px 0;
}

.nbmb-bc-empty {
  min-height: 215px;
  padding: 22px 24px 24px;
}

.nbmb-bc-empty-art {
  width: 58px;
  height: 58px;
}

.nbmb-bc-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 5px;
  color: #9b5e51;
  font-size: 12.5px;
  font-weight: 650;
  transition: color .18s ease, transform .18s ease;
}

.nbmb-bc-empty-action:hover {
  color: #81483f;
  transform: translateX(3px);
}

.nbmb-bc-features {
  margin-top: 13px;
}

.nbmb-bc-feature {
  min-height: 74px;
  padding: 11px 15px;
}

@media (min-width: 901px) {
  .nbmb-page {
    height: 100dvh;
    overflow: hidden;
  }

  .nbmb-page .nbmb-dashboard-preview.nbmb-dashboard-app {
    height: calc(100dvh - 72px);
    min-height: 0;
    overflow: hidden;
  }
}

/* Eén centrale berichtenomgeving: alle bediening en inhoud delen één surface. */
.nbmb-page .nbmb-bc-shell {
  display: flex;
  width: min(100%, 1500px);
  min-height: 0;
  flex-direction: column;
  margin: 0 auto;
  padding: clamp(22px, 2.2vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(222, 196, 186, .58);
  border-radius: 20px;
  background: rgba(255, 252, 249, .86);
  box-shadow: 0 18px 48px rgba(65, 43, 35, .09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nbmb-bc-head h1 { margin: 0 0 5px; }
.nbmb-bc-head p { margin: 0; }
.nbmb-bc-intro {
  display: block;
  margin-top: 8px;
  color: #766d68;
  font-size: 13px;
  line-height: 1.5;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  border-top: 1px solid rgba(218, 195, 185, .52);
  border-bottom: 1px solid rgba(218, 195, 185, .62);
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-tab,
.nbmb-page .nbmb-bc-shell .nbmb-bc-tab:first-child,
.nbmb-page .nbmb-bc-shell .nbmb-bc-tab:nth-child(2) {
  position: relative;
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #554d49;
  box-shadow: none;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-tab.is-active {
  color: #a45f51;
  background: transparent;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-tab.is-active::after { background: #c97869; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-tab:hover { color: #8d5146; background: transparent; }
.nbmb-bc-tab-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(235, 220, 213, .74);
  color: #746762;
  font-size: 11px;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-sort {
  width: auto;
  min-width: 190px;
  min-height: 36px;
  margin: 0;
  border-color: rgba(218, 195, 185, .68);
  background-color: rgba(255, 253, 251, .68);
}

.nbmb-bc-panel {
  min-height: 0;
  border-bottom: 1px solid rgba(218, 195, 185, .54);
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-empty {
  min-height: 240px;
  padding: 28px 20px 30px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 252, 249, .22);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-empty-art {
  width: 54px;
  height: 54px;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-list {
  max-height: 315px;
  margin: 0;
  padding: 4px 0;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-item {
  margin: 0;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid rgba(218, 195, 185, .48);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-item:last-child { border-bottom: 0; }

.nbmb-page .nbmb-bc-shell .nbmb-bc-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 15px 0 0;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-feature {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(18px, 2.3vw, 36px);
  border: 0;
  border-right: 1px solid rgba(218, 195, 185, .62);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #756b66;
  font-size: 12px;
  white-space: nowrap;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-feature:last-child { border-right: 0; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-feature-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 0;
}
.nbmb-page .nbmb-bc-shell .nbmb-bc-feature-icon svg { width: 18px; height: 18px; }

@media (min-width: 901px) {
  .nbmb-page .nbmb-bc-shell { max-height: 100%; }
}

@media (max-width: 900px) {
  .nbmb-page .nbmb-bc-shell {
    width: 100%;
    padding: 22px;
    overflow: visible;
    border-radius: 17px;
  }

  .nbmb-page .nbmb-bc-shell .nbmb-bc-head { align-items: stretch; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-tabs { flex-wrap: wrap; gap: 18px; padding: 7px 0; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-tabs-spacer { display: none; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-sort { width: 100%; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-features { align-items: stretch; flex-direction: column; gap: 9px; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-feature {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    border-right: 0;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .nbmb-page .nbmb-bc-shell { min-height: calc(100dvh - 65px); padding: 20px 17px; border-radius: 0; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-head { flex-direction: column; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-contact-button { align-self: flex-start; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-empty { min-height: 245px; padding-right: 4px; padding-left: 4px; }
}

@media (max-width: 900px) {
  .nbmb-page .nbmb-dashboard-preview.nbmb-dashboard-app {
    width: 100%;
    min-height: calc(100dvh - 65px);
    padding: 18px 14px 30px;
    overflow: visible;
    background-attachment: fixed;
  }

  .nbmb-page .nbmb-dashboard-main > :is(.nbmb-bc-head,.nbmb-bc-contact,.nbmb-bc-tabs,#bcPanel,.nbmb-bc-features) {
    width: 100%;
  }
}

/* Laatste cascade: de vaste tweekoloms Berichten-indeling heeft voorrang op
   oudere archief- en modalregels die voorheen op deze pagina stonden. */
.nbmb-page .nbmb-bc-shell .nbmb-bc-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .95fr);
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
  min-height: 0;
}
.nbmb-page .nbmb-bc-shell :is(.nbmb-bc-history,.nbmb-bc-compose-card) {
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(218,195,185,.64);
  border-radius: 16px;
  background: rgba(255,252,249,.80);
}
.nbmb-page .nbmb-bc-shell .nbmb-bc-panel {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(218,195,185,.54);
  border-radius: 13px;
  background: rgba(255,253,251,.72);
}
.nbmb-page .nbmb-bc-shell .nbmb-bc-panel.has-load-error { min-height:0; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-compose { display:grid; gap:16px; padding:0; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-compose > label { gap:7px; margin:0; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-compose-actions { margin:0; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-form-error,
.nbmb-page .nbmb-bc-shell .nbmb-bc-form-success { margin:0; }
.nbmb-page .nbmb-bc-shell .nbmb-bc-empty { min-height:218px; align-content:center; }
@media (max-width:900px) {
  .nbmb-page .nbmb-bc-shell .nbmb-bc-columns { grid-template-columns:minmax(0,1fr) minmax(280px,.82fr); }
}
@media (max-width:720px) {
  .nbmb-page .nbmb-bc-shell .nbmb-bc-columns { display:flex; flex-direction:column; }
  .nbmb-page .nbmb-bc-shell .nbmb-bc-compose-card { order:-1; }
}

/* Berichten gebruikt de fotografie als volledige page-shell. De functionele
   kaarten eindigen op hun natuurlijke hoogte; daaronder blijft de foto staan. */
.nbmb-page {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(250,244,239,.28), rgba(247,241,235,.08)),
    url("../../images/berichten-premium-background.png") center 54% / cover fixed no-repeat;
}

.nbmb-page .nbmb-dashboard-preview.nbmb-dashboard-app {
  min-height: calc(100dvh - 72px);
  height: auto;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(250,244,239,.28), rgba(247,241,235,.08)),
    url("../../images/berichten-premium-background.png") center 54% / cover fixed no-repeat;
}

.nbmb-page .nbmb-bc-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nbmb-page .nbmb-bc-shell .nbmb-bc-head {
  margin-bottom: clamp(16px, 1.8vw, 24px);
  padding: clamp(18px, 2vw, 27px);
  border: 1px solid rgba(218,195,185,.64);
  border-radius: 16px;
  background: rgba(255,252,249,.90);
  box-shadow: 0 12px 34px rgba(65,43,35,.07);
}

@media (min-width: 901px) {
  .nbmb-page {
    height: auto;
    overflow: auto;
  }

  .nbmb-page .nbmb-bc-shell {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .nbmb-page,
  .nbmb-page .nbmb-dashboard-preview.nbmb-dashboard-app {
    background-position: 58% center;
  }
}

@media (max-width: 640px) {
  .nbmb-page .nbmb-bc-shell {
    min-height: 0;
    padding-right: 3px;
    padding-left: 3px;
  }
}
