/* Configurator — eigen, neutrale huisstijl: licht werkvlak, donkere zijbalk (rail), accentkleur per firma.
 * De variabelen --green* zijn de accentkleur; auth.js (applyBrand) zet ze op de kleur van de firma. */
:root {
  --green: #0d7a63;          /* accent */
  --green-dark: #0a634f;
  --green-ink: #0f2a24;      /* donkere variant van het accent voor koppen */
  --green-soft: #e3f3ee;
  --ok: #0d7a63;

  --rail: #0f172a;
  --rail-2: #1e293b;
  --rail-text: #94a3b8;

  --bg: #f4f6f9;
  --beige: #eef1f5;          /* neutrale vlakken (oude naam behouden) */
  --beige-50: #f7f8fa;
  --lila: #efe9fb;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e3e8ef;
  --line-strong: #cfd6e0;
  --bad: #d4483b;
  --warn-bg: #fff3ea;
  --amber: #e08a3c;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .07);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar: 60px;
  --railw: 84px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
b, strong { font-weight: 600; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--text); margin: 18px 0 8px; }
.hidden { display: none !important; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.empty { font-size: 13px; color: var(--muted); background: var(--beige-50); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 16px; text-align: center; }

/* merkteken */
.mark { width: 28px; height: 28px; flex: none; color: var(--green); display: block; }
.block { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 2px; margin-right: .5em; vertical-align: .12em; }

/* ---------- formulierelementen ---------- */
label { display: block; margin: 10px 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
label input, label select { display: block; width: 100%; margin-top: 5px; }
input, select, button, textarea { font: inherit; }
input[type=text], input[type=number], input[type=password], input[type=email], select, textarea {
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--text);
  width: 100%; font-weight: 400; transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
input:hover, select:hover { border-color: #b8c1ce; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--green); }
button { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--text); cursor: pointer;
  font-weight: 550; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; box-shadow: var(--shadow-sm); }
button:hover { border-color: #b8c1ce; background: var(--beige-50); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: wait; }
button.primary { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.1), inset 0 1px 0 rgba(255,255,255,.12); }
button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
button.ghost, .filebtn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); box-shadow: none; }
button.ghost:hover, .filebtn.ghost:hover { background: var(--beige-50); border-color: #b8c1ce; }
button.link { border: none; background: none; color: var(--green); padding: 6px 0; font-weight: 600; box-shadow: none; }
button.link:hover { text-decoration: underline; background: none; }
button.danger { color: var(--bad); }
button.active { background: var(--green); border-color: var(--green); color: var(--white); }
button.wide { width: 100%; padding: 11px; }
.row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.row.wrap { flex-wrap: wrap; }
.row label { margin: 0; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; }
.seg { display: flex; margin: 10px 0; padding: 3px; background: var(--beige); border-radius: var(--radius-sm); gap: 2px; }
.seg button { flex: 1; border: none; border-radius: 8px; background: transparent; box-shadow: none; padding: 7px 8px; color: var(--muted); }
.seg button:hover { background: rgba(255,255,255,.6); color: var(--text); }
.seg button.active { background: var(--white); color: var(--text); box-shadow: var(--shadow-sm); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 550; }
label.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.filebtn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-sm); }
.filebtn:hover { background: var(--beige-50); }
.filebtn.wide { display: flex; justify-content: center; }
.filebtn input { display: none; }

/* schakelaar */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd3de; border-radius: 22px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }

/* ---------- bovenbalk ---------- */
#topbar { height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 16px 0 0; background: var(--white); color: var(--text); border-bottom: 1px solid var(--line); position: relative; z-index: 1000; }
.tb-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap;
  width: var(--railw); justify-content: center; height: 100%; background: var(--rail); color: var(--white); flex: none; }
.tb-brand .mark { color: var(--green); }
.tb-brand .mark-bg { fill: currentColor; }
.tb-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.tb-project { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  background: var(--beige-50); border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: 12px; min-width: 0; max-width: 560px; box-shadow: none; }
.tb-project:hover { background: var(--white); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tb-project::after { content: ""; grid-row: 1 / 3; grid-column: 3; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); }
.tb-label { grid-row: 1 / 3; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tb-project strong { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-addr { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 2; }
.tb-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
#topbar .status { font-size: 12px; color: var(--muted); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; background: var(--beige-50); border-radius: 20px; border: 1px solid var(--line); }
#topbar .status:empty { display: none; }
#topbar .status a { color: var(--green) !important; }
.status.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 7px; vertical-align: 1px; }
.status.warn::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; margin-right: 7px; vertical-align: 1px; }

