:root{--bg:#eef1f5;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#d9e0ea;--accent:#07163a;--blue:#2563eb;--shadow:0 18px 35px rgba(15,23,42,.16)}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font:14px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;background:linear-gradient(180deg,#f4f5f7 0%,#e8ebf0 100%);color:var(--text)}.page{padding:20px}.topbar{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;margin-bottom:18px}.brand-card,.build-card{background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-radius:28px;box-shadow:var(--shadow);padding:24px 30px}.build-card{background:#05163f;color:#fff}.brand-head{display:flex;gap:18px;align-items:center;margin-bottom:20px}.brand-logo{width:72px;height:72px;border-radius:24px;background:#07163a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:28px}.brand-card h1{font-size:30px;line-height:1.05;margin:0 0 6px}.brand-sub{font-size:17px;color:#64748b}.metric-grid,.build-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.build-grid{grid-template-columns:repeat(3,1fr)}.metric-card,.build-item{border-radius:22px;padding:18px 20px;background:#f1f4f8}.build-item{background:rgba(255,255,255,.14)}.metric-label,.build-label{font-size:17px;color:#64748b}.build-label{color:rgba(255,255,255,.72)}.metric-value{font-size:28px;font-weight:800;color:#243042;margin-top:8px}.build-mm{font-size:18px;font-weight:600;line-height:1.1;margin-top:6px}.build-rc{font-size:36px;font-weight:800;color:#ffffff;margin-top:6px}.app{display:grid;grid-template-columns:420px 1fr;gap:18px;align-items:start;min-height:calc(100vh - 270px)}.sidebar{background:rgba(255,255,255,.72);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.65);border-radius:24px;padding:20px;box-shadow:0 12px 28px rgba(15,23,42,.08)}.sidebar-title{font-size:18px;line-height:1.1;margin:0 0 6px}.stage{position:sticky;top:20px;align-self:start;height:calc(100vh - 40px);min-height:780px;overflow:hidden;border-radius:28px;background:linear-gradient(180deg,#eef2f7 0%,#f8fafc 100%);box-shadow:var(--shadow)}h2{font-size:15px;margin:0}.intro{color:var(--muted);margin:0 0 16px}.panel{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff;margin-bottom:14px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.field{display:grid;grid-template-columns:1fr 140px;gap:10px;align-items:center;margin-bottom:10px}.field:last-child{margin-bottom:0}label{font-weight:600}select,button{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;background:#fff;color:var(--text);font:inherit}button{background:var(--accent);color:#fff;border-color:var(--accent);cursor:pointer}button.secondary{background:#fff;color:var(--text);border-color:#cbd5e1}button.danger{background:#fff;color:#b91c1c;border-color:#fecaca}.stack{display:flex;flex-direction:column;gap:10px}.hidden{display:none}.button-row{display:flex;gap:10px;margin-bottom:10px}#planSvg{
  width:100%;
  aspect-ratio:560 / 360;
  height:auto;
  display:block;
  touch-action:none;
}.helper{font-size:12px;color:var(--muted);margin-top:10px}.notice{margin-bottom:14px;padding:12px 14px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.badgebar{position:absolute;top:18px;right:18px;display:flex;gap:10px;z-index:5}.badge-button{width:auto;white-space:nowrap;padding:10px 14px;border-radius:999px;box-shadow:0 10px 24px rgba(15,23,42,.12)}.status{position:absolute;left:18px;bottom:18px;z-index:5;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.7);box-shadow:0 10px 24px rgba(15,23,42,.10);border-radius:999px;padding:10px 14px;color:#0f172a}.hint{position:absolute;left:18px;top:18px;z-index:5;background:rgba(255,255,255,.92);border-radius:14px;padding:10px 12px;max-width:420px;box-shadow:0 10px 24px rgba(15,23,42,.10);color:#334155}#render{width:100%;height:100%;display:block}.opening-card{border:1px solid var(--line);border-radius:14px;padding:10px;margin-bottom:10px;background:#fff}.opening-card.active{border-color:var(--blue);box-shadow:0 0 0 2px rgba(37,99,235,.1)}.opening-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.opening-head strong{font-size:13px}.opening-grid{display:grid;grid-template-columns:1fr 100px;gap:8px;align-items:center}.inline-actions{display:flex;gap:8px;margin-top:8px}.tiny{font-size:11px;color:var(--muted)}.tiny-badge{font-size:11px;color:#334155;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:4px 8px}@media (max-width:1400px){.topbar{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.build-grid{grid-template-columns:repeat(3,1fr)}.app{grid-template-columns:400px 1fr;min-height:calc(100vh - 430px)}.stage{min-height:680px}}@media (max-width:1100px){.page{padding:12px}.app{grid-template-columns:1fr}.stage{position:relative;top:auto;height:70vh;min-height:70vh}.topbar{grid-template-columns:1fr}.brand-card h1{font-size:24px}.metric-grid,.build-grid{grid-template-columns:repeat(2,1fr)}#render{height:70vh}}
.inner-walls-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
#innerWallsPanel{
  background:#faf5ff;
}

.facade-material-btn.active{
  border-color:#2563eb !important;
  box-shadow:0 0 0 1px #2563eb inset;
}
#confirmFacadeMode{
  border-color:#2563eb;
}

.facade-variant-title{
  margin-top:12px;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  color:#64748b;
}
.facade-variant-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-top:6px;
}
.facade-variant-btn.active,
.facade-material-btn.active{
  border-color:#2563eb !important;
  box-shadow:0 0 0 1px #2563eb inset;
}

.facade-finish-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-top:6px;
}
.facade-height-btn.active,
.facade-finish-btn.active{
  border-color:#2563eb !important;
  box-shadow:0 0 0 1px #2563eb inset;
}

.facade-opening-finish-btn.active{
  border-color:#2563eb !important;
  box-shadow:0 0 0 1px #2563eb inset;
}

.config-wizard{
  border:1px solid #dbe3ef;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-radius:16px;
  padding:12px;
  margin:12px 0;
  box-shadow:0 8px 20px rgba(15,23,42,0.05);
}
.wizard-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.wizard-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  font-weight:700;
}
#wizardProgressText{
  font-size:12px;
  color:#64748b;
  white-space:nowrap;
}
.wizard-progress{
  height:7px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
  margin-bottom:10px;
}
#wizardProgressBar{
  height:100%;
  width:16.666%;
  background:#0f172a;
  border-radius:999px;
  transition:width .2s ease;
}
.wizard-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.wizard-tab{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:7px 8px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  color:#334155;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.wizard-tab span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:11px;
}
.wizard-tab.active{
  border-color:#0f172a;
  background:#0f172a;
  color:#fff;
}
.wizard-tab.active span{
  background:#fff;
  color:#0f172a;
}
.config-step-panel.hidden-step{
  display:none !important;
}

.wizard-nav-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}
.wizard-nav-buttons button{
  min-height:36px;
  border-radius:10px;
}
.wizard-nav-buttons button.disabled,
.wizard-nav-buttons button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.plan-shared-panel.plan-top-panel{
  order:-10;
}
#sharedPlanPanel .button-row{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#sharedPlanPanel #addWindow60,
#sharedPlanPanel #addDoor,
#sharedPlanPanel #addSliding,
#sharedPlanPanel #presetEmpty{
  min-height:42px;
  font-size:14px;
}
#sharedPlanPanel #addWindow120,
#sharedPlanPanel #presetBasic{
  display:none !important;
}

.opening-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.danger-soft{
  color:#991b1b !important;
  border-color:#fecaca !important;
  background:#fff !important;
}
button.disabled,
button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.42);
  padding:20px;
}
.modal-backdrop.hidden{
  display:none !important;
}
.modal-card{
  width:min(460px, calc(100vw - 40px));
  border-radius:20px;
  background:#fff;
  border:1px solid #dbe3ef;
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  padding:18px;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.modal-head h2{
  margin:0;
  font-size:20px;
}
.modal-close{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  font-size:22px;
  line-height:1;
}
.modal-helper{
  margin:0 0 12px 0;
  color:#64748b;
  font-size:14px;
}
.modal-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.modal-choice.active{
  border-color:#2563eb !important;
  box-shadow:0 0 0 1px #2563eb inset;
}
.modal-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:16px;
}

.static-plan-panel{
  order:-90;
}
.opening-tools-panel{
  margin-top:12px;
}
.opening-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.danger-soft{
  color:#991b1b !important;
  border-color:#fecaca !important;
  background:#fff !important;
}
button.disabled,
button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.42);
  padding:20px;
}
.modal-backdrop.hidden{
  display:none !important;
}
.modal-card{
  width:min(460px, calc(100vw - 40px));
  border-radius:20px;
  background:#fff;
  border:1px solid #dbe3ef;
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  padding:18px;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.modal-head h2{
  margin:0;
  font-size:20px;
}
.modal-close{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  font-size:22px;
  line-height:1;
}
.modal-helper{
  margin:0 0 12px 0;
  color:#64748b;
  font-size:14px;
}
.modal-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.modal-choice.active{
  border-color:#2563eb !important;
  box-shadow:0 0 0 1px #2563eb inset;
}
.modal-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:16px;
}

.static-plan-panel{
  order:-80;
}
body[data-config-step="basis"] #sharedPlanPanel{
  order:-80;
}
body[data-config-step="openingen"] #sharedPlanPanel,
body[data-config-step="binnen"] #sharedPlanPanel,
body[data-config-step="gevel"] #sharedPlanPanel,
body[data-config-step="weergave"] #sharedPlanPanel,
body[data-config-step="prijs"] #sharedPlanPanel{
  order:-80;
}
body[data-config-step="gevel"] #toggleFacadeMode{
  pointer-events:none;
}
body[data-config-step="gevel"] #toggleFacadeMode::after{
  content:"";
}

body[data-config-step="basis"] #planSvg,
body[data-config-step="weergave"] #planSvg,
body[data-config-step="prijs"] #planSvg{
  cursor:default;
}
body[data-config-step="binnen"] #toggleRoof{
  opacity:.55;
}

.modal-option-group{
  margin-top:12px;
}
.modal-option-title{
  font-size:13px;
  font-weight:700;
  color:#334155;
  margin-bottom:6px;
}
.modal-choice.disabled,
.modal-choice:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.opening-actions .wide{
  grid-column:1 / -1;
}

.hidden-choice{
  display:none !important;
}

.opening-grid select{ min-width:140px; }

.opening-card.collapsed{
  padding-bottom: 18px;
}

.opening-card.collapsed .opening-head{
  margin-bottom: 0;
}

.opening-grid{
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 210px);
  column-gap: 16px;
}

.opening-grid select,
.opening-grid .static-value{
  width: 100%;
  max-width: 210px;
  box-sizing: border-box;
}

.static-value{
  border: 1px solid #c7d2e2;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.plain-value{
  display:inline-block;
  color:#475569;
  font-weight:600;
  padding: 8px 0;
}

.opening-grid .plain-value{
  width:100%;
  box-sizing:border-box;
}

/* Ramen/deuren knoppen gelijk houden; selectie gebeurt op plattegrond/render, niet als donkere tab. */
.opening-actions .secondary.active,
.opening-actions button.active{
  background:#fff !important;
  color:#0f172a !important;
  border-color:#c7d2e2 !important;
}

/* v17.94 — Ramen/deuren action buttons always neutral */
.opening-actions button,
.opening-actions .secondary,
.opening-actions button.active,
.opening-actions .secondary.active,
.opening-actions button:focus,
.opening-actions .secondary:focus{
  background:#fff !important;
  color:#0f172a !important;
  border:1px solid #c7d2e2 !important;
  box-shadow:none !important;
}

.opening-actions button:hover,
.opening-actions .secondary:hover{
  background:#f8fafc !important;
  border-color:#b8c5d8 !important;
}

.opening-actions .danger-soft,
.opening-actions .danger-soft.active,
.opening-actions .danger-soft:focus{
  color:#991b1b !important;
  border-color:#fecaca !important;
  background:#fff !important;
}

/* v17.94 — modal close button polish */
.modal-close,
#openingModalClose{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  min-height:46px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  font-size:34px !important;
  font-weight:500 !important;
  border-radius:999px !important;
  border:1px solid #c7d2e2 !important;
  background:#fff !important;
  color:#0f172a !important;
  box-shadow:none !important;
}

.modal-close:hover,
#openingModalClose:hover{
  background:#f8fafc !important;
  border-color:#94a3b8 !important;
}

/* v17.95c clean front facade selector */
.basis-facade-selector{
  margin-bottom:24px;
  padding:18px;
  border:1px solid #d7dee9;
  border-radius:18px;
  background:#fff;
}

.basis-facade-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:6px;
  color:#0f172a;
}

.basis-facade-help{
  margin:0 0 14px 0;
  color:#64748b;
  font-size:14px;
  line-height:1.35;
}

.basis-facade-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.facade-btn{
  padding:14px 16px;
  border-radius:14px;
  border:1px solid #c7d2e2;
  background:#fff;
  color:#0f172a;
  font-size:16px;
  font-weight:650;
  cursor:pointer;
}

.facade-btn.active{
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,0.16);
}

/* v17.96 front facade pick via plan */
.basis-facade-selector.compact{
  margin-bottom:18px;
  padding:16px 18px;
}

