/* The editor is a fixed stage with one independently scrolling inspector. */
.editor-tabs{display:none}
body.editing-mode{height:100dvh;min-height:0;overflow:hidden;background:#f6f4ee;color:#30372f}
body.editing-mode main{height:100%;min-height:0;max-width:none;padding:0;display:flex;flex-direction:column}
body.editing-mode .edit-toolbar{flex:0 0 64px;box-sizing:border-box;margin:0;padding:8px 24px;border:0;display:flex;align-items:center;gap:20px;background:#f6f4ee}
body.editing-mode #back-to-table{min-height:44px;padding:0 12px;background:transparent;border:0;font-size:13px}
body.editing-mode .edit-toolbar>div{min-width:0;padding-right:52px}
body.editing-mode #design-context{display:none}
body.editing-mode #edit-summary{font-size:12px;font-weight:450;color:#6e7667;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.editing-mode #mobile-edit{display:none}
body.editing-mode .workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-rows:minmax(0,1fr);gap:0;margin:0 16px 16px;border:1px solid #e1e1d7;border-radius:18px;overflow:hidden;background:#edebe4}
body.editing-mode .workspace .preview-panel{grid-column:1;grid-row:1;order:0;position:relative;width:auto;height:auto;min-height:0;margin:0;border:0;border-radius:0;background:#edebe4;overflow:hidden}
body.editing-mode .workspace #viewport{position:absolute;inset:0;min-height:0;width:100%;height:100%}
body.editing-mode .workspace #viewport canvas{display:block;touch-action:none!important;width:100%;height:100%;outline-offset:-4px}
body.editing-mode .workspace .gallery-depth,body.editing-mode .workspace .preview-meta,body.editing-mode .workspace .print-chip,body.editing-mode .workspace .shape-dimension,body.editing-mode .workspace .live-label,body.editing-mode .workspace .hover-card{display:none!important}
body.editing-mode .preview-top{inset:18px 18px auto;display:flex;justify-content:center;pointer-events:none;padding:0}
body.editing-mode .view-toggle{pointer-events:auto;padding:4px;background:#faf9f3d9;backdrop-filter:blur(12px);border:1px solid #dcded1;border-radius:50px;box-shadow:none}
body.editing-mode .view-toggle button{min-height:36px;min-width:64px;padding:0 14px;border:0;border-radius:30px;font-size:12px;color:#6b7563;background:transparent}
body.editing-mode .view-toggle button.active{color:#303e2b;background:#e4e9d9;box-shadow:none}
body.editing-mode .preview-bottom{left:20px;right:20px;bottom:18px;display:flex;justify-content:space-between;align-items:center;padding:0;gap:10px;pointer-events:none}
body.editing-mode .orbit-hint{padding:0;background:none;font-size:11px;color:#7a7d70;pointer-events:none}
body.editing-mode .camera-controls{display:flex;gap:4px;pointer-events:auto}
body.editing-mode .camera-controls button{width:44px;height:44px;border:0;border-radius:50%;background:#faf9f2d9;font-size:20px;color:#69735e}
body.editing-mode #screenshot,body.editing-mode #top-view{display:none}
body.editing-mode #home-view{font-size:22px}
body.editing-mode .workspace .editor{grid-column:2;grid-row:1;order:1;position:relative;width:auto;height:auto;max-height:none;min-height:0;overflow:hidden;border:0;border-left:1px solid #e1e1d7;border-radius:0;padding:0;display:flex;flex-direction:column;background:#fffef9;box-shadow:none}
body.editing-mode .editor-title{min-height:66px;flex:0 0 auto;box-sizing:border-box;margin:0;padding:14px 20px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}
body.editing-mode .editor-title .eyebrow{display:none}
body.editing-mode .editor-title h2{font-size:17px;font-weight:550;line-height:1.4;letter-spacing:-.4px;margin:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.editing-mode .editor-title>div:last-child{display:flex;gap:0}
body.editing-mode .editor-title button{width:40px;height:44px;font-size:21px;padding:0;border:0;background:none;color:#526247}
body.editing-mode .editor-title button:disabled{opacity:.3}
body.editing-mode .editor-tabs{display:flex;flex:0 0 auto;gap:4px;margin:0 20px 12px;padding:4px;background:#f1f2eb;border-radius:12px}
body.editing-mode .editor-tabs button{min-height:42px;flex:1;padding:0 10px;border:0;border-radius:9px;background:transparent;font-size:13px;font-weight:500;color:#7a8172;transition:background .15s,color .15s}
body.editing-mode .editor-tabs button[aria-selected=true]{background:#fffef9;color:#293b26;box-shadow:0 1px 4px #25361712}
body.editing-mode .editor-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5dccd transparent;padding:0 20px 16px;scroll-padding:16px}
body.editing-mode .editor-pane[hidden]{display:none!important}
body.editing-mode .editor-pane>.panel-section:first-child{padding-top:12px}
body.editing-mode .panel-section{padding:22px 0;border:0;border-bottom:1px solid #e8eadf;margin:0}
body.editing-mode .section-heading{margin-bottom:16px;min-height:24px;gap:10px}
body.editing-mode .section-heading h3{font-size:13px;font-weight:550;color:#414b39;letter-spacing:0}
body.editing-mode .link-button{min-height:36px;min-width:44px;padding:4px;font-size:12px;color:#7c8b6e}
body.editing-mode .dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
body.editing-mode .dimensions label{font-size:12px;color:#727b68}
body.editing-mode .dimensions label>div{height:48px;box-sizing:border-box;margin-top:7px;border:1px solid #dce1d2;background:#fdfdf8;border-radius:9px;padding:0 12px;display:flex;align-items:center}
body.editing-mode .dimensions input{font-size:18px;width:100%;height:100%;padding:0;min-width:0;color:#36412d}
body.editing-mode .dimensions span{font-size:12px;color:#919986}
body.editing-mode .editor input,body.editing-mode .editor select{font-family:inherit;accent-color:#687e53}
body.editing-mode .editor input[type=number],body.editing-mode .editor select{font-size:16px;scroll-margin:16px}
body.editing-mode .control{margin-top:22px}
body.editing-mode .control>label{font-size:12px;color:#68765b;min-height:20px;line-height:20px;gap:8px}
body.editing-mode output{font-size:12px;line-height:20px;padding:1px 6px;border-radius:5px;background:#f1f3eb;color:#66785b;font-variant-numeric:tabular-nums}
body.editing-mode input[type=range]{height:36px;width:100%;margin:4px 0 0;background:transparent;touch-action:pan-y}
body.editing-mode input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,#8b9f79 var(--range),#e6eadd var(--range))}
body.editing-mode input[type=range]::-webkit-slider-thumb{appearance:none;width:22px;height:22px;margin-top:-9.5px;border:2px solid #8b9f79;border-radius:50%;background:#fffef9;box-shadow:0 1px 3px #2b422011}
body.editing-mode input[type=range]::-moz-range-track{height:3px;background:#dce4d3}
body.editing-mode input[type=range]::-moz-range-thumb{width:19px;height:19px;border:2px solid #8b9f79;border-radius:50%;background:#fffef9}
body.editing-mode .range-labels{font-size:10px;margin-top:-3px;color:#929b86}
body.editing-mode .family-picker{border-bottom:1px solid #e8eadf;margin:0;padding:0}
body.editing-mode .family-picker summary{min-height:48px;padding:0;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#6d7b5e;list-style:none}
body.editing-mode .family-picker summary::-webkit-details-marker{display:none}
body.editing-mode .family-picker .collection{padding:8px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.editing-mode .family-card{min-height:76px;font-size:11px;padding:8px 3px}
body.editing-mode .mode-toggle{display:grid;grid-template-columns:1fr;gap:5px;padding:8px 0 16px;background:none;border:0}
body.editing-mode .mode-toggle button{min-height:44px;font-size:12px;border-radius:7px;border:1px solid #e2e6d8}
body.editing-mode .original-shapes{display:flex;gap:8px}
body.editing-mode .original-shapes button{min-height:44px;padding:8px 12px;font-size:12px;border-radius:8px;flex:1}
body.editing-mode .original-footprint{display:none}
body.editing-mode .original-badge{font-size:8px;padding:4px 7px}
body.editing-mode .original-controls .micro,body.editing-mode #original-controls>.micro{display:none}
body.editing-mode .profile-wrap{margin:0;padding:10px 12px 16px;border-radius:10px}
body.editing-mode #profile-editor{width:100%;height:auto;max-height:210px;touch-action:none}
body.editing-mode .profile-handle{cursor:ew-resize;touch-action:none}
body.editing-mode .profile-wrap>span,body.editing-mode .profile-note{font-size:11px;line-height:1.6}
body.editing-mode .part-colours{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
body.editing-mode .part-colour{min-width:44px;min-height:44px;padding:9px 12px;font-size:12px;border-radius:8px}
body.editing-mode .section-texture{min-height:44px;display:flex;align-items:center;gap:10px;font-size:12px;margin:8px 0}
body.editing-mode .section-texture input,body.editing-mode .guard input{width:20px;height:20px;flex:0 0 auto}
body.editing-mode .swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:22px 0}
body.editing-mode .swatch{width:100%;height:44px;min-width:0;border-radius:50%;max-width:44px;padding:0;margin:auto}
body.editing-mode .palette-actions{display:flex;gap:8px}
body.editing-mode .palette-actions button,body.editing-mode .custom-colour{min-height:44px;flex:1;box-sizing:border-box;border-radius:8px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:6px}
body.editing-mode .editor .inline-label{font-size:12px;color:#748166;gap:8px}
body.editing-mode .editor .inline-label select{min-width:50px;height:44px}
body.editing-mode .switch{min-height:36px;display:flex;align-items:center;justify-content:flex-end}
body.editing-mode .micro{font-size:11px;line-height:1.7;margin:14px 0;color:#8a927f}
body.editing-mode .advanced{padding:10px 0 0;margin:0;border:0}
body.editing-mode .advanced>summary{display:none}
body.editing-mode .advanced-content{padding:0;display:flex;flex-direction:column;gap:15px}
body.editing-mode .advanced-content>label,body.editing-mode #planter-setup>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:12px;color:#69765d}
body.editing-mode .advanced select,body.editing-mode .advanced input[type=number]{min-height:46px;width:100%;box-sizing:border-box;padding:8px 12px;background:#fafbf5;border:1px solid #dce2d2;border-radius:8px;color:#46543a}
body.editing-mode .advanced-content p{font-size:11px;line-height:1.65;color:#88917d}
body.editing-mode #planter-setup{display:flex;flex-direction:column;gap:14px}
body.editing-mode .workspace .print-bar{display:flex;flex-direction:column;align-items:stretch;padding:18px 0;margin:0;gap:14px;border:0;background:none}
body.editing-mode .print-intro,body.editing-mode #download{display:none}
body.editing-mode .guard{display:flex;gap:10px;align-items:center;padding:0;font-size:12px;line-height:1.5}
body.editing-mode .guard small{font-size:10px;display:block;color:#89937f}
body.editing-mode #check-print{min-height:44px;width:100%;padding:10px;border:1px solid #d7dfcb;border-radius:8px;font-size:12px;background:#eff3e8}
body.editing-mode .workspace .check-panel{display:block;margin:0;padding:16px 0;border:0;border-top:1px solid #e4e9db;background:none}
body.editing-mode .check-heading{display:block}
body.editing-mode .check-heading h3{display:none}
body.editing-mode #check-summary{font-size:11px;line-height:1.6;color:#718060}
body.editing-mode .checks{display:grid;grid-template-columns:1fr;gap:9px;margin-top:15px}
body.editing-mode .check-card{padding:12px;border-radius:8px;font-size:11px;line-height:1.6}
body.editing-mode .check-card strong{font-size:12px;line-height:1.5;margin-bottom:5px}
body.editing-mode .print-note{font-size:10px;line-height:1.6}
body.editing-mode .workspace .editor-actions{position:static;flex:0 0 auto;display:grid;grid-template-columns:1fr 1.15fr;gap:8px;margin:0;padding:14px 20px;background:#fffef9;border-top:1px solid #e4e8db;box-shadow:0 -6px 16px #293b2304}
body.editing-mode .editor-actions button{height:48px;min-height:48px;padding:0 10px;border-radius:10px;font-size:12px;font-weight:500;white-space:nowrap}
body.editing-mode #share-editor{color:#59674d;border:1px solid #d9dfd0;background:transparent}
body.editing-mode #export-editor{color:#fff;background:#394d32;border:1px solid #394d32}
body.editing-mode .editor-actions small,body.editing-mode main>footer{display:none}
body.editing-mode #gallery-menu-button{top:10px;right:22px;bottom:auto;width:44px;height:44px;font-size:15px;background:#fffef980;border:1px solid #e4e6db;box-shadow:none}
body.editing-mode #toast{bottom:95px;max-width:calc(100vw - 32px);box-sizing:border-box;font-size:12px}
body.editing-mode button:focus-visible,body.editing-mode input:focus-visible,body.editing-mode select:focus-visible,body.editing-mode summary:focus-visible{outline:2px solid #758b61;outline-offset:3px}
body.editing-mode .study-identity{display:none}
body.editing-mode #link-notice:not([hidden]){flex:0 0 auto;margin:0 16px 8px;font-size:12px}
@media(max-width:760px){
 body.editing-mode .edit-toolbar{flex-basis:52px;padding:4px 12px;gap:5px}
 body.editing-mode #back-to-table{font-size:12px;padding:0 6px;white-space:nowrap}
 body.editing-mode #edit-summary{font-size:10px}
 body.editing-mode .edit-toolbar>div{padding-right:42px;flex:1;text-align:right}
 body.editing-mode .workspace{display:flex;flex-direction:column;gap:0;margin:0;border:0;border-radius:0}
 body.editing-mode .workspace .preview-panel{order:0;flex:0 0 clamp(190px,38dvh,390px);height:auto;min-height:0;border:0;border-bottom:1px solid #e2e4d9;background:#edebe4}
 body.editing-mode .workspace .editor{order:1;flex:1;min-height:0;width:100%;max-height:none;border:0;border-radius:22px 22px 0 0;margin-top:-1px}
 body.editing-mode .editor-title{min-height:42px;padding:4px 18px 0}
 body.editing-mode .editor-title h2{font-size:14px;max-width:210px}
 body.editing-mode .editor-title button{height:40px;min-height:40px;width:40px;font-size:20px}
 body.editing-mode .editor-tabs{margin:3px 18px 8px;padding:3px;border-radius:10px}
 body.editing-mode .editor-tabs button{min-height:38px;font-size:12px;border-radius:7px}
 body.editing-mode .editor-scroll{padding:0 20px 16px}
 body.editing-mode .workspace .editor-actions{padding:10px 18px max(10px,env(safe-area-inset-bottom));gap:10px;grid-template-columns:1fr 1.2fr}
 body.editing-mode .editor-actions button{height:46px;min-height:46px;font-size:12px}
 body.editing-mode .preview-top{inset:10px 10px auto}
 body.editing-mode .view-toggle{padding:3px}
 body.editing-mode .view-toggle button{min-height:36px;min-width:55px;padding:0 12px;font-size:11px}
 body.editing-mode .preview-bottom{left:15px;right:12px;bottom:10px}
 body.editing-mode .orbit-hint{font-size:9px;max-width:170px;line-height:1.6}
 body.editing-mode .camera-controls{gap:2px}
 body.editing-mode .camera-controls button{width:36px;height:36px;font-size:18px}
 body.editing-mode #gallery-menu-button{top:4px;right:8px;width:44px;height:44px;background:none;border:0}
 body.editing-mode .panel-section{padding:17px 0}
 body.editing-mode .section-heading{margin-bottom:10px}
 body.editing-mode .control{margin-top:16px}
 body.editing-mode #share-dialog,body.editing-mode #gallery-menu{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto}
 body.editing-mode #share-dialog input{font-size:16px}
}
@media(max-width:360px){body.editing-mode #edit-summary{max-width:150px;font-size:9px}body.editing-mode .preview-bottom .orbit-hint{max-width:130px}body.editing-mode .editor-title h2{max-width:175px}}
@media(max-height:540px) and (min-width:560px){
 body.editing-mode .edit-toolbar{flex-basis:48px}
 body.editing-mode .workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-rows:minmax(0,1fr);margin:0 8px 8px;border-radius:12px}
 body.editing-mode .workspace .preview-panel{grid-column:1;grid-row:1;height:100%;border:0;min-height:0}
 body.editing-mode .workspace .editor{grid-column:2;grid-row:1;height:100%;border-radius:0;border-left:1px solid #e1e1d7;margin:0}
 body.editing-mode .editor-title{min-height:40px;padding:0 14px}
 body.editing-mode .editor-tabs{margin:0 14px 6px}
 body.editing-mode .editor-tabs button{min-height:36px}
 body.editing-mode .workspace .editor-actions{padding:8px 14px}
 body.editing-mode .preview-bottom .orbit-hint{display:none}
}
body.editing-mode .dimensions label{width:100%;min-width:0}
body.editing-mode .dimensions label>div{width:100%}
@media(max-width:760px){
 body.editing-mode .editor-tabs button{min-height:44px}
 body.editing-mode .camera-controls button{width:44px;height:44px}
 body.editing-mode .editor-title button{height:44px;min-height:44px;width:44px}
 body.editing-mode .orbit-hint{font-size:0;max-width:none}
 body.editing-mode .orbit-hint::before{content:'Sleep om te draaien';font-size:10px}
}
#gallery-menu .design-details{margin:0 0 16px;border-bottom:1px solid #e2e6d8;padding:0 0 12px}
#gallery-menu .design-details summary{min-height:44px;display:flex;align-items:center;font-size:13px;color:#6c7b5e;cursor:pointer}
#gallery-menu .study-identity{display:flex!important;gap:6px;margin:4px 0 12px}
#gallery-menu .study-identity input{min-width:0;flex:1;min-height:44px;font-size:16px}
#gallery-menu .study-identity button{width:44px;min-height:44px}
body.gallery-mode .design-details{display:none}
body.editing-mode main{padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left)}
body.editing-mode .switch{width:44px;height:44px;min-height:44px;align-items:center}
body.editing-mode .switch>span{width:28px;flex:0 0 28px}
body.editing-mode .switch>span::after{top:16px}
@media(max-width:760px){body.editing-mode .view-toggle button{min-height:44px}}
body.editing-mode .editor [hidden]{display:none!important}
@media(max-width:760px){body.editing-mode .orbit-hint{font-size:10px}body.editing-mode .orbit-hint::before{content:none}body.editing-mode .orbit-hint .zoom-hint{display:none}}