/* ---------- indeling ---------- */
#app { display: flex; height: calc(100vh - var(--topbar)); }
#sidebar { width: 392px; flex: none; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); min-height: 0; }
.panes { flex: 1; overflow-y: auto; padding: 6px 20px 20px; scrollbar-width: thin; }
.pane > h2:first-child, .pane-head h2 { margin-top: 18px; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pane-head h2 { margin-bottom: 0; font-size: 18px; }
#mapwrap { flex: 1; min-width: 0; position: relative; }
#map { position: absolute; inset: 0; background: #1b2230; }

/* stappen = donkere rail */
.steps { display: flex; flex-direction: column; gap: 4px; width: var(--railw); flex: none; padding: 12px 8px; background: var(--rail); border-right: 1px solid #0b1120; overflow-y: auto; }
.steps button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px 9px; border: none; border-radius: 12px;
  background: transparent; color: var(--rail-text); font-size: 11.5px; font-weight: 550; box-shadow: none; line-height: 1.15; }
.steps button:hover { background: var(--rail-2); color: #e2e8f0; }
.steps button.active { background: var(--rail-2); color: var(--white); }
.steps button.active::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.steps button.active .ico { color: var(--white); background: var(--green); }
.steps .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; transition: background .15s; }
.steps .num { position: absolute; top: 6px; right: 10px; font-size: 9.5px; font-weight: 700; color: var(--rail-text); opacity: .75; }
.steps button.active .num { color: var(--white); }

/* kerncijfers */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 14px; background: var(--white); border-top: 1px solid var(--line); }
.kpis > div { background: var(--beige-50); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.kpis span { display: block; font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* daklijst */
.roof-list { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.roof-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.roof-list li:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.roof-list li.sel { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); }
.roof-list li.off { background: var(--beige-50); }
.roof-list li.off .name { color: var(--muted); }
.roof-list li input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; cursor: pointer; }
.roof-list .name { font-weight: 600; display: block; }
.roof-list .meta { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.roof-list .val { text-align: right; font-size: 13px; white-space: nowrap; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.roof-list .val small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: 1px; background: var(--beige); color: var(--text); }
.badge.ok { background: var(--green-soft); color: var(--green-dark); }
.badge.bad { background: var(--lila); color: #5b3d8f; }
.badge.warn { background: var(--warn-bg); color: #9a4b1d; }
.badge.off { background: #eef0f3; color: #7a8594; }

/* geselecteerd dakvlak */
.roof-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--white); box-shadow: var(--shadow); position: relative; }
.roof-panel::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.rp-head { display: flex; align-items: center; gap: 10px; }
.rp-name { font-weight: 650; font-size: 15px; border-color: transparent !important; box-shadow: none !important; padding-left: 4px !important; }
.rp-name:hover, .rp-name:focus { border-color: var(--line-strong) !important; }
.rp-stats { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.rp-foot { justify-content: space-between; margin-top: 12px; }
.suit { font-size: 13px; margin: 8px 0; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--green-soft); color: var(--text); }
.warn { font-size: 13px; margin: 6px 0 8px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--warn-bg); color: #7a3a14; }
.verified { font-size: 13px; margin: 6px 0; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--green-soft); color: var(--text); }
.group { border-top: 1px solid var(--line); padding: 2px 0 6px; }
.group > summary { cursor: pointer; font-weight: 650; color: var(--text); padding: 11px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.group:not([open]) > summary::after { transform: rotate(-45deg); }
.sysdetails { margin: 10px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--beige-50); }
.sysdetails summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 13px; }

/* startkeuze en indeling-keuze */
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.choice button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px; text-align: left; border-radius: 12px; }
.choice button b { font-size: 14px; }
.choice button span { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.choice button.active { background: var(--green-soft); border-color: var(--green); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.choice button.active span { color: var(--text); }
.count-row { display: flex; align-items: center; gap: 6px; margin: 10px 0; }
.count-row input { width: 80px; text-align: center; font-weight: 650; font-size: 16px; }
.stepbtn { width: 38px; height: 38px; padding: 0; font-size: 18px; font-weight: 600; }

/* overzicht */
.ov-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-table th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 7px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.ov-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ov-table td.num, .ov-table th.num { text-align: right; }
.ov-table tfoot td { font-weight: 700; color: var(--text); border-bottom: none; }

/* kaart */
.map-tools { position: absolute; top: 14px; right: 14px; z-index: 900; display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 70px); gap: 6px; align-items: center; padding: 5px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6); }
.map-tools select { width: auto; max-width: 280px; box-shadow: none; border-color: transparent; background: var(--beige-50); }
.map-tools button { box-shadow: none; border-color: transparent; background: transparent; padding: 8px 11px; }
.map-tools button:hover { background: var(--beige); }
.map-tools button.primary { background: var(--green); color: var(--white); }
.map-tools button.primary:hover { background: var(--green-dark); }
.map-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(620px, calc(100% - 40px)); z-index: 900; margin: 0; padding: 12px 16px;
  background: var(--rail); color: #e2e8f0; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; }