.basis-facade-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.facade-pick-toggle{
  white-space:nowrap;
  min-width:150px;
}

.basis-facade-selector.active{
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,0.12);
}

.front-facade-pick-zone{
  fill:rgba(255,255,255,0.48);
  stroke:rgba(37,99,235,0.0);
  stroke-width:3;
  cursor:pointer;
  pointer-events:all;
  transition:fill 120ms ease, stroke 120ms ease;
}

.front-facade-pick-zone:hover{
  fill:rgba(255,255,255,0.86);
  stroke:rgba(37,99,235,0.55);
}

.front-facade-pick-zone.selected{
  fill:rgba(37,99,235,0.12);
  stroke:#2563eb;
}

/* v17.97 square facade pick zones */
.front-facade-pick-zone{
  rx:0;
  ry:0;
  stroke-linejoin:miter;
}

.front-facade-pick-zone.selected{
  fill:rgba(37,99,235,0.08);
  stroke:#2563eb;
}

.front-facade-pick-zone:hover{
  fill:rgba(255,255,255,0.78);
  stroke:#2563eb;
}

.front-facade-mode-badge{
  background:#eff6ff !important;
  border-color:#93c5fd !important;
  color:#1d4ed8 !important;
}

/* v17.99 final facade pick */
.front-facade-pick-zone{
  pointer-events:none;
  rx:0;
  ry:0;
}

.front-facade-mode-badge{
  background:#eff6ff !important;
  border-color:#93c5fd !important;
  color:#1d4ed8 !important;
}

/* v19.01 basis tile ordering and front facade plan mode */
#frontFacadeBasisPanel{
  order: 2;
}
.config-step-panel[data-step="basis"]:has(#length){
  order: 1;
}
.config-step-panel[data-step="basis"]:has(#wallBuildUp){
  order: 3;
}
.config-step-panel[data-step="basis"]:has(#canopyEnabled){
  order: 4;
}

#frontFacadeSelectorMount .basis-facade-selector{
  border:none;
  padding:0;
  margin:0;
  background:transparent;
}

.basis-facade-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.basis-facade-help{
  margin:0;
}

.facade-pick-toggle{
  min-width:180px;
  white-space:nowrap;
}

.front-facade-pick-zone{
  fill:rgba(255,255,255,0.38);
  stroke:transparent;
  stroke-width:3;
  stroke-linejoin:miter;
}

.front-facade-pick-zone.hover{
  fill:rgba(255,255,255,0.9);
  stroke:#60a5fa;
}

.front-facade-pick-zone.selected{
  fill:rgba(37,99,235,0.10);
  stroke:#2563eb;
}

/* v19.01 simple front facade tile */
#frontFacadeBasisPanel{
  order: 2;
}

#frontFacadeSelectorMount .basis-facade-selector{
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
}

.basis-facade-selector.active{
  border-color:transparent !important;
  box-shadow:none !important;
}

.basis-facade-row.clean{
  display:block;
  margin-bottom:12px;
}

.basis-facade-grid.compact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.facade-choice-btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #c7d2e2;
  background:#fff;
  color:#0f172a;
  font-size:15px;
  font-weight:650;
  cursor:pointer;
}

.facade-choice-btn.active{
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,0.14);
  background:#eff6ff;
}

.selected-front-facade-marker{
  fill:rgba(37,99,235,0.22);
  stroke:#2563eb;
  stroke-width:1.5;
  pointer-events:none;
}

/* v19.01 front facade toggle */
.basis-facade-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.current-front-facade{
  margin-top:4px;
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}

.basis-facade-selector.compact.active{
  box-shadow:none !important;
  border-color:transparent !important;
}

.basis-facade-selector.compact.active .compact-grid{
  margin-top:14px;
}

.facade-choice-btn.active{
  border-color:#c7d2e2 !important;
  box-shadow:none !important;
  background:#eff6ff !important;
  color:#1d4ed8 !important;
}

.selected-front-facade-marker{
  fill:rgba(37,99,235,0.22) !important;
  stroke:none !important;
  stroke-width:0 !important;
}

/* v19.01 compact front facade tile */
.basis-facade-summary.compact-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.front-facade-inline{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.front-facade-label{
  font-size:24px;
  font-weight:800;
  color:#0f172a;
}

.front-facade-current{
  font-size:16px;
  font-weight:600;
  color:#64748b;
}

#frontFacadeSelectorMount .basis-facade-help{
  display:none;
}


/* v19.01 final correction: front facade tile */
#frontFacadeBasisPanel h2{
  margin-bottom:14px;
}
.front-facade-label{
  display:none !important;
}
.basis-facade-summary.compact-line{
  align-items:center;
}
.front-facade-inline{
  display:block;
}
.front-facade-current{
  display:block;
  font-size:18px;
  font-weight:700;
  color:#64748b;
}
.facade-choice-btn.active{
  box-shadow:none !important;
}


/* v19.01 header correction: place current facade beside the title */
#frontFacadeBasisPanel .front-facade-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

#frontFacadeBasisPanel .front-facade-heading-current{
  font-size:inherit;
  line-height:inherit;
  font-weight:400;
  color:#64748b;
  text-align:right;
}

#frontFacadeSelectorMount .basis-facade-summary.compact-line{
  justify-content:flex-end;
}

#frontFacadeSelectorMount .front-facade-inline,
#frontFacadeSelectorMount .front-facade-label,
#frontFacadeSelectorMount .front-facade-current{
  display:none !important;
}

/* v19.01 opening nickname example */
.opening-title-wrap{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.internal-opening-label{
  color:#64748b;
  font-size:11px;
  font-weight:500;
}
.internal-opening-name{
  color:#64748b;
  font-size:12px;
}
.opening-name-input{
  min-width:0;
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  font:inherit;
  color:#0f172a;
  background:#fff;
}
.opening-name-input::placeholder{
  color:#94a3b8;
}


.version-badge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:4px 9px;
  border-radius:999px;
  background:#eef2ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  vertical-align:middle;
}
.config-save-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:-4px 0 14px 0;
}
.autosave-pill{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-size:12px;
  font-weight:700;
}
.reset-config-btn{
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:12px !important;
  white-space:nowrap;
}

.autosave-status{
  display:block;
  margin:-8px 0 14px 0;
  padding:0 2px;
  color:#047857;
  font-size:12px;
  font-weight:700;
}
.save-config-btn,
.reset-config-btn{
  flex:1;
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:12px !important;
  white-space:nowrap;
}


/* v19.01 — echte visuele previews voor gevelmateriaal-swatches
   Deze CSS staat bewust in styles.css, omdat index.html alleen dit stylesheet laadt. */
