:root{font-family:Arial,Helvetica,sans-serif;color:#253038;background:#fff;font-synthesis:none;--ink:#253038;--muted:#758187;--line:#e0e5e7;--soft:#f6f8f8;--orange:#c95127;--pale:#fff1eb;--radius:7px;--shadow:0 16px 60px #20313c18}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button,input,select{font-size:13px}button{color:inherit;background:white;border:1px solid var(--line);border-radius:var(--radius);min-height:36px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;transition:background .15s,border-color .15s}button:hover{background:var(--soft);border-color:#bfc9ce}button:active{transform:translateY(1px)}button:disabled{opacity:.35;cursor:default}button.primary{color:white;background:var(--orange);border-color:var(--orange)}button.primary:hover{background:#b2441e}button.ghost{border-color:transparent;background:transparent}button.danger{color:#ad4334}button.active{background:var(--pale);color:var(--orange);border-color:#dc9b82}button svg{width:17px;height:17px;flex-shrink:0}svg.icon{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #df885c;outline-offset:2px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;letter-spacing:-.035em}p{line-height:1.55}small,.muted{color:var(--muted)}[hidden]{display:none!important}.row{display:flex;align-items:center;gap:8px}.between{justify-content:space-between}.full{width:100%}.stack{display:grid;gap:12px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.label,label{display:grid;gap:7px;font-size:12px;font-weight:500;color:#526068;line-height:1.4}input,select{width:100%;min-width:0;height:38px;padding:9px 10px;border:1px solid #d8e0e3;border-radius:6px;color:var(--ink);background:white}input[type=checkbox]{width:16px;height:16px;accent-color:var(--orange)}.check{display:flex;align-items:center;gap:8px}input:invalid{border-color:#b35c48}.help{font-size:11px;line-height:1.5;color:#69777f}.hint{padding:12px;background:var(--soft);border-radius:6px;color:#637179;font-size:12px;line-height:1.55}.divider{height:1px;background:var(--line);margin:20px 0}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);border:0;background:none;padding:0;flex-shrink:0;text-align:left}.brand img{width:44px;height:43px;object-fit:contain}.brand span{font-size:17px;line-height:1.13;font-weight:700;letter-spacing:-.5px}.brand span small{font-size:12px;display:block;font-weight:500;letter-spacing:.1px;color:#637179;margin-top:3px}
.app-header{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 22px;gap:25px;background:#fff;position:relative;z-index:10}.project-title{padding-left:24px;border-left:1px solid var(--line);min-width:100px;flex:1}.project-title button{display:block;min-height:0;padding:0;border:0;font-weight:600;text-align:left;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}.project-title small{font-size:11px;display:block;margin-top:5px}.header-actions{display:flex;align-items:center;gap:6px}.header-actions>.separator{height:22px;width:1px;background:var(--line);margin:0 7px}.menu-wrap{position:relative}.dropdown{position:absolute;right:0;top:calc(100% + 8px);width:210px;padding:6px;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);background:white;z-index:30}.dropdown button{justify-content:flex-start;border:0;width:100%;font-weight:500;padding:10px}.dropdown hr{border:0;border-top:1px solid var(--line);margin:5px}
.editor{height:100dvh;display:grid;grid-template-rows:70px minmax(0,1fr) 27px;overflow:hidden}.editor .app-header{height:auto}.workspace{display:grid;grid-template-columns:268px minmax(0,1fr) 296px;min-height:0}.inspector,.estimate-panel{min-height:0;display:flex;flex-direction:column;background:#fff}.inspector{border-right:1px solid var(--line)}.estimate-panel{border-left:1px solid var(--line)}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);padding:0 15px;min-height:53px;flex-shrink:0}.tabs button{border:0;border-radius:0;background:none;flex:1;min-height:53px;padding:12px 5px;font-size:12px;font-weight:500;white-space:nowrap}.tabs button.active{box-shadow:inset 0 -2px var(--orange);color:var(--orange)}.panel-content{padding:21px 18px 24px;overflow:auto;flex:1;scrollbar-width:thin}.section-title{font-size:13px;font-weight:650;letter-spacing:-.15px;margin-bottom:13px}.section{margin-bottom:24px}.layout-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.layout-choices button{flex-direction:column;min-height:69px;font-size:12px;gap:8px;font-weight:500}.layout-choices svg{width:33px;height:19px}.run-list{display:grid;gap:3px}.reset-runs{margin-top:10px}.run-row{width:100%;justify-content:space-between;border:0;font-weight:500;font-size:12px;min-height:36px;padding:9px 10px;gap:8px}.run-row .run-row-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}.run-row small{font-size:11px;white-space:nowrap;color:inherit}.run-row .run-index{font-size:10px;flex:none;color:#88959b}.action-pair{display:flex;gap:7px}.action-pair button{flex:1;padding:8px;font-size:11px}.opening-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.opening-choices button{font-size:10px;font-weight:500;line-height:1.2;min-height:60px;flex-direction:column;padding:7px 3px}.opening-choices svg{height:22px;width:24px}.opening-row{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;justify-content:space-between;text-align:left;font-weight:500;padding:10px 0;font-size:12px}.opening-row small{font-size:10px}.field-error{color:#b14932;font-size:12px;line-height:1.5;margin-top:8px}.material-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.material-choice{padding:6px;display:grid;gap:7px;font-size:11px;font-weight:500;text-align:left;justify-content:stretch}.material-choice svg{width:100%;height:65px;border-radius:3px}.material-choice span{padding:2px}.wire-samples{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.wire-samples button{display:grid;padding:5px;font-size:10px;gap:5px}.wire-samples svg{width:100%;height:34px}.finish-list{display:flex;gap:7px}.finish-list button{flex:1;flex-direction:column;font-size:10px;padding:8px 3px;font-weight:500}.finish-dot{width:25px;height:25px;border-radius:50%;background:linear-gradient(135deg,#e4ecef,#87969c);border:1px solid #5c6a702b}.finish-dot.black{background:linear-gradient(135deg,#46535b,#151d22)}.finish-dot.raw{background:linear-gradient(135deg,#a1907d,#655c51)}.rate-row{display:grid;grid-template-columns:1fr 94px;align-items:center;gap:8px;margin-bottom:11px}.rate-row input{height:33px;text-align:right}.rate-row label{font-size:12px}.pricing-note{font-size:11px;color:#8f5f48;line-height:1.5;margin-bottom:20px}.rate-section-title{font-size:12px;margin:22px 0 14px;font-weight:650}.selection-note{border-left:2px solid var(--orange);padding:10px 12px;background:var(--pale);margin-bottom:19px;font-size:12px;line-height:1.5}@media(min-width:901px){.editor.right-closed .workspace{grid-template-columns:268px minmax(0,1fr)}.editor.right-closed .estimate-panel{display:none}}
.canvas-panel{min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;background:#fcfdfd}.canvas-toolbar{height:53px;flex-shrink:0;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:white}.view-controls{display:flex;align-items:center;gap:7px;min-width:0}.segmented{display:inline-flex;border:1px solid var(--line);padding:2px;border-radius:6px;background:#f8f9fa}.segmented button{min-height:29px;border:0;background:none;font-size:11px;padding:6px 13px;font-weight:500}.segmented button.active{background:#e7ebed;color:#26333b;box-shadow:0 1px 2px #26333b0c}.elevation-modes{border-color:#d9e0e3;background:white}.elevation-modes button{padding-inline:10px}.canvas-tools{display:flex;gap:5px}.canvas-tools button{padding:7px 9px;min-height:31px;font-size:11px}.canvas{position:relative;flex:1;min-height:0;overflow:hidden;background-image:radial-gradient(#cdd7dc .8px,transparent .8px);background-size:22px 22px}.canvas.grid-off{background-image:none}#drawing{display:block;width:100%;height:100%;touch-action:none;user-select:none}#drawing.pan{cursor:grab}#drawing.pan:active{cursor:grabbing}#drawing.draw{cursor:crosshair}.run-hit{stroke:transparent;stroke-width:24;cursor:pointer}.fence-edge{cursor:pointer}.corner{fill:#fff;stroke:#687a83;stroke-width:1.5;cursor:grab}.corner.selected{stroke:var(--orange);stroke-width:2}.post-hit{cursor:ew-resize}.post-hit:hover{fill:#e877412c}.dimension-line{stroke:#9dabb2;stroke-width:.8}.dimension-label,.panel-dimension{fill:#394952;font-family:Arial,sans-serif;font-size:13px;font-weight:600;cursor:pointer;paint-order:stroke;stroke:#fcfdfd;stroke-width:5px;stroke-linejoin:round}.dimension-label.selected{fill:var(--orange)}.dimension-label:hover,.panel-dimension:hover{fill:var(--orange);text-decoration:underline}.run-name{font-family:Arial,sans-serif;font-size:11px;fill:#6f7e85;paint-order:stroke;stroke:#fcfdfd;stroke-width:4px}.opening-label{font-family:Arial,sans-serif;font-size:10px;fill:#527084;cursor:pointer;paint-order:stroke;stroke:#fcfdfd;stroke-width:4px}.canvas-bottom{position:absolute;left:18px;right:18px;bottom:18px;display:flex;align-items:end;justify-content:space-between;gap:10px;pointer-events:none}.canvas-bottom>*{pointer-events:auto}.canvas-help{font-size:10px;color:#7a878f;max-width:215px;line-height:1.6}.zoom-tools{display:flex;gap:6px;flex-shrink:0}.zoom-group{display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:7px;padding:2px;box-shadow:0 2px 5px #273c4606}.zoom-group button{border:0;min-height:31px;padding:6px 8px}.zoom-group output{min-width:43px;text-align:center;font-size:11px;color:#55636c}.zoom-tools>button{min-height:35px;font-size:11px;background:white}.canvas-top-note{position:absolute;left:18px;top:15px;font-size:11px;background:white;border:1px solid var(--line);border-radius:6px;padding:9px 11px;box-shadow:0 3px 8px #26333b06;color:#64757e}.canvas-panel.expanded{position:fixed;inset:0;z-index:80}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 18px;border-top:1px solid var(--line);font-size:10px;color:#879198;background:white}.statusbar strong{font-weight:500;color:#5a6871}.summary-label{font-size:12px;font-weight:500}.total{font-size:36px;letter-spacing:-1.4px;font-weight:600;margin:12px 0 7px;font-variant-numeric:tabular-nums}.summary-note{font-size:11px;line-height:1.55;color:#78858c;margin-bottom:22px}.cost-rows{border-top:1px solid var(--line);padding-top:15px;display:grid;gap:15px}.cost-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:1.35}.cost-row span{color:#6b7981}.cost-row strong{font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.key-items{margin:25px 0 22px;border-top:1px solid var(--line);padding-top:19px}.key-row{display:flex;justify-content:space-between;font-size:12px;padding:10px 0;border-bottom:1px solid #edf0f1;color:#6c7981}.key-row strong{font-weight:500;color:var(--ink)}.takeoff-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:20px}.takeoff-heading h2{font-size:17px}.takeoff-heading small{font-size:10px}.material-line{display:grid;grid-template-columns:30px 1fr;column-gap:9px;padding:15px 0;border-bottom:1px solid var(--line)}.qty{font-size:20px;letter-spacing:-.8px;padding-top:1px;font-variant-numeric:tabular-nums}.material-line h3{font-size:12px;line-height:1.5;letter-spacing:0;font-weight:600}.material-line p{font-size:11px;color:#7b888e;margin-top:3px}.material-cost{font-size:11px;display:flex;justify-content:space-between;gap:8px;margin-top:9px;color:#667781}.material-cost strong{color:#33434c;font-weight:500}.cut-group{margin-bottom:24px}.cut-group h3{font-size:12px;margin-bottom:10px;letter-spacing:0}.cut-row{display:grid;grid-template-columns:22px 1fr auto;gap:5px;font-size:11px;padding:9px 0;border-bottom:1px solid var(--line)}.cut-row small{font-size:10px}.warning{font-size:11px;line-height:1.5;color:#87532c;border-left:2px solid #d59645;background:#fff7e9;padding:10px;margin-top:14px}.mobile-switch{display:none}
.welcome{min-height:100dvh;background:white}.welcome-header{display:flex;justify-content:space-between;align-items:center;height:85px;max-width:1240px;margin:auto;padding:0 38px}.welcome-main{max-width:1240px;margin:auto;padding:48px 38px 26px}.welcome-hero{display:grid;grid-template-columns:1fr 1.06fr;gap:65px;align-items:center}.welcome-copy h1{font-size:57px;line-height:1.06;letter-spacing:-2.7px;max-width:470px;font-weight:600}.welcome-copy p{color:#718087;font-size:15px;max-width:365px;line-height:1.8;margin:23px 0 28px}.welcome-copy .primary{padding:13px 19px;font-size:13px;min-height:44px}.welcome-copy .quiet{font-size:11px;color:#8d989d;margin:17px 0 0}.welcome-photo{margin:0}.welcome-photo img{display:block;aspect-ratio:1.12;object-fit:cover;width:100%;border-radius:12px}.welcome-photo figcaption{font-size:10px;color:#929c9f;margin-top:8px}.templates{margin-top:56px}.templates-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:19px}.templates-heading h2{font-size:19px;letter-spacing:-.5px}.templates-heading p{font-size:12px;color:#8a959b}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.template-card{display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;border:1px solid var(--line);padding:22px;min-height:99px;background:white;transition:border .15s,transform .15s}.template-card:hover{border-color:#d4805f;transform:translateY(-2px);background:#fff}.template-art{width:74px;height:48px;flex-shrink:0;fill:none;stroke:#9d704e;stroke-width:4}.template-card>div{flex:1}.template-card h3{font-size:13px;letter-spacing:-.2px;margin-bottom:6px}.template-card p{font-size:11px;font-weight:400;color:#829098}.template-card .icon{width:14px;color:#8d9da4}.recent-welcome{margin-top:32px}.recent-welcome h2{font-size:16px;margin-bottom:12px}.recent-project{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;justify-content:space-between;padding:12px 0;font-size:12px;text-align:left}.recent-project span{flex:1}.recent-project small{font-size:10px}.welcome-footer{max-width:1240px;margin:28px auto 0;padding:23px 38px;border-top:1px solid var(--line);font-size:11px;display:flex;justify-content:space-between;color:#879298}
dialog{border:1px solid var(--line);padding:0;width:min(450px,calc(100vw - 28px));border-radius:12px;box-shadow:0 30px 100px #15293630;color:var(--ink);max-height:calc(100dvh - 40px)}dialog::backdrop{background:#24343d55;backdrop-filter:blur(3px)}.dialog-header{padding:23px 25px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-header h2{font-size:20px}.dialog-header button{padding:5px;min-height:28px;border:0}.dialog-body{padding:20px 25px 25px;display:grid;gap:15px}.dialog-body p{font-size:12px;color:#7a8790}.dialog-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.dialog-projects{max-height:340px;overflow:auto}.dialog-project{padding:11px 0;border-bottom:1px solid var(--line);display:flex;gap:5px}.dialog-project>button:first-child{flex:1;justify-content:flex-start;text-align:left;display:grid;font-weight:500;border:0}.dialog-project small{font-size:10px}.dialog-project .delete{width:32px;border:0;color:#a66455}.toast-visible{opacity:1!important;transform:translate(-50%,0)!important}#toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,10px);max-width:calc(100vw - 40px);padding:12px 18px;font-size:12px;line-height:1.5;background:#26343d;color:white;border-radius:8px;box-shadow:var(--shadow);opacity:0;transition:opacity .18s,transform .18s;z-index:110;pointer-events:none}.print-sheet{display:none}
dialog.opening-dialog{width:min(570px,calc(100vw - 28px));border-radius:16px;border-color:#d8e0e3;box-shadow:0 34px 110px #1529363b}.opening-dialog .dialog-header{padding:24px 25px 17px;align-items:flex-start}.opening-dialog .dialog-header h2{font-size:26px;line-height:1.08;letter-spacing:-.04em}.opening-dialog .dialog-header p{font-size:13px;color:#6d7d88;margin-top:7px}.opening-dialog .dialog-header button{width:42px;height:42px;min-height:42px;border:2px solid #d56a42;border-radius:11px;color:#22323b;background:#fff}.opening-dialog .dialog-header button:hover{background:#fff5f0;border-color:#b74822}.opening-dialog .dialog-header button svg{width:20px;height:20px}.opening-dialog .dialog-body{padding:0 20px 22px;gap:13px}.opening-dialog-section{display:grid;grid-template-columns:35px minmax(0,1fr);gap:13px;padding:16px;border:1px solid #dce3e6;border-radius:9px;background:linear-gradient(135deg,#fff 0%,#fafcfd 100%)}.opening-section-icon{color:#18303d;padding-top:1px}.opening-section-icon svg{width:26px;height:26px;stroke-width:1.8}.opening-section-content{min-width:0;display:grid;gap:14px}.opening-section-content>header{display:grid;gap:3px}.opening-section-content h3{font-size:17px;line-height:1.15;letter-spacing:-.025em}.opening-section-content header p{font-size:12px;color:#70808b;line-height:1.4}.opening-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px}.opening-field-grid label,.opening-spec-field label{font-size:12px;color:#26353e;font-weight:600;gap:6px}.opening-field-grid input,.opening-field-grid select,.opening-spec-field input{height:43px;border-color:#d4dde1;border-radius:7px;padding:10px 12px;font-size:14px;font-weight:500}.opening-field-grid label small,.opening-spec-field small{font-size:10px;line-height:1.45;color:#72818b;font-weight:400}.opening-wide-field{grid-column:1/-1}.opening-spec-copy{color:#52636d!important;font-size:12px!important;line-height:1.55!important}.opening-spec-copy strong{color:#25353e}.opening-spec-field{max-width:250px;display:grid;gap:5px}.opening-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 1px 0}.opening-dialog-actions>div{display:flex;gap:8px}.opening-dialog-actions button{min-height:45px;padding:10px 18px;font-size:13px}.opening-dialog-actions .opening-relocate{justify-content:flex-start;font-weight:500}.opening-dialog-actions .opening-remove{border-color:#efb2a3;color:#b74822;background:#fff}.opening-dialog-actions .opening-apply{min-width:92px;background:linear-gradient(135deg,#c64b22,#ad3d1b);border-color:#b74822;box-shadow:0 7px 18px #b7482225}.opening-dialog #dialogError{grid-column:1/-1}.opening-dialog-actions+.field-error{margin-top:0}
@media(max-width:600px){dialog.opening-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:13px}.opening-dialog .dialog-header{padding:19px 18px 14px}.opening-dialog .dialog-header h2{font-size:23px}.opening-dialog .dialog-header button{width:38px;height:38px;min-height:38px}.opening-dialog .dialog-body{padding:0 12px 16px}.opening-dialog-section{grid-template-columns:28px minmax(0,1fr);padding:14px 12px;gap:9px}.opening-section-icon svg{width:22px;height:22px}.opening-field-grid{grid-template-columns:1fr;gap:11px}.opening-wide-field{grid-column:auto}.opening-dialog-actions{align-items:stretch;flex-direction:column}.opening-dialog-actions>div{display:grid;grid-template-columns:1fr 1fr}.opening-dialog-actions .opening-relocate{width:100%;justify-content:center}}
:root{--orange:#b74822;--muted:#63727b}
.summary-note,.canvas-help,.help,.run-row .run-index,.material-line p,.template-card p,.welcome-copy .quiet,.welcome-photo figcaption,.welcome-footer,.templates-heading p,.statusbar{color:#63727b}
.run-name{fill:#63727b}
.canvas-top-note{max-width:calc(100% - 36px);line-height:1.5;pointer-events:none}
.welcome-photo img{height:auto}.action-pair button{white-space:nowrap;padding:8px 6px;font-size:10px;gap:5px}.action-pair button svg{width:14px;height:14px}
@media(min-width:1400px){.workspace{grid-template-columns:300px minmax(0,1fr) 310px}.editor.right-closed .workspace{grid-template-columns:300px minmax(0,1fr)}.panel-content{padding:24px 22px}.total{font-size:39px}.canvas-toolbar{padding:0 25px}.canvas-bottom{left:25px;right:25px}.section{margin-bottom:25px}}
@media(max-width:1200px){.workspace{grid-template-columns:246px minmax(0,1fr) 254px}.editor.right-closed .workspace{grid-template-columns:246px minmax(0,1fr)}.panel-content{padding:18px 14px}.tabs{padding:0 10px}.total{font-size:31px}.canvas-help{display:none}.canvas-bottom{justify-content:flex-end;right:12px}.header-actions .action-label{display:none}.app-header{gap:18px;padding:0 16px}.project-title{padding-left:18px}.canvas-toolbar{padding:0 10px}.canvas-tools button{padding:7px}.right-panel-toggle span{display:none}.welcome-hero{gap:35px}.welcome-copy h1{font-size:48px}.template-card{padding:16px;gap:12px}.template-art{width:53px}}
@media(max-width:900px){.workspace,.editor.right-closed .workspace{grid-template-columns:235px minmax(0,1fr)}.right-panel-toggle{display:none}.estimate-panel{position:absolute;right:0;top:70px;bottom:60px;width:280px;box-shadow:var(--shadow);z-index:15;display:none}.editor.mobile-estimate .estimate-panel{display:flex}.editor{grid-template-rows:70px minmax(0,1fr) 52px}.statusbar{display:none}.mobile-switch{display:flex;border-top:1px solid var(--line);justify-content:center;background:white;z-index:20;gap:7px;align-items:center}.mobile-switch button{padding:8px 18px;border:0;font-size:12px}.mobile-switch button.active{background:var(--pale)}.welcome-main{padding-top:35px}.welcome-copy h1{font-size:39px;letter-spacing:-1.7px}.welcome-copy p{font-size:13px}.welcome-hero{gap:25px}.template-card{display:grid;grid-template-columns:1fr auto;padding:15px}.template-art{grid-column:1/-1}.templates-heading p{display:none}}
@media(max-width:600px){.app-header{height:62px;padding:0 12px;gap:12px}.brand img{width:32px;height:34px}.brand span{font-size:13px}.brand span small{font-size:9px}.project-title{padding-left:12px}.project-title button{font-size:12px;max-width:110px}.project-title small{font-size:9px}.header-actions{gap:3px}.header-actions>.separator,.header-actions>.undo,.header-actions>.redo{display:none}.header-actions button{padding:7px 8px;font-size:11px;min-height:33px}.header-actions button svg{width:14px}.editor{grid-template-rows:62px minmax(0,1fr) 52px}.workspace{display:block;position:relative}.canvas-panel{width:100%;height:100%}.inspector,.estimate-panel{display:none;position:absolute;top:0;left:0;bottom:0;width:100%;z-index:15;box-shadow:none;border:0}.editor.mobile-layout .inspector,.editor.mobile-estimate .estimate-panel{display:flex}.panel-content{padding:23px;max-width:480px;width:100%;margin:0 auto}.canvas-toolbar{height:48px}.canvas-help{display:block;max-width:160px;font-size:9px}.canvas-bottom{left:12px;bottom:14px;justify-content:space-between}.zoom-tools{gap:4px}.zoom-tools>button{padding:5px 8px}.zoom-group button{padding:5px}.zoom-group output{min-width:34px}.canvas-tools button .add-run-text{display:none}.mobile-switch button{flex:1;padding:9px 4px}.tabs{padding:0 18px}.total{font-size:40px}.welcome-header{height:70px;padding:0 23px}.welcome-header .brand span{font-size:15px}.welcome-header button{font-size:11px}.welcome-main{padding:28px 23px}.welcome-hero{grid-template-columns:1fr;gap:30px}.welcome-copy h1{font-size:43px;max-width:330px;letter-spacing:-2px}.welcome-copy p{font-size:14px;margin:18px 0 24px}.welcome-photo img{aspect-ratio:1.65}.templates{margin-top:32px}.templates-heading h2{font-size:18px}.template-grid{grid-template-columns:1fr;gap:10px}.template-card{display:flex;min-height:83px;gap:15px}.template-art{width:58px}.welcome-footer{margin:0;padding:20px 23px;gap:15px;font-size:10px}.recent-welcome{margin-top:27px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:600px){.project-title{min-width:0}.project-title button{max-width:100%}.header-actions{flex-shrink:0}.canvas-help{max-width:135px}.opening-choices button{min-height:64px}.mobile-switch button{min-height:42px}}
@media print{body{background:white}.editor,.welcome,#toast,dialog{display:none!important}.print-sheet{display:block;padding:24px;font-family:Arial,sans-serif}.print-sheet h1{font-size:24px}.print-sheet .print-meta{font-size:11px;color:#63727b;margin:10px 0}.print-sheet svg{width:100%;max-height:450px}.print-sheet table{border-collapse:collapse;width:100%;font-size:11px;margin:20px 0}.print-sheet td,.print-sheet th{text-align:left;padding:8px;border-bottom:1px solid #ddd}.print-sheet h2{font-size:16px;margin:24px 0 10px}.print-sheet p{font-size:11px;margin-top:9px}.print-sheet section{break-inside:avoid}.print-sheet .plan-page{break-after:page}.print-sheet .total{font-size:26px}.print-sheet .dimension-label{stroke:white}.print-sheet .cost-row{padding:6px 0;max-width:430px}}
#drawing{cursor:grab}
#drawing.panning,#drawing.panning *,#drawing.pan:active *{cursor:grabbing!important}
#drawing.pan *{cursor:grab}
.elevation-strip{fill:#fff;fill-opacity:.72;stroke:#dbe3e6;stroke-width:1;cursor:pointer}.elevation-strip.selected{fill:#fff4ed;fill-opacity:.82;stroke:var(--orange);stroke-width:1.5}.elevation-title,.elevation-length{font-family:Arial,sans-serif;font-size:10px;font-weight:700;letter-spacing:.08em;fill:#65747c;paint-order:stroke;stroke:#fcfdfd;stroke-width:4px}.elevation-title.selected{fill:var(--orange)}.elevation-length{font-weight:600;letter-spacing:0;cursor:pointer}.camera-group{display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:7px;padding:2px;box-shadow:0 2px 5px #273c4606}.camera-group button{border:0;min-height:31px;padding:6px 7px}.camera-group .camera-eye{font-size:10px;font-weight:700;white-space:nowrap;padding-inline:8px}.camera-arrow svg{transition:transform .15s ease}.camera-left svg{transform:rotate(180deg)}.camera-up svg{transform:rotate(-90deg)}.camera-down svg{transform:rotate(90deg)}
.canvas.scene-3d{background:#f6f7f3;background-image:none}#drawing.orbit{cursor:grab}#drawing.orbiting,#drawing.orbiting *{cursor:grabbing!important}.scene-ground{pointer-events:none}.scene-bay-hit,.scene-opening-hit,.scene-run-label{cursor:pointer}.scene-bay-hit,.scene-opening-hit{pointer-events:stroke}.scene-run-label{transform-box:fill-box;transform-origin:center;transform:scale(var(--canvas-inverse-zoom,1))}.scene-run-label rect{fill:#fff;stroke:#d4dcdf;stroke-width:1;filter:drop-shadow(0 2px 3px rgba(37,48,56,.08))}.scene-run-label text{font:600 10px Arial,sans-serif;fill:#34434b;pointer-events:none}.scene-run-label .scene-run-length{font-size:9px;font-weight:500;fill:#748087}.scene-run-label.selected rect{fill:#fff6f0;stroke:var(--orange);stroke-width:1.5}.scene-run-label.selected text{fill:var(--orange)}.scene-dimension-line{stroke:#8e9aa0;stroke-width:1.2;stroke-dasharray:4 4;cursor:pointer}.scene-dimension-line.selected{stroke:var(--orange);stroke-width:1.8}.scene-selection{stroke:var(--orange);stroke-width:4;stroke-linecap:round}.scene-opening-label{fill:#4b616c;font:600 10px Arial,sans-serif;paint-order:stroke;stroke:#fbfcfa;stroke-width:4px;stroke-linejoin:round}.scene-spec-note{fill:#66757c;font:500 10px Arial,sans-serif;paint-order:stroke;stroke:#f7f8f4;stroke-width:4px;pointer-events:none}.scene-gate-brace{stroke:#334047;stroke-width:.7}.scene-hinge{fill:var(--orange);stroke:white;stroke-width:2}.scene-axis{font-family:Arial,sans-serif;opacity:.8;pointer-events:none}
@media(max-width:600px){.canvas-help{display:none}.canvas-bottom{left:10px;right:10px;justify-content:flex-end}.zoom-tools{width:100%;max-width:292px;flex-wrap:wrap;justify-content:flex-end}.camera-group button{padding:5px 6px}.segmented button{padding:6px 10px}}
.fence-type-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px}.fence-type-switch button{min-height:42px}

.canvas-toolbar{height:auto;min-height:53px;padding:6px 18px;flex-wrap:wrap;row-gap:6px}
.view-controls{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.camera-tools{display:flex;align-items:center;gap:6px}
.camera-tools select{height:29px;padding:0 26px 0 9px;font-size:11px;font-weight:600;border-radius:6px;width:auto;min-width:104px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363727b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center/13px;appearance:none}
.projection-switch button{padding:6px 9px}
.run-summary,.clearances{display:grid;gap:0;border:1px solid var(--line);border-radius:6px;padding:2px 10px}
.run-summary .key-row,.clearances .key-row{padding:7px 0;font-size:12px}
.selection-note.active{border-color:#dc9b82;background:var(--pale)}
.debug-panel{position:absolute;left:14px;top:14px;max-width:min(560px,calc(100% - 28px));max-height:42%;overflow:auto;margin:0;padding:10px 12px;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#1f2a31;background:#ffffffee;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);white-space:pre;z-index:5}
/* Plan: lot and house */
.lot{fill:#e9eee1;stroke:#8f9a86;stroke-width:1.4;cursor:default}
.backyard-grass-plan{fill:#e9eee1;stroke:none}
.lot.selected{stroke:var(--orange);stroke-width:1.8}
.lot-corner{fill:#fff;stroke:#8f9a86;stroke-width:1.2;cursor:grab}
.lot-corner.selected{stroke:var(--orange);stroke-width:1.6}
.lot-corner:hover{fill:var(--pale);stroke:var(--orange)}
.lot-dimension-line{stroke:#a3ada3;stroke-width:.8}
.lot-dimension{font:600 10px Arial,sans-serif;fill:#6f7e73;paint-order:stroke;stroke:#fcfdfd;stroke-width:4px}
.street-label{font:700 9px Arial,sans-serif;fill:#8b969b;letter-spacing:.14em}
.driveway-plan{fill:#deddd8;stroke:#bcbcb6;stroke-width:1}
.walkway-plan{fill:#e8e6e0;stroke:#c1c0ba;stroke-width:1}
.driveway-joint-plan{stroke:#c6c5bf;stroke-width:.7}
.rear-patio-plan{fill:#deddd8;stroke:#bcbcb6;stroke-width:1}
.house{fill:#f4f0e8;stroke:#9a9082;stroke-width:1.3;cursor:move;transition:fill .15s}
.house:hover{fill:#f9f4ea}
.house.selected{stroke:var(--orange);stroke-width:1.8}
.house-title{font:700 10px Arial,sans-serif;fill:#7d746a;letter-spacing:.12em}
.house-dimension{font:600 11px Arial,sans-serif;fill:#4a5257}
.house-garage-plan{stroke:#44494d;stroke-width:7;stroke-linecap:butt}
.house-window-plan{stroke:#667176;stroke-width:5;stroke-linecap:butt}
.house-rear-slider-plan{stroke:#354044;stroke-width:7;stroke-linecap:butt}
.house-rear-window-plan{stroke:#667176;stroke-width:5;stroke-linecap:butt}
.house-side-door{stroke:#30383c;stroke-width:4.5;stroke-linecap:butt}
.entry-canopy-plan{fill:#74767a66;stroke:#45484b;stroke-width:1}
.house-front-door{stroke:#30383c;stroke-width:4.5;stroke-linecap:butt}
.house-door-knob{fill:#a58a5a;stroke:#f4f0e8;stroke-width:.7}
.house-handle{fill:#fff;stroke:var(--orange);stroke-width:1.5;cursor:nwse-resize}
.clearance-line{stroke:#7f95a3;stroke-width:.9;stroke-dasharray:3 3}
.clearance-label{font:600 10px Arial,sans-serif;fill:#3f5561;paint-order:stroke;stroke:#fcfdfd;stroke-width:4px}
.plan-post{stroke:#fff;stroke-width:.6}
.opening-band{fill:#e8eff3;opacity:.85;cursor:pointer}
.opening-band:hover{fill:#d9e7ef}
.gate-leaf{stroke:#3d5563;stroke-width:1.8;stroke-linecap:round}
.gate-arc{fill:none;stroke:#607d8e;stroke-width:1.2;stroke-dasharray:4 3}
.gate-hinge{fill:var(--orange);stroke:#fff;stroke-width:1.5}
.snap-marker path{stroke:#1f8a9a;stroke-width:1.4}
.snap-marker circle{fill:none;stroke:#1f8a9a;stroke-width:1.4}
.snap-label{font:600 10px Arial,sans-serif;fill:#146d7a;paint-order:stroke;stroke:#fcfdfd;stroke-width:4px}
/* 3D scene */
.scene-street-label{fill:#7b8589;font:700 9px Arial,sans-serif;letter-spacing:.12em;paint-order:stroke;stroke:#f7f8f4;stroke-width:4px}
.scene-house-label{fill:#6c655c;font:600 10px Arial,sans-serif;paint-order:stroke;stroke:#f7f8f4;stroke-width:4px}
.scene-camera-note{fill:#8a969c;font-weight:500}
.scene-selection-outline{fill:none;stroke:var(--orange);stroke-width:2.5;stroke-dasharray:6 4}
.scene-house,.scene-roof{cursor:pointer}.scene-house-door,.scene-house-door-knob,.scene-side-door,.scene-side-door-knob,.scene-garage-door,.scene-garage-panel,.scene-house-window,.scene-window-mullion,.scene-entry-roof,.scene-entry-column,.scene-planting-bed,.scene-plant,.scene-rear-window,.scene-rear-slider,.scene-rear-mullion,.scene-rear-patio,.scene-rear-planting-bed,.scene-rear-plant{pointer-events:none}
@media(max-width:900px){.camera-tools select{min-width:88px}.view-controls{gap:6px}}
@media(max-width:600px){.camera-tools{display:none}.debug-panel{font-size:9px;max-width:calc(100% - 20px);left:10px;top:10px}}
[data-whole-run]{cursor:move}
.canvas-context-menu{position:absolute;width:218px;padding:7px;background:#fff;border:1px solid #ccd6da;border-radius:9px;box-shadow:0 14px 35px #1e303a26;z-index:12}.canvas-context-title{display:grid;gap:2px;padding:6px 7px 8px;font-size:12px;font-weight:700;color:#2b3a42}.canvas-context-title small{font-size:10px;font-weight:500}.canvas-context-menu button{justify-content:flex-start;min-height:39px}.canvas-context-menu p{padding:6px 7px 3px;color:#a04432;font-size:10px;line-height:1.4}

/* Gate builder: approved split preview + compact settings concept */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
dialog.gate-builder-dialog{width:min(1240px,calc(100vw - 42px));height:min(790px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);border-color:#cdd8df;border-radius:20px;box-shadow:0 35px 110px #17313f2e;overflow:hidden;background:#fff}
.gate-builder-dialog form{height:100%;min-height:0;position:relative}
.gate-builder-dialog .dialog-header{position:absolute;inset:18px 20px auto auto;padding:0;z-index:4}
.gate-builder-dialog .dialog-header>div{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gate-builder-dialog .dialog-header button{width:48px;height:48px;min-height:48px;padding:0;border:1px solid #aebdca;border-radius:10px;background:#fff;color:#092039;box-shadow:0 2px 8px #102b3b0b}
.gate-builder-dialog .dialog-header button:hover{border-color:#d35a31;background:#fff8f4;color:#b74822}
.gate-builder-dialog .dialog-header button:focus-visible{outline:3px solid #de6b4138;outline-offset:2px}
.gate-builder-dialog .dialog-header button .icon{width:25px;height:25px;stroke-width:2}
.gate-builder-dialog .dialog-body{height:100%;max-height:none;overflow:auto;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:0;padding:22px 32px 0}
.gate-builder-dialog [hidden]{display:none!important}
.gate-builder-main{min-height:0;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);gap:28px}
.gate-builder-visual{min-width:0;min-height:0;padding:18px 28px 18px 4px;border-right:1px solid #dbe4e9;display:grid;grid-template-rows:minmax(280px,1fr) auto;gap:14px;align-items:center}
.gate-builder-preview{min-height:0;display:grid;place-items:center}
.gate-builder-preview-svg{display:block;width:100%;height:auto;max-height:500px;overflow:visible;filter:drop-shadow(0 15px 12px rgba(23,40,48,.08))}
.gate-builder-preview-image{display:block;width:100%;height:100%;max-height:610px;object-fit:contain;object-position:center;filter:drop-shadow(0 16px 14px rgba(23,40,48,.08))}
.gate-builder-preview-image.gate-builder-preview-mirrored{transform:scaleX(-1)}
.gate-preview-shadow{fill:#253a431c;filter:blur(5px)}
.gate-preview-post{fill:url(#gateBuilderPost);stroke:#0e171b;stroke-width:2}
.gate-preview-wood-edge{fill:none;stroke:#713e28;stroke-width:6;stroke-linejoin:round}
.gate-preview-wood-frame{fill:none;stroke:#9a6038;stroke-width:24;stroke-linejoin:round}
.gate-preview-wire{fill:none;stroke:#172228;stroke-width:5}
.gate-preview-metal-sheet{fill:url(#gateBuilderMetal)}
.gate-preview-metal-fill rect:not(.gate-preview-metal-sheet){fill:#121b20}
.gate-preview-metal-frame{fill:none;stroke:#111b20;stroke-width:17;stroke-linejoin:round}
.gate-preview-seam{fill:none;stroke:#121b20;stroke-width:5}
.gate-preview-hinges{fill:#10171b;stroke:#05090b;stroke-width:1.5}
.gate-preview-latch{fill:#090d0f;stroke:#222e34;stroke-width:2}
.gate-preview-lock{fill:#caa54e;stroke:#67521e;stroke-width:2}
.gate-preview-lock circle:last-child{fill:#5c481a}
.gate-preview-open-gap{fill:#fff;stroke:#d55c36;stroke-width:3;stroke-dasharray:10 8}
.gate-preview-gap-label{font:700 24px Arial,sans-serif;letter-spacing:.12em;fill:#9a6c5c;text-anchor:middle}
.gate-type-card input,.gate-segment-control input,.gate-preview-control-group input{position:absolute;opacity:0;pointer-events:none}
.gate-type-card:focus-within,.gate-segment-control label:focus-within,.gate-preview-control-group label:focus-within{outline:3px solid #dc633937;outline-offset:2px}
.gate-preview-control-dock{width:100%;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);gap:14px;padding:14px;border:1px solid #ccd8e0;border-radius:11px;background:#f9fbfc;box-shadow:0 8px 24px #1d35430b}
.gate-preview-control-group{min-width:0;border:0;margin:0;padding:0;display:grid;gap:8px}
.gate-preview-control-group legend{padding:0;margin:0 0 8px;color:#12283d;font-size:13px;font-weight:700}
.gate-preview-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.gate-preview-latch-segments{grid-template-columns:repeat(2,minmax(0,1fr))}
.gate-preview-control-group label{position:relative;min-width:0}
.gate-preview-control-group span{min-height:40px;padding:8px 9px;display:grid;place-items:center;border:1px solid #c8d4dc;border-radius:7px;background:#fff;color:#25394a;font-size:12px;font-weight:600;line-height:1.15;text-align:center;cursor:pointer;transition:border-color .15s,background .15s,color .15s,box-shadow .15s}
.gate-preview-control-group label:hover span{border-color:#d98a70;background:#fffaf7}
.gate-preview-control-group input:checked+span{border:1.5px solid #e14f22;background:#fff7f3;color:#d04922;box-shadow:0 3px 9px #b748220b}
.gate-builder-options{min-width:0;min-height:0;padding:24px 0 18px;display:flex;flex-direction:column;gap:20px}
.gate-builder-title{margin:5px 66px 0 8px;font-size:40px;line-height:1;letter-spacing:-.045em;color:#071b34}
.gate-type-options{border:1px solid #ccd7df;border-radius:9px;margin:0;padding:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gate-type-card{min-width:0;position:relative;display:grid;grid-template-rows:78px auto;justify-items:center;align-items:center;gap:4px;padding:8px 6px 10px;border:1px solid #cfdae1;border-radius:8px;background:#fff;color:#10243a;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.gate-type-card:hover{border-color:#d98a70;background:#fffaf7}
.gate-type-card.selected{border:1.5px solid #e14f22;background:#fff9f6;box-shadow:0 4px 12px #b748220d}
.gate-type-card strong{font-size:15px;font-weight:600;line-height:1.1;text-align:center}
.gate-type-thumb{display:block;width:86px;height:70px;max-width:100%}
.gate-type-photo{display:block;width:100%;height:100%;object-fit:contain;object-position:center;mix-blend-mode:multiply;filter:drop-shadow(0 4px 5px rgba(30,45,53,.08))}
.gate-builder-controls{display:grid;grid-template-columns:.8fr 1.1fr 1.1fr;gap:14px}
.gate-builder-controls>label,.gate-segment-control{min-width:0;margin:0;padding:14px;border:1px solid #ccd8e0;border-radius:9px;background:#fff;display:grid;gap:9px;color:#11253b;font-size:14px;font-weight:700}
.gate-builder-controls select,.gate-builder-controls input[type=number]{height:45px;min-width:0;width:100%;border:1px solid #c8d4dc;border-radius:8px;background-color:#fff;padding:8px 34px 8px 12px;font:500 14px/1.2 inherit;color:#14273b}
.gate-builder-controls input[type=number]{padding-right:12px}
.gate-builder-controls select:focus,.gate-builder-controls input[type=number]:focus{outline:3px solid #dc633929;border-color:#d95931}
.gate-segment-control{grid-template-columns:1fr 1fr;align-content:start}
.gate-segment-control legend{grid-column:1/-1;padding:0;margin:0 0 9px;font-size:14px;font-weight:700}
.gate-segment-control label{position:relative;min-width:0}
.gate-segment-control span{height:45px;display:grid;place-items:center;border:1px solid #c8d4dc;border-radius:8px;background:#fff;font-size:14px;font-weight:600;color:#172a3e;cursor:pointer}
.gate-segment-control input:checked+span{border:1.5px solid #e14f22;background:#fff7f3;color:#d04922}
.gate-builder-wide{grid-column:1/-1}
.gate-style-control{grid-column:span 2;grid-template-columns:1fr!important}
.gate-arch-control{grid-column:auto}
.gate-arch-control.is-disabled{background:#f3f5f6;color:#8b979f}
.gate-arch-control.is-disabled input{background:#e8ecee;border-color:#d7dee2;color:#929ca3;cursor:not-allowed}
.gate-builder-specs{border-top:1px solid #d7e0e5;margin-top:2px;padding-top:10px}
.gate-builder-specs summary{min-height:46px;display:flex;align-items:center;gap:10px;padding:0 4px;color:#24384a;font-size:15px;font-weight:500;cursor:pointer;list-style:none;border-radius:7px}
.gate-builder-specs summary::-webkit-details-marker{display:none}
.gate-builder-specs summary:hover{background:#f7f9fa}
.gate-builder-specs summary:focus-visible{outline:3px solid #dc633937}
.gate-builder-specs summary .icon{width:18px;height:18px;transition:transform .15s}
.gate-builder-specs[open] summary .icon{transform:rotate(180deg)}
.gate-builder-spec-content{padding:8px 4px 3px;display:grid;gap:7px}
.gate-builder-spec-content p{margin:0;color:#62727d;font-size:11px;line-height:1.5}
.gate-builder-spec-content p strong{color:#233746}
.gate-builder-spec-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:5px}
.gate-builder-spec-fields label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#263a49}
.gate-builder-actions{margin:0 -32px;min-height:82px;padding:14px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #d7e0e5;background:#fff}
.gate-builder-actions>div{display:flex;gap:12px}
.gate-builder-actions button{min-height:52px;padding:11px 25px;border-radius:8px;font-size:15px}
.gate-builder-actions .gate-builder-move{border-color:#bdcbd4;color:#11273e;background:#fff;font-weight:600}
.gate-builder-actions .gate-builder-remove{min-width:150px;border-color:#eb9b83;color:#cf4822;background:#fff;font-weight:600}
.gate-builder-actions .gate-builder-save{min-width:190px;background:linear-gradient(135deg,#d85329,#b93d17);border-color:#bc401d;box-shadow:0 10px 24px #b7482226;font-weight:700}
.gate-builder-dialog #dialogError{position:sticky;bottom:4px;margin:0;background:#fff5f0;border:1px solid #efb4a2;border-radius:7px;padding:8px 10px;z-index:3}

@media(max-width:1050px){dialog.gate-builder-dialog{width:calc(100vw - 28px);height:calc(100dvh - 28px);max-height:calc(100dvh - 28px)}.gate-builder-dialog .dialog-body{padding:18px 22px 0}.gate-builder-main{grid-template-columns:minmax(0,1fr) minmax(390px,.95fr);gap:20px}.gate-builder-visual{padding:20px 20px 18px 0}.gate-preview-control-dock{grid-template-columns:1fr;padding:12px;gap:10px}.gate-builder-title{font-size:34px}.gate-builder-controls{grid-template-columns:1fr 1fr}.gate-width-control{grid-column:1/-1}.gate-style-control{grid-column:auto}.gate-builder-actions{margin-inline:-22px;padding-inline:22px}}
@media(max-width:800px){dialog.gate-builder-dialog{width:calc(100vw - 22px);height:calc(100dvh - 22px);max-height:calc(100dvh - 22px);border-radius:15px}.gate-builder-dialog .dialog-header{top:12px;right:13px}.gate-builder-dialog .dialog-header button{width:42px;height:42px;min-height:42px}.gate-builder-dialog .dialog-body{padding:14px 17px 0;grid-template-rows:auto auto}.gate-builder-main{display:flex;flex-direction:column;gap:0;min-height:max-content}.gate-builder-visual{flex:none;border-right:0;border-bottom:1px solid #dbe4e9;padding:28px 0 20px;grid-template-rows:300px auto}.gate-builder-preview,.gate-builder-preview-image{height:300px}.gate-builder-preview-svg{max-height:280px}.gate-preview-control-dock{grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);max-width:620px;justify-self:center}.gate-builder-options{flex:none;padding:22px 0 18px}.gate-builder-title{margin-top:0;font-size:34px}.gate-builder-actions{position:sticky;bottom:0;z-index:2;margin-inline:-17px;padding-inline:17px;box-shadow:0 -10px 22px #233a4610}}
@media(max-width:520px){dialog.gate-builder-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:12px}.gate-builder-dialog .dialog-header{top:9px;right:9px}.gate-builder-dialog .dialog-header button{width:40px;height:40px;min-height:40px}.gate-builder-dialog .dialog-body{padding:10px 12px 0}.gate-builder-visual{padding:34px 0 16px;grid-template-rows:205px auto}.gate-builder-preview,.gate-builder-preview-image{height:205px}.gate-builder-preview-svg{max-height:195px}.gate-preview-control-dock{grid-template-columns:1fr;gap:10px;padding:10px}.gate-preview-control-group legend{font-size:12px;margin-bottom:6px}.gate-preview-control-group span{min-height:38px;padding:7px 5px;font-size:11px}.gate-builder-options{gap:13px;padding-top:18px}.gate-builder-title{font-size:29px;margin-left:2px}.gate-type-options{gap:7px;padding:7px}.gate-type-card{grid-template-rows:55px auto;padding:5px 3px 8px}.gate-type-thumb{height:52px;width:68px}.gate-type-card strong{font-size:12px}.gate-builder-controls{grid-template-columns:1fr;gap:10px}.gate-width-control,.gate-style-control{grid-column:auto}.gate-builder-controls>label,.gate-segment-control{padding:11px}.gate-builder-controls select,.gate-builder-controls input[type=number],.gate-segment-control span{height:43px}.gate-builder-wide{grid-column:auto}.gate-builder-spec-fields{grid-template-columns:1fr}.gate-builder-actions{margin-inline:-12px;padding:10px 12px;min-height:70px;gap:8px}.gate-builder-actions>div{gap:7px;flex:1}.gate-builder-actions button{min-height:46px;padding:8px 12px;font-size:13px}.gate-builder-actions .gate-builder-move{min-width:78px}.gate-builder-actions .gate-builder-remove{min-width:0;flex:1}.gate-builder-actions .gate-builder-save{min-width:0;flex:1}.gate-builder-actions .icon{width:16px;height:16px}}
@media(max-height:720px) and (min-width:801px){dialog.gate-builder-dialog{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.gate-builder-dialog .dialog-body{padding-top:14px}.gate-builder-visual{padding-top:8px}.gate-builder-preview-svg{max-height:350px}.gate-builder-options{padding-top:15px;gap:13px}.gate-builder-title{font-size:32px}.gate-type-card{grid-template-rows:56px auto}.gate-type-thumb{height:53px}.gate-builder-controls>label,.gate-segment-control{padding:10px}.gate-builder-specs summary{min-height:38px}.gate-builder-actions{min-height:68px;padding-block:8px}.gate-builder-actions button{min-height:46px}}