.map-hint b { color: var(--white); }
.map-hint .muted { color: var(--rail-text); }
.map-hint .muted { display: block; margin-top: 2px; font-size: 12.5px; }
.measure-panel { position: absolute; top: 72px; right: 14px; z-index: 950; width: 340px; max-height: calc(100% - 90px); overflow-y: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; border-top: 4px solid var(--amber); }
.mp-head { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 15px; gap: 8px; }
.mp-head button { padding: 0 4px; font-size: 16px; color: var(--muted); }
.m-result .m-big { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.2; letter-spacing: -.02em; }
.m-result .m-real { margin-top: 8px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--green-soft); font-size: 13.5px; }
.measure-label { background: rgba(255,255,255,.96); border: none; border-radius: 6px; padding: 1px 6px; font: 600 11.5px var(--font); color: #8a4a12; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.measure-label.strong { font-size: 13px; color: var(--text); }
.measure-label.facade { color: #6a3d1c; background: #fff6ec; }
.m-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin: 6px 0 10px; }
.m-tot div { background: var(--beige-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 4px; }
.m-tot b { display: block; font-size: 15px; color: var(--text); }
.m-tot.m-tot1 { grid-template-columns: 1fr; }
.m-tot.m-tot1 b { font-size: 22px; }
.m-tot span { font-size: 11px; color: var(--muted); }
.m-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0; }
.m-table th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 3px; }
.m-table td { padding: 4px 3px; border-bottom: 1px solid var(--line); }
.m-table .num { text-align: right; }
.measure-label::before { display: none; }
.vertex-handle { background: var(--white); border: 2px solid var(--green); border-radius: 3px; }
.leaflet-container { font-family: var(--font); }
.leaflet-container.drawing { cursor: crosshair; }
.leaflet-bar { border: none !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { border-bottom-color: var(--line) !important; color: var(--text) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.roof-label { background: var(--white); border: none; border-radius: 6px; padding: 2px 7px; font: 600 12px var(--font); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.roof-label.bad { background: var(--lila); }
.roof-label::before { display: none; }

/* adres-suggesties */
.search { position: relative; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 2500; list-style: none; margin: 4px 0 0; padding: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.suggest li { padding: 9px 11px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.suggest li:hover, .suggest li.active { background: var(--beige); }

/* modals */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal-body { background: var(--white); width: min(1200px, 96vw); height: min(800px, 92vh); border-radius: 18px; display: flex; overflow: hidden; box-shadow: var(--shadow-lg); }

/* merkpaneel (projecten-startscherm en login) */
.proj-intro { background: var(--rail); color: #cbd5e1; padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.proj-intro::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 55%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
.brandline { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brandline .mark { width: 34px; height: 34px; }
.tagline { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--white); margin: 0; position: relative; z-index: 1; }
.tagline span { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--rail-text); margin-top: 10px; line-height: 1.5; }
.modchips { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.modchips span { font-size: 12px; font-weight: 600; color: #e2e8f0; background: var(--rail-2); border: 1px solid #334155; padding: 4px 10px; border-radius: 20px; }
.proj-intro .firm-logo { max-width: 200px; max-height: 70px; object-fit: contain; background: var(--white); border-radius: 10px; padding: 8px 12px; align-self: flex-start; }

/* soort project kiezen */
.kind-pick { margin: 0 0 6px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 8px 0 6px; }
.kind { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.kind svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--beige); color: var(--muted); margin-bottom: 6px; transition: background .15s, color .15s; }
.kind b { font-size: 14px; }
.kind small { font-size: 11.5px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.kind:hover { border-color: var(--line-strong); background: var(--white); box-shadow: var(--shadow); }
.kind.active { color: var(--text); border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); }
.kind.active svg { background: var(--green); color: var(--white); }
.pkind { display: inline-block; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 20px; margin-right: 8px; background: var(--beige); color: var(--text); }
.pkind-pv { background: #fef3c7; color: #8a5a00; }
.pkind-dak { background: #e0ecff; color: #1d4ea8; }
.pkind-gevel { background: #f1e7fb; color: #6b3fa0; }

/* API-koppelingen (beheer) */
.api-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.api-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--beige-50); }
.api-group h3 { margin: 0; font-size: 15px; }
.api-group > p { margin: 2px 0 6px; }
.api-field { margin: 12px 0 0; color: var(--text); }
.api-field small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 12px; line-height: 1.4; }
.api-top { display: flex; align-items: center; gap: 8px; }
.api-top .badge { margin-left: 0; }
.api-top .link { margin-left: auto; padding: 0; font-size: 12.5px; }

/* modules per klant (beheer) */
.mod-toggles { display: grid; gap: 8px; margin: 4px 0 12px; }
.mod-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); }
.mod-toggle:hover { background: var(--beige-50); }
.mod-toggle b { display: block; font-size: 14px; color: var(--text); }
.mod-toggle small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
button.danger-fill { background: var(--bad); border-color: var(--bad); }
button.danger-fill:hover { background: #b53a2f; border-color: #b53a2f; }

/* projecten-startscherm */
.project-body { height: auto; max-height: 92vh; display: grid; grid-template-columns: 280px 1fr 1fr; background: var(--beige-50); }
.proj-new, .proj-list { padding: 30px 28px; overflow-y: auto; }
.proj-new { background: var(--white); border-right: 1px solid var(--line); }
.leaflet-tooltip.slot-tip { font-size: 12px; padding: 3px 7px; }
.start-choice { display: grid; gap: 10px; margin: 6px 0 12px; }
.start-choice.hidden { display: none; }
.start-title { margin: 0 0 2px; font-weight: 650; color: var(--text); }
.start-opt { display: block; width: 100%; margin: 0; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--white); box-shadow: var(--shadow-sm); }
.start-opt:hover, .start-opt:focus-visible { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.start-opt b { display: block; font-size: 14.5px; color: var(--text); }
.start-opt small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--muted); }
.proj-new h2, .proj-list h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -.02em; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li { display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.project-list li:hover { border-color: var(--green); box-shadow: var(--shadow); }
.project-list li .pmain { flex: 1; min-width: 0; }
.project-list li .pname { display: block; font-weight: 600; }
.project-list li .paddr { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-list li .pkwp { font-size: 13px; color: var(--text); white-space: nowrap; font-weight: 650; display: flex; align-items: center; }
.project-list li .pdel { border: none; background: none; color: var(--muted); padding: 2px 6px; box-shadow: none; }
.project-list li .pdel:hover { color: var(--bad); }

/* 3D-weergave */
.v3d-body { width: min(1400px, 97vw); height: min(860px, 94vh); }
.v3d-side { width: 360px; flex: none; padding: 18px; overflow-y: auto; background: var(--white); border-right: 1px solid var(--line); }
.v3d-side h2 { margin: 0 0 12px; font-size: 19px; }
.v3d-main { flex: 1; min-width: 0; position: relative; background: #1b2230; }
.v3d-canvas { position: absolute; inset: 0; }
.v3d-covers { gap: 8px; }
.v3d-covers label { flex: 1; min-width: 0; }
.v3d-covers select { width: 100%; }
.v3d-toggles { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.v3d-toggles .check { margin: 0; }
.sv-pano { position: absolute; inset: 0; background: var(--beige-50); }
.v3d-tabs #v3dDims { margin-left: 4px; }
.v3d-tabs #v3dDims.active { background: var(--amber); color: var(--white); }
.dim3d { background: rgba(255, 255, 255, .95); color: #6a3d1c; font: 600 11.5px var(--font); padding: 1px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.3); white-space: nowrap; }
.dim3d.area { background: var(--green); color: var(--white); font-size: 12.5px; }
.dim3d.facade { background: #fff6ec; }
.v3d-tabs { position: absolute; top: 14px; left: 14px; z-index: 5; display: flex; gap: 2px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; }
.v3d-tabs button { border: none; border-radius: 9px; padding: 7px 14px; box-shadow: none; background: transparent; }
.v3d-tabs button.active { background: var(--rail); color: var(--white); }
.sv-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 460px; background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; }
.sv-msg a { color: var(--green); font-weight: 600; }
.v3d-canvas canvas { display: block; width: 100%; height: 100%; }
.v3d-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 8px; }
.v3d-table th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 4px 3px; }
.v3d-table td { padding: 5px 3px; border-bottom: 1px solid var(--line); }
.v3d-table tr.off td { color: var(--muted); }
.v3d-src { font-size: 12.5px; padding-left: 18px; margin: 6px 0; }

.clad-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; align-items: center; margin: 6px 0; color: var(--text); font-weight: 550; }
.clad-row select { margin-top: 0; padding: 6px 8px; font-size: 13px; }

/* foto-modus */
.photo-side { width: 290px; flex: none; padding: 16px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--white); }
.photo-side h2 { margin: 0 0 10px; font-size: 18px; }
.photo-canvas-wrap { flex: 1; min-width: 0; background: #1b2230; display: flex; align-items: center; justify-content: center; }
#photoCanvas { max-width: 100%; max-height: 100%; cursor: crosshair; }

/* ---------- modules per firma ---------- */
body.no-pv .pv-only { display: none !important; }
body:not(.no-pv) .nopv-only { display: none !important; }
body:not(.has-dak) .dak-only { display: none !important; }
body:not(.has-gevel) .gevel-only { display: none !important; }
.kpis.gevel-kpis { display: none; }
body.no-pv.has-gevel:not(.has-dak) .kpis.gevel-kpis { display: grid; }

/* ---------- gevels ---------- */
.fc-thumb { width: 34px; height: 26px; object-fit: cover; border-radius: 5px; vertical-align: middle; margin-right: 8px; }
.fc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; padding: 6px 12px 8px; }
.fc-actions label { margin: 0; flex: 1; min-width: 150px; }
.fp-body { width: min(1400px, 98vw); height: min(900px, 94vh); }
.fp-side { width: 330px; }
.fp-side label.filebtn { margin: 8px 0 4px; }
.fp-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; margin: 18px 0 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.fp-canvas-wrap { position: relative; flex-direction: column; }
.fp-canvas-wrap canvas { max-width: 100%; max-height: calc(100% - 40px); cursor: crosshair; }
.fp-hint { color: #cbd5e1; font-size: 13.5px; margin: 8px 12px; min-height: 20px; text-align: center; }

/* ---------- dakopmeting ---------- */
.rm-totals { background: var(--beige-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 12px; }
.rm-big b { display: block; font-size: 26px; color: var(--text); line-height: 1.1; letter-spacing: -.02em; }
.rm-big span { font-size: 12.5px; color: var(--muted); }
.rm-split { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin: 6px 0 8px; }
.rm-split b { color: var(--text); }
.rm-edges { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rm-edges td { padding: 4px 0; border-top: 1px solid var(--line); }
.rm-edges td.num, .rm-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.rm-maptoggle { margin: 0; font-weight: 500; }
.rm-plane { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; background: var(--white); box-shadow: var(--shadow-sm); }
.rm-plane > summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 13px; cursor: pointer; list-style: none; }
.rm-plane > summary::-webkit-details-marker { display: none; }
.rm-plane[open] > summary { border-bottom: 1px solid var(--line); }
.rm-name { font-weight: 600; }
.rm-sum { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rm-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); padding: 8px 13px 2px; }
.rm-facts b { color: var(--text); }
.rm-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 6px; }
.rm-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; text-align: left; padding: 4px 6px; }
.rm-table td { padding: 3px 6px; border-top: 1px solid var(--line); }
.rm-table tr:hover td { background: var(--beige-50); }
.rm-table select { padding: 3px 6px; font-size: 12.5px; box-shadow: none; }
.rm-table input[type=number] { width: 58px; padding: 3px 5px; font-size: 12.5px; text-align: right; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.rm-table small { margin-left: 3px; color: var(--muted); }
.leaflet-tooltip.rm-label { background: rgba(255,255,255,.95); border: none; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.3); padding: 1px 6px; font: 600 12px/1.35 var(--font); color: var(--text); white-space: nowrap; }
.leaflet-tooltip.rm-label::before { display: none; }
.leaflet-tooltip.rm-label i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.leaflet-tooltip.rm-area { text-align: center; font-weight: 500; background: rgba(15,23,42,.8); color: #fff; }
.leaflet-tooltip.rm-area b { font-weight: 700; }

/* ---------- gebruiker in de bovenbalk ---------- */
.tb-logo { height: 32px; max-width: 140px; object-fit: contain; border-radius: 6px; }
.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 8px; background: transparent; border-color: transparent; color: var(--text); max-width: 220px; box-shadow: none; padding: 5px 10px 5px 5px; border-radius: 20px; }
.usermenu > button:hover { background: var(--beige-50); border-color: var(--line); }
.usermenu .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.usermenu .uname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); color: var(--text); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; z-index: 3000; }
.usermenu .menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.usermenu .menu .who b { display: block; font-size: 14px; color: var(--text); }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; box-shadow: none; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--beige-50); }
.project-list .powner { display: block; font-size: 11.5px; color: var(--muted); }
.project-list li.proj-group { display: block; background: none; padding: 0; cursor: default; border: none; box-shadow: none; }
.proj-group { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 6px; font-weight: 650; }
.import-local { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; margin: 8px 0 14px; font-size: 13px; }
.import-local button { margin-top: 8px; }

