:root{font-family:Arial,Helvetica,sans-serif;color:#234556;background:#f1f5f7;font-size:16px;color-scheme:light;--teal:#087d8e;--line:#dce6eb;--page-width:1800px;--page-gutter:24px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;min-height:40px;border:1px solid #cbdbe3;border-radius:6px;background:#fff;padding:9px 13px;font-size:14px;color:#30596c;transition:background .15s}button:hover{background:#edf6f8}button:disabled{opacity:.4;cursor:default}.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.primary:hover{background:#096373}button:focus-visible,input:focus,select:focus,summary:focus-visible{outline:3px solid #72bcc980;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:25px;letter-spacing:-.6px;font-weight:600;margin-top:5px}h2{font-size:18px}h3{font-size:16px}header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{width:100%;max-width:var(--page-width);margin:0 auto;padding:19px var(--page-gutter);display:flex;align-items:center;gap:32px}.brand{width:clamp(220px,25vw,340px);max-width:100%;flex-shrink:0}.brand img{display:block;width:100%;height:auto}.app-name{border-left:1px solid var(--line);padding-left:25px;font-size:15px;display:flex;align-items:center;gap:12px}.badge{font-size:12px;border:1px solid var(--line);background:#f3f6f8;border-radius:4px;padding:4px 7px;color:#6b8290}nav{display:flex;gap:8px;margin-left:auto}nav button:first-child{border-color:transparent}main{max-width:var(--page-width);margin:auto}.projectbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px var(--page-gutter)}.eyebrow{font-size:12px;letter-spacing:1.15px;color:#7a8f9c;font-weight:600}.tabs{display:flex;gap:3px;background:#e5edf1;padding:4px;border:1px solid #d6e2e8;border-radius:7px}.tabs button{background:transparent;border-color:transparent;min-width:120px}.tabs button.active{background:#fff;border-color:#dae4e9;box-shadow:0 1px 4px #264f6510}.count{font-size:12px;padding:2px 6px;border-radius:4px;background:#edf3f5;margin-left:7px}.layout{display:grid;grid-template-columns:240px minmax(360px,1fr) 292px;background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin:0 var(--page-gutter);box-shadow:0 3px 12px #26495b08}.settings{padding:23px 20px;border-right:1px solid var(--line)}.section-head{display:flex;gap:9px;align-items:center;margin-bottom:18px}.section-head h2{font-size:16px}.step{font-size:12px;background:#f0f5f7;color:#738c99;padding:4px 5px;border-radius:3px}.area{margin-left:auto;color:#79909e;font-size:12px}.field{display:flex;flex-direction:column;gap:7px;font-size:14px;margin-bottom:16px;min-width:0}.field>span{color:#5e7888}.field input,.field select{height:41px;width:100%;min-width:0;color:#244e61;background:#fff;border:1px solid #cbdbe3;border-radius:5px;padding:8px 10px;font-size:15px}.field select{font-size:14px;padding-right:4px}.number{position:relative}.number input{padding-right:24px}.number>span{position:absolute;right:9px;top:11px;color:#8198a5;font-size:12px;pointer-events:none}input::-webkit-inner-spin-button{display:none}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rule{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#8095a2}.rule strong{font-weight:500;color:#4c758a}.tip{padding:12px;background:#f2f7f9;border-radius:5px;color:#698392;font-size:12px;line-height:1.6;margin-top:16px}.divider{border-top:1px solid #e5ecef;margin:24px 0}.tools{display:flex;flex-direction:column;gap:7px}.tool{display:flex;text-align:left;align-items:center;gap:11px;padding:11px 10px;border-color:transparent;min-height:57px}.tool .icon{width:25px;text-align:center;font-size:21px;color:#618597}.tool strong{font-size:14px;font-weight:500;display:block}.tool small{font-size:12px;color:#8a9ba6;display:block;margin-top:2px}.tool.active{background:#ecf7f8;border-color:#c3e0e6;color:#086d80}.text-button{border-color:transparent;background:transparent;color:#748e9c;font-size:13px}.settings>.text-button{width:100%;margin-top:15px}.canvas-panel{display:flex;flex-direction:column;background:#f1f5f8;min-width:0}.canvas-top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f9fbfc;border-bottom:1px solid var(--line);gap:10px}.canvas-title{font-size:14px;font-weight:500;display:flex;gap:9px;align-items:center}.canvas-title span{font-size:12px;color:#8097a5;font-weight:400}.canvas-actions{display:flex;align-items:center;gap:2px}.canvas-actions button{padding:6px 8px;border-color:transparent;background:transparent;font-size:18px;width:32px;min-height:32px}.canvas-actions span{font-size:12px;color:#8197a5;min-width:40px;text-align:center}.canvas-scroll{overflow:auto;display:block;padding:18px;min-width:0;min-height:0}#plan{display:block;min-width:0;min-height:0;user-select:none;touch-action:none}.mode-draw,.mode-point,.mode-compressor{cursor:crosshair}.mode-select [data-marker]{cursor:grab}.canvas-hint{background:#fff;border:1px solid #dce8ee;border-radius:6px;margin:8px 19px 18px;padding:12px 14px;display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5;color:#658596}.canvas-hint button{margin-left:auto;flex-shrink:0}.legend{display:flex;gap:19px;flex-wrap:wrap;padding:0 21px 22px;font-size:12px;color:#7b939f}.legend span{display:flex;align-items:center;gap:6px}.legend i{height:3px;width:14px;background:#1196a6}.legend .point{height:8px;width:8px;border-radius:50%;background:#178974}.legend .compressor{height:7px;width:9px;border-radius:2px;background:#c1804e}.stats{display:grid;grid-template-columns:1fr 1.2fr .9fr;border-top:1px solid var(--line);padding:25px 6px;background:#fafcfd}.stats>div{padding:0 20px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats span{display:block;font-size:12px;color:#7b919e}.stats strong{font-size:28px;letter-spacing:-.6px;font-weight:500;display:block;margin-top:7px}.stats small{font-size:13px;color:#8a9fab;font-weight:400}.detail{padding:25px 21px;border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.detail-head{display:flex;align-items:center;gap:10px;margin-bottom:20px}.detail-head h2{font-size:18px;margin-top:4px;overflow-wrap:anywhere}.detail-head .eyebrow{font-size:12px}.detail-head>button{margin-left:auto;border:0;min-height:30px;padding:4px 9px;font-size:22px}.point-badge{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eaf6f1;border:1px solid #d0e9df;color:#198b75;font-size:14px;flex-shrink:0}.body-copy{font-size:15px;line-height:1.65;color:#7b909d}.point-list{display:flex;flex-direction:column;margin:18px 0;gap:4px}.point-list button{display:flex;align-items:center;text-align:left;gap:11px;border:0;border-bottom:1px solid #edf2f5;border-radius:0;padding:13px 2px}.point-list strong{display:block;font-weight:500;font-size:14px}.point-list small{display:block;font-size:12px;color:#8199a7;margin-top:4px}.point-list .arrow{margin-left:auto;color:#98acb7}.full{width:100%}.connection{font-size:12px;color:#7a96a6;margin:-6px 0 18px}.drop{display:flex;gap:8px;align-items:center;font-size:13px;color:#7493a3;margin:-3px 0 18px}.drop strong{margin-left:auto;font-weight:500;color:#356b84}.danger{color:#ad6457;border-color:transparent;background:transparent}.estimate{margin-top:auto;padding-top:30px}.estimate>strong{display:block;font-size:34px;letter-spacing:-1px;font-weight:600;margin:9px 0 4px}.estimate>p{font-size:12px;color:#899eaa}.estimate>button{margin-top:18px;background:#edf5f7;border-color:transparent;width:100%;display:flex;justify-content:space-between;color:#326e87}.attention{display:inline-block;background:#fbf1e5;color:#aa783c;padding:4px 7px;font-size:12px;border-radius:4px;margin-top:9px}.material-layout{display:grid;grid-template-columns:minmax(500px,1fr) 330px;gap:25px;align-items:start;margin:0 var(--page-gutter) 25px}.bill{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}.bill-head{padding:28px;display:flex;justify-content:space-between;gap:20px;align-items:center}.bill-head h2{font-size:25px;letter-spacing:-.6px;margin-top:7px}.bill-head p{color:#8197a4;font-size:14px;margin-top:10px}.bill-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{background:#f5f9fb;border-top:1px solid var(--line);font-size:12px;font-weight:500;color:#7f96a3}td,th{padding:16px 20px}td{border-bottom:1px solid #eaf0f3;vertical-align:top;font-size:14px}td:first-child,th:first-child{padding-left:28px}.amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}td.amount{padding-top:21px}.sku{display:block;color:#8b9fab;font-size:12px;font-family:monospace;margin-top:5px}.reason{font-size:12px;color:#6d8d9f;margin-top:9px}.reason summary{cursor:pointer;list-style:none}.reason summary:before{content:'+ ';color:#8aabbd}.reason[open] summary:before{content:'− '}.reason p{font-size:12px;line-height:1.6;margin-top:8px;max-width:600px}.bill-total{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:25px 28px 15px;font-size:15px}.bill-total strong{font-size:29px;white-space:nowrap}.pricing{font-size:12px;color:#8a9da8;padding:0 28px 25px;line-height:1.6}.bill-side{display:flex;flex-direction:column;gap:20px}.summary-card{background:#fff;padding:26px 24px;border:1px solid var(--line);border-radius:8px}.summary-card h2{font-size:30px;letter-spacing:-.8px;margin-top:10px}dl{display:flex;flex-direction:column;gap:13px;margin:23px 0}dl>div{display:flex;justify-content:space-between;gap:10px;font-size:13px}dt{color:#7d95a3}dd{margin:0;font-weight:500;color:#3e718b}.note{padding:22px;background:#e9f1f5;border:1px solid #dce7ed;border-radius:6px;color:#628195;font-size:13px;line-height:1.65}.note h3{margin-bottom:12px;color:#3d6d86}.note p+p{margin-top:12px}.issues{margin:0 28px 22px;padding:18px;background:#fbf4e9;border:1px solid #ebdcc4;color:#95703f;border-radius:6px;font-size:13px;line-height:1.6}.issues ul{padding-left:18px;margin-bottom:0}.cuts{background:#fff;padding:20px;border:1px solid var(--line);border-radius:6px;font-size:13px}.cuts>p{margin-top:14px;color:#7c96a6;line-height:1.6}.cut-row{margin-top:20px}.cut-bar{display:flex;background:#edf3f6;margin:6px 0;height:24px;border-radius:3px;overflow:hidden;gap:1px}.cut-bar span{background:#77bdc9;font-size:12px;display:grid;place-items:center;min-width:0}.cut-row small{font-size:12px;color:#85a0af}summary{cursor:pointer}.empty{padding:55px 25px;text-align:center}.empty p{margin:15px;color:#7e98a6}footer{max-width:var(--page-width);margin:0 auto;display:flex;gap:22px;align-items:center;padding:18px var(--page-gutter);font-size:12px;color:#94a6b1}footer>span:nth-child(2){margin-left:auto}footer button{border:0;background:transparent;font-size:12px}dialog{border:1px solid var(--line);border-radius:10px;max-width:660px;width:calc(100% - 36px);padding:27px;color:#2b5267;max-height:87vh;overflow:auto}dialog::backdrop{background:#11344670;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-head button{border:0;font-size:22px}dialog ol{padding-left:23px;font-size:15px;line-height:1.65}dialog li{margin-bottom:16px}dialog h2{font-size:22px}dialog>p{margin:16px 0;color:#7b96a6}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#163f53;color:#fff;padding:13px 20px;border-radius:7px;font-size:14px;box-shadow:0 4px 25px #24475b20;max-width:90vw;z-index:9;display:none}.subdued{color:#7895a5;font-size:13px}.delete-space{margin-top:16px}
@media(min-width:1550px){.layout{grid-template-columns:265px minmax(600px,1fr) 315px}.settings,.detail{padding:28px 25px}}@media(max-width:1200px){:root{--page-gutter:15px}.app-name{display:none}.layout{grid-template-columns:218px minmax(320px,1fr) 265px;margin:0 var(--page-gutter)}.settings,.detail{padding:22px 16px}.canvas-title span{display:none}.canvas-top{padding:11px}.stats>div{padding:0 13px}.stats span{font-size:12px}.stats strong{font-size:24px}.canvas-hint{margin:8px 12px 16px}.legend{gap:11px;padding:0 14px 20px}.projectbar{padding:24px var(--page-gutter)}.material-layout{margin:0 var(--page-gutter);grid-template-columns:1fr 300px}.bill-head{flex-direction:column;align-items:flex-start}}@media(max-width:960px){.layout{grid-template-columns:220px minmax(0,1fr)}.detail{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:block;padding:25px}.detail>.field,.detail>.two,.detail>.full,.detail>.tip,.detail>.drop,.point-list,.estimate{max-width:480px}.estimate{margin-top:25px;border-top:1px solid var(--line)}.material-layout{grid-template-columns:1fr}.bill-side{display:grid;grid-template-columns:1fr 1fr}.cuts{grid-column:1/-1}.projectbar h1{font-size:23px}.header-inner{padding:18px var(--page-gutter)}}@media(max-width:640px){:root{--page-gutter:10px}.header-inner{padding:16px var(--page-gutter);gap:13px;flex-wrap:wrap}.brand{width:280px}nav{gap:4px}nav button{font-size:12px;padding:8px}nav button:nth-child(2){display:none}nav button:first-child{padding:7px}.projectbar{padding:22px var(--page-gutter);flex-direction:column;align-items:flex-start;gap:18px}.projectbar h1{font-size:24px}.tabs{width:100%}.tabs button{flex:1}.layout{display:flex;flex-direction:column;margin:0 var(--page-gutter)}.canvas-panel{order:0}.settings{order:1;border:0;border-top:1px solid var(--line);padding:23px}.detail{order:2;padding:23px}.canvas-scroll{padding:12px}.canvas-title{font-size:13px}.canvas-top{padding:9px}.canvas-actions button{width:27px}.stats{padding:22px 2px}.stats>div{padding:0 12px}.stats span{font-size:12px}.stats strong{font-size:25px}.legend{font-size:12px;gap:12px}.canvas-hint{font-size:12px}.tools{display:grid;grid-template-columns:1fr 1fr}.tool{padding:10px 8px;border:1px solid #e2ebef;background:#f8fafb;gap:6px}.tool small{font-size:12px}.tool .icon{font-size:19px;width:19px;flex-shrink:0}.field input,.field select{min-height:44px}.detail>.field,.detail>.two,.detail>.full,.detail>.tip,.detail>.drop,.point-list,.estimate{max-width:none}.material-layout{margin:0 var(--page-gutter) 22px}.bill-head{padding:25px 18px}.bill-head h2{font-size:24px}td,th{padding:14px 9px;font-size:12px}td:first-child,th:first-child{padding-left:16px}td:first-child{min-width:160px}td.amount{font-size:12px}.bill-total{padding:23px 17px 14px}.bill-total strong{font-size:25px}.bill-total>span{font-size:13px}.pricing{padding:0 17px 25px}.bill-side{display:flex}.issues{margin:0 18px 20px}.stats small{font-size:12px}footer{padding:18px var(--page-gutter);gap:10px}footer>span:nth-child(2){display:none}footer button{margin-left:auto}dialog{padding:22px}dialog ol{font-size:14px}}
/* SVG focus outlines otherwise scale with the room's metre-based viewBox. */
#plan [data-marker],#plan [data-marker]:focus{outline:none;-webkit-tap-highlight-color:transparent}
#plan .marker-focus{opacity:0}
#plan [data-marker]:focus-visible .marker-focus,#plan [data-marker].is-dragging .marker-focus{opacity:1}
#plan.is-dragging,#plan.is-dragging *{cursor:grabbing}
/* Product choices use actual catalog photos at a stable thumbnail size. */
.product-field{border:0;padding:0;margin:0 0 18px;min-width:0;max-width:480px}
.product-field legend{font-size:14px;color:#5e7888;padding:0;margin-bottom:8px}
.product-picker{border:1px solid #cbdbe3;border-radius:5px;background:#fff;overflow:hidden}
.product-picker>summary{display:flex;align-items:center;gap:10px;padding:9px;list-style:none;cursor:pointer;font-size:14px;min-height:65px}
.product-picker>summary::-webkit-details-marker{display:none}
.product-picker>summary>span:not(.picker-chevron){min-width:0;flex:1}
.product-picker strong,.product-option strong{display:block;font-size:14px;color:#244e61}
.product-picker small,.product-option small{display:block;font-size:12px;line-height:1.45;color:#5c7989;overflow-wrap:anywhere;margin-top:3px}
.picker-chevron{margin-left:auto;font-size:20px}.product-picker[open] .picker-chevron{transform:rotate(180deg)}
.product-picker img,.product-option img,.product-preview img{width:56px;height:56px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:3px}
.wall-options{max-height:310px;overflow:auto;padding:6px;border-top:1px solid #d9e4e9}
.product-option{position:relative;display:flex;align-items:center;gap:10px;padding:8px;cursor:pointer;border:1px solid transparent;border-radius:5px;min-width:0}
.product-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.product-option:has(input:checked){background:#eaf7f6;border-color:#198d76}
.product-option:has(input:focus-visible){outline:3px solid #72bcc9;outline-offset:1px}
.product-option:hover{background:#f2f7fa}
.coupling-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.coupling-options .product-option{border-color:#cbdbe3;flex-direction:column;text-align:center;padding:10px 4px}
.coupling-options .product-option:has(input:checked){border-color:#198d76}
.product-preview{display:flex;align-items:center;gap:10px;min-width:0;margin:-5px 0 18px;padding:8px;background:#f5f8fa;border-radius:5px;max-width:480px}
.product-preview>div{min-width:0}.product-preview strong{display:block;font-size:13px;color:#34576a}.product-preview span{display:block;font-size:12px;line-height:1.45;color:#5c7989;margin-top:3px;overflow-wrap:anywhere}
.compressor-height{border:1px solid #cfe2e6;border-radius:6px;background:#f6fafb;padding:12px;margin:0 0 18px;max-width:480px}
.height-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:14px;color:#34576a}.height-heading span{white-space:nowrap;color:#147586;font-weight:600}
.compressor-height svg{display:block;width:100%;max-width:320px;height:auto;margin:7px auto}
.compressor-height p{font-size:13px;line-height:1.55;color:#5c7989;margin:0}
@media(max-width:600px){.product-field,.product-preview,.compressor-height{max-width:none}}
.product-option .photo-note{color:#85633d;font-size:12px}
.room-tools{margin:18px 0 0;padding-top:16px;border-top:1px solid #e5ecef}
.canvas-panel{align-self:start;position:sticky;top:12px}
.canvas-scroll{flex:0}
.scene-wrap{flex:none}
@media(max-width:640px){.canvas-panel{align-self:stretch;position:static}}
.room-tools h3{font-size:14px;margin-bottom:10px;color:#476a7d;font-weight:500}
.room-tool-buttons{display:grid;grid-template-columns:1fr;gap:6px}
.room-tool-buttons button{text-align:left;font-size:14px;padding:8px 10px;min-height:36px;background:#f8fafb;border-color:#dce6eb}
.room-tool-buttons button.active{background:#e5f3f6;border-color:#8bbcc7;color:#08778a}
.room-tools .field{margin:14px 0 0;font-size:13px}
.room-tools .field select{font-size:13px}
.mode-wall,.mode-obstacle{cursor:crosshair}
.mode-select [data-room-marker]{cursor:grab}
.mode-select [data-room-kind="notch"]{cursor:pointer}
#plan [data-room-marker],#plan [data-room-marker]:focus{outline:none;-webkit-tap-highlight-color:transparent}
#plan .room-focus{opacity:0;pointer-events:none}
#plan [data-room-marker]:focus-visible .room-focus,#plan [data-room-marker].is-dragging .room-focus{opacity:1}
.room-attention{margin:0 16px 16px;padding:11px 13px;border:1px solid #e9d6b6;background:#fff7e9;border-radius:5px;color:#946d35;font-size:13px;line-height:1.5}
.room-attention p+p{margin-top:5px}
button.scene-label.layout-label{border-left-color:#8b795f;background:#fffaf3f2}
@media(max-width:640px){.room-tool-buttons{grid-template-columns:1fr 1fr}.room-tool-buttons button{min-height:42px}.room-tool-buttons button:first-child{grid-column:1/-1}}
/* The 3D view shares the design and property panel with the 2D editor. */
.view-switch{display:flex;padding:3px;background:#e5edf1;border:1px solid #d6e2e8;border-radius:7px;gap:3px}
.view-switch button{min-height:34px;border:1px solid transparent;background:transparent;padding:6px 10px;font-size:13px;font-weight:600;white-space:nowrap}
.view-switch button span{font-weight:400;margin-left:3px}
.view-switch button.active{background:#fff;border-color:#ccdfe6;color:#08778a;box-shadow:0 1px 3px #264f6510}
.canvas-top .canvas-actions{flex-shrink:0}
.scene-wrap{position:relative;flex:1;min-height:440px;display:flex;flex-direction:column}
.scene3d{position:relative;width:100%;height:clamp(440px,48vw,570px);min-height:440px;flex:1;overflow:hidden;isolation:isolate;background:#edf3f6}
.scene-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline-offset:-4px}
.scene-canvas:active{cursor:grabbing}
.scene-canvas:focus-visible{outline:3px solid #72bcc9}
.scene-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.scene-label{position:absolute;transform:translate(-50%,-100%);font-size:12px;line-height:1.4;white-space:nowrap;background:#fffffff0;border:1px solid #d1dfe5;border-radius:5px;padding:5px 8px;color:#406676;min-height:0;box-shadow:0 2px 6px #2948580b;pointer-events:none}
.scene-label[hidden]{display:none}
.scene-label strong{font-size:12px;font-weight:500;display:block}
.scene-label small{display:block;color:#668596;font-size:11px;margin-top:1px}
button.scene-label{pointer-events:auto;text-align:left;border-left:3px solid #198d76;max-width:185px;white-space:normal;overflow-wrap:anywhere}
button.scene-label strong{font-weight:600}
button.scene-label:hover{background:#fff;border-color:#148275;box-shadow:0 2px 10px #29485825}
button.scene-label.selected{background:#fff7e6;border-color:#c29b50}
button.scene-label.compressor-label{border-left-color:#bd7c49}
.scene-label.dimension{border:0;box-shadow:none;background:#edf3f6db;font-size:11px;color:#6e8997;padding:2px 5px}
.scene-label.pipe-label{color:#0a7a8c;font-size:11px;box-shadow:none;padding:3px 6px;border-color:#c9e0e6}
.scene-note{position:absolute;bottom:11px;left:14px;right:14px;text-align:center;color:#738c99;font-size:11px;pointer-events:none}
.scene-loading{display:grid;place-items:center;position:absolute;inset:0;font-size:14px;color:#517d8e;padding:30px;text-align:center}
.scene-edit-hint{margin:-6px 21px 18px;color:#758e9b;font-size:12px;line-height:1.5}
.scene-edit-hint button{padding:0;min-height:24px;border:0;background:transparent;color:#08778a;font-size:12px;text-decoration:underline}
@media(min-width:1550px){.scene3d{min-height:550px}}
@media(max-width:1200px){.view-switch button{padding:6px 9px}.view-switch button span{display:none}.scene-edit-hint{margin-left:14px;margin-right:14px}}
@media(max-width:640px){.view-switch button span{display:inline}.view-switch button{padding:6px 8px}.scene-wrap,.scene3d{min-height:370px}.scene3d{height:390px;flex:auto}.scene-label{font-size:11px;padding:4px 6px}button.scene-label{max-width:128px}.scene-label strong{font-size:11px}.scene-label small{font-size:10px}.scene-note{font-size:10px;bottom:9px}.canvas-top .canvas-actions button{width:29px}}
.canvas-panel{align-self:start;position:sticky;top:12px}
.canvas-scroll{height:clamp(425px,42vw,570px);flex:0 0 auto}
.scene-wrap{flex:0 0 auto}
.scene-leader{position:absolute;height:1px;background:#91a7b1;transform-origin:0 0;pointer-events:none;z-index:1}
.scene-leader[hidden]{display:none}
@media(max-width:640px){.canvas-panel{position:static;align-self:stretch}.canvas-scroll{height:340px;min-height:340px}}
.diameter-mode{border:0;padding:0;margin:0 0 18px;display:grid;gap:7px}
.diameter-mode legend{font-size:14px;color:#58768a;margin-bottom:10px}
.diameter-mode label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #d4e0e6;border-radius:5px;font-size:13px;cursor:pointer}
.diameter-mode label:has(input:checked){border-color:#168a99;background:#eff8fa;color:#08778a}
.diameter-mode input{width:15px;height:15px;min-height:0;margin:0;accent-color:#087f92}
.sizing-inputs{margin-bottom:18px}.sizing-inputs>p,.sizing-inputs .field-help{font-size:12px;line-height:1.6;color:#607f90}
.sizing-inputs>p:first-child{margin-bottom:16px}.sizing-inputs .field-help{display:block;margin:-9px 0 16px}
.sizing-inputs .number input{padding-right:54px}.sizing-inputs .number>span{font-size:12px}
.sizing-result{padding:13px;border:1px solid #b9dfe0;background:#eef8f7;border-radius:6px;color:#167568;margin-bottom:12px}
.sizing-result>span{font-size:12px;display:block}.sizing-result>strong{font-size:24px;display:block;margin:4px 0}.sizing-result>p{font-size:12px;line-height:1.6;margin:0}
.sizing-result.pending{background:#fff8ee;border-color:#eedcbd;color:#8d6937}.sizing-result.pending>strong{font-size:14px}.sizing-result>small{display:block;font-size:11px;line-height:1.5;margin-top:8px}
.sizing-basis{font-size:12px;line-height:1.6;color:#59798b;margin-bottom:16px}.sizing-basis summary{cursor:pointer;color:#087f92}.sizing-basis p{margin:10px 0}.sizing-basis dl{margin:8px 0}.sizing-basis dl>div{align-items:flex-start;gap:6px}.sizing-basis dd{text-align:right;white-space:nowrap}
.sizing-scope{border-top:1px solid #e0e9ec;padding-top:12px}.sizing-material{margin-top:20px}
.control-points{font-size:12px;color:#936528;background:#fff6e9;padding:9px 10px;border-radius:4px;margin:8px 0 14px;line-height:1.6}.control-points summary{cursor:pointer}.control-points ul{padding-left:15px;margin:10px 0 0}.control-points li+li{margin-top:8px}
.layout{overflow:clip}
.detail{align-self:start;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}
@media(max-width:640px){.detail{position:static;max-height:none;overflow:visible;align-self:stretch}}

/* Pipe editing uses existing SVG elements, never a native drag image. */
.mode-select [data-line],.pipe-handle{cursor:grab;touch-action:none}
#plan [data-line],#plan .pipe-handle{outline:none;-webkit-tap-highlight-color:transparent}
#plan [data-line]:focus-visible>line:first-child{stroke:#143f58}
#plan .pipe-handle:focus-visible>circle:last-child,#plan .pipe-handle:focus-visible>rect{stroke:#163f58;stroke-width:3;fill:#d4f3f0}
#plan.is-pipe-dragging [data-line]{opacity:.23}
#plan.is-pipe-dragging,#plan.is-pipe-dragging .pipe-handle{cursor:grabbing}
.pipe-fields{margin-top:18px}

/* Keep the three setup groups compact without resetting their open state. */
.settings-section+.settings-section{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.settings-section>summary{list-style:none;cursor:pointer;border-radius:4px}
.settings-section>summary::-webkit-details-marker{display:none}
.settings-section .section-head{font-size:16px;line-height:1.35;min-height:44px;margin:0;gap:8px}
.settings-section .section-title{flex:1;min-width:0}
.settings-section .area{white-space:nowrap;font-weight:400}
.section-chevron{width:7px;height:7px;flex:0 0 7px;border-right:1.5px solid #547a8d;border-bottom:1.5px solid #547a8d;transform:rotate(-45deg);margin:0 3px 0 1px}
.settings-section[open]>summary .section-chevron{transform:rotate(45deg)}
.settings-body{padding-top:14px}

/* Both SVG dimensions follow the viewport; the viewBox keeps the whole room in frame. */
.canvas-actions .fit-view{font-size:12px;min-width:46px;width:auto;padding:6px 5px;white-space:nowrap}

/* Haspels use the same compact product and drawing controls as wall outlets. */
.reel-badge{background:#f1eaf7!important;color:#76568f!important}.add-reel{margin-top:10px}.legend i.reel{background:#7d6299;border-radius:2px}.reel-connection{padding:12px;background:#f5f0f8;border:1px solid #e1d5e9;border-radius:5px;margin:14px 0;color:#634978}.reel-connection p{font-size:14px;line-height:1.5;margin:6px 0}.reel-connection small{display:block;font-size:12px;line-height:1.6}.reel-connection.pending{background:#fdf5e9;border-color:#ead5b6}.reel-assembly{margin:15px 0}.reel-assembly summary{font-size:14px;cursor:pointer;color:#496a7e}.reel-assembly p{font-size:12px;line-height:1.6;color:#668493}.scene-label.reel-label{border-left-color:#7d6299}.scene-label.reel-label strong{color:#634978}

/* Keep the material choice visible in both design and bill views. */
.projectbar{flex-wrap:wrap}.project-title{flex:1;min-width:260px}
.system-switch{border:0;padding:0;margin:0;min-width:264px}.system-switch legend{font-size:12px;color:#6e8899;margin:0 0 6px;padding:0}
.system-options{display:flex;background:#e5edf1;border:1px solid #d6e2e8;border-radius:8px;padding:4px;gap:4px}
.system-choice{display:flex;flex:1;position:relative;cursor:pointer;margin:0}
.system-choice input{position:absolute;opacity:0;width:1px;height:1px}
.system-choice>span{display:flex;flex:1;flex-direction:column;padding:9px 19px;border:1px solid transparent;border-radius:5px;min-width:108px;color:#5a7484}
.system-choice strong{font-size:14px}.system-choice small{font-size:11px;margin-top:3px}
.system-choice input:checked+span{background:#fff;border-color:#0795a8;color:#076c7b;box-shadow:0 1px 4px #264f6510}
.system-choice input:focus-visible+span{outline:3px solid #d29b45;outline-offset:3px}
@media(max-width:960px){.project-title{flex-basis:100%}.projectbar .system-switch{flex:1;max-width:350px}}
@media(max-width:640px){.project-title{min-width:0}.projectbar .system-switch{width:100%;max-width:none}.system-choice>span{align-items:center}}

/* Product thumbnails beside the article details in the bill of materials. */
.bill-product{display:flex;align-items:flex-start;gap:14px;min-width:0}
.bill-product-photo{display:flex;align-items:center;justify-content:center;width:64px;height:64px;flex:0 0 64px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.bill-product-photo img{display:block;width:100%;height:100%;object-fit:contain}
.bill-product-info{min-width:0;overflow-wrap:anywhere;line-height:1.45}
.bill-photo-empty{font-size:12px;line-height:1.25;color:#7d95a3;text-align:center}
.bill-photo-note{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:#85633d}
@media(max-width:640px){.bill-product{gap:9px}.bill-product-photo{width:46px;height:46px;flex-basis:46px;padding:3px}.bill-table-wrap td:first-child{min-width:230px}}
