.custom-flow-dialog{width:min(760px,calc(100% - 32px))}
.custom-flow-dialog>.site-order-form{padding:0;gap:0}
.custom-flow-dialog>.site-order-form>header{position:sticky;top:0;z-index:3;background:var(--surface);padding:20px 24px;border-bottom:1px solid var(--border)}
.custom-flow-dialog h2{font:600 22px/1.3 var(--font-display);min-width:0}
.custom-flow-dialog [data-flow-content]{padding:20px 24px}
.custom-flow-dialog form{display:grid;gap:18px;min-width:0}
.custom-flow-dialog .form-grid{gap:16px}
.custom-flow-dialog label{display:grid;gap:7px;color:var(--text-muted);font-size:13px;min-width:0}
.custom-flow-dialog input,.custom-flow-dialog select{min-height:44px;font-size:14px}
.custom-flow-dialog input[readonly]{color:var(--text-muted);background:var(--surface)}
.custom-flow-trail{display:flex;gap:0;list-style:none;padding:0;margin:0;min-width:0}
.custom-flow-trail li{flex:1;min-width:0;font-size:12px;color:var(--text-muted);padding:0 10px 10px;border-bottom:2px solid var(--teal);line-height:1.5}
.custom-flow-trail li:first-child{padding-left:0}.custom-flow-trail li:last-child{color:var(--text)}
.custom-flow-source{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;font-size:14px}
.custom-flow-source span{color:var(--text-muted);font-size:13px;overflow-wrap:anywhere}
.custom-flow-dialog footer{position:sticky;bottom:-20px;background:var(--surface);padding:16px 0 0;display:flex;align-items:center;gap:14px;justify-content:space-between;border-top:1px solid var(--border)}
.custom-flow-dialog footer>span{font-size:12px;color:var(--text-muted)}
.custom-flow-dialog footer .btn{min-height:44px;white-space:normal;line-height:1.4}
.custom-flow-request>div{padding-top:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.custom-flow-linked{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}
.custom-flow-linked button{display:grid;text-align:left;gap:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);padding:18px;color:var(--text);cursor:pointer;min-width:0;transition:border-color .18s,background .18s}
.custom-flow-linked button:hover{border-color:var(--teal);background:var(--surface)}
.custom-flow-linked span,.custom-flow-linked small{color:var(--text-muted);font-size:12px}.custom-flow-linked b{font-size:16px;overflow-wrap:anywhere}
.custom-flow-dialog [data-flow-error]{color:var(--red);font-size:14px}
.order-custom-connection{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);text-align:left;color:var(--text);cursor:pointer;transition:border-color .18s,background .18s}
.order-custom-connection:hover{border-color:var(--teal)}
.order-custom-connection>.i{transition:transform 160ms var(--motion-ease)}
.order-custom-connection:active>.i{transform:scale(.92)}
.order-custom-connection>.i{width:22px;height:22px;color:var(--teal);flex:none}
.order-custom-connection>span{display:grid;gap:4px;min-width:0;flex:1}
.order-custom-connection small{font-size:12px;color:var(--text-muted)}.order-custom-connection b{font-size:14px;overflow-wrap:anywhere}
.order-custom-connection>em{font-style:normal;font-size:12px;color:var(--teal)}
.custom-production{min-width:0;border-top:1px solid var(--border);padding-top:var(--section-gap)}
.custom-calculation-title{display:flex;align-items:center;gap:10px;margin:0 0 var(--section-gap);font:600 16px/1.4 var(--font-body);color:var(--text)}
.custom-calculation-title>.i{width:20px;height:20px;color:var(--teal);flex:none}
details[data-soft-disclosure]::details-content{transition:none}
.custom-production input[readonly]{color:var(--text-muted);background:var(--surface)}
.custom-project-editor .passport-section .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--section-gap);align-items:end}
.custom-project-editor .form-grid>label,.custom-project-editor .form-grid>.color-field{min-width:0}
.custom-source-actions{display:flex;flex-wrap:wrap;gap:var(--section-gap)}
.custom-source-actions:empty{display:none}
.custom-source-actions>.btn-ghost{display:inline-flex;align-items:center;min-height:var(--section-action-height);gap:8px;text-align:left}
.custom-source-actions>.btn-ghost>.i{width:18px;height:18px;flex:none}
.custom-calculation-body{display:grid;gap:var(--section-gap)}
.custom-dimensions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--section-gap);align-items:end;min-width:0}
.custom-dimensions>label{min-width:0}
.order-stock-choice .order-custom-product-link{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:36px;padding:4px 0;border:0;border-radius:4px;background:none;color:var(--teal);font-family:inherit;text-align:left;cursor:pointer;transition:color 160ms}
.order-custom-product-link>span{min-width:0;overflow-wrap:anywhere}
.order-custom-product-link>.i{width:16px;height:16px;flex:none;transition:transform 160ms var(--motion-ease)}
.order-custom-product-link:hover{color:var(--text)}
.order-custom-product-link:hover>.i{transform:translate(1px,-1px)}
.order-custom-color{display:grid;gap:6px;min-width:0;align-self:center}
.order-custom-color>small{font-size:var(--font-caption);color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}
.order-custom-color>span{font-size:var(--font-content);overflow-wrap:anywhere}
.order-custom-quantity{font:500 var(--font-control)/1.5 var(--font-mono);white-space:nowrap}
.order-custom-readonly .order-stock-icon{grid-row:auto;align-self:center}
.order-stock-choice .order-stock-product{gap:6px}
.order-stock-choice .color-field{gap:6px}
.custom-production .custom-estimate{padding:var(--section-gap);gap:14px}
.custom-production .custom-estimate-parts{gap:8px;padding-top:14px}
.custom-production .custom-estimate-parts>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:16px;align-items:baseline;font-size:13px}
.custom-production .custom-estimate-parts dd{font-size:14px;white-space:nowrap;margin:0;text-align:right}
.custom-production .custom-estimate-total small{font-size:12px;line-height:1.5}
@media(max-width:600px){.custom-project-editor .passport-section .form-grid{grid-template-columns:minmax(0,1fr)}.custom-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-source-actions{display:grid;grid-template-columns:minmax(0,1fr)}.custom-source-actions>.btn-ghost{justify-content:flex-start}.order-stock-choice .order-custom-product-link{min-height:44px}.order-custom-readonly .order-custom-color{grid-column:2}}
@media(max-width:600px){.custom-flow-dialog{width:calc(100% - 16px)}.custom-flow-dialog>.site-order-form>header{padding:16px}.custom-flow-dialog [data-flow-content]{padding:16px}.custom-flow-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.custom-flow-linked{grid-template-columns:1fr}.custom-flow-dialog footer{bottom:-16px;flex-direction:column;align-items:stretch;gap:8px}.custom-flow-dialog footer>span{text-align:center}.custom-flow-trail li{padding-inline:6px}.order-custom-connection{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.custom-flow-linked button,.order-custom-connection,.order-custom-connection>.i{transition:none}.order-custom-connection:active>.i{transform:none}}
@media(prefers-reduced-motion:reduce){.order-custom-product-link,.order-custom-product-link>.i{transition:none}.order-custom-product-link:hover>.i{transform:none}}
.custom-estimate-parts .is-negative dt,.custom-estimate-parts .is-negative dd{color:var(--red,#ed7777)}
.custom-production .complexity{border-color:color-mix(in srgb,var(--accent) 20%,var(--border));transition:border-color 200ms,background 200ms}
.custom-production .complexity-top{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content 96px;align-items:center;gap:16px;min-height:110px}
.custom-production .complexity-score{gap:5px;white-space:nowrap}
.custom-production .complexity-score b{min-width:0;font-size:24px;line-height:1}
.custom-production .complexity-score>span{font:500 12px/1 var(--font-mono);color:var(--text-muted)}
.custom-production .complexity-name{min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.custom-production .complexity-copy{display:grid;gap:4px;min-width:0}
.custom-production .complexity-rate{margin:0;font-size:14px;line-height:1.5}
.custom-production .complexity-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.custom-production .complexity-inputs[hidden]{display:none}
.custom-production .complexity-inputs label{min-width:0;gap:7px;font-size:13px}
.custom-production .complexity-inputs input{width:100%;min-width:0;min-height:44px;font-size:14px}
.custom-production .complexity-track{grid-template-rows:44px 5px;gap:5px}
.custom-production .complexity-rail{align-self:center}
.custom-production .complexity-track input[type=range]{height:44px;margin:0}
.complexity-sculpture{width:96px;height:110px;pointer-events:none;overflow:visible}
.complexity-layer{opacity:0;transform:translateY(5px) scale(.9);transform-box:fill-box;transform-origin:50% 100%}
.complexity-layer.is-visible{opacity:1;transform:none}
.complexity-object-shadow{fill:#000;opacity:.2}.complexity-object-base-edge{fill:var(--surface)}.complexity-object-base{fill:var(--surface-2);stroke:var(--border);stroke-width:.7}
.complexity-layer path{stroke:color-mix(in srgb,var(--accent) 35%,#253034);stroke-width:.45;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.complexity-layer-face{fill:color-mix(in srgb,var(--accent) 55%,#edf5f4)}.complexity-layer-left{fill:color-mix(in srgb,var(--accent) 78%,#263438)}.complexity-layer-right{fill:color-mix(in srgb,var(--accent) 42%,#1a2428)}
.complexity-layer-cavity{fill:color-mix(in srgb,var(--accent) 28%,#182226)}
.complexity-layer .complexity-layer-inner{fill:none;stroke:color-mix(in srgb,var(--accent) 25%,#fff);stroke-width:.6;opacity:.65}
.complexity-layer .complexity-layer-contour{fill:none;stroke:#fff9;stroke-width:.7;stroke-dasharray:160;stroke-dashoffset:160;opacity:0}
.complexity-layer.is-top .complexity-layer-contour{stroke-dashoffset:0;opacity:1}
.complexity-layer .complexity-layer-infill{fill:none;stroke:#17464a;stroke-width:.65;opacity:0}
.complexity-layer.is-top .complexity-layer-infill{opacity:.28}
.complexity-layer .complexity-layer-trace{fill:none;stroke:#f0ffff;stroke-width:1.1;stroke-linecap:round;stroke-dasharray:12 148;stroke-dashoffset:160;opacity:0}
.has-art-motion .complexity-layer{transition:opacity 180ms ease,transform 260ms cubic-bezier(.2,.8,.2,1);transition-delay:calc((9 - var(--layer-order))*8ms)}
.has-art-motion .complexity-layer.is-visible{transition-delay:calc(var(--layer-order)*8ms)}
.has-art-motion .complexity-layer-face,.has-art-motion .complexity-layer-left,.has-art-motion .complexity-layer-right{transition:fill 180ms}
.has-art-motion .complexity-layer .complexity-layer-contour{transition:stroke-dashoffset 360ms cubic-bezier(.2,.8,.2,1),opacity 180ms;transition-delay:inherit}
.custom-production .complexity-score b{display:inline-block;transform-origin:50% 80%;font-variant-numeric:tabular-nums}
.custom-production .complexity-rail>i{transition:clip-path 180ms cubic-bezier(.2,.8,.2,1),box-shadow 180ms}
.custom-production .complexity.is-dragging .complexity-rail>i{transition:none}
.custom-production .complexity-ticks b.is-current{transform:scale(1.65);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}
.custom-production .complexity-track input[type=range]::-webkit-slider-thumb{background:linear-gradient(150deg,#fff,#d6e0e2);box-shadow:0 2px 5px #0005,inset 0 1px 0 #fff;transition:transform 180ms cubic-bezier(.2,.8,.2,1),box-shadow 180ms}
.custom-production .complexity-track input[type=range]::-moz-range-thumb{background:linear-gradient(150deg,#fff,#d6e0e2);box-shadow:0 2px 5px #0005,inset 0 1px 0 #fff}
.custom-production .complexity-track input[type=range]:active::-webkit-slider-thumb{transform:scale(1.18,.96);box-shadow:0 3px 7px #0005,0 0 0 7px color-mix(in srgb,var(--accent) 17%,transparent)}
.custom-production .complexity-track input[type=range]:active::-moz-range-thumb{transform:scale(1.18,.96)}
@media(prefers-reduced-motion:reduce){.custom-production .complexity,.custom-production .complexity-rail>i,.custom-production .complexity-ticks b{transition:none}.custom-production .complexity-track input[type=range]::-webkit-slider-thumb,.custom-production .complexity-track input[type=range]::-moz-range-thumb{transition:none;transform:none}}
@media(prefers-reduced-motion:reduce){.has-art-motion .complexity-layer,.has-art-motion .complexity-layer path,.has-art-motion .complexity-layer .complexity-layer-contour,.custom-production .complexity-score b{transition:none}.complexity-layer-trace{visibility:hidden}}
@media(max-width:1100px){.custom-production .complexity-top{grid-template-columns:max-content minmax(0,1fr) 76px;gap:6px 12px}.custom-production .complexity-score{grid-row:1/3}.custom-production .complexity-copy{grid-column:2;align-self:end}.custom-production .complexity-rate{grid-column:2;align-self:start;white-space:normal;overflow-wrap:anywhere}.complexity-sculpture{grid-column:3;grid-row:1/3;width:76px;height:100px;align-self:center}}
@media(max-width:600px){.custom-production .complexity-top{grid-template-columns:minmax(0,1fr) 76px;min-height:112px;gap:4px 12px}.custom-production .complexity-score{grid-column:1;grid-row:1;align-self:end}.custom-production .complexity-copy{grid-column:1;grid-row:2;align-self:center}.custom-production .complexity-rate{grid-column:1;grid-row:3}.complexity-sculpture{grid-column:2;grid-row:1/4}.custom-production .complexity-name{overflow-wrap:normal}}
