
.workflow-progress{display:block;padding:14px 24px;border-bottom:1px solid #d5ddd7;background:#f7f9f4;flex-shrink:0}
main>.workflow-progress{margin:0 0 24px;border:1px solid #d5ddd7;border-radius:12px}
.workflow-progress ol{display:flex;gap:8px;list-style:none;padding:0;margin:0;justify-content:space-between}
.workflow-progress li{display:flex;align-items:center;gap:7px;color:#6b7f80;font-size:12px;line-height:1.4}
.workflow-progress li>span:first-child{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border:1px solid #bccfc4;border-radius:50%;font-size:11px}
.workflow-progress .is-current{color:#234f52;font-weight:800}.workflow-progress .is-current>span:first-child{background:#346f70;color:#fff;border-color:#346f70}.workflow-progress .is-complete>span:first-child{background:#e0ece5;color:#315f63}
.workflow-more{border-top:1px solid #d5ddd7;margin:12px 0;padding:10px 0;color:#607578}.workflow-more>summary{cursor:pointer;font-size:13px;font-weight:650}.workflow-more .hint{margin:10px 0 0}
#guidestatus:empty{display:none}#guidestatus{color:#315f63;min-height:0;background:#edf3ee;border-radius:8px;padding:10px 12px;line-height:1.5}
#guidestatus.workflow-error{color:#8a3527;background:#fff1eb;border:1px solid #e1b7a8}
.workflow-parts{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.workflow-parts span{padding:9px 12px;border:1px solid #a9c6b6;border-radius:8px;background:#e7f1e9;font-size:13px;font-weight:650}
.workflow-completion{padding:20px 24px;background:#eaf2e9;border-top:1px solid #c8d8cb}.workflow-completion h2{margin:0 0 8px}.workflow-completion p{margin:0;font-size:14px;color:#315f63;line-height:1.5}
#cutterguidedialog .guide-navigation{align-items:center}#cutterguidedialog .guide-controls{min-width:0}
#selectiondialog,#stampbasedialog,#designdialog:not(.design-inline){overflow:auto;overscroll-behavior:contain}
@media(max-width:720px){.workflow-progress{padding:12px 16px}.workflow-progress ol{gap:5px}.workflow-progress li{flex-direction:column;align-items:center;text-align:center;font-size:10px;gap:5px;flex:1}.workflow-progress li>span:first-child{width:22px;height:22px}.workflow-completion{padding:16px}.guide-exit-tools{gap:6px}.guide-exit-tools button{font-size:12px;padding:9px 10px}#cutterguidedialog .guide-layout{grid-template-columns:1fr}#cutterguidedialog .guide-navigation{padding:12px}.selection-actions{gap:8px}}
@media(max-width:420px){.guide-heading h2{font-size:20px}#cutterguidedialog .guide-heading{gap:12px}#selectiondialog .selection-actions{flex-direction:column}.selection-actions button{width:100%!important}#cutterguidedialog .guidefinish{gap:8px}}

@media(max-width:720px){
 #selectiondialog .selection-heading{padding:14px 16px;gap:10px}
 #selectiondialog .selection-heading h2{font-size:21px}
 #selectiondialog .selection-heading .eyebrow{display:none}
 #selectiondialog .selection-heading p{font-size:12px;line-height:1.4}
 #selectionnavigationhelp{display:none}
 #selectiondialog .selection-exit-tools{gap:8px}
 #selectiondialog .selection-exit-tools button{font-size:12px;padding:9px 12px}
 #selectioncontrols{max-height:24vh}
 #selectiondialog .workflow-progress{padding:10px 12px}
 #selectioncanvas .resultbar{padding:12px 16px}
 #selectioncanvas .pen-toolbar{padding:10px 16px}
}

@media(max-width:720px){
 #cutterguidedialog .guide-navigation{flex-direction:row;align-items:center;justify-content:flex-start}
 #cutterguidedialog .guide-navigation #guidedownloads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 240px;gap:8px;min-width:0}
 #cutterguidedialog .guide-navigation #guidedownloads button{font-size:12px;line-height:1.4;padding:9px 10px;min-width:0}
 #cutterguidedialog .guide-navigation #guidefinish{gap:8px}
}

.workflow-dialog-actions{position:sticky;bottom:0;padding:14px 22px;background:#fbfbf6;border-top:1px solid #d5ddd7;z-index:3}.workflow-dialog-actions .primary{width:auto;margin:0}

#cutterguidedialog #geometryproblems{flex-direction:column;margin:12px 0;padding:12px}#cutterguidedialog #geometryproblemmap{width:100%}#cutterguidedialog #geometryproblems .tools button{font-size:12px;padding:8px}

.workflow-progress .is-skipped{opacity:.65}.workflow-progress .is-skipped>span:first-child{border-style:dashed}

/* Stamp tracing uses the available dialog height instead of a viewport-sized canvas. */
#cutterguidedialog.guide-tracing .guide-layout{grid-template-rows:minmax(0,1fr);overflow:hidden}
#cutterguidedialog.guide-tracing .guide-controls{min-height:0;overflow:auto;overscroll-behavior:contain}
#cutterguidedialog.guide-tracing #guidetracehost{display:flex;height:100%;min-height:0;padding:12px;overflow:hidden}
#cutterguidedialog.guide-tracing #stampeditorhome{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;max-height:100%}
#cutterguidedialog.guide-tracing #guidetracehost .resultbar,#cutterguidedialog.guide-tracing #guidetracehost .pen-toolbar{flex-shrink:0;padding:12px}
#cutterguidedialog.guide-tracing #guidetracehost .editor-wrap{flex:1;min-height:0;height:auto;max-height:none;padding:12px}
@media(max-width:720px){
 #cutterguidedialog.guide-tracing .guide-layout{grid-template-rows:auto minmax(0,1fr)}
 #cutterguidedialog.guide-tracing .guide-controls{max-height:20vh;padding:10px 16px}
 #cutterguidedialog.guide-tracing #guideexplanation{margin:0 0 8px;font-size:13px;line-height:1.4}
 #cutterguidedialog.guide-tracing .guide-controls>.workflow-more{margin:0;padding:6px 0}
 #cutterguidedialog.guide-tracing #guidetracehost{padding:6px}
 #cutterguidedialog.guide-tracing #guidetracehost .resultbar,#cutterguidedialog.guide-tracing #guidetracehost .pen-toolbar{padding:8px;gap:6px}
 #cutterguidedialog.guide-tracing #guidetracehost .pen-toolbar p{display:none}
}

#stampguidedialog{width:min(1150px,96vw);max-width:1150px;height:min(820px,94dvh);max-height:94dvh;padding:0;border:1px solid #bdcec5;border-radius:18px;background:#fbfbf6;color:#293f42;overflow:hidden}
#stampguidedialog[open]{display:flex;flex-direction:column}#stampguidedialog::backdrop{background:#293f4280;backdrop-filter:blur(4px)}#stampguidedialog .guide-heading{height:auto;min-height:88px;flex-shrink:0}#stampguidedialog .guide-heading h2{font-size:23px}#stampguidedialog .guide-navigation{padding-top:14px;flex-direction:row}#stampguidedialog .primary{width:auto;margin:0}
.standalone-guide-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);flex:1;min-height:0;overflow:hidden}.standalone-guide-layout>.guide-controls{overflow:auto;min-height:0;overscroll-behavior:contain}.standalone-guide-preview{min-width:0;min-height:0;display:flex;padding:12px;background:#e5ece4}
#stampguideeditor,#stampguidepreview{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}#stampguideeditor #stampeditorhome{display:flex;flex-direction:column;flex:1;min-height:0}#stampguideeditor .resultbar,#stampguideeditor .pen-toolbar{flex-shrink:0;padding:10px;flex-wrap:wrap}#stampguideeditor .editor-wrap{flex:1;min-height:0;height:auto;padding:10px}#stampguidepreview #modelview{flex:1;height:auto;min-height:140px}#stampguidepreview #modeldimensions{font-size:12px}#stampguidestatus{font-size:13px;line-height:1.5;color:#315f63}#stampguidestatus.workflow-error{color:#8a3527}#stampguidestatus:empty{display:none}
@media(max-width:720px){.standalone-guide-layout{grid-template-columns:1fr;grid-template-rows:minmax(90px,25vh) minmax(0,1fr)}#stampguidedialog .guide-heading{padding:14px;flex-wrap:wrap;gap:10px}#stampguidedialog .guide-heading h2{font-size:21px}#stampguidedialog .guide-navigation{padding:10px;gap:8px}#stampguidedialog .guide-navigation button{font-size:12px;padding:9px 10px}#stampguideeditor .pen-toolbar p{display:none}.standalone-guide-preview{padding:6px}#stampguideeditor .resultbar,#stampguideeditor .pen-toolbar{padding:6px}}
#stampguidedialog .guide-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #d5ddd7}
#stampguidedialog .guide-exit-tools{display:flex;gap:8px;flex-wrap:wrap;align-self:flex-start}
#stampguidedialog .guide-controls{padding:20px 24px}
#stampguidedialog .guide-navigation{display:flex;justify-content:flex-start;align-items:center;gap:12px;flex-wrap:wrap;flex-shrink:0;padding:14px 24px;border-top:1px solid #d5ddd7}
@media(max-width:720px){#stampguidedialog .guide-heading{padding:14px;flex-wrap:wrap;gap:10px}#stampguidedialog .guide-controls{padding:10px 14px}#stampguidedialog .guide-navigation{padding:10px;gap:8px}}