.facade-material-btn .facade-swatch{
  width:30px;
  height:30px;
  border-radius:7px;
  border:1px solid #94a3b8;
  display:inline-block;
  flex:0 0 auto;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.facade-material-btn .facade-swatch.swatch-tile-natural,
.facade-material-btn .facade-swatch.swatch-tile-warm{
  position:relative;
  background-repeat:repeat;
  background-size:16px 42px;
  border-color:#7c8794;
}
.facade-material-btn .facade-swatch.swatch-tile-natural{
  background-color:#b98b61;
  background-image:
    linear-gradient(90deg, rgba(35,25,18,.24) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(35,25,18,.28) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, #8f684c 0%, #c79a72 45%, #a1714f 100%);
}
.facade-material-btn .facade-swatch.swatch-tile-warm{
  background-color:#c78650;
  background-image:
    linear-gradient(90deg, rgba(45,28,16,.22) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(45,28,16,.30) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, #9e6238 0%, #d39259 45%, #ad6a3c 100%);
}
.facade-material-btn .facade-swatch.swatch-tile-natural::after,
.facade-material-btn .facade-swatch.swatch-tile-warm::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, transparent 0 48%, rgba(255,255,255,.22) 48% 51%, transparent 51% 100%),
    linear-gradient(90deg, transparent 0 50%, rgba(255,255,255,.14) 50% 52%, transparent 52% 100%);
  opacity:.55;
  pointer-events:none;
}


/* v19.01 — volledige materiaalknop als preview */
.facade-material-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.facade-material-btn.material-preview,
.facade-variant-btn.material-preview{
  position:relative;
  min-height:76px;
  overflow:hidden;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  background-color:var(--material-color, #f2f2ee);
  background-repeat:repeat;
  background-position:center;
  color:#0f172a;
}
.facade-material-btn.material-preview.color-preview{
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.08)),
    linear-gradient(0deg, var(--material-color, #f2f2ee), var(--material-color, #f2f2ee));
}
.facade-material-btn.material-preview .material-label,
.facade-variant-btn.material-preview .material-label{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  padding:8px 14px;
  background:rgba(255,255,255,.84);
  box-shadow:0 6px 16px rgba(15,23,42,.10);
  font-weight:650;
}
.facade-material-btn.material-preview.swatch-tile-natural,
.facade-material-btn.material-preview.swatch-tile-warm,
.facade-variant-btn.material-preview.swatch-tile-natural,
.facade-variant-btn.material-preview.swatch-tile-warm{
  background-size:30px 160px, 30px 160px, 160px 320px, 30px 160px;
  background-repeat:repeat;
  background-position:center;
}
.facade-material-btn.material-preview.swatch-tile-natural,
.facade-variant-btn.material-preview.swatch-tile-natural{
  background-color:#b98b61;
  background-image:
    linear-gradient(90deg, rgba(35,25,18,.16) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(35,25,18,.18) 0 1px, transparent 1px 100%),
    url('../assets/textures/tile-natural.jpeg'),
    linear-gradient(90deg, #8f684c 0%, #c79a72 48%, #a1714f 100%);
}
.facade-material-btn.material-preview.swatch-tile-warm,
.facade-variant-btn.material-preview.swatch-tile-warm{
  background-color:#c78650;
  background-image:
    linear-gradient(90deg, rgba(45,28,16,.14) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(45,28,16,.18) 0 1px, transparent 1px 100%),
    url('../assets/textures/tile-warm.webp'),
    linear-gradient(90deg, #9e6238 0%, #d39259 48%, #ad6a3c 100%);
}
.facade-material-btn.material-preview.swatch-tile-natural::after,
.facade-material-btn.material-preview.swatch-tile-warm::after,
.facade-variant-btn.material-preview.swatch-tile-natural::after,
.facade-variant-btn.material-preview.swatch-tile-warm::after{
  content:none;
}
.facade-material-btn.material-preview .facade-swatch{
  display:none;
}


/* v19.01 — finish-knoppen met materiaal-/kleurpreview en zonder storende swatch-lijn */
.facade-finish-btn.finish-preview,
.facade-opening-finish-btn.finish-preview{
  position:relative;
  overflow:hidden;
  min-height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-repeat:repeat;
  background-position:center;
}
.facade-finish-btn.finish-white,
.facade-opening-finish-btn.finish-white{
  background:linear-gradient(135deg, #ffffff, #f3f5f7);
}
.facade-finish-btn.finish-anthracite,
.facade-opening-finish-btn.finish-anthracite{
  background:linear-gradient(135deg, #56616d, #202a35);
}
.facade-opening-finish-btn.finish-same{
  background:linear-gradient(135deg, #b98b61, #7d5b3e);
}
.facade-finish-btn.finish-anthracite .material-label,
.facade-opening-finish-btn.finish-anthracite .material-label{
  color:#0f172a;
}
.facade-finish-btn.finish-preview .material-label,
.facade-opening-finish-btn.finish-preview .material-label{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:7px 12px;
  background:rgba(255,255,255,.86);
  box-shadow:0 5px 14px rgba(15,23,42,.10);
  font-weight:650;
}

/* v19.01 — daktrim kleurkeuze */
.roof-trim-btn.finish-preview{
  position:relative;
  overflow:hidden;
  min-height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-repeat:repeat;
  background-position:center;
}
.roof-trim-btn.finish-anthracite{
  background:linear-gradient(135deg, #56616d, #111827 72%);
}
.roof-trim-btn.finish-aluminium{
  background:linear-gradient(135deg, #eef1f4, #aeb5bc 48%, #f6f7f8);
}
.roof-trim-btn.finish-preview .material-label{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:7px 12px;
  background:rgba(255,255,255,.86);
  box-shadow:0 5px 14px rgba(15,23,42,.10);
  font-weight:650;
}

/* v19.01 — compacte panelenstaat in prijs-stap */
.panel-count-summary{display:flex;flex-direction:column;gap:14px;margin-top:14px;}
.panel-count-card{border:1px solid #d8e2ef;border-radius:20px;padding:16px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);}
.panel-count-card h3{margin:0 0 12px 0;font-size:18px;color:#0f172a;}
.panel-count-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:7px 0;border-top:1px solid rgba(203,213,225,.55);}
.panel-count-row:first-of-type{border-top:0;}
.panel-count-row span{font-size:15px;color:#0f172a;line-height:1.35;}
.panel-count-row small{display:block;font-size:12px;color:#64748b;font-weight:500;margin-top:2px;}
.panel-count-row strong{font-size:15px;white-space:nowrap;color:#0f172a;}
.panel-count-sub{font-size:12px;line-height:1.35;color:#64748b;margin:2px 0 8px;}
.panel-count-empty{font-size:14px;color:#64748b;padding:6px 0;}

/* v19.01 compact panel count */
.panel-count-compact .panel-count-row span{font-weight:650;}
.panel-count-compact .panel-count-row strong{font-size:16px;text-align:right;}
.panel-count-compact .panel-count-sub{margin-top:12px;}

/* v19.01 — lokale prijs-backoffice */
.pricing-backoffice{margin-top:16px;}
.pricing-card{border:1px solid #d8e2ef;border-radius:20px;padding:16px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);}
.pricing-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;}
.pricing-head h3{margin:0;font-size:18px;color:#0f172a;}
.pricing-help{margin:0 0 14px;font-size:12px;line-height:1.35;color:#64748b;}
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin-bottom:16px;}
.price-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:#64748b;}
.price-input-wrap{display:flex;align-items:center;gap:8px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;padding:0 10px;min-height:42px;}
.price-input-wrap input{width:100%;border:0;outline:0;font-size:15px;font-weight:650;color:#0f172a;background:transparent;}
.price-input-wrap small{white-space:nowrap;color:#64748b;font-size:11px;font-weight:600;}
.price-calc-card{border-top:1px solid rgba(203,213,225,.7);padding-top:12px;}
.price-calc-card h4{margin:0 0 8px;font-size:16px;color:#0f172a;}
.price-calc-row,.price-total-row,.price-grand-total{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-top:1px solid rgba(203,213,225,.45);}
.price-calc-row:first-of-type{border-top:0;}
.price-calc-row span,.price-total-row span,.price-grand-total span{font-size:14px;color:#0f172a;line-height:1.25;}
.price-calc-row small{display:block;font-size:11px;color:#64748b;margin-top:2px;}
.price-calc-row strong,.price-total-row strong{font-size:14px;white-space:nowrap;color:#0f172a;}
.price-grand-total{margin-top:6px;border-top:2px solid #cbd5e1;align-items:center;}
.price-grand-total span{font-size:16px;font-weight:800;}
.price-grand-total strong{font-size:20px;color:#0f172a;white-space:nowrap;}
.pricing-json{margin-top:12px;border-top:1px solid rgba(203,213,225,.7);padding-top:10px;}
.pricing-json summary{cursor:pointer;font-size:13px;font-weight:750;color:#334155;}
.pricing-json textarea{width:100%;min-height:220px;margin-top:10px;border:1px solid #cbd5e1;border-radius:14px;padding:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:#0f172a;background:#f8fafc;resize:vertical;box-sizing:border-box;}
@media (max-width: 720px){.pricing-grid{grid-template-columns:1fr;}}


/* v19.01 — aparte prijs-backoffice */
.admin-link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  margin-top:12px;
}
.admin-link-button.secondary,
.admin-link-button.small{
  background:#fff;
  color:var(--text);
  border-color:#cbd5e1;
}
.admin-link-button.small{
  width:auto;
  margin-top:0;
}
.pricing-admin-body{
  min-height:100%;
  background:linear-gradient(180deg,#f4f5f7 0%,#e8ebf0 100%);
}
.pricing-admin-page{
  max-width:1120px;
  margin:0 auto;
  padding:28px;
}
.pricing-admin-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:18px;
  background:rgba(255,255,255,.92);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:26px 30px;
}
.pricing-admin-header h1{
  margin:0 0 6px;
  font-size:34px;
  line-height:1;
}
.pricing-admin-header p{
  margin:0;
  color:#64748b;
  font-size:16px;
}
.pricing-admin-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
  margin-bottom:18px;
}
.pricing-admin-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:16px;
}
.pricing-admin-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.pricing-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.price-admin-field{
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}
.price-admin-field span{
  font-weight:700;
}
.price-admin-input-wrap{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
}
.price-admin-input-wrap input{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
}
.price-admin-input-wrap small{
  color:#64748b;
  white-space:nowrap;
}
.pricing-admin-json{
  width:100%;
  min-height:240px;
  border:1px solid #cbd5e1;
  border-radius:16px;
  padding:14px;
  font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:#0f172a;
  color:#e2e8f0;
}
.pricing-admin-json.import{
  min-height:150px;
  background:#fff;
  color:#0f172a;
  margin:10px 0 12px;
}
@media (max-width: 780px){
  .pricing-admin-grid{grid-template-columns:1fr}
  .pricing-admin-toolbar,.pricing-admin-header{flex-direction:column}
  .pricing-admin-actions{width:100%;flex-direction:column}
}

/* v19.01 polish */
.brand-logo{background:#fff;border-radius:18px;overflow:hidden;flex:0 0 72px;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.brand-logo img{width:100%;height:100%;object-fit:contain;padding:8px;display:block}
.topbar{align-items:stretch}.brand-card,.build-card{display:flex;flex-direction:column;justify-content:space-between}.build-card h2{font-size:16px;margin:4px 0 0}.brand-head{align-items:flex-start}.brand-sub{margin:0;max-width:980px}
.pricing-admin-brand{display:flex;align-items:center;gap:16px}.admin-logo{width:70px;height:70px;border-radius:18px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.08);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 70px}.admin-logo img{width:100%;height:100%;object-fit:contain;padding:8px;display:block}
.pricing-admin-grid{display:flex;flex-direction:column;gap:18px}.pricing-admin-section{border:1px solid #d8e2ef;border-radius:22px;padding:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}.pricing-section-head{margin-bottom:14px}.pricing-section-head h3{margin:0 0 4px;font-size:18px;color:#0f172a}.pricing-section-head p{margin:0;color:#64748b;font-size:13px;line-height:1.35}.pricing-admin-grid-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.price-admin-input-wrap input{font-size:16px}.price-calc-row small{display:block;color:#64748b;font-size:12px;font-weight:600;margin-top:2px}@media(max-width:900px){.pricing-admin-grid-inner{grid-template-columns:1fr}.pricing-admin-brand{align-items:flex-start}}


/* v19.01 — grotere logo-header en aangepaste kengetallen */
.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-head-logo-only {
  align-items: center;
  margin-bottom: 26px;
}
.brand-logo-large {
  width: 320px;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.brand-logo-large img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.topbar {
  align-items: stretch;
}
.build-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-logo {
  width: 260px;
  height: auto;
  background: transparent;
  border-radius: 0;
}
.admin-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .brand-logo-large { width: 240px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#toggleSteelOnlyBtn.active{background:#2563eb;color:#fff;border-color:#2563eb;}

.price-summary-card{
  position:absolute;
  top:84px;
  right:18px;
  z-index:20;
  background:#111827;
  color:#fff;
  padding:14px 18px;
  border-radius:16px;
  min-width:280px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.price-summary-label{font-size:12px;opacity:.72}
.price-summary-total{font-size:30px;font-weight:800;margin:2px 0 8px}
.price-breakdown{font-size:12px;line-height:1.55;color:rgba(255,255,255,.82)}
.price-breakdown-row{display:flex;justify-content:space-between;gap:18px;border-top:1px solid rgba(255,255,255,.12);padding-top:4px;margin-top:4px}
.price-breakdown-missing{color:#fca5a5;margin-top:6px}

/* v19.01 rustige prijsweergave */
.price-summary-card{display:none!important}
.render-price-pill{
  position:absolute;
  top:84px;
  right:18px;
  z-index:20;
  background:rgba(17,24,39,.94);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  min-width:190px;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.render-price-pill span{font-size:12px;opacity:.72}
.render-price-pill strong{font-size:20px;font-weight:800}
.price-calc-card{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:14px;
}
.price-calc-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.price-breakdown-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.price-breakdown-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid #eef2f7;
  font-size:13px;
}
.price-breakdown-row span{color:#334155}
.price-breakdown-row strong{font-weight:800;color:#0f172a}
.price-calc-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  padding-top:12px;
  border-top:2px solid #e5e7eb;
}
.price-calc-total span{font-weight:700}
.price-calc-total strong{font-size:22px;font-weight:900}
.price-missing-badge{
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  padding:4px 8px;
  font-size:11px;
  font-weight:800;
}

/* v19.01 prijs-overlay fix */
.render-price-pill .price-summary-label,
.render-price-pill .price-summary-total,
.render-price-pill .price-breakdown{display:none!important}
.render-price-pill{
  width:auto!important;
  max-width:320px;
}

/* v19.01 grotere header/logo */
.brand-head-logo-only{
  min-height:90px;
  align-items:center;
}
.brand-logo-large{
  width:750px!important;
  max-width:100%;
  height:auto!important;
  background:transparent!important;
  border-radius:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.brand-logo-large img{
  width:750px!important;
  max-width:100%!important;
  height:auto!important;
  display:block!important;
  object-fit:contain!important;
}
.brand-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media(max-width:1200px){
  .brand-logo-large,
  .brand-logo-large img{width:520px!important;}
}

/* v19.01 header/logo alignment fix */
.brand-head-logo-only{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:120px!important;
  padding:18px 26px!important;
  overflow:hidden!important;
}

.brand-logo-large{
  width:100%!important;
  max-width:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}

.brand-logo-large img{
  width:auto!important;
  height:72px!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:left center!important;
  display:block!important;
  transform:scale(2.6);
  transform-origin:left center;
  margin-left:110px;
}

/* compactere statistiek kaarten zodat header weer mooi in balans is */
.metrics-grid{
  align-items:stretch!important;
}

.metrics-grid .metric-card{
  min-height:112px!important;
}

/* responsive */
@media(max-width:1200px){
  .brand-logo-large img{
    height:54px!important;
    transform:scale(2.1);
    margin-left:70px;
  }
}

/* v19.01 logo zichtbaar en netjes uitgelijnd */
.brand-head-logo-only{
  min-height:84px!important;
  padding:18px 42px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
}

.brand-logo-large{
  width:750px!important;
  max-width:750px!important;
  height:auto!important;
  background:transparent!important;
  border-radius:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
}

.brand-logo-large img{
  width:520px!important;
  max-width:100%!important;
  height:auto!important;
  display:block!important;
  object-fit:contain!important;
  object-position:left center!important;
  transform:none!important;
  margin-left:0!important;
}

.brand-card{
  justify-content:center!important;
}

@media(max-width:1200px){
  .brand-logo-large,
  .brand-logo-large img{
    width:360px!important;
  }
}


/* v19.01 HARD OVERRIDE LOGO */
img[src*="logo"],
img[src*="Logo"],
img[alt*="logo"],
img[alt*="Logo"]{
  width:750px !important;
  max-width:750px !important;
  min-width:750px !important;
  height:auto !important;
  transform:none !important;
  display:block !important;
}

.brand-logo-large,
.brand-logo,
.logo,
.header-logo{
  width:750px !important;
  max-width:750px !important;
  min-width:750px !important;
}

.brand-logo-large img,
.brand-logo img,
.logo img,
.header-logo img{
  width:750px !important;
  max-width:750px !important;
  min-width:750px !important;
  height:auto !important;
}


/* v19.01 logo 500px + tegels uitlijnen */
.brand-logo-large,
.brand-logo,
.logo,
.header-logo{
  width:500px !important;
  max-width:500px !important;
  min-width:500px !important;
}

.brand-logo-large img,
.brand-logo img,
.logo img,
.header-logo img,
img[src*="logo"],
img[src*="Logo"]{
  width:500px !important;
  max-width:500px !important;
  min-width:500px !important;
  height:auto !important;
}

.metrics-grid{
  display:grid !important;
  align-items:stretch !important;
}

.metrics-grid .metric-card,
.metric-card{
  height:118px !important;
  min-height:118px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

.brand-head-logo-only{
  min-height:118px !important;
  display:flex !important;
  align-items:center !important;
}


/* v19.01 alleen rechter kaart aanpassen */
.build-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  padding:42px!important;
}

.build-card h2{
  font-size:34px!important;
  font-weight:800!important;
  margin:0 0 24px 0!important;
  text-align:left!important;
}

.build-grid{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:20px!important;
  align-items:end!important;
  margin-top:auto!important;
}

.build-item{
  height:170px!important;
  min-height:170px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  padding:24px 26px!important;
}

.build-mm{
  display:none!important;
}

.build-label{
  font-size:20px!important;
  font-weight:700!important;
  margin:0!important;
}

.build-rc{
  font-size:56px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
}


/* v19.01 isolatietegels gelijk aan linker statistiektegels */
.build-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  padding:42px!important;
}

.build-card h2{
  font-size:30px!important;
  font-weight:800!important;
  margin:0 0 24px 0!important;
  text-align:left!important;
}

.build-grid{
  display:grid!important;
  grid-template-columns:repeat(3, minmax(0, 1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
  margin-top:auto!important;
}

.build-item{
  height:126px!important;
  min-height:126px!important;
  padding:22px 26px!important;
  border-radius:22px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  background:rgba(255,255,255,.14)!important;
}

.build-mm{
  display:none!important;
}

.build-label{
  font-size:18px!important;
  font-weight:500!important;
  line-height:1.15!important;
  margin:0 0 12px 0!important;
  color:rgba(255,255,255,.72)!important;
}

.build-rc{
  font-size:32px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
  color:#fff!important;
}

@media(max-width:1400px){
  .build-card{
    padding:34px!important;
  }
  .build-item{
    height:116px!important;
    min-height:116px!important;
    padding:18px 22px!important;
  }
  .build-rc{
    font-size:28px!important;
  }
}


/* v19.01 rechter tegels exact gelijk aan linker tegels */
.build-card h2{
  font-size:inherit !important;
  margin:0 0 28px 0 !important;
}

.build-grid{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:18px !important;
}

.build-item{
  height:126px !important;
  min-height:126px !important;
  border-radius:22px !important;
  padding:22px 26px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
}

.build-label{
  font-size:18px !important;
  font-weight:500 !important;
  line-height:1.15 !important;
  margin:0 0 12px 0 !important;
}

.build-rc{
  font-size:32px !important;
  font-weight:800 !important;
  line-height:1 !important;
  margin:0 !important;
}

.build-mm{
  display:none !important;
}


/* v19.01 rechter isolatieblok gelijk aan linker tegels */
.topbar{
  align-items:stretch!important;
}

.brand-card,
.build-card{
  min-height:340px!important;
  height:340px!important;
  box-sizing:border-box!important;
}

.build-card{
  display:grid!important;
  grid-template-rows:auto 1fr!important;
  padding:42px!important;
  align-content:stretch!important;
}

.build-card h2{
  font-size:34px!important;
  font-weight:800!important;
  line-height:1.05!important;
  margin:0!important;
  color:#ffffff!important;
  align-self:start!important;
}

.build-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:end!important;
  align-self:end!important;
  margin:0!important;
}

.build-item{
  /* exact dezelfde tegelmaat/verhouding als de linker metric-card */
  height:126px!important;
  min-height:126px!important;
  padding:22px 26px!important;
  border-radius:22px!important;
  box-sizing:border-box!important;

  /* zelfde lichte tegelstijl als links */
  background:#f1f4f8!important;
  color:#0f172a!important;

  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
}

.build-mm{
  display:none!important;
}

.build-label{
  font-size:18px!important;
  font-weight:500!important;
  line-height:1.15!important;
  margin:0 0 12px 0!important;
  color:#64748b!important;
}

.build-rc{
  font-size:32px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
  color:#243042!important;
}

/* linker tegels expliciet dezelfde maat houden */
.metric-card{
  height:126px!important;
  min-height:126px!important;
  padding:22px 26px!important;
  border-radius:22px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  box-sizing:border-box!important;
}

.metric-label{
  font-size:18px!important;
  font-weight:500!important;
  line-height:1.15!important;
  margin:0 0 12px 0!important;
  color:#64748b!important;
}

.metric-value{
  font-size:32px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
  color:#243042!important;
}

@media(max-width:1400px){
  .brand-card,
  .build-card{
    min-height:310px!important;
    height:310px!important;
  }
  .build-card{
    padding:34px!important;
  }
  .metric-card,
  .build-item{
    height:116px!important;
    min-height:116px!important;
    padding:18px 22px!important;
  }
  .metric-value,
  .build-rc{
    font-size:28px!important;
  }
}


/* v19.01 - rechter isolatietegels breed, rustig en onder uitgelijnd */
.topbar{
  align-items:stretch!important;
}

.brand-card,
.build-card{
  min-height:360px!important;
  height:360px!important;
  box-sizing:border-box!important;
}

/* linker header: bestaande goede logo behouden, tegels onderin */
.brand-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
}

/* rechter header: titel boven, tegels onderin op dezelfde onderlijn */
.build-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  padding:42px 42px 36px!important;
}

.build-card h2{
  font-size:34px!important;
  font-weight:800!important;
  line-height:1.05!important;
  margin:0!important;
  color:#fff!important;
}

/* volledige breedte benutten */
.build-grid{
  display:grid!important;
  grid-template-columns:repeat(3, minmax(0, 1fr))!important;
  gap:18px!important;
  width:100%!important;
  margin:0!important;
  align-items:stretch!important;
}

/* exact dezelfde tegelmaat als links */
.metric-card,
.build-item{
  height:126px!important;
  min-height:126px!important;
  padding:22px 26px!important;
  border-radius:22px!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
}

/* rechter tegels licht, zoals links */
.build-item{
  background:#f1f4f8!important;
  color:#0f172a!important;
}

/* diktes weg */
.build-mm{
  display:none!important;
}

/* labels exact gelijk */
.metric-label,
.build-label{
  font-size:18px!important;
  font-weight:500!important;
  line-height:1.15!important;
  margin:0 0 12px 0!important;
}

.metric-label{
  color:#64748b!important;
}

.build-label{
  color:#64748b!important;
}

/* waardes exact gelijk */
.metric-value,
.build-rc{
  font-size:32px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
}

.metric-value{
  color:#243042!important;
}

.build-rc{
  color:#243042!important;
}

@media(max-width:1400px){
  .brand-card,
  .build-card{
    min-height:330px!important;
    height:330px!important;
  }

  .build-card{
    padding:34px 34px 32px!important;
  }

  .metric-card,
  .build-item{
    height:116px!important;
    min-height:116px!important;
    padding:18px 22px!important;
  }

  .metric-value,
  .build-rc{
    font-size:28px!important;
  }

  .metric-label,
  .build-label{
    font-size:17px!important;
  }
}


/* v19.01 linker statistiektegels iets omhoog voor uitlijning */
.metric-grid{
  transform: translateY(-22px) !important;
}


/* v19.01 linker tegels minder omhoog: onderlijnen rustiger gelijk */
.metric-grid{
  transform: translateY(-10px) !important;
}


/* v19.01 titel Isolatiewaardes 35px lager */
.build-card h2{
  margin-top:35px !important;
}

/* v19.01 debug telling modal */
.debug-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(15,23,42,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.debug-modal.hidden{display:none!important}
.debug-modal-card{
  width:min(980px,96vw);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:24px;
  box-shadow:0 28px 80px rgba(0,0,0,.35);
  padding:22px;
}
.debug-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  border-bottom:1px solid #e5e7eb;
  padding-bottom:14px;
  margin-bottom:16px;
}
.debug-modal-head h2{
  margin:0;
  font-size:24px;
  line-height:1.15;
  color:#0f172a;
}
.debug-modal-head p{
  margin:6px 0 0;
  color:#64748b;
  font-size:14px;
}
.debug-close{
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#f1f5f9;
  color:#0f172a;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.debug-section{
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px;
  margin:12px 0;
  background:#f8fafc;
}
.debug-section h3{
  margin:0 0 10px;
  font-size:17px;
  color:#0f172a;
}
.debug-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:7px 0;
  border-top:1px solid #e5e7eb;
  font-size:14px;
}
.debug-row:first-of-type{border-top:0}
.debug-row span{color:#475569}
.debug-row strong{color:#0f172a;text-align:right}
.debug-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
.admin-only{
  border-style:dashed!important;
}

/* v19.16 debug calculatie per onderdeel */
.np-debug-calc-line strong{font-size:0.95em}
.debug-row strong{line-height:1.25}





/* v19.22 debug calculatie tabel compact zonder horizontale scroll */
.debug-modal-card{
  width:95vw;
  max-width:1800px;
}
.debug-counts-body{
  overflow:visible;
}
.debug-calc-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.debug-calc-section{
  overflow:visible;
}
.debug-calc-table{
  width:100%;
  min-width:0;
}
.debug-calc-head,
.debug-calc-line{
  display:grid;
  grid-template-columns:minmax(220px,2.1fr) 86px 96px 126px 126px 126px;
  gap:12px;
  align-items:center;
}
.debug-calc-head{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
  font-weight:800;
  padding:0 0 10px;
  border-bottom:1px solid #e5e7eb;
}
.debug-calc-line{
  padding:10px 0;
  border-bottom:1px solid #e5e7eb;
  font-size:14px;
  font-variant-numeric:tabular-nums;
}
.debug-calc-line:last-child{
  border-bottom:0;
}
.debug-calc-head span:not(:first-child),
.debug-calc-line span:not(:first-child),
.debug-calc-line strong{
  text-align:right;
}
.debug-part-label{
  text-align:left!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#334155;
  font-weight:650;
}
.debug-calc-line small{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:650;
  margin-top:2px;
  line-height:1.15;
}
.debug-empty{
  color:#64748b;
  padding:8px 0;
}
.debug-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:12px;
  margin:8px 0 16px;
}
.debug-summary-grid div{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
}
.debug-summary-grid span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.debug-summary-grid strong{
  display:block;
  margin-top:6px;
  font-size:18px;
}
@media (max-width:1200px){
  .debug-modal-card{width:98vw}
  .debug-calc-head,.debug-calc-line{
    grid-template-columns:minmax(180px,1.8fr) 72px 80px 105px 105px 110px;
    gap:8px;
    font-size:13px;
  }
}
@media (max-width:900px){
  .debug-summary-grid{grid-template-columns:repeat(2,1fr)}
}

/* v19.28 render prijs-pill uit */
#renderPricePill{display:none!important;}



/* v19.31 binnenwanden opties - gelijk aan overige tegels */
.inner-options-card{
  border:1px solid #d9e1ef;
  border-radius:16px;
  padding:14px;
  margin:12px 0 14px;
  background:#fff;
}
.swatch-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ral-swatch{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-width:130px;
  justify-content:flex-start;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:12px;
  padding:8px 11px;
  font-weight:700;
  cursor:pointer;
  color:#0f172a;
}
.ral-swatch span{
  width:30px;
  height:22px;
  border-radius:7px;
  border:1px solid #cbd5e1;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}
.ral-swatch strong{
  font-size:13px;
  white-space:nowrap;
}
.ral-swatch.active{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

/* v19.31 binnenwanden tegel exact neutraal zoals overige panelen */
#innerWallsPanel,
#innerWallsPanel.config-step-panel,
#innerWallsPanel.panel{
  background:#fff!important;
  border-color:#d9e1ef!important;
  box-shadow:0 8px 24px rgba(15,23,42,.06)!important;
}
#innerWallsPanel[style]{
  background:#fff!important;
}
#innerWallsPanel .inner-options-card{
  background:#fff!important;
}

/* v19.33 ruimtecategorieën */
.room-options-card{
  margin-top:10px;
  border:1px solid #d9e1ef;
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.room-options-card > strong{
  display:block;
  margin-bottom:10px;
}

/* v19.34 badkamer indeling popup */
.room-options-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.bathroom-layout-modal-card{
  max-width:min(900px,96vw);
}
.bathroom-layout-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}
.bathroom-layout-canvas{
  position:relative;
  min-width:0;
  min-height:0;
  max-width:none;
  border:2px solid #0f172a;
  border-radius:12px;
  background:
    linear-gradient(to right, rgba(148,163,184,.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.25) 1px, transparent 1px),
    #fff;
  background-size:24px 24px;
  overflow:hidden;
}
.bathroom-grid-label{
  position:absolute;
  left:8px;
  top:8px;
  font-size:12px;
  color:#64748b;
  background:rgba(255,255,255,.85);
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:3px 7px;
  z-index:1;
}
.bathroom-item{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #2563eb;
  border-radius:10px;
  background:#dbeafe;
  color:#1e3a8a;
  font-size:12px;
  font-weight:800;
  cursor:grab;
  user-select:none;
  touch-action:none;
}
.bathroom-item.active{
  background:#bfdbfe;
  box-shadow:0 0 0 3px rgba(37,99,235,.25);
}

/* v19.37 badkamer popup ramen + drag */
.bathroom-window-marker{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#bfdbfe;
  border:1px solid #1d4ed8;
  border-radius:6px;
  color:#1e3a8a;
  font-size:10px;
  font-weight:800;
  pointer-events:none;
  overflow:hidden;
  white-space:nowrap;
}
.bathroom-window-marker.vertical{
  writing-mode:vertical-rl;
  text-orientation:mixed;
}

/* v19.38 badkamer markers */
.bathroom-window-marker,
.bathroom-door-marker{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  font-size:10px;
  font-weight:800;
  pointer-events:none;
  overflow:hidden;
  white-space:nowrap;
}
.bathroom-window-marker{
  background:#bfdbfe;
  border:1px solid #1d4ed8;
  color:#1e3a8a;
}
.bathroom-door-marker{
  background:#fef3c7;
  border:1px solid #d97706;
  color:#92400e;
}
.bathroom-window-marker.vertical,
.bathroom-door-marker.vertical{
  writing-mode:vertical-rl;
  text-orientation:mixed;
}

/* v19.39 badkamer opslaan/annuleren */
.bathroom-layout-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
.room-options-card .opening-grid button[data-bath-layout-open]{
  width:100%;
}

/* v19.40 badkamer popup final */
.bathroom-layout-actions{margin-top:14px;display:flex;gap:10px;justify-content:flex-end}
.room-options-card .opening-grid button[data-bath-layout-open]{width:100%}
.bathroom-window-marker,.bathroom-door-marker{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:10px;font-weight:800;pointer-events:none;overflow:hidden;white-space:nowrap}
.bathroom-window-marker{background:#bfdbfe;border:1px solid #1d4ed8;color:#1e3a8a}
.bathroom-door-marker{background:#fef3c7;border:1px solid #d97706;color:#92400e}
.bathroom-window-marker.vertical,.bathroom-door-marker.vertical{writing-mode:vertical-rl;text-orientation:mixed}

/* v19.41 badkamer popup final clean */
.bathroom-layout-actions{margin-top:14px;display:flex;gap:10px;justify-content:flex-end}
.room-options-card .opening-grid button[data-bath-layout-open]{width:100%}
.bathroom-window-marker,.bathroom-door-marker{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:10px;font-weight:800;pointer-events:none;overflow:hidden;white-space:nowrap}
.bathroom-window-marker{background:#bfdbfe;border:1px solid #1d4ed8;color:#1e3a8a}
.bathroom-door-marker{background:#fef3c7;border:1px solid #d97706;color:#92400e}
.bathroom-window-marker.vertical,.bathroom-door-marker.vertical{writing-mode:vertical-rl;text-orientation:mixed}

/* v19.42 badkamer iconen */
.bathroom-item{
  flex-direction:column;
  gap:3px;
  line-height:1.05;
  padding:3px;
  box-sizing:border-box;
}
.bathroom-item svg{
  width:34%;
  min-width:20px;
  max-width:38px;
  height:auto;
  color:#1e3a8a;
}
.bathroom-item span{
  font-size:11px;
  font-weight:800;
  text-align:center;
}
.bathroom-icon-shower{
  background:#dbeafe;
}
.bathroom-icon-toilet{
  background:#e0f2fe;
}
.bathroom-icon-vanity{
  background:#fef3c7;
  color:#92400e;
}
.bathroom-icon-boiler{
  background:#e2e8f0;
  color:#334155;
}

/* v19.56 badkamer popup: 1:1 zichtbare ruimte = sleep-coördinaten */
#bathroomLayoutCanvas.bathroom-layout-canvas{
  min-width:0 !important;
  min-height:0 !important;
  max-width:none !important;
  flex:0 0 auto;
}

/* v19.57 vrije zone voor binnendeur */
.bathroom-door-keepout{
  position:absolute;
  z-index:0;
  border:1px dashed rgba(217,119,6,.65);
  background:rgba(245,158,11,.08);
  box-sizing:border-box;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.bathroom-door-keepout span{
  font-size:9px;
  font-weight:750;
  color:rgba(146,64,14,.72);
  background:rgba(255,255,255,.72);
  padding:2px 5px;
  border-radius:5px;
  white-space:nowrap;
}
.bathroom-item.door-blocked{
  box-shadow:0 0 0 3px rgba(220,38,38,.28);
}

/* v19.59 echte 2D bovenaanzichten sanitair */
.bathroom-item{
  padding:4px !important;
  box-sizing:border-box;
  gap:2px !important;
}
.bathroom-item .bathroom-plan-symbol{
  width:68% !important;
  height:68% !important;
  min-width:0 !important;
  max-width:none !important;
  flex:1 1 auto;
  overflow:visible;
}
.bathroom-item .bathroom-symbol-label{
  flex:0 0 auto;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:800;
  text-align:center;
  max-width:96%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* v19.64 maatvoering badkamer-popup */
.bathroom-measure{
  position:absolute;
  z-index:8;
  pointer-events:none;
  overflow:visible;
  box-sizing:border-box;
}
.bathroom-measure-line{
  position:absolute;
  background:#334155;
}
.bathroom-measure.horizontal .bathroom-measure-line{
  left:0;
  right:0;
  top:50%;
  height:1px;
}
.bathroom-measure.vertical .bathroom-measure-line{
  top:0;
  bottom:0;
  left:50%;
  width:1px;
}
.bathroom-measure.horizontal .bathroom-measure-line::before,
.bathroom-measure.horizontal .bathroom-measure-line::after{
  content:'';
  position:absolute;
  top:-3px;
  width:1px;
  height:7px;
  background:#334155;
}
.bathroom-measure.horizontal .bathroom-measure-line::before{left:0}
.bathroom-measure.horizontal .bathroom-measure-line::after{right:0}
.bathroom-measure.vertical .bathroom-measure-line::before,
.bathroom-measure.vertical .bathroom-measure-line::after{
  content:'';
  position:absolute;
  left:-3px;
  width:7px;
  height:1px;
  background:#334155;
}
.bathroom-measure.vertical .bathroom-measure-line::before{top:0}
.bathroom-measure.vertical .bathroom-measure-line::after{bottom:0}

.bathroom-measure > span{
  position:absolute;
  background:rgba(255,255,255,.94);
  border:1px solid #cbd5e1;
  border-radius:6px;
  padding:2px 5px;
  font-size:10px;
  line-height:1.1;
  font-weight:750;
  color:#334155;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
}
.bathroom-measure.horizontal > span{
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.bathroom-measure.vertical > span{
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) rotate(-90deg);
}

/* afstand tussen twee objecten: blauw accent */
.bathroom-measure.between .bathroom-measure-line,
.bathroom-measure.between.horizontal .bathroom-measure-line::before,
.bathroom-measure.between.horizontal .bathroom-measure-line::after,
.bathroom-measure.between.vertical .bathroom-measure-line::before,
.bathroom-measure.between.vertical .bathroom-measure-line::after{
  background:#2563eb;
}
.bathroom-measure.between > span{
  color:#1d4ed8;
  border-color:#93c5fd;
  background:rgba(239,246,255,.96);
}

/* v19.65 adaptieve maatlabels */
.bathroom-measure{
  overflow:visible !important;
}
.bathroom-measure > span{
  transform:none !important;
  z-index:2;
}
.bathroom-measure.horizontal > span,
.bathroom-measure.vertical > span{
  transform:none !important;
}

/* v19.66 snelle ruimtebewerking */
.room-quick-modal{
  position:fixed;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.30);
  backdrop-filter:blur(2px);
}
.room-quick-modal.hidden{display:none}
.room-quick-dialog{
  width:min(420px,calc(100vw - 28px));
  background:#fff;
  border:1px solid #dbe3ee;
  border-radius:22px;
  box-shadow:0 24px 70px rgba(15,23,42,.25);
  padding:20px;
}
.room-quick-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.room-quick-eyebrow{
  color:#64748b;
  font-size:12px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.room-quick-head h3{
  margin:2px 0 0;
  font-size:22px;
  color:#0f172a;
}
.room-quick-close{
  width:38px;
  height:38px;
  border:none;
  border-radius:999px;
  background:#f1f5f9;
  color:#0f172a;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.room-quick-form{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:12px 14px;
  align-items:center;
}
.room-quick-form label{
  font-weight:750;
  color:#334155;
}
.room-quick-form input,
.room-quick-form select{
  width:100%;
  min-width:0;
  border:1px solid #cbd5e1;
  border-radius:11px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
}
.room-quick-extra{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #e2e8f0;
}
.room-quick-extra.hidden{display:none}
.room-quick-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}
.room-context-menu{
  position:fixed;
  z-index:13000;
  min-width:190px;
  padding:6px;
  border:1px solid #dbe3ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 38px rgba(15,23,42,.22);
}
.room-context-menu.hidden{display:none}
.room-context-menu button{
  display:block;
  width:100%;
  border:none;
  background:transparent;
  text-align:left;
  padding:10px 12px;
  border-radius:8px;
  color:#0f172a;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}
.room-context-menu button:hover{
  background:#eff6ff;
  color:#1d4ed8;
}
.room-context-menu button.hidden{display:none}

/* v19.80 meterkast als maatvaste ruimte */
.meterkast-size-grid{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:8px 10px;
  align-items:center;
  margin:10px 0 12px;
}
.meterkast-size-grid > label{
  font-size:12px;
  font-weight:750;
  color:#475569;
}
.meterkast-size-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
  align-items:center;
}
.meterkast-size-input input{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
.meterkast-size-input span{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

/* v19.82 eigen meterkast-stepper; Safari native number-pijltjes niet meer gebruikt */
.meterkast-size-input{
  grid-template-columns:minmax(72px,1fr) auto auto !important;
}
.meterkast-size-input input{
  appearance:textfield;
  -webkit-appearance:none;
  height:40px;
  padding:8px 10px;
}
.meterkast-stepper{
  display:grid;
  grid-template-columns:36px 36px;
  gap:4px;
}
.meterkast-stepper button{
  width:36px;
  height:40px;
  padding:0;
  border:1px solid #cbd5e1;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  font-size:23px;
  font-weight:650;
  line-height:1;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  touch-action:manipulation;
}
.meterkast-stepper button:hover{
  background:#f8fafc;
  border-color:#94a3b8;
}
.meterkast-stepper button:active{
  background:#e2e8f0;
  transform:translateY(1px);
}

/* v19.83 uniforme maatvelden + vasthouden op +/- */
.meterkast-size-input input,
.np-measure-input{
  height:42px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:11px !important;
  background:#fff !important;
  padding:8px 12px !important;
  font:inherit !important;
  color:#0f172a !important;
  box-sizing:border-box !important;
  outline:none !important;
  box-shadow:none !important;
  -webkit-appearance:none !important;
  appearance:none !important;
}
.meterkast-size-input input:focus,
.np-measure-input:focus{
  border-color:#93c5fd !important;
  box-shadow:0 0 0 3px rgba(59,130,246,.12) !important;
}

.np-measure-input-row{
  display:grid;
  grid-template-columns:minmax(70px,1fr) auto auto;
  gap:7px;
  align-items:center;
  width:100%;
}
.np-measure-stepper,
.meterkast-stepper{
  display:grid;
  grid-template-columns:38px 38px;
  gap:5px;
}
.np-measure-stepper button,
.meterkast-stepper button{
  width:38px !important;
  height:42px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:22px !important;
  font-weight:700 !important;
  line-height:1 !important;
  padding:0 !important;
  cursor:pointer !important;
  user-select:none !important;
  -webkit-user-select:none !important;
  touch-action:none !important;
  box-shadow:none !important;
}
.np-measure-stepper button:hover,
.meterkast-stepper button:hover{
  background:#f8fafc !important;
  border-color:#94a3b8 !important;
}
.np-measure-stepper button:active,
.meterkast-stepper button:active{
  background:#e2e8f0 !important;
  transform:translateY(1px);
}
.np-measure-input-row > span,
.meterkast-size-input > span{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

/* v19.88 soft-validatie binnenindeling */
.interior-validation-warning{
  margin:0 0 12px;
  padding:12px 14px;
  border:1px solid #fecaca;
  border-radius:12px;
  background:#fef2f2;
  color:#991b1b;
  font-size:13px;
  line-height:1.45;
}
.interior-validation-warning strong{
  display:block;
  margin-bottom:4px;
  font-size:13px;
}


/* ===== v19.95 UX: rustige start en compacte woninggegevens ===== */
.ux-legacy-topbar{display:none !important;}
.ux-legacy-basis-panel{display:none !important;}

.stage{position:relative;}
.ux-stage-tools{
  position:absolute;
  top:16px;
  right:18px;
  z-index:24;
  display:flex;
  gap:8px;
  pointer-events:auto;
}
.ux-stage-tool-btn{
  min-height:38px;
  padding:8px 13px;
  border:1px solid rgba(148,163,184,.48);
  border-radius:999px;
  background:rgba(255,255,255,.91);
  color:#334155;
  font:inherit;
  font-weight:650;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
  backdrop-filter:blur(10px);
}
.ux-stage-tool-btn:hover{background:#fff;border-color:#94a3b8;}
.ux-stage-tool-icon{width:38px;padding:0;font-size:18px;}

.ux-home-info{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:24;
}
.ux-home-info-btn{
  border:1px solid rgba(148,163,184,.45);
  border-radius:999px;
  padding:9px 14px;
  background:rgba(255,255,255,.91);
  color:#334155;
  box-shadow:0 6px 20px rgba(15,23,42,.1);
  backdrop-filter:blur(12px);
  font:inherit;
  font-weight:650;
}
.ux-home-info-panel{
  position:absolute;
  left:0;
  bottom:48px;
  width:min(360px,calc(100vw - 48px));
  padding:18px;
  border:1px solid #dbe3ee;
  border-radius:20px;
  background:rgba(255,255,255,.97);
  box-shadow:0 18px 46px rgba(15,23,42,.18);
  backdrop-filter:blur(14px);
}
.ux-home-info-title{font-weight:760;color:#0f172a;margin-bottom:10px;}
.ux-home-info-primary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e8edf4;color:#334155;}
.ux-home-info-primary strong{font-size:18px;color:#0f172a;}
.ux-home-info-grid{display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding:13px 0;font-size:13px;color:#64748b;}
.ux-home-info-grid strong{color:#334155;}
.ux-home-info-rc{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #e8edf4;padding-top:12px;}
.ux-home-info-rc span{padding:6px 8px;border-radius:10px;background:#f1f5f9;font-size:12px;color:#64748b;}
.ux-home-info-rc strong{color:#0f172a;}

.ux-start-backdrop,
.ux-tutorial-backdrop{
  position:fixed;
  inset:0;
  z-index:5000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(15,23,42,.38);
  backdrop-filter:blur(10px);
}
.ux-start-card{
  width:min(880px,96vw);
  max-height:92vh;
  overflow:auto;
  border-radius:28px;
  background:#fff;
  box-shadow:0 32px 90px rgba(15,23,42,.28);
  padding:30px;
}
.ux-start-brand img{width:min(310px,56vw);height:auto;display:block;margin-bottom:24px;}
.ux-start-heading{margin-bottom:24px;}
.ux-start-heading h2,.ux-tutorial-top h2{margin:4px 0 7px;color:#0f172a;font-size:30px;line-height:1.1;}
.ux-start-heading p,.ux-tutorial-point p{margin:0;color:#64748b;line-height:1.5;}
.ux-start-kicker{text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:800;color:#64748b;}
.ux-start-section{padding:19px 0;border-top:1px solid #e8edf4;}
.ux-start-section h3{margin:0 0 13px;font-size:15px;color:#334155;}
.ux-start-grid{display:grid;gap:14px;}
.ux-start-grid-two{grid-template-columns:repeat(2,minmax(0,1fr));}
.ux-start-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));}
.ux-start-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#475569;}
.ux-start-grid input,.ux-start-grid select{
  width:100%;
  min-height:48px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:#fff;
  padding:0 14px;
  color:#0f172a;
  font:inherit;
  outline:none;
}
.ux-start-grid input:focus,.ux-start-grid select:focus{border-color:#7aa2ef;box-shadow:0 0 0 4px rgba(59,130,246,.12);}
.ux-start-grid select:disabled{background:#f1f5f9;color:#64748b;}
.ux-start-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;border-top:1px solid #e8edf4;}
.ux-start-actions button,.ux-tutorial-actions button{
  border-radius:14px;
  padding:12px 19px;
  min-height:46px;
  font-weight:750;
}
.ux-start-note{font-size:12px;color:#64748b;}

.ux-tutorial-card{
  width:min(720px,94vw);
  border-radius:28px;
  background:#fff;
  box-shadow:0 32px 90px rgba(15,23,42,.3);
  padding:28px;
}
.ux-tutorial-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px;}
.ux-tutorial-close{border:0;background:#f1f5f9;color:#475569;width:38px;height:38px;border-radius:50%;font-size:24px;line-height:1;}
.ux-tutorial-points{display:grid;gap:10px;}
.ux-tutorial-point{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:14px;border-radius:16px;background:#f8fafc;}
.ux-tutorial-point>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#071b49;color:#fff;font-weight:800;}
.ux-tutorial-point strong{display:block;margin-bottom:3px;color:#0f172a;}
.ux-tutorial-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #e8edf4;}

@media (max-width:760px){
  .ux-start-grid-two,.ux-start-grid-three{grid-template-columns:1fr;}
  .ux-start-card{padding:22px;}
  .ux-start-actions{align-items:stretch;flex-direction:column;}
  .ux-stage-tools{top:10px;right:10px;}
  .ux-home-info{left:10px;bottom:10px;}
}

/* v19.95: oude ontwikkel-hint niet meer tonen in klantinterface */
.stage>.hint{display:none !important;}

/* v19.95.1: modal visibility must override backdrop display:flex */
.ux-start-backdrop.hidden,
.ux-tutorial-backdrop.hidden{
  display:none !important;
}


/* v19.95.4 — na het verwijderen van de oude topbar vult de 3D-render de stage. */
.stage > #render{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}
.stage > .badgebar,
.stage > #status,
.stage > .ux-stage-tools,
.stage > .ux-home-info{
  z-index:24;
}


/* v19.95.6 — Basisgegevens: eerste start versus later bewerken */
.ux-start-action-buttons{
  display:flex;
  gap:10px;
  align-items:center;
  margin-left:auto;
}
.ux-start-action-buttons button{
  min-width:150px;
}
@media (max-width:760px){
  .ux-start-action-buttons{
    width:100%;
    margin-left:0;
  }
  .ux-start-action-buttons button{
    flex:1 1 0;
    min-width:0;
  }
}


/* =========================================================
   v19.95.7 — rustige, vaste 3D-stage + nette render toolbar
   ========================================================= */

.ux-stage-clean{
  position:sticky !important;
  top:12px !important;
  align-self:start !important;
  height:calc(100vh - 24px) !important;
  min-height:680px !important;
  overflow:hidden !important;
  border-radius:26px !important;
}

/* Canvas altijd exact binnen de stage. */
.ux-stage-clean > #render{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:1 !important;
}

/* Oude losse tekst/status niet over de render laten zweven. */
.ux-stage-clean > #status{
  position:absolute !important;
  left:18px !important;
  top:18px !important;
  z-index:25 !important;
  max-width:42% !important;
  padding:7px 11px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.88) !important;
  color:#64748b !important;
  font-size:12px !important;
  box-shadow:0 5px 16px rgba(15,23,42,.08) !important;
  backdrop-filter:blur(10px) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Bestaande renderknoppen als één horizontale toolbar. */
.ux-stage-clean > .badgebar{
  position:absolute !important;
  top:14px !important;
  right:126px !important;
  z-index:30 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  width:auto !important;
  max-width:calc(100% - 320px) !important;
  margin:0 !important;
  padding:0 !important;
  flex-wrap:nowrap !important;
  pointer-events:auto !important;
}

.ux-stage-clean > .badgebar button,
.ux-stage-clean > .badgebar .badge,
.ux-stage-clean > .badgebar > *{
  width:auto !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

/* Basisgegevens + ? vormen een eigen compact cluster helemaal rechts. */
.ux-stage-clean > .ux-stage-tools{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  z-index:32 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
}

.ux-stage-clean .ux-stage-tool-btn{
  width:auto !important;
  flex:0 0 auto !important;
  min-height:38px !important;
  padding:8px 13px !important;
}

.ux-stage-clean .ux-stage-tool-icon{
  width:38px !important;
  height:38px !important;
  padding:0 !important;
}

/* Compacte woninggegevens blijft rustig linksonder. */
.ux-stage-clean > .ux-home-info{
  left:16px !important;
  bottom:16px !important;
  z-index:30 !important;
}

/* De oude staalstatus niet pal tegen de renderknoppen. */
#steel-frame-preview{
  right:16px !important;
  bottom:16px !important;
  z-index:31 !important;
  opacity:.9 !important;
}

/* Op smallere schermen knoppen niet laten overlappen:
   status verdwijnt, badgebar schuift iets naar links en mag wrappen. */
@media (max-width:1450px){
  .ux-stage-clean > #status{
    display:none !important;
  }
  .ux-stage-clean > .badgebar{
    right:126px !important;
    max-width:calc(100% - 150px) !important;
    flex-wrap:wrap !important;
    row-gap:6px !important;
  }
}

@media (max-width:1150px){
  .ux-stage-clean{
    position:relative !important;
    top:auto !important;
    height:72vh !important;
    min-height:620px !important;
  }
  .ux-stage-clean > .badgebar{
    top:12px !important;
    left:12px !important;
    right:12px !important;
    justify-content:flex-start !important;
    max-width:calc(100% - 24px) !important;
    padding-right:120px !important;
  }
  .ux-stage-clean > .ux-stage-tools{
    top:12px !important;
    right:12px !important;
  }
}


/* =========================================================
   v19.95.8 — render clean-up
   Eén toolbar, geen statusvlak, geen overlap.
   ========================================================= */

/* Oude statusregel niet meer in de render tonen. */
.ux-stage-clean > #status{
  display:none !important;
}

/* Oude badgebar / losse UX tools zijn vervangen door één toolbar. */
.ux-stage-clean > .badgebar,
.ux-stage-clean > .ux-stage-tools{
  display:none !important;
}

.ux-stage-clean > .ux-render-toolbar{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  left:auto !important;
  z-index:40 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;

  width:auto !important;
  max-width:calc(100% - 28px) !important;
  padding:0 !important;
  margin:0 !important;

  flex-wrap:wrap !important;
  pointer-events:auto !important;
}

.ux-stage-clean > .ux-render-toolbar > button{
  width:auto !important;
  min-width:0 !important;
  min-height:38px !important;
  flex:0 0 auto !important;
  margin:0 !important;
  white-space:nowrap !important;
  border-radius:999px !important;
}

.ux-stage-clean > .ux-render-toolbar .ux-stage-tool-btn{
  padding:8px 13px !important;
}

.ux-stage-clean > .ux-render-toolbar .ux-stage-tool-icon{
  width:38px !important;
  height:38px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
}

/* De debugknop is alleen relevant in adminmodus en mag nooit ruimte reserveren. */
.ux-stage-clean > .ux-render-toolbar .admin-only:not(.admin-visible){
  display:none !important;
}

/* Staalframe ontwikkelbadge volledig uit klantweergave. */
#steel-frame-preview{
  display:none !important;
}

/* Woninggegevens blijft linksonder, los van toolbar. */
.ux-stage-clean > .ux-home-info{
  left:16px !important;
  bottom:16px !important;
  z-index:35 !important;
}

/* Smalle schermen: toolbar mag netjes naar een tweede regel, nooit overlappen. */
@media (max-width:1350px){
  .ux-stage-clean > .ux-render-toolbar{
    top:12px !important;
    right:12px !important;
    max-width:calc(100% - 24px) !important;
    row-gap:7px !important;
  }
}

@media (max-width:900px){
  .ux-stage-clean > .ux-render-toolbar{
    left:12px !important;
    right:12px !important;
    justify-content:flex-start !important;
  }
}


/* =========================================================
   v19.95.9 — Delen & exporteren
   ========================================================= */
.ux-export-backdrop{
  position:fixed;
  inset:0;
  z-index:5100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(15,23,42,.38);
}
.ux-export-backdrop.hidden{
  display:none !important;
}
.ux-export-card{
  width:min(620px,94vw);
  border-radius:26px;
  background:#fff;
  box-shadow:0 30px 90px rgba(15,23,42,.28);
  padding:26px;
}
.ux-export-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.ux-export-top h2{
  margin:4px 0 7px;
  font-size:28px;
  color:#0f172a;
}
.ux-export-top p{
  margin:0;
  color:#64748b;
  line-height:1.5;
}
.ux-export-actions{
  display:grid;
  gap:10px;
}
.ux-export-actions button{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  text-align:left;
  padding:15px 16px;
  border-radius:16px;
}
.ux-export-actions button strong{
  font-size:15px;
}
.ux-export-actions button span{
  font-size:12px;
  line-height:1.45;
  opacity:.78;
}
.ux-export-future{
  margin-top:16px;
  padding:14px 15px;
  border-radius:15px;
  background:#f8fafc;
  color:#64748b;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
}
.ux-export-future strong{
  color:#334155;
}


/* v19.95.11 — importeren direct vanuit Basisgegevens */
.ux-start-action-buttons{
  flex-wrap:wrap;
  justify-content:flex-end;
}
#uxImportFromStartBtn{
  min-width:210px;
}
@media (max-width:760px){
  #uxImportFromStartBtn{
    min-width:0;
  }
}


/* v19.95.12 — rustige startacties */
.ux-start-actions{
  display:block;
}
.ux-start-action-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  width:100%;
}
.ux-start-action-buttons > button{
  width:100%;
  min-width:0 !important;
  margin:0;
}
@media (max-width:700px){
  .ux-start-action-buttons{
    grid-template-columns:1fr;
  }
}

/* v19.95.19 — echte ruimtecontour + basis keuken */
.room-shape-mask{z-index:0}
.bathroom-grid-label,.bathroom-door-zone,.bathroom-marker{z-index:2}
.bathroom-item{z-index:3}
.bathroom-layout-toolbar [data-layout-group]{display:inline-flex;flex-wrap:wrap;gap:8px}
.bathroom-layout-toolbar [data-layout-group].hidden{display:none!important}

/* v19.95.21 — duidelijke conflictmarkering in de ruimte-editor */
.bathroom-item.door-blocked{
  outline:3px solid #dc2626 !important;
  outline-offset:-2px;
  background:rgba(220,38,38,.10) !important;
}


/* v19.95.22 — duidelijke deur in ruimte-editor + wand-snap */
.bathroom-layout-canvas{
  overflow:visible !important;
}

.bathroom-door-marker,
.bathroom-window-marker{
  position:absolute;
  z-index:6 !important;
  pointer-events:none;
  box-sizing:border-box;
}

.bathroom-door-marker{
  background:#fff;
  border:3px solid #0f172a;
  color:#0f172a;
  border-radius:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  box-shadow:0 2px 8px rgba(15,23,42,.12);
}

.bathroom-door-marker .room-door-label{
  position:absolute;
  padding:2px 5px;
  border-radius:999px;
  background:#fff;
  line-height:1;
}

.bathroom-door-marker .room-door-leaf{
  position:absolute;
  display:block;
  background:#2563eb;
  opacity:.8;
}

/* Horizontale wand */
.bathroom-door-marker[data-side="back"] .room-door-leaf,
.bathroom-door-marker[data-side="front"] .room-door-leaf{
  width:2px;
  height:34px;
  left:2px;
  top:8px;
  transform-origin:top center;
  transform:rotate(-42deg);
}

/* Verticale wand */
.bathroom-door-marker.vertical .room-door-leaf{
  width:34px;
  height:2px;
  left:8px;
  top:2px;
  transform-origin:left center;
  transform:rotate(42deg);
}

.bathroom-window-marker{
  z-index:5 !important;
}

.bathroom-door-keepout{
  z-index:1 !important;
}
.room-shape-mask{
  z-index:0 !important;
}
.bathroom-item{
  z-index:4 !important;
}

/* v19.95.37 — schone stabiele ruimte-editor */
.bathroom-layout-canvas{
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  overflow:visible !important;
}
.room-boundary-svg{z-index:3 !important;pointer-events:none !important;}
.room-shape-mask{z-index:0 !important;}
.bathroom-door-marker{display:none !important;}
.bathroom-door-keepout{display:none !important;}
.popup-door-overlay{z-index:8 !important;pointer-events:none !important;overflow:visible !important;}
.bathroom-item{z-index:7 !important;}

/* v19.95.38 — deur blijft zichtbaar bij beide draairichtingen */
.popup-door-overlay{
  z-index:8 !important;
  pointer-events:none !important;
}


/* v19.95.39 — badkamereditor als ingezoomde uitsnede van de echte plattegrond */
#bathroomLayoutCanvas{
  position:relative !important;
  background:#f8fafc !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:0 !important;
}

.bathroom-context-plan{
  z-index:1 !important;
}

.bathroom-room-layer{
  position:absolute !important;
  overflow:visible !important;
  z-index:3 !important;
}

.bathroom-room-layer .room-shape-mask{
  background:transparent !important;
}

.bathroom-room-layer .bathroom-grid-label{
  z-index:12 !important;
}


/* v19.95.40 — letterlijke ingezoomde kopie van de 2D-plattegrond */
#bathroomLayoutCanvas{
  position:relative !important;
  background:#f8fafc !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:0 !important;
}

.bathroom-context-plan{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:1 !important;
  pointer-events:none !important;
}

.bathroom-room-layer{
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  z-index:4 !important;
  overflow:visible !important;
}

.bathroom-room-layer::before,
.bathroom-room-layer::after{
  display:none !important;
}

.bathroom-room-layer .room-shape-mask,
.bathroom-room-layer .room-boundary-svg,
.bathroom-room-layer .bathroom-grid-label,
.bathroom-room-layer .bathroom-door-marker,
.bathroom-room-layer .popup-door-overlay{
  display:none !important;
}

.bathroom-room-layer .bathroom-item{
  z-index:8 !important;
}

/* v19.95.41 — live sanitairlaag zonder ghost-objecten */
.bathroom-room-layer .bathroom-item{
  will-change:left,top;
}


/* v19.95.42 — popup en bewerkbare laag exact uitgelijnd */
#bathroomLayoutCanvas{
  display:block !important;
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

.bathroom-context-plan{
  display:block !important;
}

.bathroom-room-layer{
  box-sizing:border-box !important;
  transform:none !important;
}

/* v19.95.58 — keukenobjecten strak als kasten */
.bathroom-item.kitchen-item{
  border-radius:0 !important;
}
.bathroom-item.kitchen-item .bathroom-plan-symbol rect{
  rx:0 !important;
  ry:0 !important;
}

/* v19.95.59 — keukenmodules als kasten, zonder afgeronde containerhoeken */
.bathroom-item.kitchen-item,
.bathroom-item[data-type^="keuken_"]{
  border-radius:0 !important;
}
.bathroom-item.kitchen-item::before,
.bathroom-item.kitchen-item::after{
  border-radius:0 !important;
}


/* v19.95.65 — m²-labels alleen op verzoek of kort na nieuwe ruimte */
[data-room-area-label],
[data-room-label-toggle]{
  cursor:pointer;
}



/* v19.95.66 — ruimere klikzone binnenwanden zonder visueel dikkere wand */
.plan-inner-wall-hit,
[data-inner-wall-hit],
[data-wall-hit]{
  stroke:transparent !important;
  stroke-width:18px !important;
  pointer-events:stroke !important;
}



/* v19.95.68 — oppervlakte in Ruimte bewerken */
.room-quick-info{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:4px;
  padding:11px 14px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
}
.room-quick-info strong{
  color:#0f172a;
  font-weight:700;
}



/* v19.95.69 — planstatus blijft altijd op zijn plek */
#planState{
  min-width:150px;
  justify-content:center;
  white-space:nowrap;
}



/* v19.96.22 — onderzijde afdak */
.canopy-soffit-btn.finish-wood{
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,0,0,.05)),
    #9a754f;
}
.canopy-soffit-btn.finish-same{
  background: linear-gradient(135deg,#f8fafc 0 48%,#334155 52% 100%);
}
.canopy-soffit-btn .material-label{
  white-space: normal;
  text-align: center;
}

/* v19.96.22 — stabiele 3D viewport bij openen/sluiten van raamdetails.
   Reserveer de scrollbar-ruimte permanent, zodat het canvas niet enkele pixels
   van breedte/aspect verandert wanneer de linker detailkaart langer wordt. */
html{
  scrollbar-gutter:stable;
}

/* v19.96.22 — de uitklappende openingskaart mag geen browser scroll-anchor zijn. */
.opening-card,
#openingsList,
.sidebar{
  overflow-anchor:none;
}


/* v19.96.22 — eenvoudige projectmanager voor testopslag. */
.np-project-backdrop{
  position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center;
  padding:24px; background:rgba(15,23,42,.42);
}
.np-project-backdrop.hidden{display:none;}
.np-project-card{
  width:min(760px,calc(100vw - 48px)); max-height:min(760px,calc(100vh - 48px)); overflow:auto;
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 22px 70px rgba(15,23,42,.22); padding:22px;
}
.np-project-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
.np-project-top h2{margin:4px 0 6px;}
.np-project-top p{margin:0;color:var(--muted);line-height:1.45;}
.np-project-actions{display:flex;gap:8px;margin:20px 0 12px;flex-wrap:wrap;}
.np-project-status{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--muted);font-size:13px;}
.np-project-list{display:grid;gap:10px;margin-top:12px;}
.np-project-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff;}
.np-project-row.active{border-color:var(--blue);box-shadow:0 0 0 1px rgba(37,99,235,.10);}
.np-project-info{min-width:0;display:grid;gap:3px;}
.np-project-info strong,.np-project-info span,.np-project-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.np-project-info span{font-size:13px;color:var(--muted);}
.np-project-info small{font-size:11px;color:var(--muted);}
.np-project-row-actions{display:flex;gap:7px;flex:0 0 auto;}
.np-project-empty{padding:20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:10px;}
@media (max-width:700px){
  .np-project-row{align-items:flex-start;flex-direction:column;}
  .np-project-row-actions{width:100%;}
  .np-project-row-actions button{flex:1;}
}

/* v19.96.22 — drie projectknoppen exact gelijk in de kop. */
.config-save-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.config-save-row > button{
  width:100%;
  min-width:0;
  height:42px;
  padding-left:10px;
  padding-right:10px;
  white-space:nowrap;
}

/* v19.96.22 — actieve projectnaam zichtbaar onder de projectknoppen. */
.active-project-name{
  margin-top:9px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* v19.96.22 — compactere projectknoppen en rustigere verticale spacing. */
.config-save-row{
  display:grid;
  grid-template-columns:136px minmax(0,1fr) 168px;
  gap:10px;
  align-items:center;
}
.config-save-row > button{
  width:100%;
  min-width:0;
  height:38px;
  padding:7px 12px;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
}
.active-project-name{
  margin-top:16px;
  margin-bottom:3px;
  font-size:14px;
  line-height:1.25;
  font-weight:700;
}
.active-project-name + .autosave-status{
  margin-top:0;
}
@media (max-width:1400px){
  .config-save-row{
    grid-template-columns:126px minmax(0,1fr) 158px;
    gap:9px;
  }
  .config-save-row > button{
    font-size:14px;
  }
}

/* v19.96.22 — drie knoppen weer exact gelijk, compact en zonder afkappen. */
.config-save-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  align-items:center;
}
.config-save-row > button{
  width:100%;
  min-width:0;
  height:38px;
  padding:7px 8px;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
@media (max-width:1400px){
  .config-save-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .config-save-row > button{
    font-size:12px;
    padding-left:5px;
    padding-right:5px;
  }
}

/* v19.96.22 — gedeelde woning / alleen-lezen modus. */
.np-shared-notice{
  margin:10px 0 4px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.np-shared-view .config-save-row{
  display:none;
}
.np-shared-view .autosave-status{
  display:none;
}

/* v19.96.22 — delen met rechten en versiehistorie. */
.project-storage-actions{
  flex-wrap:wrap;
}
.np-shared-edit .np-shared-notice{
  background:#f7faf8;
}

/* v19.96.22 — extra beheerknop voor gedeelde links. */
.project-storage-actions button{ min-width:72px; }

/* v19.96.22 — nette modals voor versiehistorie en gedeelde links. */
.np-polished-overlay{position:fixed;inset:0;z-index:10080;background:rgba(15,23,42,.48);display:flex;align-items:center;justify-content:center;padding:28px}
.np-polished-modal{width:min(1060px,96vw);max-height:88vh;overflow:auto;background:#fff;border:1px solid #d8e0ea;border-radius:22px;box-shadow:0 26px 90px rgba(15,23,42,.25)}
.np-polished-head{display:flex;justify-content:space-between;gap:20px;padding:28px 30px 18px}.np-polished-head h3{margin:0;color:#0c1831;font-size:27px}.np-polished-head p{margin:7px 0 0;color:#64748b;font-size:15px}.np-polished-close{border:0;background:#f1f5f9;color:#475569;border-radius:50%;width:40px;height:40px;font-size:27px;cursor:pointer}
.np-polished-body{padding:0 30px 24px}.np-polished-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e6ebf1;padding:18px 30px 26px}.np-polished-foot button{min-width:120px}
.np-history-head,.np-history-row{display:grid;grid-template-columns:36px 70px 180px minmax(250px,1fr) 150px;align-items:center}.np-history-head{padding:12px 14px;background:#f7f9fc;border:1px solid #dce4ed;border-radius:12px 12px 0 0;font-size:13px;font-weight:700;color:#58677c}.np-history-list{border:1px solid #dce4ed;border-top:0;border-radius:0 0 12px 12px;overflow:hidden}.np-history-row{padding:14px;border-bottom:1px solid #e9eef4;cursor:pointer}.np-history-row:last-child{border-bottom:0}.np-history-row:hover,.np-history-row.is-selected{background:#f5f9ff}.np-history-row.is-selected{box-shadow:inset 3px 0 #2563eb}.np-h-desc{display:flex;flex-direction:column;gap:3px}.np-h-desc small{color:#718096;font-weight:400}
.np-history-info{margin-top:18px;padding:16px 18px;border:1px solid #bfd3ff;border-radius:12px;background:#f7faff;display:flex;flex-direction:column;gap:4px;color:#456385;font-size:14px}.np-history-info strong{color:#173b72}
.np-shared-toolbar{display:flex;justify-content:flex-end;margin-bottom:14px}.np-shared-head,.np-shared-row{display:grid;grid-template-columns:42px minmax(180px,1fr) 200px 110px 180px 190px;gap:8px;align-items:center}.np-shared-head{padding:12px 14px;background:#f7f9fc;border:1px solid #dce4ed;border-radius:12px 12px 0 0;font-size:13px;font-weight:700;color:#58677c}.np-shared-list{border:1px solid #dce4ed;border-top:0;border-radius:0 0 12px 12px;overflow:hidden}.np-shared-row{padding:14px;border-bottom:1px solid #e9eef4}.np-shared-row:last-child{border-bottom:0}.np-shared-access{width:100%;min-width:0}.np-shared-status{display:inline-flex;justify-content:center;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:700}.np-shared-status.active{background:#e7f7ee;color:#157347}.np-shared-status.off{background:#eef1f4;color:#77808c}.np-shared-actions{display:flex;gap:8px}.np-shared-actions button{min-width:82px;padding:8px 10px}.np-shared-empty{padding:28px;border:1px dashed #cbd5e1;border-radius:12px;text-align:center;color:#64748b}
@media(max-width:900px){.np-history-head,.np-history-row{grid-template-columns:32px 55px 155px 1fr}.np-history-head span:last-child,.np-history-row .np-h-by{display:none}.np-shared-head{display:none}.np-shared-row{grid-template-columns:1fr}.np-shared-row>span:first-child{display:none}.np-shared-actions{justify-content:flex-end}}

/* v19.96.22 — gedeelde links rustiger + direct openen na versieherstel. */
.np-polished-modal{width:min(1120px,96vw)}
.np-shared-head,.np-shared-row{grid-template-columns:34px minmax(180px,1fr) 210px 120px 175px 205px;gap:12px}
.np-shared-row{padding:16px 18px}
.np-shared-head{padding:12px 18px}
.np-shared-access-static{display:flex;align-items:center;min-height:40px;padding:0 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#64748b}
.np-shared-inactive-note{display:inline-flex;align-items:center;min-height:40px;color:#94a3b8;font-size:13px}
.np-shared-status{min-width:92px;box-sizing:border-box}
.np-shared-actions{justify-content:flex-start;align-items:center}
.np-shared-actions button{min-width:92px}
@media(max-width:1100px){
  .np-shared-head,.np-shared-row{grid-template-columns:30px minmax(150px,1fr) 185px 105px 150px 180px;gap:8px}
  .np-shared-actions button{min-width:80px;padding-left:8px;padding-right:8px}
}

/* v19.96.22 — deelpopup, ontvangernaam, kopiëren en sluitkruis. */
.np-polished-head{align-items:center;}
.np-polished-head > div:first-child{min-width:0;}
.np-polished-close{
  flex:0 0 42px;
  width:42px;
  height:42px;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:Arial,sans-serif;
  font-size:27px;
  line-height:1;
}
.np-share-create-form{display:grid;gap:18px;}
.np-share-field{display:grid;gap:8px;}
.np-share-field>span,.np-share-rights legend{font-size:14px;font-weight:700;color:#17233a;}
.np-share-field small,.np-share-rights small{font-weight:400;color:#718096;}
.np-share-field input{
  height:44px;width:100%;box-sizing:border-box;border:1px solid #cbd6e4;border-radius:10px;
  padding:0 13px;font:inherit;color:#111827;background:#fff;
}
.np-share-field input:focus{outline:2px solid #2f6fff;outline-offset:0;border-color:#2f6fff;}
.np-share-rights{border:0;padding:0;margin:0;display:grid;gap:10px;}
.np-share-rights legend{margin-bottom:8px;}
.np-share-right-card{
  display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:flex-start;
  border:1px solid #dbe4ef;border-radius:12px;padding:14px 16px;cursor:pointer;background:#fff;
}
.np-share-right-card.is-selected{border-color:#2f6fff;box-shadow:0 0 0 1px #2f6fff inset;background:#f8fbff;}
.np-share-right-card input{margin-top:3px;}
.np-share-right-card>span{display:grid;gap:4px;}
.np-share-copy-fallback input{
  width:100%;box-sizing:border-box;border:1px solid #cbd6e4;border-radius:10px;padding:12px;font:inherit;
}
.np-shared-head,.np-shared-row{
  grid-template-columns:42px 140px minmax(180px,1fr) 190px 120px 165px 190px;
}
@media(max-width:1100px){
  .np-shared-head{display:none;}
  .np-shared-row{grid-template-columns:1fr 1fr;gap:10px 14px;}
  .np-shared-row>span:first-child{display:none;}
}

/* v19.96.22 — compacte actie-iconen, hover-uitleg en betere tabelruimte. */
.np-shared-head,.np-shared-row{
  grid-template-columns:42px 130px minmax(175px,1fr) 185px 115px 165px 96px;
}
.np-shared-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  min-width:0;
}
.np-action-icon{
  position:relative;
  width:38px;
  height:38px;
  flex:0 0 38px;
  padding:0;
  border:1px solid #cbd6e4;
  border-radius:10px;
  background:#fff;
  color:#15233d;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.np-action-icon svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.np-action-icon:hover{background:#f5f8fc;border-color:#9fb0c6;}
.np-action-icon.danger{color:#c82121;border-color:#f1b7b7;}
.np-action-icon.danger:hover{background:#fff6f6;border-color:#e77777;}
.np-action-icon.is-success{color:#167244;border-color:#9bd4b2;background:#effaf4;}
.np-action-icon[title]{overflow:visible;}
.np-action-icon[title]:hover::after{
  content:attr(title);
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  z-index:30;
  white-space:nowrap;
  padding:6px 8px;
  border-radius:7px;
  background:#15233d;
  color:#fff;
  font-size:12px;
  font-weight:500;
  line-height:1.2;
  box-shadow:0 6px 18px rgba(15,23,42,.16);
  pointer-events:none;
}
.np-shared-inactive-note{
  font-size:13px;
  color:#8a98ac;
  white-space:nowrap;
}
@media(max-width:1100px){
  .np-shared-head{display:none;}
  .np-shared-row{grid-template-columns:1fr 1fr;gap:10px 14px;}
}

/* v19.96.22 — acties zijn echte losse iconen, zonder grote knopvlakken. */
.np-shared-head,.np-shared-row{
  grid-template-columns:38px 125px minmax(180px,1fr) 185px 115px 165px 72px;
}
.np-shared-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  min-width:72px !important;
  overflow:visible !important;
}
.np-shared-actions .np-action-icon,
.np-shared-actions button.np-action-icon{
  all:unset;
  position:relative;
  box-sizing:border-box;
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#22314b;
  cursor:pointer;
  border-radius:6px;
}
.np-shared-actions .np-action-icon svg{
  width:19px;
  height:19px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.np-shared-actions .np-action-icon:hover{
  background:#eef3f8;
}
.np-shared-actions .np-action-icon.danger{
  color:#d62828;
}
.np-shared-actions .np-action-icon.danger:hover{
  background:#fff0f0;
}
.np-shared-actions .np-action-icon:disabled{
  opacity:.45;
  cursor:default;
}
.np-shared-actions .np-action-icon.is-success{
  color:#147a45;
  background:#eaf7f0;
}
.np-shared-actions .np-action-icon[title]:hover::after{
  content:attr(title);
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  z-index:80;
  white-space:nowrap;
  padding:6px 8px;
  border-radius:6px;
  background:#15233d;
  color:#fff;
  font:500 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 6px 16px rgba(15,23,42,.18);
  pointer-events:none;
}
.np-polished-shell{
  overflow:visible;
}
.np-polished-body{
  overflow:visible;
}

/* v19.96.22 — hover-tooltip niet meer achter tabelkop + meer ruimte bij gedeelde modus. */

/* Tooltip onder het icoon tonen, zodat hij niet achter de tabelkop verdwijnt. */
.np-shared-actions .np-action-icon[title]:hover::after{
  top:calc(100% + 8px) !important;
  bottom:auto !important;
  right:0 !important;
  z-index:999 !important;
}

/* Zorg dat tabelrijen en actiekolom tooltips niet afknippen. */
.np-shared-list,
.np-shared-row,
.np-shared-actions{
  overflow:visible !important;
}

/* Iets meer afstand tussen de gedeelde-link melding en de knoppen eronder. */
.np-shared-edit .np-shared-notice,
.np-shared-view .np-shared-notice{
  margin-bottom:14px !important;
}

/* Extra zekerheid wanneer de melding direct boven de config-knoppen staat. */
.np-shared-edit .np-shared-notice + .config-save-row,
.np-shared-view .np-shared-notice + .config-save-row{
  margin-top:4px !important;
}

/* v19.96.22 — huidige versie markeren. */
.np-history-row.is-current{
  background:#f2f7ff;
  box-shadow:inset 3px 0 0 #2f6fff;
}
.np-h-version{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.np-current-version-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  border-radius:999px;
  background:#e8f0ff;
  color:#1f5bd8;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

/* v19.96.22 — huidige-versie label rustiger en zonder overlap. */
.np-history-head,
.np-history-row{
  grid-template-columns:38px 120px 220px minmax(320px,1fr) 180px;
}

.np-h-version{
  display:flex !important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  min-width:0;
  line-height:1.1;
}

.np-h-version > strong{
  font-weight:700;
}

.np-current-version-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:3px 7px;
  border-radius:999px;
  background:#e8f0ff;
  color:#1f5bd8;
  font-size:10px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
}

.np-history-row.is-current{
  min-height:66px;
}

@media(max-width:1050px){
  .np-history-head,
  .np-history-row{
    grid-template-columns:34px 105px 185px minmax(240px,1fr);
  }
  .np-history-head span:last-child,
  .np-history-row .np-h-by{
    display:none;
  }
}

/* v19.96.22 — plattegrond/PDF importwizard. */
.np-project-actions{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.np-plan-import-modal{
  width:min(1380px,96vw) !important;
  max-height:94vh !important;
}
.np-plan-import-modal .np-polished-body{
  padding-top:4px;
}
.np-plan-import-layout{
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:22px;
}
.np-plan-import-sidebar{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.np-plan-import-step{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:5px;
}
.np-plan-import-step>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.np-plan-import-step strong{color:#12203b;}
.np-plan-import-step small{color:#6b7b92;}
.np-step-number{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#e8f0ff;color:#245fd1;font-weight:800;font-size:13px;
}
.np-plan-file{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  border:1px dashed #9fb3cc;
  border-radius:11px;
  min-height:46px;
  cursor:pointer;
  background:#f8fbff;
  color:#173a72;
  font-weight:700;
}
.np-plan-file input{
  position:absolute;inset:0;opacity:0;cursor:pointer;
}
.np-plan-status{
  color:#65758d;font-size:12px;line-height:1.35;
}
.np-plan-dim-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
}
.np-plan-dim-grid label,.np-plan-project-name{
  display:grid;gap:5px;font-size:12px;color:#52637a;font-weight:700;
}
.np-plan-dim-grid input,.np-plan-project-name input{
  width:100%;box-sizing:border-box;height:40px;
  border:1px solid #c9d5e4;border-radius:9px;padding:0 10px;font:inherit;color:#111827;background:#fff;
}
.np-plan-suggestion{
  border:1px solid #bfd3ff;border-radius:9px;background:#f7faff;padding:10px 12px;color:#38567e;font-size:12px;
}
.np-plan-suggestion span{color:#718096;}
.np-plan-candidates{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11px;color:#687991;
}
.np-plan-candidates button{
  border:1px solid #c8d5e6;border-radius:999px;background:#fff;color:#29486f;padding:4px 8px;cursor:pointer;
}
.np-plan-tools{
  display:grid;grid-template-columns:1fr 1fr;gap:7px;
}
.np-plan-tools button{
  border:1px solid #cad6e5;border-radius:8px;background:#fff;color:#26364e;padding:8px 7px;cursor:pointer;font-size:12px;
}
.np-plan-tools button.is-active{
  border-color:#2f6fff;background:#eef4ff;color:#1f5bd8;font-weight:700;
}
.np-plan-hint{
  min-height:34px;border-radius:8px;background:#f5f7fa;color:#596a81;padding:8px 10px;font-size:11px;
}
.np-plan-trace-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
}
.np-plan-import-stage{
  min-width:0;display:flex;flex-direction:column;gap:12px;
}
.np-plan-stage-head{
  display:flex;justify-content:space-between;gap:15px;align-items:center;
}
.np-plan-stage-head strong{color:#12203b;}
.np-plan-stage-head span{color:#6b7b92;font-size:12px;}
.np-plan-canvas-wrap{
  position:relative;
  min-height:520px;
  max-height:68vh;
  overflow:auto;
  border:1px solid #ced9e7;
  border-radius:14px;
  background:#eef2f6;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:14px;
}
#npPlanImportCanvas{
  max-width:100%;
  height:auto;
  background:#fff;
  box-shadow:0 6px 22px rgba(15,23,42,.10);
  cursor:crosshair;
}
.np-plan-empty{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#8190a4;font-size:14px;pointer-events:none;
}
.np-plan-import-note{
  display:flex;gap:8px;align-items:flex-start;
  border:1px solid #d9e2ec;border-radius:10px;background:#fbfcfe;padding:10px 12px;color:#617189;font-size:12px;
}
.np-plan-import-note strong{color:#233552;white-space:nowrap;}
@media(max-width:1000px){
  .np-plan-import-layout{grid-template-columns:1fr;}
  .np-plan-canvas-wrap{min-height:420px;}
}

/* v19.96.22 — grotere plattegrond, zoom en betere binnenwandselectie. */
.np-plan-import-modal{
  width:min(1540px,98vw) !important;
}
.np-plan-import-layout{
  grid-template-columns:330px minmax(0,1fr);
}
.np-plan-stage-head{
  align-items:center;
}
.np-plan-stage-head>div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.np-plan-zoom-controls{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.np-plan-zoom-controls button{
  width:auto;
  min-width:38px;
  height:34px;
  padding:5px 10px;
}
.np-plan-zoom-controls #npPlanZoomLabel{
  min-width:48px;
  text-align:center;
  font-size:12px;
  font-weight:700;
  color:#34445d;
}
.np-plan-canvas-wrap{
  min-height:610px;
  max-height:72vh;
  justify-content:flex-start;
  align-items:flex-start;
  overflow:auto;
}
#npPlanImportCanvas{
  max-width:none !important;
  flex:none;
  cursor:crosshair;
  user-select:none;
  touch-action:none;
}
.np-plan-hint{
  border:1px solid #d7e1ed;
  background:#f8fafc;
}


/* v19.96.22 — release candidate: experimentele plattegrondimport tijdelijk verwijderd. */
.np-project-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* v19.96.22 — extra keukenonderdelen. */
.bathroom-layout-toolbar [data-layout-group="kitchen"]{
  display:inline-flex;
  flex-wrap:wrap;
  gap:6px;
}
.bathroom-layout-toolbar [data-layout-group="kitchen"].hidden{
  display:none;
}

/* v19.96.22 — alle keukenmodules recht + compacte aaneengesloten uitstraling. */
.bathroom-item.kitchen-item,
.bathroom-item[data-type="keuken30"],
.bathroom-item[data-type="keuken40"],
.bathroom-item[data-type="keuken60"],
.bathroom-item[data-type="spoelbak60"],
.bathroom-item[data-type="kookplaat60"],
.bathroom-item[data-type="kookplaat100"],
.bathroom-item[data-type="vaatwasser60"],
.bathroom-item[data-type="koelkast60"],
.bathroom-item[data-type="hogekast60"],
.bathroom-item[data-type="eiland120"]{
  border-radius:0 !important;
}

.bathroom-item.kitchen-item .bathroom-plan-symbol,
.bathroom-item.kitchen-item .bathroom-plan-symbol rect{
  border-radius:0 !important;
  rx:0 !important;
  ry:0 !important;
}
