:root{color:#15211c;background:#fbfaf7}main{max-width:1600px;padding:22px}.card{border-radius:5px;border-color:#e2ddd2;box-shadow:none}.primary{background:#1f6b50;border-color:#1f6b50}.primary:hover{background:#185841}button{color:#1f6b50}.primary{color:white}button,input,select{border-radius:4px}.preview{background:#f2efe8}.customer-mode>header,.customer-mode .intro,.customer-mode .material-original,.customer-mode #approve,.customer-mode #undo-delete,.customer-mode [data-delete],.customer-mode #new{display:none}.customer-mode .layout{grid-template-columns:1fr}.customer-mode #name{max-width:600px}.customer-mode #form-section>p.muted{display:none}.customer-mode #form-section{margin-top:0}.customer-mode .template .danger{display:none}.template>a{display:block;margin-top:15px}.customer-mode main{padding:8px 0}.construction-preview{min-width:0}#preview svg{max-width:100%;height:460px}#preview-shell{isolation:isolate}.template-downloads{background:#fbfaf7;padding:12px}.customer-mode #status{font-size:.85rem}.tip{background:#f2efe8;color:#5b6862}
@media(max-width:720px){main{padding:12px}.customer-mode main{padding:0}.construction-preview{position:static!important}#preview svg{height:320px}.fields{grid-template-columns:1fr 1fr}.hole-row{grid-template-columns:1fr 1fr}.card{padding:14px}}

#status{font-size:12px;min-height:18px;margin:0 0 12px}#template-form{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}.construction-fields{min-width:0}.construction-preview{position:sticky;top:18px;min-width:0;padding:16px;background:#fbfaf7;border:1px solid var(--ws-line);border-radius:8px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.construction-fields h3{margin:18px 0 8px}.construction-fields details,.construction-preview details{font-size:12px;margin:9px 0;color:#69766c}.construction-fields details p,.construction-preview details p{font-size:12px}.hole-row{grid-template-columns:68px minmax(50px,1fr) minmax(50px,1fr) auto;gap:7px;padding:9px 0;border-bottom:1px solid #e8ece4;margin:0;font-size:12px}.hole-row .check{margin:0 0 7px;font-size:11px}.hole-row>button{grid-column:auto;font-size:11px}.hole-row [data-symmetry]{grid-column:2/-1}.check{margin:10px 0}.preview{padding:12px;background:#edf0e9;border:1px solid #e1e6dd;min-height:300px}.preview svg{height:340px}.layer-selection{margin:0 0 8px}#toggle-guides{font-size:11px;margin-bottom:10px}#toggle-guides[aria-pressed=true]{background:#536c55;color:white}:is(#geometry-note,#symmetry-note){font-size:12px;margin:9px 0}.draft-download{gap:8px;margin:12px 0}.draft-download label{min-width:150px;flex:1}.draft-download p{font-size:11px}#save-template{margin-top:16px;width:100%}#form-section>p.muted{font-size:12px;margin-top:0}.templates{grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px}.template{padding:14px;border-radius:8px;background:#fbfcf9}.template h3{margin:8px 0}.template svg{height:85px}.template-downloads{margin-top:12px;padding-top:10px}.template-downloads button{font-size:11px;padding:6px 8px}#place-plate{background:#fff;color:#334d3d}
@media(max-width:900px){#template-form{grid-template-columns:1fr}.construction-preview{position:static}.hole-row{grid-template-columns:60px minmax(45px,1fr) minmax(45px,1fr) auto}}
:root{--ws-line:#e2ddd2}.customer-mode .material-original{display:none}.layout{display:block}.construction-preview{background:#f4f6f8}.preview{background:#edf1f4}
.compact-mode main{padding:5px}.compact-mode #form-section{padding:10px}.compact-mode #form-section>h2,.compact-mode #form-eyebrow,.compact-mode #form-section+div,.compact-mode .construction-fields>label.wide,.compact-mode .draft-download{display:none}.compact-mode #template-form{height:625px;gap:12px;grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr)}.compact-mode .construction-fields{height:625px;overflow:auto;padding:0 10px 12px 0}.compact-mode .construction-preview{position:static;max-height:625px;overflow:auto;padding:10px}.compact-mode #preview svg{height:355px}.compact-mode #status{margin:0 0 4px}.compact-mode .construction-fields h3{font-size:14px;margin:12px 0 6px}@media(max-width:700px){.compact-mode #template-form{grid-template-columns:1fr;grid-template-rows:275px 340px}.compact-mode .construction-preview{grid-row:1;max-height:275px}.compact-mode .construction-fields{grid-row:2;height:340px;padding-right:6px}.compact-mode #preview svg{height:175px}.compact-mode .preview{min-height:175px;padding:0}.compact-mode .layer-selection{display:inline-flex}.compact-mode #toggle-guides{margin-left:8px}.compact-mode .construction-preview>details{display:none}}

#individual-holes{border:1px solid #ccd7de;border-radius:5px;background:#fff;padding:10px;margin:12px 0;font-size:13px}#individual-holes>summary{cursor:pointer;font-weight:600;color:#1f6b50;padding:3px 0}#individual-holes[open]>summary{margin-bottom:10px}

#klingel-section{padding:14px;margin:16px 0;border:2px solid #9fb5c3;border-radius:7px;background:#edf4f8}#klingel-section h3,.compact-mode #klingel-section h3{font-size:18px;margin:0 0 8px;color:#15211c}#klingel-section h3 span{display:inline-grid;place-items:center;width:25px;height:25px;background:#1f6b50;color:#fff;border-radius:50%;font-size:20px}#klingel-section .bell-intro{font-size:13px;margin:0 0 12px}#bell-model{background:#fff;border:1px solid #7c97a7;font-weight:600}#remove-bell{width:100%;margin:8px 0;background:#fff;border:1px solid #a9bac5;color:#1f6b50;font-weight:600}#remove-bell span{font-size:22px;margin-right:6px}#bell-selection-note:empty{display:none}#bell-selection-note{font-size:13px;color:#8a3a24}#klingel-section.has-bell{border-color:#5b6862}

#acrylic-section{padding:14px;margin:16px 0;border:2px solid #9fb5c3;border-radius:7px;background:#edf4f8}#acrylic-section h3,.compact-mode #acrylic-section h3{font-size:18px;margin:0 0 8px;color:#15211c}#acrylic-section .bell-intro{font-size:13px;margin:0 0 12px}#add-acrylic,#remove-acrylic{width:100%;margin:8px 0;border:1px solid #a9bac5;font-weight:600}#add-acrylic{background:#1f6b50;color:white}#remove-acrylic{background:white;color:#1f6b50}#acrylic-section.has-acrylic{border-color:#5b6862}#acrylic-section h3,#klingel-section h3{display:flex;align-items:center;gap:7px}#acrylic-section .add-circle,#klingel-section .add-circle{position:relative;display:inline-block;flex:0 0 25px;width:25px;height:25px;padding:0;background:#1f6b50;border-radius:50%} .add-circle::before,.add-circle::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:1px}.add-circle::before{width:11px;height:2px}.add-circle::after{width:2px;height:11px}

#bell-compatibility{padding:10px;border:1px solid #bccbd4;background:white;font-size:13px;color:#1f6b50}#acrylic-thickness-note:empty,#base-acrylic-thickness-note:empty{display:none}#acrylic-thickness-note,#base-acrylic-thickness-note{font-size:13px;color:#8a3a24}#base-acrylic-options{background:#edf4f8;padding:12px;border:1px solid #9fb5c3;border-radius:5px;margin:0 0 12px}

/* Selection controls stay below the canvas, never over a draggable object. */
#layer-popover,#hole-popover{position:static;width:100%;max-width:none;max-height:none;overflow:visible;margin-top:12px;box-shadow:none;border-radius:8px}
#layer-popover[hidden],#hole-popover[hidden]{display:none}
.compact-mode #template-form{height:auto;min-height:625px}
.compact-mode .construction-preview{max-height:none;overflow:visible}
@media(max-width:700px){.compact-mode #template-form{grid-template-rows:auto auto;min-height:0}.compact-mode .construction-fields{height:auto;overflow:visible;padding:0}.compact-mode .construction-preview{max-height:none}.popover-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.popover-fields input,.popover-fields select{min-width:0;width:100%}.popover-heading button{min-width:44px;min-height:44px}}

@media(max-width:700px){.compact-mode main{padding:0!important}.compact-mode .card{padding:4px!important;border-radius:0}.compact-mode .construction-preview{padding:4px}.compact-mode #preview{padding:2px;min-height:180px}.compact-mode #preview svg{width:100%;height:auto}.compact-mode .construction-fields{padding:8px}.compact-mode .preview-toolbar button{min-height:44px}}

html:has(.compact-mode){overflow:hidden}

/* Customer view: preview first, complete settings in clearly labelled sections. */
.compact-mode{color:#223e38;background:#f2efe8}.compact-mode main{padding:0!important}.compact-mode #form-section{border:0;margin:0;padding:16px!important;background:#f2efe8}
.compact-mode #template-form{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto;gap:18px;min-height:0;height:auto}
.compact-mode .construction-preview{grid-column:1;grid-row:1;position:static;border:1px solid #dce5de;border-radius:12px;background:#fff;padding:16px;max-height:none;overflow:visible}
.compact-mode .construction-fields{grid-column:2;grid-row:1;height:auto;overflow:visible;padding:0}
.compact-mode .preview{min-height:320px;padding:12px;background:#eef3ef;border-color:#dce5de;border-radius:10px}.compact-mode #preview svg{width:100%;height:auto;max-height:440px}
.compact-mode .layer-selection{flex-wrap:wrap}.compact-mode .layer-selection button,.compact-mode #toggle-guides{min-height:44px;color:#264c3d;border-color:#cbdccf;background:white}.compact-mode #toggle-guides[aria-pressed=true]{background:#234e41;color:white}
.compact-mode .layer-selection .customer-layer-action{font-weight:600;white-space:normal}.compact-mode .layer-selection .customer-layer-action.is-add{background:#234e41;border-color:#234e41;color:white}.compact-mode .layer-selection .customer-layer-action.is-add:hover{background:#173e32}.compact-mode .layer-selection .customer-layer-action:focus-visible{outline:3px solid #a77b35;outline-offset:3px}
.compact-mode #customer-bell-picker{border:1px solid #bfd3c3;border-radius:8px;background:#f8faf7;padding:14px;margin:12px 0}.compact-mode #customer-bell-picker[hidden]{display:none}.compact-mode .customer-bell-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.compact-mode .customer-bell-heading button{min-width:44px;min-height:44px;font-size:22px}.compact-mode #customer-bell-model{display:block;width:100%;min-width:0;min-height:46px;margin-top:6px}.compact-mode #customer-bell-note{font-size:13px;line-height:1.6;margin:10px 0}.compact-mode #customer-remove-bell{min-height:44px;background:white;color:#264c3d;border-color:#cbdccf}
.compact-mode .customer-section{border:1px solid #dce5de;border-radius:10px;background:#fff;margin:0 0 10px;color:#223e38;font-size:14px;overflow:clip}
.compact-mode .customer-section>summary{padding:16px;min-height:64px;cursor:pointer;list-style:none;position:relative;padding-right:38px;font-weight:600}.compact-mode .customer-section>summary::-webkit-details-marker{display:none}
.compact-mode .customer-section>summary::after{content:'+';position:absolute;right:16px;top:20px;font-size:21px;line-height:1;color:#42745f}.compact-mode .customer-section[open]>summary::after{content:'−'}
.compact-mode .customer-section>summary small{display:block;font-size:12px;color:#45594c;font-weight:500;margin-top:5px;line-height:1.4}
.compact-mode .customer-section[open]>summary{border-bottom:1px solid #e6ece6;background:#f8faf7}
.compact-mode .customer-section-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
.compact-mode .customer-section-body>label{min-width:0}.compact-mode .customer-section-body>label:has(#shape),.compact-mode .customer-section-body>label:has(#cornerRadiusMm),.compact-mode .customer-section-body>label:has(#edgeMm),.compact-mode .customer-section-body>label:has(#spacer-count){grid-column:1/-1}
.compact-mode .customer-section-body>:is(div,section,p,details){grid-column:1/-1}
.compact-mode .customer-section-body input,.compact-mode .customer-section-body select{min-width:0;width:100%;min-height:46px;border-color:#c9d8cc;color:#223e38}
.compact-mode #acrylic-section,.compact-mode #klingel-section{border:0;background:transparent;padding:0;margin:0}.compact-mode #acrylic-section h3,.compact-mode #klingel-section h3{display:none}.compact-mode #klingel-section .bell-intro{font-size:13px;line-height:1.6}
.compact-mode #base-acrylic-options{padding:0;border:0;background:transparent}.compact-mode #base-acrylic-options label{margin-bottom:12px}
.compact-mode .customer-continue{display:none}.compact-mode #customer-downloads .draft-download{display:flex!important;flex-wrap:wrap;margin:0}.compact-mode #customer-downloads .draft-download>button{min-height:44px}
.compact-mode #layer-popover,.compact-mode #hole-popover{border-color:#bfd3c3;background:#f8faf7}.compact-mode #status:not(.error){font-size:0;min-height:0;height:0;margin:0;overflow:hidden}
.compact-mode #geometry-note{font-size:12px;line-height:1.6}.compact-mode #symmetry-note{font-size:12px}.compact-mode #symmetry-note:not(.error){padding:10px;background:#edf4ee;color:#375c44;border-radius:6px}
@media(max-width:950px){.compact-mode #template-form{grid-template-columns:minmax(0,1fr) 300px;gap:12px}.compact-mode #form-section{padding:10px!important}}
@media(max-width:700px){.compact-mode #form-section{padding:0!important}.compact-mode #template-form{display:flex;flex-direction:column;gap:12px}.compact-mode .construction-preview{order:0;width:100%;padding:8px;border-radius:0}.compact-mode .construction-fields{order:1;width:100%;padding:0 12px;height:auto}.compact-mode .preview{min-height:180px;padding:2px;border-radius:8px}.compact-mode #preview svg{max-height:none}.compact-mode .customer-section>summary{min-height:64px}.compact-mode .construction-preview>details{display:block}.compact-mode .customer-section-body{padding:14px}}
@media(max-width:700px){.compact-mode .hole-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-mode .hole-row>strong,.compact-mode .hole-row [data-symmetry]{grid-column:1/-1}.compact-mode .hole-row button{white-space:normal;min-height:44px}.compact-mode .hole-row .check{align-items:center}}
/* Shared proportions and colors from the Gravuru customer configurator. */
@media(min-width:701px){html:has(.compact-mode),body.compact-mode{height:100%;overflow:hidden}.compact-mode main,.compact-mode .layout,.compact-mode #form-section{height:100%;min-height:0}.compact-mode main{padding:0}.compact-mode #form-section{padding:0 48px 12px!important;margin:0;border:0;background:white;border-radius:0}.compact-mode #template-form{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(390px,1fr);gap:28px;height:100%;min-height:0;padding-top:8px;align-items:stretch}.compact-mode .construction-fields{grid-column:2;grid-row:1;height:100%;min-height:0;overflow:auto;padding:0 0 20px;border:0;border-radius:0;background:#fff}.compact-mode .construction-preview{grid-column:1;grid-row:1;min-height:0;height:100%;overflow:auto;padding:12px;background:#f5f6f3;border:1px solid #e2ddd2;border-radius:12px}.compact-mode #preview{background:#f5f6f3;border:0;min-height:0;padding:8px 4px}.compact-mode #preview svg{height:auto!important;width:100%;max-height:calc(100dvh - 145px);min-height:170px}.compact-mode .construction-preview>details{font-size:12px}.compact-mode .customer-section{margin:0 0 10px}.compact-mode .customer-section>summary{min-height:62px}.compact-mode .customer-section-body{background:white}.compact-mode #geometry-note{font-size:11px}.compact-mode .customer-product-choices h2{font-size:21px;margin:0 0 18px}.compact-mode .customer-product-choices label{display:block;margin-bottom:12px}}
.compact-mode .customer-product-choices{grid-column:1/-1}.compact-mode .customer-product-choices label{display:grid;gap:6px}.compact-mode .customer-product-choices h2{font-size:20px;color:#15211c}.compact-mode .customer-series{border:1px solid #e2ddd2;border-radius:8px;padding:0;margin:10px 0;background:white;font-size:13px}.compact-mode .customer-series summary{min-height:44px;padding:12px;cursor:pointer}.compact-mode .customer-series label,.compact-mode .customer-series p{display:block;padding:0 12px 12px}.compact-mode .layer-selection{gap:6px;flex-wrap:wrap}.compact-mode .layer-selection button{font-size:11px;padding:8px;min-height:40px}.compact-mode .layer-selection .is-add{background:#1f6b50;border-color:#1f6b50;color:#fff}.compact-mode #customer-start-design{background:#1f6b50;color:white}.compact-mode #toggle-guides{min-height:40px}.compact-mode .customer-section>summary{color:#15211c;background:#fff}.compact-mode .customer-section[open]>summary{background:#f5f7f3}.compact-mode input,.compact-mode select{font-size:14px}.compact-mode #customer-bell-picker{margin-bottom:12px;font-size:13px}.compact-mode #customer-bell-picker select{font-size:14px}
@media(min-width:1500px){.compact-mode #form-section{padding-inline:max(48px,calc((100vw - 1400px)/2))!important}}
@media(max-width:1000px) and (min-width:701px){.compact-mode #form-section{padding-inline:24px!important}.compact-mode #template-form{grid-template-columns:minmax(0,1.1fr) minmax(310px,1fr);gap:20px}}
@media(max-width:700px){.compact-mode main{padding:0}.compact-mode #form-section{padding:0!important;border:0}.compact-mode #template-form{display:flex;flex-direction:column;gap:14px;padding:8px 0 0}.compact-mode .construction-preview{padding:10px 8px;border:0;background:#f5f6f3}.compact-mode .construction-fields{padding:0 12px 24px}.compact-mode .preview{padding:0!important;min-height:0!important;border:0;background:#f5f6f3}.compact-mode #preview svg{width:100%;height:auto!important;max-height:none;min-height:0}.compact-mode .customer-section>summary{min-height:54px}.compact-mode .layer-selection button{font-size:11px;min-height:44px}.compact-mode #toggle-guides{margin:0 0 6px}.compact-mode #geometry-note{font-size:11px}.compact-mode .customer-product-choices h2{margin:0 0 15px}.compact-mode .customer-product-choices select,.compact-mode .customer-section input,.compact-mode .customer-section select{font-size:16px}}

@media(min-width:701px){.compact-mode .construction-fields{border-top:96px solid white!important;box-sizing:border-box}}

/* Keep the optional additions compact without hiding their controls. */
@media(max-width:700px){body.compact-mode .layer-selection{gap:6px}body.compact-mode .layer-selection button{font-size:12px;min-height:44px;padding:8px 10px}body.compact-mode .layer-selection #customer-start-design{flex:1}body.compact-mode .layer-selection #select-acrylic,body.compact-mode .layer-selection #select-bell{flex:1 1 45%}}

/* Natural iframe height lets the outer page scroll on every screen size. */
html:has(body.compact-mode),body.compact-mode{height:auto;min-height:0;overflow:hidden}.compact-mode main,.compact-mode .layout,.compact-mode #form-section,.compact-mode #template-form{height:auto;min-height:0}.compact-mode #template-form{align-items:start}.compact-mode .construction-fields{height:auto;overflow:visible;border-top:0!important;padding:0 0 24px}.compact-mode .construction-preview{height:auto;overflow:visible;max-height:none}.compact-mode #preview svg{max-height:none;min-height:0}.compact-mode #preview-shell{overflow:visible}.compact-mode input,.compact-mode select{font-size:16px;border-radius:8px;min-height:46px}.compact-mode label{font-size:14px;line-height:1.5}.compact-mode .customer-section>summary{font-size:16px;min-height:64px;padding:17px 42px 17px 18px}.compact-mode .customer-section>summary small{font-size:14px}.compact-mode .customer-section-body{padding:18px;gap:14px}.compact-mode .layer-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compact-mode .layer-selection button{font-size:14px;line-height:1.4;padding:10px 12px;min-height:46px;border-radius:8px}.compact-mode #toggle-guides{font-size:13px;padding:8px 12px}.compact-mode #klingel-section{display:flex;flex-direction:column;gap:12px}.compact-mode #klingel-section p,.compact-mode #klingel-section .bell-intro{margin:0;font-size:14px;line-height:1.6}.compact-mode #bell-fields{margin:0;gap:12px}.compact-mode #remove-bell{align-self:flex-start;width:auto;min-height:44px;font-size:14px;margin:0;padding:9px 14px;border-color:#d4dfd7;color:#52675b}.compact-mode #klingel-section details{font-size:14px;margin:0}.compact-mode #geometry-note,.compact-mode #symmetry-note{font-size:13px}.compact-mode #layer-position-help{font-size:14px;line-height:1.55}.compact-mode .popover-fields{gap:12px}.compact-mode #place-plate{font-size:14px;min-height:44px}.compact-mode #preview svg{touch-action:pan-y}.compact-mode #preview [data-drag-bell],.compact-mode #preview .movable,.compact-mode #preview [data-acrylic-resize],.compact-mode #preview [data-steel-resize]{touch-action:none}
@media(max-width:700px){.compact-mode .layer-selection button{font-size:13px}.compact-mode .construction-preview{padding:10px 8px}.compact-mode .customer-section-body{padding:14px}.compact-mode #preview svg{min-height:0}}

