:root{--bg:#f3fafb;--card:#fff;--input:#fafeff;--ink:#20343e;--muted:#5c727b;--line:#c6e0e5;--line-light:#e2eef0;--button:#dcf1f3;--navy:#496b88;--navy-dark:#355872;--turquoise:#79afb8;--sidebar:314px;--radius:9px;font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);font-synthesis:none;font-size:13px;background:var(--bg)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}button,input,select,textarea{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #356b79;outline-offset:3px}[hidden]{display:none!important}button{color:inherit}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.app-shell{height:100dvh;display:grid;grid-template-rows:70px minmax(0,1fr) 27px}.topbar{display:flex;align-items:center;gap:18px;padding:0 22px;background:#fff;border-bottom:1px solid var(--line);z-index:30}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;flex-shrink:0}.brand-mark{width:39px;height:39px;stroke:var(--navy);stroke-width:1.6}.brand strong{font-size:23px;font-weight:750;letter-spacing:1.25px;line-height:1.03;display:block}.brand-dot{color:#7dabb4}.brand small{display:block;font-size:8.5px;letter-spacing:1.65px;margin-top:6px;font-weight:650;color:var(--muted)}.header-divider{height:26px;border-left:1px solid var(--line-light);flex-shrink:0}.project-title{min-width:130px;max-width:230px;flex:1}.project-title label{font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:3px}.project-title input{font-size:13px;font-weight:600;background:transparent;border:0;padding:2px 0;width:100%;color:var(--ink);border-bottom:1px solid transparent;text-overflow:ellipsis}.project-title input:hover,.project-title input:focus{border-color:var(--line)}.header-actions{display:flex;align-items:center;gap:5px;margin-left:auto}.history-actions{display:flex;margin-right:4px}.icon-button{background:transparent;border:1px solid transparent;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;color:var(--muted);transition:background .15s,border-color .15s}.icon-button:hover{background:var(--bg);border-color:var(--line)}.toolbar-button{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;border:1px solid transparent;border-radius:7px;height:35px;padding:0 9px;font-size:12px;font-weight:500;white-space:nowrap}.toolbar-button:hover{background:var(--bg);border-color:var(--line)}.header-actions .header-divider{margin:0 5px;height:21px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid var(--line);border-radius:7px;background:var(--button);padding:8px 11px;font-size:12px;font-weight:550;transition:background .16s,border-color .16s;line-height:1.25}.button:hover{background:#cbe8ec;border-color:#9cc3cc}.button.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.button.primary:hover{background:var(--navy-dark)}.button.subtle{background:var(--card)}.button.subtle:hover{background:var(--bg)}.share-button{margin-left:7px;min-height:36px;padding:8px 14px;box-shadow:0 2px 4px #496b8812}.full-width{width:100%}.menu-toggle{display:none}.workspace{min-height:0;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);position:relative}.sidebar{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--line);z-index:20}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 22px 19px}.eyebrow{font-size:8.5px;font-weight:650;letter-spacing:1.65px;color:#6c8c96}.sidebar h1{font-size:20px;letter-spacing:-.6px;line-height:1.2;margin:6px 0 0;font-weight:650}.sidebar-collapse{width:28px;height:28px;padding:6px;margin-right:-6px}.panel-tabs{display:flex;gap:4px;margin:0 22px;padding:4px;background:#edf5f7;border:1px solid #e1edf0;border-radius:8px;flex-shrink:0}.panel-tabs button{border:0;background:transparent;flex:1;padding:8px;border-radius:5px;color:var(--muted);font-size:12px;font-weight:600}.panel-tabs button.active,.panel-tabs button[aria-selected=true]{background:#fff;color:var(--navy-dark);box-shadow:0 1px 5px #294a5a15}.sidebar-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b3cfd5 transparent;flex:1;min-height:0}.control-section{margin:0 22px;padding:20px 0;border-bottom:1px solid var(--line-light)}.section-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-heading h2{font-size:12px;letter-spacing:.1px;font-weight:650;margin:0}.step-number{font-size:9px;font-weight:600;letter-spacing:.5px;color:#7a9ba4;border-right:1px solid var(--line);padding-right:8px;line-height:12px}.section-unit{margin-left:auto;font-size:10px;color:#8ba1a8}.section-icon{margin-left:auto;width:16px;height:16px;color:#7b9ba4}.section-heading>.section-icon:first-child{margin-left:0;margin-right:1px}.sidebar select{width:100%;height:37px;border:1px solid #cbdde2;border-radius:6px;padding:0 30px 0 11px;background-color:var(--input);color:var(--ink);font-size:12px;box-shadow:0 1px 1px #20343e03;cursor:pointer}.sidebar select:hover{border-color:#99bac4}.gallery-button{width:100%;margin-top:8px;justify-content:flex-start;background:#f3f8fa;font-size:11px;font-weight:500;border-color:#e0eaee;min-height:34px;padding:8px 10px}.gallery-button>svg:first-child{color:#6b8c9c;width:15px;height:15px}.gallery-button .trailing-icon{margin-left:auto;width:12px;height:12px;color:#8ca3ac}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.field{display:block;min-width:0}.field>span{display:block;font-size:10px;color:var(--muted);margin-bottom:6px;line-height:1.4}.field input:not([type=range]){width:100%;height:35px;border:1px solid #cbdde2;border-radius:6px;background:var(--input);color:var(--ink);padding:0 10px;font-size:12px;font-weight:500;min-width:0}.field input:hover{border-color:#99bac4}.input-unit{position:relative}.input-unit input{padding-right:27px!important}.input-unit>span{position:absolute;right:10px;top:11px;color:#91a4ac;font-size:10px;pointer-events:none}.input-unit input::-webkit-inner-spin-button{appearance:none}.field input:focus,.sidebar select:focus{border-color:var(--navy);background:white}.advanced-settings{margin-top:13px}.advanced-settings summary{list-style:none;display:flex;align-items:center;font-size:10px;color:#6e8a95;cursor:pointer;gap:5px;padding:4px 0}.advanced-settings summary::-webkit-details-marker{display:none}.advanced-settings summary svg{width:11px;height:11px;margin-left:auto;transition:transform .15s}.advanced-settings[open] summary svg{transform:rotate(90deg)}.details-content{display:grid;gap:12px;margin-top:12px;padding:13px 11px;background:#f6fafb;border:1px solid #e4eef0;border-radius:7px}.field-note{font-size:10px;line-height:1.6;color:#7d969f;margin:9px 0 0}.bottom-field{margin-top:13px}.bottom-field select{height:34px;font-size:11px}.section-description{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 12px}.skylights-section .button{justify-content:flex-start;font-weight:500}.skylights-section .button svg{width:16px;height:16px;color:#5c8796}.sidebar-bottom{padding:20px 22px 16px}.sidebar-bottom .button{font-size:11px;font-weight:500;min-height:35px}.sidebar-bottom .button svg{width:15px;height:15px}.text-button{border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#849aa3;width:100%;padding:13px 0 0}.text-button svg{width:12px;height:12px}.text-button:hover{color:var(--navy-dark)}.sidebar-foot{height:31px;display:flex;align-items:center;padding:0 22px;gap:6px;border-top:1px solid var(--line-light);font-size:9px;color:#829aa4;flex-shrink:0}.sidebar-foot>span:last-child{margin-left:auto;font-size:9px;letter-spacing:.3px}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#70a59e;flex-shrink:0}.scene{min-width:0;min-height:0;position:relative;overflow:hidden;background:#f3f8fa;isolation:isolate}.scene-toolbar{position:absolute;z-index:5;top:22px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.scene-toolbar>*{pointer-events:auto}.mode-switch{display:flex;background:#ffffffee;box-shadow:0 2px 9px #2e4a5b08;border:1px solid #cedfe5;border-radius:9px;padding:4px;gap:3px}.mode-switch button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:6px;background:transparent;color:#6a8592;padding:9px 13px;font-size:11px;font-weight:600}.mode-switch button svg{width:16px;height:16px}.mode-switch button.active{color:white;background:var(--navy)}.mode-switch button:not(.active):hover{background:var(--bg);color:var(--navy-dark)}.scene-status{display:flex;align-items:center;gap:6px;color:#829ca6;font-size:10px;letter-spacing:.1px}.scene-status .status-dot{width:4px;height:4px;background:#73a6a4}#viewport{position:absolute;inset:0;outline:none}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}.view-controls{position:absolute;top:98px;right:25px;display:flex;flex-direction:column;align-items:center;padding:5px;border:1px solid #d2e1e6;background:#fffffff2;border-radius:10px;box-shadow:0 3px 12px #334b5b08;z-index:5;gap:2px}.view-controls button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:48px;min-height:48px;border:0;border-radius:6px;background:transparent;color:#7b95a1;font-size:8px;font-weight:500}.view-controls button svg{width:18px;height:18px}.view-controls button.active{background:#e8f2f6;color:var(--navy-dark)}.view-controls button:hover{background:var(--bg);color:var(--navy-dark)}.view-divider{width:25px;margin:4px 0;border-top:1px solid var(--line-light)}.scene-bottom{position:absolute;bottom:23px;left:25px;right:25px;z-index:4;pointer-events:none}.model-stats{display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;margin:0 auto 14px;padding:15px 6px;border:1px solid #d9e6eb;border-radius:10px;background:#ffffffed;box-shadow:0 4px 18px #284a5a06;backdrop-filter:blur(10px)}.model-stats>div{padding:0 25px;border-right:1px solid #e2ecf0;display:flex;flex-direction:column;gap:6px;min-width:92px;text-align:center}.model-stats>div:last-child{border:0}.model-stats span{font-size:8px;color:#8ba0a9;letter-spacing:1px;font-weight:550}.model-stats strong{font-size:13px;font-weight:600;color:#496675;font-variant-numeric:tabular-nums;white-space:nowrap}.navigation-hint{display:flex;align-items:center;justify-content:center;gap:12px;font-size:9px;color:#92a7af;text-align:center}.navigation-hint b{font-weight:500;color:#758e99;margin-right:3px}.navigation-hint i{width:3px;height:3px;background:#b4c9d1;border-radius:50%}.app-footer{border-top:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;color:#91a2aa;font-size:9px;letter-spacing:.05px}.footer-note{color:#99aeb5}.loading-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#f3f8fa;z-index:10}.loading-state strong{font-size:14px;font-weight:600;color:var(--navy)}.loading-state>span{font-size:11px;color:#8aa1ac}.loader{width:28px;height:28px;border-radius:50%;border:2px solid #d7e9ed;border-top-color:var(--navy);animation:spin 1s linear infinite;margin-bottom:8px}@keyframes spin{to{transform:rotate(360deg)}}.error-banner{position:absolute;left:25px;right:100px;top:88px;background:#fff6f3;border:1px solid #e9c8bd;border-radius:8px;color:#925d4d;padding:14px 16px;z-index:15;font-size:12px;line-height:1.6}.toast{position:fixed;bottom:47px;left:50%;transform:translateX(-50%);padding:12px 19px;box-shadow:0 7px 30px #1b34432a;border-radius:9px;color:#fff;background:#36596e;font-size:12px;z-index:100;max-width:min(90vw,560px);text-align:center}.color-field{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin:0 0 13px}.color-field input{width:37px;height:27px;padding:3px;background:var(--input);border:1px solid var(--line);border-radius:5px;cursor:pointer}.range-field{margin:20px 0}.range-field input{width:100%;height:15px;accent-color:var(--navy);cursor:pointer}.range-labels{display:flex;justify-content:space-between;color:#91a4ac;font-size:9px;margin-top:3px}.check-row{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin:14px 0}.check-row input{accent-color:var(--navy);width:14px;height:14px;margin:0}.compare-strip{position:absolute;bottom:128px;left:25px;right:25px;z-index:6;background:#ffffffed;border:1px solid #a7c9d4;border-radius:9px;box-shadow:0 5px 20px #30546913;padding:14px 17px;display:flex;justify-content:space-between;align-items:center;gap:16px}.compare-strip strong{font-size:12px;color:var(--navy-dark)}.compare-strip p{font-size:10px;line-height:1.5;color:var(--muted);margin:5px 0 0}.compare-actions{display:flex;gap:7px;flex-shrink:0}.compare-actions button{font-size:11px;min-height:33px}.workspace.sidebar-hidden,.sidebar-hidden .workspace{grid-template-columns:0 minmax(0,1fr)}.workspace.sidebar-hidden .sidebar,.sidebar-hidden .sidebar{display:none}.sidebar-hidden .menu-toggle{display:inline-flex}
/* Dialogs are shared by the galleries, skylight editor and project help. */
dialog{padding:0;border:1px solid #c5dbe2;border-radius:15px;box-shadow:0 18px 80px #203b4b38;background:white;color:var(--ink);width:min(960px,calc(100vw - 48px));max-height:calc(100dvh - 70px);overflow:hidden}dialog::backdrop{background:#19384566;backdrop-filter:blur(4px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 25px;border-bottom:1px solid var(--line-light);background:#f7fbfc}.modal-header h2{margin:0;font-size:19px;letter-spacing:-.35px;font-weight:650}.modal-body{padding:23px 25px;overflow:auto;max-height:calc(100dvh - 232px);scrollbar-width:thin;scrollbar-color:#b3cfd5 transparent}.modal-footer{padding:15px 25px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line-light);background:#f9fcfc;flex-wrap:wrap}.modal-footer:empty{display:none}.modal-body p{line-height:1.65;color:var(--muted);font-size:12px}.modal-body h3{font-size:13px;letter-spacing:.1px;margin:20px 0 11px}.modal-body h3:first-child{margin-top:0}.modal-body select,.modal-body input:not([type=checkbox]):not([type=range]):not([type=color]),.modal-body textarea{height:37px;background:var(--input);border:1px solid var(--line);border-radius:6px;padding:8px 10px;color:var(--ink);width:100%;min-width:0}.modal-body textarea{height:auto;min-height:90px;resize:vertical}.modal-body input[type=checkbox],.modal-body input[type=range]{accent-color:var(--navy)}.modal-body label{font-size:11px;color:var(--muted)}.modal-body label>span{display:block;margin-bottom:6px}.modal-body button:not(.icon-button):not(.gallery-card):not(.roof-card):not(.topology-card){border:1px solid var(--line);border-radius:6px;background:var(--button);padding:8px 11px;color:var(--ink);font-size:12px;cursor:pointer}.modal-body button:not(.icon-button):hover{border-color:#80acb9}.modal-body .primary{background:var(--navy)!important;color:white!important}.modal-body .danger{background:#fff4f1!important;color:#a25a4e!important;border-color:#eccdc4!important}.gallery-grid,.roof-gallery,.topology-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.gallery-card,.roof-card,.topology-card{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;overflow:hidden;border:1px solid #d9e7eb;background:#fff;border-radius:10px;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.gallery-card:hover,.roof-card:hover,.topology-card:hover{border-color:#92b8c4;box-shadow:0 4px 15px #2c536a0f;transform:translateY(-2px)}.gallery-card.active,.gallery-card.selected,.roof-card.active,.topology-card.active{border:2px solid var(--navy);background:#f5fafc}.gallery-card svg,.roof-card svg,.topology-card svg{width:100%;height:125px;background:#f4f8fa}.gallery-card img,.roof-card img,.topology-card img{width:100%;height:130px;object-fit:contain;background:#f4f8fa}.gallery-card strong,.roof-card strong,.topology-card strong{display:block;padding:12px 13px 0;font-size:12px;font-weight:600;color:var(--ink)}.gallery-card p,.gallery-card small,.roof-card p,.topology-card p{display:block;font-size:10px;line-height:1.55;color:#7c959f;margin:5px 0 0;padding:0 13px 14px}.gallery-card .thumb{min-height:120px;background:#f4f8fa;display:flex;align-items:center;justify-content:center}.gallery-toolbar,.modal-toolbar{display:flex;gap:9px;margin-bottom:18px;align-items:center;flex-wrap:wrap}.gallery-group-title{grid-column:1/-1;margin:12px 0 2px!important;color:var(--navy)!important}.form-grid,.skylight-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label,.skylight-fields label{display:flex;flex-direction:column;gap:6px}.form-row{display:flex;gap:12px;align-items:flex-end;margin:12px 0}.form-row>*{flex:1}.form-row .button{flex:initial}.skylight-list{display:grid;gap:8px;margin-top:18px}.skylight-item,.skylight-row{padding:12px;border:1px solid var(--line-light);border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fbfc}.skylight-item.active,.skylight-row.active{border-color:var(--navy)}.skylight-item strong{font-size:12px}.skylight-item small{font-size:10px;color:var(--muted)}.skylight-actions{display:flex;gap:5px}.info-note,.notice{background:#f1f7f9;border:1px solid #dbe9ee;padding:12px 14px;border-radius:7px;font-size:11px;line-height:1.7;color:#6b8793;margin:15px 0}.modal-body table{width:100%;border-collapse:collapse;font-size:12px}.modal-body th,.modal-body td{text-align:left;padding:10px;border-bottom:1px solid var(--line-light)}.modal-body th{font-weight:600;color:var(--navy);background:#f4f9fa}.modal-body ul{padding-left:20px;line-height:1.9;color:var(--muted);font-size:12px}.modal-body kbd{padding:2px 5px;border:1px solid var(--line);border-radius:4px;background:#f6fafb;font-size:10px}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--bg);z-index:500}
@media(min-width:1600px){:root{--sidebar:334px}.sidebar-heading{padding:28px 26px 23px}.panel-tabs{margin:0 26px}.control-section{margin:0 26px;padding:23px 0}.sidebar-bottom{padding:22px 26px}.sidebar-foot{padding:0 26px}.sidebar h1{font-size:22px}.section-heading h2{font-size:13px}.field>span{font-size:11px}.sidebar select{font-size:13px;height:39px}.field input:not([type=range]){height:38px;font-size:13px}.input-unit>span{top:13px}.gallery-button{font-size:12px;min-height:36px}.scene-toolbar{top:26px;left:30px;right:30px}.view-controls{right:30px}.scene-bottom{bottom:28px}.model-stats>div{padding:0 31px}.model-stats strong{font-size:15px}.model-stats span{font-size:9px}.navigation-hint{font-size:10px}.mode-switch button{font-size:12px;padding:10px 15px}.topbar{padding:0 26px;gap:23px}.toolbar-button{font-size:13px;padding:0 11px}}
@media(max-width:1190px){.topbar{padding:0 16px;gap:13px}.brand strong{font-size:20px}.brand-mark{width:34px;height:34px}.brand small{font-size:7px;letter-spacing:1.5px}.project-title{max-width:180px}.toolbar-button{padding:0 7px}.history-actions{margin-right:0}.header-actions{gap:2px}.header-actions .header-divider{margin:0 3px}.share-button{padding:8px 10px;margin-left:5px}.scene-status{display:none}.navigation-hint{font-size:8px;gap:8px}.model-stats>div{padding:0 16px;min-width:75px}.scene-toolbar{left:18px;right:18px}.view-controls{right:18px}.scene-bottom{left:18px;right:18px}.compare-strip{left:18px;right:18px;flex-wrap:wrap;gap:10px}}
@media(max-width:1020px){:root{--sidebar:290px}.topbar{gap:10px}.toolbar-button span{display:none}.toolbar-button{width:32px;height:34px;padding:7px}.project-title{max-width:none;min-width:110px}.header-actions .header-divider{display:none}.header-actions{gap:3px}.share-button span{display:none}.share-button{padding:8px;width:35px}.sidebar-heading{padding:23px 19px 18px}.panel-tabs{margin:0 19px}.control-section{margin:0 19px}.sidebar-bottom{padding:19px}.sidebar h1{font-size:19px}.model-stats>div{padding:0 12px;min-width:70px}.model-stats span{font-size:7px;letter-spacing:.5px}.model-stats strong{font-size:11px}.navigation-hint span:last-child,.navigation-hint i:last-of-type{display:none}.view-controls button{width:38px;min-height:44px}.view-controls{top:88px}.mode-switch button{padding:9px 11px;font-size:10px}.mode-switch button svg{width:15px;height:15px}}
@media(max-width:760px){:root{--sidebar:304px}.app-shell{grid-template-rows:61px minmax(0,1fr) 25px}.topbar{padding:0 11px;gap:8px}.menu-toggle{display:inline-flex;width:31px}.brand{gap:5px}.brand-mark{width:28px;height:28px}.brand strong{font-size:17px;letter-spacing:.8px}.brand small{font-size:6px;letter-spacing:.9px;margin-top:4px}.topbar>.header-divider{display:none}.project-title{display:none}.header-actions{gap:2px}.history-actions{display:none}.header-actions .icon-button{width:30px}.toolbar-button{width:29px;padding:6px}.share-button{width:32px;min-height:32px;margin-left:3px;padding:7px}.header-actions #export-dxf{display:none}.workspace{grid-template-columns:minmax(0,1fr)}.sidebar{position:absolute;top:0;bottom:0;left:0;width:var(--sidebar);max-width:calc(100vw - 55px);box-shadow:12px 0 35px #294a5a24;transform:translateX(-105%);transition:transform .22s;display:flex!important;z-index:25}.sidebar.open,.sidebar.is-open,.sidebar-visible .sidebar,.sidebar-open .sidebar{transform:translateX(0)}.workspace.sidebar-hidden,.sidebar-hidden .workspace{grid-template-columns:minmax(0,1fr)}.sidebar-hidden .sidebar{transform:translateX(-105%)}.sidebar-heading{padding:20px 21px 16px}.sidebar h1{font-size:20px}.panel-tabs{margin:0 21px}.control-section{margin:0 21px}.sidebar-bottom{padding:20px 21px}.sidebar-collapse{width:30px;height:30px}.scene-toolbar{left:14px;right:14px;top:14px}.mode-switch{border-radius:8px;padding:3px}.mode-switch button{padding:9px 12px;font-size:10px;gap:6px}.view-controls{right:12px;top:77px;padding:3px;border-radius:8px}.view-controls button{width:37px;min-height:43px;font-size:7px}.view-controls button svg{width:16px;height:16px}.view-divider{width:20px;margin:3px 0}.scene-bottom{left:12px;right:12px;bottom:20px}.model-stats{padding:12px 0;width:100%;max-width:440px;border-radius:9px;margin-bottom:12px}.model-stats>div{padding:0 10px;min-width:0;flex:1;gap:5px}.model-stats span{font-size:7px;letter-spacing:.4px}.model-stats strong{font-size:11px}.navigation-hint{font-size:8px}.navigation-hint span{display:none!important}.navigation-hint i{display:none}.navigation-hint:after{content:"Obrót jednym palcem · Zoom i przesuwanie dwoma";font-size:9px}.app-footer{padding:0 12px;font-size:8px}.footer-note{display:none}.error-banner{left:14px;right:63px;top:74px;padding:11px;font-size:11px}.compare-strip{left:12px;right:12px;bottom:119px;padding:12px;display:block}.compare-strip strong{font-size:11px}.compare-actions{margin-top:10px}.compare-actions button{font-size:10px}.compare-strip p{font-size:9px}.toast{bottom:39px;font-size:11px;padding:11px 14px}dialog{width:calc(100vw - 22px);max-height:calc(100dvh - 28px);border-radius:11px}.modal-header{padding:16px 17px}.modal-header h2{font-size:17px}.modal-body{padding:17px;max-height:calc(100dvh - 184px)}.modal-footer{padding:13px 17px}.gallery-grid,.roof-gallery,.topology-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-card svg,.roof-card svg,.topology-card svg{height:100px}.gallery-card strong,.roof-card strong,.topology-card strong{padding:10px 10px 0;font-size:11px}.gallery-card p,.gallery-card small,.roof-card p,.topology-card p{padding:0 10px 11px;font-size:9px}.form-row{flex-wrap:wrap}.form-row>*{min-width:110px}.skylight-item,.skylight-row{flex-wrap:wrap}.skylight-actions{flex-wrap:wrap}.loading-state strong{font-size:13px}.loading-state>span{font-size:10px}}
@media(max-width:390px){.brand small{display:none}.brand strong{font-size:16px}.brand-mark{width:25px;height:25px}.topbar{padding:0 8px;gap:4px}.header-actions{gap:0}.header-actions #help-button{display:none}.model-stats>div{padding:0 6px}.model-stats strong{font-size:10px}.model-stats span{font-size:6.5px}.mode-switch button{padding:8px 10px}.form-grid,.skylight-fields{gap:10px}}
.toast{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,visibility .18s}.toast.visible{opacity:1;visibility:visible}.toast.error{background:#975d51}.modal-footer>button{border:1px solid var(--line);border-radius:7px;padding:9px 15px;background:var(--button);font-size:12px;color:var(--ink);font-weight:550}.modal-footer>button.primary{background:var(--navy);border-color:var(--navy);color:white}.modal-footer>button:hover{filter:brightness(.96)}.modal-intro{margin:0 0 19px!important;color:#7a949e!important}.gallery-card>span{display:block;padding:5px 13px 14px;color:#7c959f;font-size:10px;line-height:1.55}.gallery-card:disabled:hover{transform:none;box-shadow:none}.sky-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}.sky-plan{width:100%;height:auto;max-height:340px;display:block;background:#f6fafb;border:1px solid #dfebef;border-radius:9px;padding:16px;stroke-width:1}.sky-hit{cursor:pointer;fill:#b7d7e5;stroke:#5e92ab;stroke-width:1.2}.sky-hit.selected{fill:#83b8d0;stroke:#355872;stroke-width:2.5}.sky-hit text{font:600 11px "Segoe UI",sans-serif;fill:#365b70;stroke:none;pointer-events:none}.sky-fields{display:grid;gap:13px}.sky-fields h3{margin:0!important}.sky-fields label{display:flex;flex-direction:column;gap:6px;line-height:1.5}.sky-fields .field-grid{gap:12px}.button-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.button-row button{font-size:11px!important}.sky-generator{margin-top:25px;padding:18px;background:#f5f9fa;border:1px solid var(--line-light);border-radius:9px}.sky-generator h3{margin-top:0!important}.sky-generator .field-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:13px}.sky-generator label{display:flex;flex-direction:column;gap:6px}.form-note{font-size:10px!important;color:#8b9fa8!important;margin:16px 0 0!important;line-height:1.6!important}.empty-state{padding:25px 15px;border:1px dashed var(--line);border-radius:8px;line-height:1.7;color:#8aa0a9;font-size:12px;text-align:center}.info-box{margin:20px 0;padding:16px;background:#f1f7f9;border:1px solid #dcebef;border-radius:8px}.info-box>strong{font-size:12px;color:var(--navy)}.info-box p{margin:7px 0 0;font-size:11px}.help-content a{color:var(--navy);text-underline-offset:3px}.help-content p:first-child{margin-top:0}@media(max-width:760px){.mobile-panel-open .sidebar{transform:translateX(0)}.mobile-panel-open.sidebar-hidden .sidebar{transform:translateX(0)}.sky-layout{grid-template-columns:1fr;gap:19px}.sky-plan{max-height:250px}.sky-generator{padding:13px}.sky-generator .field-grid{gap:9px}.sky-generator .field-grid label{font-size:10px}.modal-body input{font-size:13px}.gallery-card>span{padding:5px 10px 11px;font-size:9px}.modal-footer>button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Readable numbered skylights and safely scrollable long galleries. */
.sky-plan .sky-hit text{font-size:14px;fill:#294d63;stroke:#eff8fc;stroke-width:2.5px;stroke-linejoin:round;paint-order:stroke fill}.sky-plan .sky-hit.selected text{fill:#173b53;stroke:#e3f3f9}.modal-body{overscroll-behavior:contain;scrollbar-gutter:stable}.gallery-card{min-width:0;flex-shrink:0}.gallery-card strong,.gallery-card>span{overflow-wrap:anywhere}@media(max-width:760px){.model-stats span{font-size:8px;line-height:1.35;min-height:22px;display:flex;align-items:center;justify-content:center;letter-spacing:.25px}.model-stats>div{gap:3px}.gallery-card>span{font-size:10px;line-height:1.6}.gallery-card strong{font-size:11.5px}.modal-body{scrollbar-gutter:auto}}

.code-summary{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;margin-bottom:20px;padding:14px;background:var(--bg);border-radius:7px;font-size:12px}.code-summary span{color:var(--muted)}.code-label{display:block;margin-bottom:8px;font-size:12px;font-weight:600}.geometry-code-text{width:100%;resize:vertical;min-height:116px;max-height:240px;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--input);font:12px/1.6 ui-monospace,Consolas,monospace;word-break:break-all;overflow-wrap:anywhere;color:var(--ink)}.code-status{min-height:30px;font-size:12px!important;color:var(--navy)}.code-details{font-size:12px;line-height:1.7}.code-details summary{cursor:pointer;font-weight:600}.code-details p{font-size:12px!important}

/* Architect workflow: readable controls, focused file menu and drainage view. */
:root{--sidebar:330px;--muted:#536d78;font-size:14px}
button,summary{touch-action:manipulation}
.topbar{gap:16px}
.project-title label{font-size:12px;letter-spacing:.35px}
.project-title input{font-size:14px}
.icon-button,.toolbar-button{min-height:40px}
.toolbar-button{font-size:13px}
.button{font-size:13px;min-height:40px}
.brand small{color:#526d79}
.files-menu{position:relative;flex-shrink:0}
.files-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:550;cursor:pointer}
.files-menu>summary::-webkit-details-marker{display:none}
.files-menu>summary:hover,.files-menu[open]>summary{background:var(--bg);border-color:var(--line)}
.files-menu .menu-chevron{width:12px;height:12px;transform:rotate(90deg)}
.files-menu[open] .menu-chevron{transform:rotate(-90deg)}
.files-popover{position:absolute;right:0;top:calc(100% + 10px);display:grid;width:234px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 35px #294a5a24;z-index:60}
.files-popover .toolbar-button,.header-actions .files-popover #export-dxf{display:flex;width:100%;justify-content:flex-start;gap:10px;padding:10px 11px;min-height:43px;font-size:13px;text-align:left}
.files-popover .toolbar-button span{display:inline}
.files-separator{border-top:1px solid var(--line-light);margin:5px 4px}
.sidebar-heading{padding:22px 22px 17px}
.eyebrow{font-size:12px;letter-spacing:1px;color:#547480}
.sidebar h1{font-size:23px;margin-top:7px}
.sidebar-collapse{min-width:40px;min-height:40px}
.panel-tabs button{font-size:14px;min-height:36px}
.workflow-intro{margin:17px 22px 0;font-size:12px;line-height:1.6;color:var(--muted)}
.control-section{padding:21px 0}
.section-heading{margin-bottom:13px;gap:9px}
.section-heading h2{font-size:14px;font-weight:650}
.step-number{font-size:12px;line-height:17px;color:#557a88;padding-right:9px}
.section-unit{font-size:12px;color:var(--muted)}
.sidebar select,.bottom-field select{font-size:14px;height:42px}
.field>span,.field-note,.section-description,.color-field,.check-row,.range-labels{font-size:12px;color:var(--muted)}
.field>span{margin-bottom:7px}
.field input:not([type=range]){font-size:14px;height:42px}
.input-unit>span{font-size:12px;top:13px;color:#657e89}
.field-grid{gap:14px 11px}
.gallery-button{min-height:41px;font-size:13px;color:#355872;border-color:#d4e5e9;background:#f0f7f9}
.gallery-button>svg:first-child{width:17px;height:17px;color:#496f83}
.gallery-button .trailing-icon{width:14px;height:14px;color:#537b8b}
.advanced-settings summary{font-size:12px;line-height:1.5;min-height:36px;color:#4f7180}
.advanced-settings summary svg{width:14px;height:14px}
.check-row{min-height:26px;gap:10px}
.check-row input{width:17px;height:17px}
.range-field input{height:22px}
.sidebar-bottom .button{font-size:13px;min-height:40px}
.text-button{font-size:12px;color:#607c88;min-height:37px;line-height:1.5}
.handoff-panel{padding:14px 22px 11px;background:#f6fafb;border-top:1px solid var(--line);flex-shrink:0}
.handoff-panel .button{min-height:44px;justify-content:flex-start;padding:11px 13px;font-weight:600}
.handoff-panel .trailing-icon{margin-left:auto;width:14px;height:14px}
#workflow-status{margin:9px 0 0;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.sidebar-foot{height:31px;font-size:12px;color:#637d87}
.sidebar-foot>span:last-child{font-size:12px}
.scene-toolbar{top:20px;left:24px;right:24px;gap:12px;align-items:start}
.mode-switch{min-width:0;padding:4px;gap:3px;flex-shrink:1}
.mode-switch button{font-size:13px;min-height:40px;padding:10px 12px;white-space:nowrap;color:#516f7e}
.mode-switch button svg{width:18px;height:18px}
.presentation-button{min-height:50px;flex-shrink:0;background:#ffffffef;box-shadow:0 2px 9px #2e4a5b08;color:#355872;white-space:nowrap}
.view-controls{top:94px;right:24px}
.view-controls button{font-size:12px;min-height:51px;width:53px;color:#536f7e}
.view-controls button svg{width:19px;height:19px}
.drainage-panel{position:absolute;top:88px;left:24px;width:245px;max-width:calc(100% - 112px);background:#fffffff5;border:1px solid #bad5df;border-radius:10px;box-shadow:0 4px 18px #294a5a0d;z-index:6;overflow:hidden;backdrop-filter:blur(8px)}
.drainage-panel summary{list-style:none;display:flex;align-items:center;gap:8px;padding:13px 14px;min-height:46px;cursor:pointer;color:#355872}
.drainage-panel summary::-webkit-details-marker{display:none}
.drainage-panel summary strong{font-size:13px;font-weight:600}
.drainage-panel summary>.trailing-icon{width:13px;height:13px;margin-left:auto}
.drainage-panel[open] summary>.trailing-icon{transform:rotate(90deg)}
.drainage-content{padding:0 14px 13px;max-height:min(480px,60dvh);overflow-y:auto;scrollbar-width:thin}
.drainage-content label{display:flex;align-items:center;gap:8px;min-height:33px;font-size:12px;line-height:1.4;cursor:pointer;color:#385664}
.drainage-content input{width:16px;height:16px;margin:0;accent-color:#496b88;flex-shrink:0}
.drainage-key{width:19px;height:4px;border-radius:2px;flex-shrink:0}
.drainage-key.arrows{height:22px;color:#187cc0;font-size:23px;font-weight:700;line-height:20px;text-align:center}
.drainage-key.ridges{background:#d8792d}
.drainage-key.valleys{background:#8c56b0}
.drainage-key.flat{height:12px;background:#f5dca2;border:1px solid #c68d22}
.drainage-summary{display:block;margin-top:7px;font-size:12px;line-height:1.55;color:#355872}
.drainage-summary:empty{display:none}
.drainage-content p{margin:10px 0 0;padding-top:9px;border-top:1px solid var(--line-light);font-size:12px;line-height:1.5;color:#5a7480}
.model-stats{padding:14px 5px}
.model-stats>div{padding:0 18px;min-width:88px}
.model-stats span{font-size:12px;letter-spacing:.35px;color:#5e7986;line-height:1.35}
.model-stats strong{font-size:14px;color:#355872}
.navigation-hint,.navigation-hint b{font-size:12px;color:#617e8b}
.app-footer,.footer-note{font-size:12px;color:#617b87}
.loading-state>span{font-size:13px;color:#5a7784}
.compare-strip strong,.compare-actions button{font-size:13px}
.compare-strip p{font-size:12px}
.modal-body p,.modal-body ul{font-size:14px}
.modal-body h3{font-size:15px}
.modal-body label,.modal-footer>button,.form-note,.code-label,.info-note,.notice{font-size:13px}
.form-note{font-size:12px!important;color:#597480!important}
.modal-body select,.modal-body input:not([type=checkbox]):not([type=range]):not([type=color]){height:42px;font-size:14px}
.modal-body button:not(.icon-button):not(.gallery-card):not(.roof-card):not(.topology-card){font-size:13px;min-height:40px}
.modal-body .modal-intro{color:#53717f!important}
.gallery-card strong,.roof-card strong,.topology-card strong{font-size:14px}
.gallery-card p,.gallery-card small,.gallery-card>span,.roof-card p,.topology-card p{font-size:12px;color:#5f7a87;line-height:1.6}
.info-box p,.info-box>strong,.code-summary,.code-status,.code-details,.code-details p{font-size:13px!important}
@media(min-width:1600px){:root{--sidebar:350px}.workflow-intro{margin-left:26px;margin-right:26px}.handoff-panel{padding-left:26px;padding-right:26px}.scene-toolbar{left:30px;right:30px}.drainage-panel{left:30px}.view-controls{right:30px}}
@media(max-width:1150px){.scene-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;top:16px;left:18px;right:18px}.mode-switch{width:fit-content;max-width:100%}.mode-switch button{font-size:12px;padding:10px 11px;gap:6px}.presentation-button{justify-self:start;min-height:36px;padding:8px 11px;font-size:12px}.presentation-button svg{width:16px;height:16px}.view-controls{top:120px;right:18px}.drainage-panel{top:120px;left:18px}.model-stats>div{padding:0 12px;min-width:0}.model-stats span{font-size:12px;letter-spacing:0}.model-stats strong{font-size:13px}.navigation-hint{gap:8px}}
@media(max-width:1020px){:root{--sidebar:310px}.topbar{gap:10px}.header-actions{gap:4px}.toolbar-button{width:40px;padding:9px}.share-button{width:40px;min-height:40px}.header-actions>.icon-button{width:40px}.header-actions .history-actions .icon-button{width:34px}.project-title{min-width:110px}.project-title label{font-size:12px}.project-title input{font-size:14px}.workflow-intro{margin-left:19px;margin-right:19px}.handoff-panel{padding:13px 19px 10px}.sidebar-heading{padding-left:19px;padding-right:19px}.sidebar h1{font-size:22px}.sidebar select,.bottom-field select,.field input:not([type=range]){font-size:14px}.mode-switch button svg{width:16px;height:16px}.view-controls button{width:46px;min-height:49px;font-size:12px}.view-controls button svg{width:18px;height:18px}}
@media(max-width:760px){:root{--sidebar:322px}.app-shell{grid-template-rows:64px minmax(0,1fr) 27px}.topbar{padding:0 10px;gap:7px}.menu-toggle{width:40px;min-height:40px;flex-shrink:0}.brand-mark{width:29px;height:29px}.brand strong{font-size:18px}.brand small{font-size:7px;letter-spacing:.8px}.header-actions{gap:3px}.files-menu>summary{width:40px;padding:9px}.files-menu>summary>span,.files-menu .menu-chevron{display:none}.files-popover{right:-90px;max-width:calc(100vw - 22px)}.header-actions .toolbar-button,.header-actions>.icon-button,.share-button{width:40px;min-height:40px}.header-actions #help-button{display:inline-flex}.header-actions .files-popover .toolbar-button,.header-actions .files-popover #export-dxf{width:100%;min-height:43px}.share-button{margin-left:0}.sidebar{max-width:calc(100vw - 38px)}.sidebar-heading{padding:18px 19px 15px}.sidebar h1{font-size:22px}.panel-tabs{margin:0 19px}.workflow-intro{margin:15px 19px 0}.control-section{margin:0 19px;padding:20px 0}.sidebar-bottom{padding:19px}.handoff-panel{padding:12px 19px 9px}.handoff-panel .button{font-size:13px;gap:7px}.handoff-panel .button>svg:first-child{width:16px;height:16px}.handoff-panel .trailing-icon{width:12px;height:12px}.sidebar-foot{padding:0 19px;font-size:12px}.scene-toolbar{top:12px;left:12px;right:12px;gap:8px}.mode-switch{width:100%;justify-content:space-between;padding:3px;gap:2px}.mode-switch button{flex:1;min-width:0;font-size:12px;min-height:39px;padding:9px 5px;gap:5px}.mode-switch button svg{width:16px;height:16px}.presentation-button{min-height:35px;font-size:12px}.view-controls{top:115px;right:12px;padding:3px}.view-controls button{width:43px;min-height:47px;font-size:12px;gap:3px}.view-controls button svg{width:17px;height:17px}.drainage-panel{top:110px;left:12px;width:232px;max-width:calc(100% - 78px)}.drainage-panel summary{padding:11px;min-height:44px;gap:6px}.drainage-panel summary strong{font-size:12px}.drainage-content{padding:0 11px 11px;max-height:calc(100dvh - 340px)}.scene-bottom{left:12px;right:12px;bottom:14px}.model-stats{padding:12px 0;margin-bottom:10px;max-width:500px}.model-stats>div{padding:0 7px;gap:4px;min-width:0}.model-stats span{font-size:12px;line-height:1.35;letter-spacing:0;min-height:32px;display:flex;align-items:center;justify-content:center}.model-stats strong{font-size:12px;line-height:1.4;white-space:normal}.navigation-hint:after{font-size:11px;color:#617e8b}.app-footer{padding:0 12px;font-size:11px;white-space:nowrap}.error-banner{top:112px;font-size:12px;line-height:1.5}.compare-strip{bottom:132px}.compare-strip strong{font-size:13px}.compare-strip p{font-size:12px}.compare-actions button{font-size:12px}.gallery-card strong,.roof-card strong,.topology-card strong{font-size:14px}.gallery-card p,.gallery-card small,.gallery-card>span,.roof-card p,.topology-card p{font-size:12px}.modal-body label,.sky-generator .field-grid label{font-size:12px}.modal-footer>button{font-size:13px}.modal-header h2{font-size:18px}.modal-body{padding:17px;max-height:calc(100dvh - 190px)}.loading-state>span{font-size:12px}.toast{font-size:12px}}
@media(max-width:420px){.brand>span{display:none}.topbar{gap:5px;padding:0 8px}.header-actions{gap:3px}.brand-mark{width:31px;height:31px}.files-popover{right:-125px}.mode-switch button svg{display:none}.mode-switch button{font-size:12px;padding:9px 4px}.model-stats span{font-size:12px}.model-stats strong{font-size:12px}.model-stats>div{padding:0 4px}.app-footer{font-size:10px}.navigation-hint:after{font-size:10px}.field-grid{gap:13px 9px}.sidebar-heading,.handoff-panel{padding-left:16px;padding-right:16px}.panel-tabs{margin-left:16px;margin-right:16px}.workflow-intro,.control-section{margin-left:16px;margin-right:16px}.sidebar-bottom{padding-left:16px;padding-right:16px}.handoff-panel .button{font-size:12px;padding-left:10px;padding-right:10px}}
@media(max-height:610px) and (min-width:761px){.sidebar-heading{padding-top:13px;padding-bottom:11px}.handoff-panel{padding-top:9px;padding-bottom:8px}.workflow-intro{margin-top:12px}.drainage-content{max-height:calc(100dvh - 320px)}}

/* Pencil maquette is a view of the same model; application controls stay familiar. */
.sketch-scene{background:#f5f1e8}
.sketch-scene .mode-switch,.sketch-scene .view-controls,.sketch-scene .model-stats,.sketch-scene .presentation-button{background:#fffdf7ed;border-color:#d5cfc2}
.sketch-scene .mode-switch button.active{background:#5d605b}
.sketch-scene .model-stats strong,.sketch-scene .model-stats span,.sketch-scene .navigation-hint,.sketch-scene .navigation-hint b{color:#666a64}
.sketch-scene .view-controls button.active{background:#e9e5db;color:#434a46}
.sketch-note{margin:20px 22px 0;padding:13px;background:#f7f4ec;border:1px solid #dcd6c8;border-radius:8px;font-size:13px;line-height:1.6;color:#5e6259}
.sidebar input:disabled,.sidebar select:disabled{opacity:.52;cursor:not-allowed}
@media(max-width:760px){.mode-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.mode-switch button{padding:8px 3px;gap:3px;white-space:normal;line-height:1.2}.mode-switch button svg{display:none}}
@media(max-width:420px){.model-stats{display:grid;grid-template-columns:1fr 1.4fr .8fr 1fr;width:100%}.model-stats>div{padding:0 3px}.model-stats span{font-size:11px}}

/* Presentation is independent from the persistent structural layer. */
.construction-toggle{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;min-height:40px;border-left:1px solid #cfdee3;border-radius:6px;cursor:pointer;color:#355872;font-size:13px;font-weight:600;white-space:nowrap}
.construction-toggle input{width:17px;height:17px;margin:0;accent-color:#496b88;cursor:pointer;flex-shrink:0}
.construction-toggle:has(input:checked){background:#e0edf1;color:#254c65}
.construction-toggle:focus-within{outline:2px solid #496b88;outline-offset:1px}
.sketch-scene .construction-toggle:has(input:checked){background:#e5e3da;color:#434a46}
.height-map-switch{font-weight:650}
.height-legend{margin:3px 0 10px;padding:10px;background:#f5f9fb;border:1px solid #dae6ec;border-radius:7px}
.height-legend-title{display:block;font-size:11px;color:#47636f;margin-bottom:7px;font-weight:600}
.height-gradient{height:13px;border-radius:4px;border:1px solid #2c4c601a}
.height-labels{display:flex;justify-content:space-between;gap:5px;font-size:11px;font-variant-numeric:tabular-nums;color:#354f60;margin-top:5px}
.height-range-note{display:block;font-size:11px;line-height:1.45;color:#58717d;margin-top:6px}
.map-top-button{min-height:33px;width:100%;font-size:12px;margin:0 0 8px;background:#f0f7fa}
.map-top-button svg{width:16px;height:16px}
.height-surface-note{display:block;font-size:11px;line-height:1.5;color:#795c25;margin:0 0 6px}
@media(max-width:1150px){.construction-toggle{font-size:12px;padding:8px 10px}}
@media(max-width:760px){.construction-toggle{padding:5px 2px;gap:4px;flex-direction:column;min-height:43px;font-size:11px;white-space:normal;line-height:1.2}.construction-toggle input{width:15px;height:15px}.drainage-content{max-height:calc(100dvh - 335px)}}

.scene-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.xray-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;padding:10px 12px;background:#ffffffef;border:1px solid #d6e2e7;border-radius:9px;box-shadow:0 2px 9px #2e4a5b08;font-size:12px;font-weight:600;color:#466679;cursor:pointer;white-space:nowrap}
.xray-toggle input{width:16px;height:16px;margin:0;accent-color:#496b88;flex-shrink:0}
.xray-toggle:has(input:checked){background:#e4eef5;border-color:#b2c9dc}
.xray-toggle:has(input:disabled){color:#8b9ca4;cursor:default;box-shadow:none}
.xray-toggle:focus-within{outline:2px solid #496b88;outline-offset:1px}
.sketch-scene .xray-toggle{background:#fffdf7ed;border-color:#d5cfc2;color:#5d605b}
.sketch-scene .xray-toggle:has(input:checked){background:#e5e3da}
.occlusion-note{font-size:12px;line-height:1.55;color:#597380;background:#f0f6f8;border-radius:6px;padding:9px;margin:10px 0}
@media(max-width:1150px){.scene-actions{justify-self:start;justify-content:flex-start}.xray-toggle{min-height:36px;padding:8px 10px;font-size:12px}}
@media(max-width:760px){.scene-actions{width:100%;justify-content:space-between;gap:5px}.xray-toggle{padding:8px;gap:5px;min-height:35px;font-size:11px}.scene-actions .presentation-button{padding:8px;font-size:11px}.xray-toggle input{width:15px;height:15px}}

/* The roof is chosen visually from the first step of the model panel. */
.roof-choice{display:flex;flex-direction:column;width:100%;padding:0;overflow:hidden;border:1px solid #cbdfe5;border-radius:9px;background:#fff;text-align:left;box-shadow:0 2px 5px #294a5a05;transition:border-color .15s,box-shadow .15s}
.roof-choice:hover{border-color:#84afbd;box-shadow:0 4px 12px #294a5a12}
.roof-choice-preview{display:block;width:100%;background:#eff6f7;height:108px;overflow:hidden}
.roof-choice-preview svg.guide-thumbnail{display:block!important;width:100%!important;height:108px!important;fill:initial;stroke:none;border-radius:0;background:transparent}
.roof-choice-copy{display:block;padding:9px 12px 10px;width:100%}
.roof-choice-copy strong{display:block;color:#294959;font-size:13px;font-weight:650;line-height:1.3}
.roof-choice-copy>span{display:block;margin-top:4px;font-size:10px;color:#6a8490;line-height:1.5}
.roof-choice-action{display:flex;align-items:center;gap:7px;width:100%;padding:10px 12px;border-top:1px solid #dce9ee;background:#edf5f7;color:#3c637a;font-size:11px;font-weight:650;min-height:37px}
.roof-choice-action svg{width:15px;height:15px}.roof-choice-action .trailing-icon{margin-left:auto;width:11px;height:11px}
@media(max-width:760px){.roof-choice-preview,.roof-choice-preview svg.guide-thumbnail{height:92px!important}.roof-choice-copy{padding:8px 10px}.roof-choice-action{padding:10px;font-size:11px}.roof-choice-copy>span{font-size:10px}}

/* Skylights: visual profile choice, then a separate arrangement preview. */
.sky-editor-tabs{display:flex;gap:5px;padding:4px;border:1px solid #dae7eb;border-radius:9px;background:#f2f8fa;margin-bottom:22px}
.modal-body .sky-editor-tabs>button{flex:1;border:0!important;background:transparent!important;font-weight:600;min-height:42px}
.modal-body .sky-editor-tabs>button[aria-selected=true]{background:#fff!important;color:var(--navy);box-shadow:0 2px 8px #31556812}
.sky-dialog .sky-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}
.sky-dialog .sky-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.modal-body button.sky-profile-card,.modal-body button.sky-preset-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0!important;text-align:left;background:#fff!important;border:1px solid #d4e3e8;border-radius:9px!important}
.modal-body button.sky-profile-card[aria-pressed=true],.modal-body button.sky-preset-card[aria-pressed=true]{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy);background:#f0f8fa!important}
.sky-profile-card svg,.sky-preset-card svg{display:block;width:100%;height:78px;background:#f3f8fa;flex-shrink:0}
.sky-profile-card strong{padding:8px 5px 10px;font-size:11px;text-align:center;width:100%;line-height:1.35;font-weight:600}
.sky-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.sky-preset-card svg{height:108px}
.sky-preset-card strong{padding:12px 12px 0;font-size:13px;line-height:1.4}
.sky-preset-card>span{padding:6px 12px 14px;font-size:12px;line-height:1.5;color:#587481}
.sky-dialog .sky-fields{gap:12px}
.sky-dialog .sky-fields .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sky-dialog .sky-fields label{font-size:12px;line-height:1.5}
.sky-dialog .sky-fields input,.sky-dialog .sky-fields select{font-variant-numeric:tabular-nums}
.sky-dialog .sky-dimension-note{font-size:12px;line-height:1.5;margin:0;color:#627d89}
.sky-position{border-top:1px solid var(--line-light);padding-top:12px}
.sky-position summary{font-size:13px;color:var(--navy);cursor:pointer;padding:4px 0 10px}
.sky-layout-generator{border-top:1px solid var(--line-light);padding-top:21px}
.sky-layout-status{font-size:12px!important;margin:12px 0 0;line-height:1.6!important}
.sky-dialog #sky-generate{margin-top:3px;min-height:44px}
.sky-dialog #sky-generate:disabled{opacity:.5;cursor:not-allowed}
.sky-dialog .button-row{gap:7px}
.sky-dialog .field-note{font-size:12px;margin:12px 0 0;line-height:1.6}
@media(max-width:760px){
  .sky-dialog .sky-layout{grid-template-columns:1fr;gap:22px}
  .sky-dialog .sky-editor-tabs{margin-bottom:18px}
  .sky-profile-card svg{height:68px}
  .sky-profile-card strong{font-size:11px;padding:7px 3px 9px}
  .sky-preset-grid{grid-template-columns:1fr;gap:9px;margin-bottom:18px}
  .modal-body button.sky-preset-card{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center}
  .sky-preset-card svg{grid-row:1/3;height:90px}
  .sky-preset-card strong{padding:11px 9px 0 0;font-size:13px;align-self:end}
  .sky-preset-card>span{padding:4px 9px 11px 0;font-size:11px;align-self:start}
  .sky-dialog .sky-fields .field-grid{gap:10px}
  .sky-dialog .sky-fields label{font-size:12px}
  #modal:has(.sky-dialog) .modal-footer{gap:6px;display:grid;grid-template-columns:1fr 1fr}
  #modal:has(.sky-dialog) .modal-footer #sky-done{grid-column:1/-1}
  #modal:has(.sky-dialog) .modal-body{max-height:calc(100dvh - 244px)}
}

@media(max-width:760px){#modal:has(.sky-dialog[data-pane=layouts]) .modal-footer #sky-done{grid-column:auto}#modal:has(.sky-dialog[data-pane=layouts]) .modal-body{max-height:calc(100dvh - 190px)}}

.history-label, .mobile-project-tools { display: none; }
@media (max-width: 760px) {
  .files-popover {
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-project-tools {
    display: grid;
    gap: 8px;
    padding: 6px 4px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-project-tools .project-title { display: block; max-width: none; }
  .mobile-project-tools input {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 16px;
  }
  .mobile-project-tools .history-actions { display: flex; gap: 5px; margin: 0; }
  .mobile-project-tools .history-actions .icon-button {
    width: auto;
    min-height: 40px;
    flex: 1;
    gap: 5px;
    border: 1px solid var(--line);
  }
  .history-label { display: inline; font-size: 12px; }
}

/* Skylight selection: inputs next to the projection and the exact area result. */
#modal:has(#sky-planner) {width:min(980px,calc(100vw - 32px))}
.planner-columns {display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}
.planner-columns h3 {margin:0 0 10px;font-size:15px;font-weight:650}
.planner-controls {min-width:0}
.planner-controls label {display:grid;gap:5px;min-width:0;font-size:12px;font-weight:550}
.planner-controls input:not([type=checkbox]),.planner-controls select {width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);min-height:38px;font-size:14px}
.planner-controls input:invalid {border-color:#ae6554}
.planner-families {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:16px}
.modal-body button.planner-family {display:flex;align-items:center;justify-content:flex-start;gap:4px;min-width:0;min-height:48px;padding:4px!important;border:1px solid #d3e3e7!important;border-radius:7px;background:#fff!important;font-size:12px;line-height:1.25;text-align:left}
.planner-family svg {width:46px;height:34px;flex:none}
.modal-body button.planner-family[aria-pressed=true],.modal-body .planner-options button[aria-pressed=true] {background:#eaf5f6!important;border-color:#4f7182!important;box-shadow:inset 0 0 0 1px #4f7182}
.planner-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;margin:12px 0}
.planner-fields #sky-custom-heights {display:contents}
.planner-fields label.planner-lock {grid-column:1/-1;display:flex;align-items:center;gap:7px;min-height:30px;font-weight:450}
.planner-lock input {width:16px;height:16px;accent-color:var(--navy)}
.planner-advanced,.planner-options,.planner-issues {margin:12px 0}
.planner-columns summary {color:var(--navy);font-size:13px;cursor:pointer;font-weight:600;line-height:1.6}
.planner-review {min-width:0;padding:16px;background:#f6fafb;border:1px solid var(--line-light);border-radius:9px}
.planner-target,.planner-note,.planner-result-note p,.planner-issues li {font-size:12px!important;line-height:1.5!important;color:#4a6571}
.planner-stat {display:grid;gap:4px;margin:12px 0;color:#254c5c}
.planner-stat strong {font-size:19px}
.planner-stat span {font-weight:600;font-size:14px}
.planner-stat small {font-size:12px;color:#536d79}
.planner-drawing .sky-plan {display:block;width:100%;height:auto;max-height:240px}
.planner-working,.planner-empty,.planner-alert {font-size:13px!important;line-height:1.5!important;padding:12px;border-radius:7px;margin:12px 0 0}
.planner-working {background:#e9f2f4}
.planner-empty,.planner-alert {background:#fff5e9;color:#725534}
.planner-empty p,.planner-note:last-child {margin-bottom:0}
.planner-options>div {display:grid;gap:5px;margin-top:6px}
.modal-body .planner-options button {display:flex;flex-wrap:wrap;align-items:center;text-align:left;gap:4px 8px;border:1px solid var(--line);padding:8px;font-size:12px!important}
.planner-note a {color:#285b73;font-weight:650}
.planner-issues ul {margin:5px 0;padding-left:18px}
@media(max-width:760px) {
  .planner-columns {grid-template-columns:1fr;gap:16px}
  .planner-review {padding:12px}
  .planner-families {gap:5px}
  .planner-family svg {width:34px;height:28px}
  .planner-fields {gap:8px}
  #modal:has(#sky-planner) {width:calc(100vw - 16px)}
}

.sky-plan .sky-roof-outline { fill: #e7f6f7; stroke: #85aab2; stroke-width: 1; }
.sky-plan .sky-roof-fold, .sky-plan .sky-roof-valley,
.sky-plan .sky-feature-highlight { fill: none; pointer-events: none; }
.sky-plan .sky-roof-fold { stroke: #99a9ad; stroke-width: .9; }
.sky-plan .sky-roof-valley { stroke: #927dad; stroke-width: 1.4; stroke-dasharray: 4 2; }
.sky-plan .sky-feature-highlight { stroke: #c28449; stroke-width: 2; }
.sky-plan .sky-feature-highlight.error { stroke: #a6463c; stroke-width: 3; }
.sky-plan .sky-hit.sky-invalid { fill: #f3c6bd; stroke: #aa5448; }
.sky-plan .sky-hit.sky-invalid.selected, .sky-plan .sky-hit:focus-visible { stroke: #763f34; stroke-width: 3; }
.sky-plan .sky-hit[role=button]:focus-visible { outline: 1px dotted var(--navy); }
.sky-dialog .sky-area-summary { font-weight: 650; margin: 14px 0 6px; }
.sky-draft-note, .sky-issue-box, .sky-support-note, .sky-geometry-ok { border-radius: 7px; padding: 9px 11px; margin: 8px 0; font-size: 13px; }
.sky-dialog .sky-draft-note, .sky-dialog .sky-issue-box { color: #794037; background: #fbefeb; }
.sky-dialog .sky-support-note { color: #594c32; background: #f7f3e9; }
.sky-dialog .sky-geometry-ok { color: #325852; background: #eaf4f0; }

#zones-edit {margin-top:7px}
.handoff-sheet {max-width:700px;margin:auto}
.handoff-sheet label {display:block;margin:19px 0 7px;font-weight:600}
.handoff-sheet textarea {box-sizing:border-box;width:100%;resize:vertical;min-height:90px;padding:11px;border:1px solid var(--line);border-radius:7px;color:var(--ink);font:inherit}
.handoff-sheet .field-note {margin-top:10px}
#sheet-status {color:var(--navy);font-size:13px}
#sheet-status:empty {display:none}
.sky-issue-box button, .sky-draft-note button { display: block; color: inherit; border: 0; background: transparent; padding: 6px 0; text-align: left; text-decoration: underline; }
.sky-check-settings { font-size: 12px; color: var(--muted); margin: 9px 0; }
.sky-check-settings summary { cursor: pointer; }

#sky-collision-status {
  display: block;
  padding: 7px 0;
  margin-bottom: 5px;
  border: 0;
  background: transparent;
  color: #854c29;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
}
.sample-project-hint{margin:0 0 16px;color:var(--muted)}
.sample-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:14px}
.sample-project-card{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);text-decoration:none;background:var(--card)}
.sample-project-card:is(:hover,:focus-visible){border-color:var(--navy);box-shadow:0 2px 9px #35587216}
.sample-project-card img{display:block;width:100%;height:108px;object-fit:contain}
.sample-project-card strong{font-size:16px}
.sample-project-card span{color:var(--navy-dark);font-variant-numeric:tabular-nums}
.sample-project-card p{margin:3px 0 0;line-height:1.45;color:var(--muted)}