/* ---------- inlog- en beheerpagina ---------- */
.auth-page { min-height: 100%; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--green) 14%, transparent), transparent 60%), var(--bg); }
.auth-card { width: min(900px, 100%); display: grid; grid-template-columns: 340px 1fr; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-card .proj-intro { min-height: 460px; }
.auth-form { padding: 40px 40px 34px; }
.auth-form h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: var(--text); margin: 0 0 4px; }
.auth-form form { margin-top: 18px; }
.auth-form .msg { min-height: 20px; font-size: 13.5px; margin: 8px 0; }
.auth-form .msg.bad { color: var(--bad); }
.auth-form .msg.ok { color: var(--green-dark); }
.auth-form .links { display: flex; justify-content: space-between; margin-top: 12px; }

.admin-page { min-height: 100%; background: var(--bg); }
.admin-page #topbar { padding-left: 0; }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.card h2 { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; }
.firm-list { list-style: none; margin: 0; padding: 0; }
.firm-list li { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.firm-list li:hover { background: var(--beige-50); }
.firm-list li.sel { border-color: var(--green); background: var(--green-soft); }
.firm-list .swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; background: var(--green); }
.firm-list .fname { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm-list .fmeta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.utable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.utable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.utable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.utable tr:hover td { background: var(--beige-50); }
.utable td.actions { text-align: right; white-space: nowrap; }
.utable td.actions button { padding: 5px 10px; font-size: 13px; }
.utable .email { color: var(--muted); font-size: 12.5px; }
.firm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.firm-head img { max-height: 48px; max-width: 160px; object-fit: contain; }
.firm-head h2 { margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dialog-body { width: min(540px, 96vw); height: auto; max-height: 92vh; flex-direction: column; padding: 24px 26px; overflow-y: auto; }
.dialog-body h2 { margin-top: 0; font-size: 19px; }
.dialog-body .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.checks { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.checks label.check { margin: 0; font-weight: 500; }
.linkbox { background: var(--beige-50); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px; font-size: 12.5px; word-break: break-all; margin: 8px 0; }
input[type=color] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); }

/* ---------- drie hulpmiddelen, elk met een eigen kleur ---------- */
body { --tool: var(--green); --tool-soft: var(--green-50, #e7f3ef); }
body.tool-pv { --tool: #d99a06; --tool-soft: #fdf3dc; }
body.tool-dak { --tool: #2f6fd0; --tool-soft: #e6effb; }
body.tool-gevel { --tool: #c25a2c; --tool-soft: #f9ebe4; }
.tool-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  background: var(--tool-soft); color: var(--tool); white-space: nowrap; }
.tool-tag svg { width: 16px; height: 16px; }
body[class*="tool-"] #topbar { box-shadow: inset 0 -3px 0 var(--tool); }
body[class*="tool-"] .steps button.active::before { background: var(--tool); }
body[class*="tool-"] .steps button.active .ico { background: var(--tool); }
.kind[data-k] { --tool: var(--green); }
.pkind-pv { --tool: #d99a06; } .pkind-dak { --tool: #2f6fd0; } .pkind-gevel { --tool: #c25a2c; }

/* gevelproject, stap Woning: samenvatting van het gebouw; dakvlakken enkel op vraag */
body.woning:not(.show-roofs) #roofList, body.woning:not(.show-roofs) #drawRoofBtn, body.woning:not(.show-roofs) #roofPanel,
body.woning:not(.show-roofs) .leaflet-tooltip.roof-label { display: none !important; }
.woning-sum { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 4px 0 10px; }
.ws-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ws-grid div { background: var(--tool-soft); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.ws-grid b { display: block; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-grid span { font-size: 11.5px; color: var(--muted); }
.woning-sum .row { margin-top: 8px; }

/* offerte en werfvoorbereiding (gevels) */
.fc-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.fc-docs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; }
.fc-docs button small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.fc-docs button.primary small { color: rgba(255,255,255,.85); }
.fc-docs .wide { grid-column: 1 / -1; }

/* ---------- kleinere schermen ---------- */
/* aanraakschermen: grotere knoppen en velden */
@media (pointer: coarse) {
  button, select, input[type=text], input[type=number], input[type=email], input[type=password] { min-height: 40px; }
  .steps button { min-height: 52px; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
  #fpCanvas { touch-action: none; }
}
@media (max-width: 1100px) {
  #topbar .status { display: none; }
  #sidebar { width: 330px; }
  .map-tools select { max-width: 100%; flex: 1 1 100%; }
}
@media (max-width: 1100px) {
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
}
/* tablet staand */
@media (min-width: 761px) and (max-width: 1024px) {
  :root { --railw: 72px; }
  .tb-name { display: none; }
  #sidebar { width: 300px; }
  .steps button { font-size: 10.5px; }
  .tb-project { max-width: none; flex: 1; }
  .tb-actions .ghost, .tb-actions .filebtn { padding: 6px 8px; }
  .map-tools { left: 54px; max-width: none; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .auth-card, .admin-main { grid-template-columns: 1fr; }
  .auth-card .proj-intro { min-height: 0; }
  .utable .hide-sm { display: none; }
  .project-body { grid-template-columns: 1fr; }
  .proj-intro { padding: 20px 22px; }
  .tagline { font-size: 20px; }
  .tagline span, .modchips { display: none; }
  .proj-new { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --topbar: auto; --railw: 64px; }
  #topbar { flex-wrap: wrap; height: auto; padding: 0 12px 10px 0; gap: 8px; }
  .tb-brand { height: 56px; }
  .tb-project { order: 3; width: calc(100% - 12px); margin-left: 12px; max-width: none; }
  .tb-actions { margin-left: auto; }
  #app { flex-direction: column; height: auto; }
  .steps { flex-direction: row; width: 100%; padding: 6px; position: sticky; top: 0; z-index: 950; }
  .steps button { flex: 1; padding: 6px 2px; }
  .steps button.active::before { display: none; }
  .steps .ico { width: 30px; height: 30px; padding: 6px; }
  #sidebar { width: 100%; border-right: none; order: 3; }
  #mapwrap { height: 58vh; flex: none; order: 2; }
  .map-tools { flex-wrap: wrap; left: 54px; right: 8px; top: 10px; max-width: none; padding: 4px; gap: 4px; border-radius: 12px; justify-content: flex-start; }
  .map-tools select { max-width: 100%; flex: 1 1 100%; min-height: 34px; font-size: 13px; padding: 4px 8px; }
  .map-tools button { padding: 6px 8px; font-size: 12.5px; min-height: 34px; }
  .map-hint { bottom: 12px; max-width: calc(100% - 24px); font-size: 13px; padding: 10px 12px; }
  .modal-body { flex-direction: column; }
  .photo-side, .v3d-side { width: 100%; border-right: none; }
  /* smartphone */
  .tb-name { display: none; }
  .tool-tag { order: 2; }
  .tb-actions .ghost, .tb-actions .filebtn { display: none; }
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-docs { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-body { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; overflow: auto; }
  .fp-body .fp-side { order: 2; max-height: none; overflow: visible; }
  .fp-body .mp-head, .v3d-side .mp-head { position: sticky; top: 0; z-index: 3; background: var(--white); padding: 8px 0; }  .fp-body .fp-canvas-wrap { order: 1; min-height: 46dvh; flex: none; }
  .v3d-side { order: 2; max-height: none; }
  #v3dCanvas { min-height: 55dvh; }
}
