#cutterguidedialog{width:min(1150px,96vw);max-width:1150px;max-height:94vh;padding:0;border:1px solid #bdcec5;border-radius:18px;background:#fbfbf6;color:#293f42;overflow:auto}#cutterguidedialog::backdrop{background:#293f4280;backdrop-filter:blur(4px)}#cutterguidedialog [hidden]{display:none!important}.guide-heading{display:flex;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #d5ddd7}.guide-heading h2{margin:0;font-size:25px}.guide-heading .eyebrow{margin:0 0 8px}.guide-heading button{align-self:flex-start;white-space:nowrap}.guide-layout{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr)}.guide-controls{padding:24px}.guide-controls p{line-height:1.6}.guide-preview{padding:18px;background:#e5ece4;min-width:0}.guide-preview #modelview{height:340px;min-height:240px;border-radius:12px}.guide-preview #modeldimensions{font-size:13px;line-height:1.5}.guide-actions{display:flex;gap:12px;margin-top:20px;align-items:center}#cutterguidedialog .primary{width:auto;margin:0}#guidestatus{color:#9d3824;font-size:14px;min-height:1.5em}#guidefinish,#guidedownloads{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}#guidetracehost{padding:18px;border-top:1px solid #d5ddd7}#guidetracehost .editor-wrap{height:44vh}#guidetracehost .pen-toolbar{display:flex!important;flex-wrap:wrap}#guidetracehost .resultbar{flex-wrap:wrap}@media(max-width:720px){.guide-layout{grid-template-columns:1fr}.guide-heading{padding:16px;flex-wrap:wrap}.guide-heading h2{font-size:22px}.guide-controls{padding:16px}.guide-preview #modelview{height:240px}.guide-preview{padding:12px}#guidetracehost .editor-wrap{height:36vh}}

#cutterguidedialog #guidetracehost{min-width:0;border-top:0;background:#e5ece4}#guidetracehost .editor-wrap{height:54vh;min-height:280px}

.guide-exit-tools{display:flex;gap:10px;flex-wrap:wrap;align-self:flex-start}

/* Keep navigation anchored independently of each step's content. */
#cutterguidedialog[open]{display:flex;flex-direction:column;height:min(800px,94dvh);overflow:hidden;overscroll-behavior:contain}
#cutterguidedialog .guide-heading{flex-shrink:0}
#cutterguidedialog .guide-layout{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.guide-navigation{flex-shrink:0;display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:16px 24px;border-top:1px solid #d5ddd7;background:#fbfbf6}
#cutterguidedialog .guide-navigation .guide-actions,#cutterguidedialog .guide-navigation #guidefinish,#cutterguidedialog .guide-navigation #guidedownloads{margin:0}
.guide-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.guide-size-fields label{min-width:0}
html:has(#cutterguidedialog[open]),body:has(#cutterguidedialog[open]){overflow:hidden;overscroll-behavior:none}
@media(max-width:720px){.guide-navigation{padding:12px 16px}#cutterguidedialog[open]{height:94dvh}}
html:has(#selectiondialog[open]),body:has(#selectiondialog[open]){overflow:hidden;overscroll-behavior:none}
